10
How to inject test in runtime? CloudTestSoftware.com CTestOne

Cloud Testing with Browser & Web Service using test injection technique

Embed Size (px)

Citation preview

Page 1: Cloud Testing with Browser & Web Service using test injection technique

How to inject test in runtime?

CloudTestSoftware.com

CTestOne

Page 2: Cloud Testing with Browser & Web Service using test injection technique

Agenda

�  Dynamic Test Injection

�  Sample Test Case

�  Creating Dataset

�  Test Configuration

�  Test Run & Results

Page 3: Cloud Testing with Browser & Web Service using test injection technique

Dynamic Test Injection

�  Inject Test in runtime using dataset

�  Break complex tests into simple execution steps

�  Use dataset instead of code

�  Reduce test script or No script

�  Configure test using XML

Page 4: Cloud Testing with Browser & Web Service using test injection technique

Test Cases �  Test 1: Invoke a project using Web App and verify it exists in

Service call

�  URI=/rest/project/rows?token=<Your TOKEN > &filters=project.name%01Like%01%%02project.status%01Like%01Open

�  Test 2: Invoke a feature using Web App and verify it exists Service call

�  /rest/feature/rows?token=<Your Token> &filters=feature.name%01Like%01%%02project.name%01Like%01%%02feature.status%01nLike%01Not%20Started

Page 5: Cloud Testing with Browser & Web Service using test injection technique

Browser Steps for Test1

�  Step 1 : Login using browser

�  Step 2 : Select Project Tab

�  Step 3 : Search project

�  Step 4 : Select a project and extract project name

Page 6: Cloud Testing with Browser & Web Service using test injection technique

Web Service Steps

�  Step 1: Call service to get Auth token using user and password

�  Step 2: Call service to get list of projects

�  Step 3: Verify project name exists in service response

Page 7: Cloud Testing with Browser & Web Service using test injection technique

Browser Steps for Test-2

�  Step 1 : Login using browser

�  Step 2 : Select Feature Tab

�  Step 3 : Search Feature

�  Step 4 : Select a feature and extract feature name

Page 8: Cloud Testing with Browser & Web Service using test injection technique

Web Service Steps

�  Step 1: Call service to get Auth token using user and password

�  Step 2: Call service to get list of features

�  Step 3: Verify feature name exists in service response

Page 9: Cloud Testing with Browser & Web Service using test injection technique

Automation Steps

�  Record injectors using CTestOne recording tool

�  Create Injector group for scenario

�  Create Dataset

�  Configure Test Steps

�  Create Asserts

�  Run & Verify results

Page 10: Cloud Testing with Browser & Web Service using test injection technique

Demo �  Watch video for this demo

�  https://youtu.be/s6m2PS0Q9io

�  https://youtu.be/xbX3nCogHdo

�  Articles

�  https://www.linkedin.com/pulse/faq-i-am-using-my-own-homegrown-selenium-automation-so-srimanta-jana

�  https://www.linkedin.com/pulse/compare-cost-release-validation-5000-browser-tests-cloudtest-software

�  Website

�  www.CloudTestSoftware.com