Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can define a new test case, run and debug locally, execute on the cloud and get a report of the execution by following the steps below:

Creating Test Suites

Before creating a test case, you need to create a folder which arranges content inside your account based on different aspects of your project. Once folders are created, you can also create test suites inside folders where you can collect your test cases that belong to particular actions/goals you would like Subject7 to perform.

...

Info

Tip

The Name field color is pink to indicate that this is mandatory to enter.

Creating Test Cases

Test Cases are the place where you author your automated/manual/hybrid tests which includes steps and commands. Creating test cases is done as follows:

1- Click on + icon after navigating inside your Test Suite to create a new test case

...

Info

Tip

If a locator used in a step has more than one match on the page, a warning will be presented and the status of the step is marked with FAIL_SKIP

Floating Action Palette

The floating action palette allows you to configure your steps as follows:

...

Info

Tip

If you are having issues with running, please refer to this page for additional content: How to Run a Test Case Locally

Creating Execution Sets

In order to prepare your test cases to run in the cloud on a schedule, you will need to create an execution set and define various parameters before starting cloud executions. 

...

4- Click on Tests Data Selection tab to select your Test Case and Data Sets (Explained further here).

5- Drag and drop test suites or test cases from the Tests on the left-hand side to the Selected Test Cases in the middle

...

9- Click on Save or Save & Close on the lower right corner.

Running an Execution Set in the Cloud

Running an execution set in the cloud can be done with a schedule as explained above, but you can also run it individually as below:

...

2- Select Yes on the confirmation popup window.

Viewing Execution Reports (Results)

Viewing execution results after running them on the cloud can be done as below:

...

5- You can also click the Eye icon under Artifacts and click the View video link to show the recording of the execution or click the View images link which will generate an image if there are failures to debug.

...

Modularizing Steps

Creating Functions

Some steps in your test cases may be repetitive or similar in a way that you may not wish to create them over and over again whenever you create a new test case. To prevent that, you can group one or several steps into a function in two ways:

...

4- Create the needed steps with commands and define any locators/Inline XPaths.

...

6- Click Not Saved to save your function


Method (2):

...

To use a function inside a test case you have created before, select the Call command in a step and then select the desired function. When execution occurs, the test case will execute the steps in the same order they have been arranged inside the function. The image below shows a Call command used with a function:

...

Creating Data Templates (Data-driven testing)

If you have data which is needed in several test cases (such as log in information), you can create data templates and add data sets to them to save this data instead of hard-coding it in steps or entering it manually in every test case. That way, you can simply inject a data set in any field in your steps. You can do that as below:

...