Test Component

QAS provides shareable test case feature that fulfills the purpose of test case reusability when a set of similar steps are used in multiple test cases. Users can create a sharable test case for common test steps. This test case is then shared and reused in more than one parent test cases. It saves testers' efforts and time that is consumed in adding repetitive steps into multiple test cases.

Reusability and shareability of test assets helps you optimize projects and reduce efforts of creating repetitive test cases assets.

There are two types of components that you can create for test case reusability.

  • Shareable Component: Any change in the shareable test steps will impact all the test cases that are utilizing the shareable test case.

  • Standard Component: Any change in the shareable test steps will not impact existing test cases that are utilizing the shareable test case. The changes in the shareable test case will impact only new test cases.

 

Create a Folder

QAS provides folder structure to arrange test components.

Steps:

1. Go to the Test Component module.

2. Click on the New Folder icon on the tree.

3. Enter the folder name in the pop-up that opens and click Create.

Create a Shareable Component

The reusable test steps can be used in multiple test cases. Any change in the shareable test steps will impact all the test cases that are utilizing the shareable test case.

Steps:

1. Select the test steps that you want to include as shareable component.

2. Follow either of the ways:

(A) Open the Create drop-down at the top and select the Shareable Component option.

(B) Right-click on the selected test steps and select the Shareable Component option.

3. Enter Name for the Shareable Component.

4. Select the Destination Path/Folder. The folders are created in the Test Component module. If not selected, the component will be created at root level by default.

5. Click Create.

The test steps are converted into a one expandable step. You can now use this shareable test case in other test cases.

Create a Standard Component

You can create standard components following the same steps described for Shareable Component, just select Standard Component in place of Shareable Component.

Use Shareable/Standard Test Cases

Shareable test cases can be used in recorded as well as manual test steps.

Steps to use Shareable Test Cases:

1. Create a recorded or manual test case.

2. Locate the sequence at which you want to insert the shareable test case.

You can insert the shareable test case through either of the following ways:

(A) Search the standard/shareable test case by typing in the Search in the Add Command/Action drop-down menu. Once the required shareable test case is prompted, just click on it to add as a step. You can also open the Standard/Shareable tab to view the filtered standard/shareable test case.

(B) Locate the shareable test case in the Drag and Drop Actions. You can drag the option to adjust its appearance on the screen.

Expand the Shareable Component section to view the shareable test case.

The selected shareable test case gets inserted at the place with expandable capabilities.

To navigate to the component, hover over the step and click on the icon for Go To Component.

View Shareable/Standard Components in Test Component

The Standard Component and Shareable Component that are created the Test Plan module while recording test steps will be visible in the Test Component module. Users can also arrange the components in folders.

The test components can be viewed either in BDD View or in KWD View.

BDD View

 

KWD View

Edit Shareable/Standard Components in Test Component

You can add new action properties in the existing script of shareable/standard component and can also edit existing properties.

Any change in Shareable Component will reflect in all the test cases it is associated with. Whereas, any change in Standard Component will not impact any of the existing test cases it is associated with. It will impact only new test cases.

Adding new action properties in the existing script

 

Editing existing properties

Editing Test Component Name

To edit the Shareable/Standard component name, click on the name field and make required changes.

Multi-level Components

QAS allows you to create nested structures of test component with different levels of hierarchy.

Notes:

  • In a standard component, you can add only shareable components along with other commands. You can not call a standard component from another standard component.

  • In a shareable component, you can add only shareable components along with other commands.

For example,

There is a range of actions recorded for a Debit Amount transaction on a bank portal. The multiple/nested components could be like -

  • Debit Amount [TC5]

    • Click Login [TC4]

      • Enter Password [TC3]

        • Enter Username [TC2]

          • Open URL [TC1]

To elaborate further, TC2 contains TC1, TC3 contains TC2, TC4 contains TC3 and TC5 contains TC4. It means, if we use TC4 in TC5, all the previous level components will be automatically called within TC5.

The following image shows TC4 containing TC3:

The following image shows TC5 containing TC4:

From the test case level, only first level expansion i.e. the immediate previous level hierarchy will be covered.

To navigate and view the nested component, click on the navigation icon provided on the step.

Shareable/Standard Component Step Input Data Masking

You can mask the input value of steps for Shareable Components.

1. Go to the Test Component.

2. Expand the Shareable section.

3. Click on the Edit icon for step the data of which you want to mask.

The Action Properties panel opens.

4. Click on the Mask Data icon for the input value that you want to hide/mask.

You can see the input value gets hidden.

To unmask the input value, click on the same icon.

Comment Shareable/Standard Components

You can comment a single as well as multiple steps at a time in the shareable/standard component. If these commented steps are linked with any test cases, then these steps will be excluded while execution/dry run of the test case.

Comment a Single Step of Shareable Component

1. Go to the Test Component module.

2. Open the shareable component and click on the Comment icon for the step that you want to comment.

Comment Bulk Steps of Shareable Component

1. Go to the Test Component module.

2. Open the shareable component.

3. Select the steps that you want to comment and click the Exclude Steps button at the top.

The shareable steps are commented.

The commented shareable test steps also appear as commented under the test cases in which they are linked. These commented shareable steps will get excluded while execution of the test case.

Note: The commented shareable component can be uncommented only from the respective component in the Test Component module. You can not uncomment the shareable components from the test case in the Test Plan module.

Comment a Single Step of Standard Component

You can comment a single as well as multiple steps at a time in the standard component. If these commented steps are linked with any test cases, then these steps will be excluded while execution/dry run of the test case.

1. Go to the Test Component module.

2. Open the standard component and click on the Comment icon for the step that you want to comment.

 

Comment Bulk Steps of Standard Component

1. Go to the Test Component module.

2. Open the standard component.

3. Select the steps that you want to comment and click the Exclude Steps button at the top.

The standard steps are commented.

The commented standard test steps also appear as commented under the test cases in which they are linked. These commented shareable steps will get excluded while execution of the test case.

If some steps of the standard component are already commented in the Standard section of the Test Component module and this standard component with commented steps are linked to a test case, then these commented steps of standard component can also be uncommented from the test case in which it is linked.