Test Lab in HP ALM

How to Create a Test Set

Step 1) First step is to create a root folder as a container for having the test sets. We can name it in line with the release and cycle so that it is easy to track.
  1. Goto 'Test Lab' Module under 'Testing' Tab
  2. Create a new Folder by Clicking on 'New Folder' icon.
  3. The 'New Test Set Folder' Dialog opens. Enter the name of the folder as '2017 R1 – Cycle 1'.
  4. Click 'Ok'
Step 2) The Test Run Folder would be created as shown below.
Step 3) Select the created folder and assign 'Cycle' to it which means the entire test set should be executed for Cycle 1.
Step 4) Enter the name of test set and click 'OK'
Note: The Target Cycle field is disabled as the target cycle is selected at the folder level(2017 R1 – Cycle 1).
Step 5) After creating the test set, we need to select the tests and add it to the test set. 
  1. Select the Test Set.
  2. Navigate to 'Execution Grid'.
  3. Click 'Select Tests' Button. The Test Plan Tree opens up.
  4. Select the Tests to be executed for this Cycle.
  5. Click '<=' button.
Step 6) Upon adding tests from test plan tree, all the configuration parameters of the selected tests are displayed to the user. User can edit the configuration before adding it to the test lab.
Note: User has no control over test configuration selection in test Lab. Hence the entire configuration will be added to the test set by default. In case one of the selected configuration is NOT part of the cycle, after adding the tests, delete from the test lab.
Step 7) After selecting the configurations, the selected tests are added to the test set. In this case we have selected all three configurations; hence we can find three instances of '01- Login Test'.
Step 8) Repeat the above steps to create more test sets and select all the relevant tests planned for this cycle. After creating all test set, the structure of test set will be as shown below:
Step 9) The other important tab that we need to understand is 'Execution Flow'. Select 'Execution Flow Tab' which displays the order in which the tests would display during the execution. Users can also change the execution order using this tab which will be dealt in a separate section of this module.

How to Execute Tests

Step 1) Created test sets are now ready for execution. Tests can be executed using two options.
  • Run Test Set – This option allows user to execute all the tests in a selected test set.
  • Run – This option helps user to execute just the selected test.
Step 2) Let us execute the entire test suite of the Login module by selecting 'Run Test Set' option. Upon clicking 'Run Test set' it displays the user with two options.
  1. Manual Runner (default) – The order of the tests displayed during the execution would be as that of the order that is displayed in the test set grid.
  2. Automatic Runner – The order of the tests displayed during execution would be shown as that of the order set in the execution flow tab.
Let us proceed with the default option.
Step 3) The Manual Test runner is displayed to the User. In this Dialog let us understand the important features.
  1. Begin Run – Helps to kick start the execution
  2. End Run – Terminates the current Execution and closes the manual runner.
  3. Cancel Run – Cancels the execution of the current tests.
  4. Attachments – Helps us to attach screenshot/any other information related to the this test execution
  5. New Defect – Upon clicking on it new defects dialog opens using which a defect can be posted.
  6. OS Info – Gives information about the operating system in which the tests are executed.
  7. Run Name – Unique Time stamp using which the test results can be analyzed at later point in time.
Click 'Begin Run'.
Step 4) Manual test runner with test controls and steps are displayed to the user. Let us understand the functionalities available in this test runner dialog.
Add a Step during the test execution time.
Delete a Step during the test execution time.
Pass Selected
Fail Selected
Shows the Parameter for the selected Test Step
Allows user to capture screenshot and add attachments during run time.
Allows user to add defect during run time.
Shows the user with a Compact View of the test runner
End execution
  1. Step Numbers created during test design stage
  2. Description of the selected step.
  3. Expected Result of the selected step.
Step 5) Thenext test in the test set will be displayed to the user. Repeat Step 3 and Step 4 to execute the test and mark the status accordingly.

How to create Test Run Schedule

Testers can control the test execution with the help of "Execution Flow" Tab. Testers can also specify date and time for executing a particular test instance. We can also schedule the test based on the results of another specified test instance in the Execution Flow.
Now, let us understand how to schedule the test flow in HP-ALM.
Step 1) Select "Execution Flow" tab from Test Lab module.
Step 2) Double click on the specific test against which the schedule needs to be set. "Test Run Schedule" would be displayed as shown below. We can notice that there are no execution conditions that were set by default.
Step 3) To Add an execution condition, click on "+" icon as shown below.
Step 4) The New execution condition dialog opens up.
  1. Select the test from test drop down. All the tests in the test set will be displayed
  2. Select the condition. It can take either 'Passed' or 'Finished'.
  3. Click 'OK'.
Step 5) The test run schedule is displayed with the added execution conditions.
Step 6) The Execution flow realigns automatically as show below. According to the below displayed flow, the test 'Cluster Head' will be executed only when the '02 – Reset Button Check' is finished.
Step 7) Nowlet us understand how testers can specify the date and time in execution flow for executing a particular test. It is more helpful when testers know about the readiness of a specific functionality or for scheduling automated tests.
Let us say, the manager login profile would be ready only after a specific date. Hence testers can execute the same by specifying the conditions in 'Execution Flow'.
Double Click on the test for which the execution flow criteria needs to be set.
Step 8) Now,
  1. Navigate to 'Time Dependancy' Module
  2. Select 'Run at Specified Time'
  3. Enter the Date on which you would like to execute
  4. Enter the Time when you would like to execute the test
  5. Click 'Ok'.
Step 9) Theexecution flow tab will be realigned as shown below. This kind of scheduling is very much helpful for automated tests which follow the same steps.
Note: Ifthe scheduled date and time has arrived, then ALM would automatically launch the tests. It holds good for automated test as test would be executed without any manual intervention. The Precondition for triggering the tests automatically is that the host should be ready(shouldn't be powered off or locked) and it should be in a state to trigger the test. If it is a manual test then there won't be any effect.

How to Analyze Test Result

Step 1) Once the test execution is done, testers can view the results in the "Test Runs" module. It contains the results of test instance runs and test set runs.
  1. Goto "Test Runs" in "Testing" Tab and the window opens as shown below:
  2. The Run Name is a unique value generated for each one of those test executions.
  3. 'Status' shows the final status of the test execution.
The detailed Result can be viewed by clicking on the 'Run ID'.
Step 2) The Run details dialog opens up and user will be able to view the detailed result.
  1. Goto 'Report' tab of the 'Run Details' window.
  2. Testers can check the status of each one of those test steps.
  3. Click 'Ok' to close the dialog.

No comments:

Post a Comment

Face Book