Execute Recorded Test Cases

You can initiate the test case execution either on the host machine or on a remote machine.

Execute Test Cases on Host Machine

Note: For Salesforce, the test cases will be executed in the same mode in which it was recorded. For example, if a test case is recorded in the Classic mode then it will be executed in the Classic mode only.

To execute a test case, follow either of the ways:

A. On the left panel, click on the more icon for the test case and select Execute Test Case. This will run the execution on the last selected browser and last defined URL for the test case execution as default.

B. Click on Execute above the grid and select Web.

Users can execute test cases on multiple browsers. QAS has enhanced support for Firefox and Edge browsers. The list of browsers is available on the Execute Web screen. Currently QAS supports Chrome, Firefox, Microsoft Edge and Safari browsers to execute the pre-recorded web test cases through test recorder.

Note: Test Cases can be recorded in Chrome and Firefox browsers.

When executing test cases through Execute > Web. The following screen opens.

1. Mention Web URL and select Browser.

Headless: You can also execute web and mobile test cases in headless mode from test recorder on Chrome and Firefox browsers. It renders fast execution without browsing through the browser. It is useful when you are only concerned with the final results and do not want to check browser operations while execution. Refer to QAS CLI for more details on the headless testing mode.

2. Then click Start.

The test case execution starts.

The status of each test step and test case is updated accordingly.

 

During the time of execution (other than headless execution), all the web elements and locators are automatically highlighted to provide better focus to the user as shown in screenshot below.

Execute Test Cases on Remote Machine

You can execute test cases on the remote machine.

Pre-requisites:

The following installation should be present on the remote machine:

  • Chrome Driver

  • selenium-server-standalone-<latest version>.jar

Steps:

1. On Remote Machine: Run the following command on the remote machine where the selenium-server-standalone.jar is downloaded.

java -Dwebdriver.chrome.driver=D:/software/chrome/chromedriver.exe -jar selenium-server-standalone-3.141.59.jar

2.On the Execute Web screen -

  • Mention Web URL and select Browser.

  • Want to run on Remote Server ?: Select the check box. The Hub URL field will be visible as soon as you select the check box.

  • Hub URL: Enter IP Address of the remote server on which you want to perform the record operation. For example, http://194.138.10.108:4444/wd/hub/

 

Click Start to initiate the execution of test case on remote machine.

You can see the execution progress simultaneously on the host machine.