Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2

...

QAS allows users to record for web sites websites for automation. Multiple Session recording was the default recording mode available until QAS v1.45 for Web and Mobile Web. In multiple session recordingrecordings, the test cases are recorded as individual test cases. You can see multiple executions running for the test cases. It is useful when the test cases are not dependent on each other. These test cases are then run either in sequence one by one (Multiple Session Execution) or simultaneously (Multiple Session Parallel Execution). Refer to Execute Recorded Test Suites for more details on execution sessions.

...

Enter the website and start recording of actions once the mentioned website is open in the browser.

Note: HTTPS protocol is mandatory for Web URL.

...

  • On the Record Web window, enter the URL of the web site website you want to record test cases from and click Start.

...

Once the web site website opens, the recording session starts and the actions are recorded in QAS in the form of test steps. You can see the blinking icon at the top right which indicates the recording is in progress.

...

Once the test case CreditAmount is created, the recording is stopped and another test case DebitAmount is created with a new recording.

...

You can -

  • edit recorded steps. Element and Input are editable.

  • add more steps to the recorded steps.

  • delete the recorded steps.

You can execute a test suite containing multiple session test cases in - Multiple and Multiple (Parallel) sessionsessions. Read Execute Recorded Test Suites for more details.

→ When the web URL requires user authentication, simply append your credentials (username and password) with the URL.

Expand
titleRead More...

The authentication pop-up is a Browser dialog window. The user will not be able to inspect the locator of that authentication popup. To handle this kind of scenario, simply append your credentials (username and password) with the URL.

For example,

  • Username= admin and Password= admin

Now enter the URL in the following format:


...

The feature is useful when you need to upload a json JSON file in Jenkins or other CI/CD tools. The file containing the source code is imported in into the tool to trigger the new build.

...

Test Case code can be viewed and exported through either of the following ways -

A) From the Test Case tree

B) From Test Case Detail View

A) From Test Case Tree

1. Click on the more icon for a test case and select Export.

...

2. To view the source code of the test case, click on the Code tab.

...

It displays the test case in code format in the explorer.

...

Note: The test code can be exported only in the language/framework of the project.

...

Then follow  follow the rest of the points same as described for Section (A) From the Test Case Tree above.

To return to tabular view, click on View at the top right.

...

Export Code of a Test Suite

You can export the code of multiple test cases of a test suite at a time. 

...

Steps:

...

Provide input for Web Driver Capabilities.

  • Local Server: Use a local server when Appium is running on the same machine and the device is connected to the same machine.

  • Remote Server: Use a custom server when Appium is running on the remote machine and the device is connected to that remote machine.

  • SAUCELABS: You can run the QAS test scripts using Sauce Labs capabilities of your choices. Refer to Integration with Sauce Labs for more details.

  • Headspin

  • Perfecto: Users can configure Perfecto Mobile on the Web Driver Capabilities screen for recording test cases through Android. Read more details on Integration with Perfecto.

...

By default, the Form is displayed to enter the capabilities details. You can add more fields by clicking on Add Field.

...

Modes to Record Testing Sessions

Manual Mode 

In this mode, the performance of actions does not create events itself. Manual efforts are required to create events.

...

The File parameter is added for web service automation in the tab. The option to upload a file appears as soon as you select the type File.

...

You can add check points to the responses. The Key and its values in Headers and Body will be validated against such defined check points.

Each value row has an action icon, clicking on which shows the following options. As an alternate, you can also right click on the row.

...

  • Copy to Clipboard: Copy the response value on the clipboard and paste it to other placeplaces.

  • Store to: Store response header to Key and Variable.

  • Assertion: Insert assertion to headers which indicates that the response should have a specific header.

...

  • Boundary Scan: You can add check points with defined boundary values e.g., less than, greater than, equal to, contains value, etc. The Key and its values in the Body will be validated against such defined check points.

...

3. Replace the Base URL with the Test Data variable name in the following syntax -

${variable_name}

For example, ${URL}/orders

...