Community
Thumb_icon

Hook: Handle Changes in Test Runs and Test Cases During Test Execution

 This Hook enables Test Engineers to add new Test Steps during the Test execution and to manage the Defect update/creation for each Test execution.

Description

share this page via facebook share this page via LinkedIn share this page via Twitter share this page via Google+ share this page via email More sharing services
This Hook allows to create/link a Defect to the Test Records based on information specified in the Test Result Comments (Verdict).
It also alows to adjust the Test Run to point to the Head revision of a Test Case if it is edited, therefore enabling the user to modify (add) Test Steps to a Test Case during the Test execution.

This Hook requires extension Work Item Action Interceptor Framework (WIAIF) to run.

 

Hook Features
Create/Link Defect based on Verdict
This feature allows to create a new Defect or to link an already existing one to a Test Record (if Failed) based on the info specified in a Verdict field (Test Result Comment).

Available options:

  • @D:NEW - Creates a new Defect and adds it to a Test Record by linking it to the Test Case using link role "triggered_by".
    • As a result, the Defect Description will now contain information about the Test execution: Test Run, Test Case, Executed, Test Steps.
  • @D:U - Updates an already existing Defect (from a previous Test execution) in a Test Case by copying the current Defect Description to a Comment and updating it.
  • @D:DEFECT_ID - Adds information about an already existing Defect to the Test Records and links the Defect to the Test Case (if not already linked). The Test execution information is added as a new Comment (the Description is not changed).

 

Adjust Test Run
This feature allows to adjust an existing Test Run to point to the Head revision of a Test Case if the Test Case was edited. This enables a user to modify (add) Test Steps to a Test Case during the Test execution.

 

How to Install

  • Copy file test_execution.jar to the hooks folder of WIAIF.
  • Enforce a plugin reload from the WIAIF Interceptor Management Page (or restart Polarion).
  • Make sure the configuration of the Polarion Project you are using allows to link a Defetct with a Test Case by link role with ID triggered_by.
  • Add the Hook to the WIAIF Properties (hook.properties) to define which Polarion Projects, Work Item Types and Fields should be affected (as comma separated values):
    • TestExecutionHook.DEFECT_CREATION_FROM_VERICT_PROJECTS=Project_ID1,Project_ID2,...
    • TestExecutionHook.TC_REVISION_REPOINTING_PROJECTS=Project_ID1,Project_ID2,...

 

How to Use

Create/Link Defect based on Verdict

  1. Start the Test execution either by the Execute Test button of the Properties panel or with the modern Execution Table.
  2. Mark the Test Step results. (optional)

If you are going to fail the execution and need to manage the linked Defect then:

  1. BEFORE marking the Test Case Verdict as Failed (by saving the execution result) add one of the following tags to the Verdict Comment: @D:NEW, @D:U, @D:DEFECT_ID.
  2. Save the execution result (while marking it as Failed).

Polarion will either create new, update or link an already existing Defect to the Test Case and the Test exexution record according to the tag added to the Comment.


Adjust Test Run

  1. Start the Test execution either by the Execute Test button of the Properties panel or with the modern Execution Table.
  2. Mark the Test Steps with Results. (optional)

If you need to update some of the Test Steps or add new ones:

  1. Click on the Pause Test Case button.
  2. In the case of an execution from the Execution Table - open Test Case's Head revision in a new tab.
  3. Click on the Edit button to modify the Test Case.
  4. Modify the Test Steps or add new ones (DO NOT delete any steps).
  5. Save the Test Case.
  6. Click on the Refresh button to reload the Test Case on the Execution Panel.
  7. Click on the Resume button to continue with the Test execution - both added and updated Test Steps are now available to be marked.

 

Information

Vendor Alexey Andrianov (ADVA Optical Networking SE)
Published Version 1.0 - February 2020
Price Free
13 Downloads
Community Supported Extension This extension is not supported by Siemens PLM.
Requirements Polarion 2019 GA (3.19.0) and newer
Extension Work Item Action Interceptor Framework

tested with Polarion 2019 SR1 (3.19.1)

Related Extensions