Skip to main content

What you will achieve

By the end of this tutorial, you will have a working checklist attached to a Polarion test run. You will create a custom field for test runs, embed the checklist widget into the test run report page, optionally configure a template from a test run template, and verify the setup by interacting with checklist items on a live test run.

Prerequisites

  • Nextedy CHECKLIST plugin installed and active (see Installation)
  • A Polarion project with administrator access
  • Permission to create custom fields and edit test run report pages
  • At least one test run or test run template in your project

Setup overview

diagram

Step 1: Create a checklist custom field for test runs

Create a new custom field on the Test Run object to store checklist data.
  1. Open your Polarion project and navigate to Administration > Custom Fields > Test Run Custom Fields
  2. Click Add to create a new field
  3. Set the following values:
Field PropertyValue
IDtestExecChecklist
NameTest Execution Checklist
TypeText (multi-line plain text)
  1. Save the custom field
The custom field must be of type Text (multi-line plain text). Other field types are not compatible with the Checklist plugin and will produce an error when rendering.
You should see the testExecChecklist field listed in the Test Run Custom Fields table.
You can create several checklist fields on a single test run. For example, create testSetup for pre-execution checks and testExecChecklist for post-execution verification.

Step 2: Embed the checklist widget in the test run report page

Test run checklists are displayed using a script block widget on the test run report page, similar to document checklists.
  1. Open a test run in your project
  2. Click Customize Report Page in the test run toolbar
  3. Select Customize Shared Report to share the configuration across all test runs that use the same template
Use Customize Shared Report when possible. This shares the layout between a test run and its test run template, so you only configure the checklist widget once. If you customize individual test runs instead, you must repeat this step for each test run.
  1. In the report page editor, place a Script Block Widget where you want the checklist to appear
  2. Enter the following rendering call in the script block:
$checklistService.getChecklistView().testRun($testRun).checklist("testExecChecklist").render()
The "testExecChecklist" string in the checklist() call must match the ID of the custom field you created in Step 1. Substitute your actual field ID if it differs.
  1. Save the report page
You should now see the checklist widget on the test run report page. It displays an empty checklist until you define template items.

Step 3: Configure a checklist template via test run template

Set up a template so that test runs created from a test run template automatically inherit predefined checklist items.
  1. Open your test run template in Polarion (navigate to Testing > Test Run Templates and select the relevant template)
  2. If the checklist widget is not yet visible on the test run template, repeat Step 2 for the template’s report page
  3. Add checklist items directly to the test run template’s checklist widget — for example:
    • Verify test environment configuration
    • Confirm test data loaded
    • Execute all test cases
    • Review test results
    • Archive test artifacts
  4. Save the test run template
Test runs created from this template will inherit the checklist items you defined. The template merge happens automatically when a test run is created.
Template merging for test runs follows the same pattern as work item templates. The Checklist plugin merges items from the template into each new test run’s checklist. Verify that items appear correctly on a newly created test run.

Step 4: Verify the checklist on a test run

  1. Create a new test run from the template you configured in Step 3
  2. Open the test run and scroll to the checklist section on the report page
You should see the template checklist items displayed with their initial result state (Empty).
  1. Walk through each checklist item and set its result state as you progress through the test execution:
Result StateTypical Use in Test Runs
OKStep completed successfully
NOKStep failed — issue identified
N/AStep not applicable to this test run
PendingStep deferred to a follow-up run
EmptyStep not yet addressed
  1. Save the test run to persist the checklist state
You can add workflow conditions to prevent closing a test run until all checklist items are addressed. See Workflow Gates and Validation for details on configuring the ChecklistAllChecked or ChecklistMandatoryChecked conditions for test runs.

Next steps

Your test run checklist is now operational. Continue with these topics:
KB ArticlesSupport TicketsSource Code
  • ChecklistAllChecked.java
  • ChecklistService.java
  • ChecklistMandatoryChecked.java
  • ChecklistSettings.java
  • ChecklistApplyTemplate.java