Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

XPorter template for test set - print test execution

bsb
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2020

I'm modifying the example Test Set Template for XPorter.  What I would like to do is for each test set, print out some fields from each test, and the test's associated "test execution"'s.  I'm able to get most of the fields, but the key and description aren't printing out correctly. They give the "test[j]" fields instead of the "test execution" TestRuns[n] fields.  The template code looks like the following. All fields are printing correctly except the first two fields, key and description.

We're using jira 8.4.2 and XPorter 6.2.1.

#{for j=TestsCount}

  #{for n=Tests[j].TestRunsCount}

     Key: ${Tests[j].TestRuns[n].Key

    Description: ${Tests[j].TestRuns[n].Description}
    Executed by: ${Tests[j].TestRuns[n].Executed By}
     Execution Status: ${Tests[j].TestRuns[n].Execution Status}

     Started on: ${Tests[j].TestRuns[n].Started On}

    Finished on: ${Tests[j].TestRuns[n].Finished On}

  #{end}

#{end}

 

0 answers

Suggest an answer

Log in or Sign up to answer