Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How do I export custom fields for Test steps using Xporter plugin?

Edited

I 'm trying to build a template for people to use to print out test procedures and I need to use Test Step Custom fields for this template. I can't seem to export the custom fields under test steps using template instructions and Xporter plugin.   I am able to get the Jira defined fields to print out. 

example:

 Actual Results:  ${wiki:TestRuns[n].TestSteps[r].ActualResult} 

1 answer

0 votes
Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2021

Hi @Teri Amador 

Please check our documentation (https://confluence.xpand-it.com/display/public/XPORTER/Xray+Test+Management+for+Jira#XrayTestManagementforJira-IteratingManualTestStepdetailsassociatedwithaTestRun) if you additional details.

In the case of the Actual Results you to use this (with a space between the two words):

${wiki:TestRuns[n].TestSteps[r].Actual Result}

If you additional help, please contact the Xporter Support (http://xportersupport.xpand-it.com) so that we can request additional information and help further.

Kind regards,
Rogério Paiva [Xporter Support Team]

copying straight out of the documentation doesn't seem to work, is there a necessary customization?

For example, I'm using the following block, copied straight out of the example sample code:

2.1 Test Runs
#Total of Test Runs
Test Runs Count: ${TestRunsCount}

#{for testruns}
Execution Status: ${TestRuns[n].Execution Status}
AssigneeID: ${AssigneeId}
Rank: ${TestRuns[n].Rank}
Executed By: ${TestRuns[n].Executed By}
Started On: ${TestRuns[n].Started On}
Finished On: ${TestRuns[n].Finished On}
Comment: ${wiki:TestRuns[n].Comment}
Execution Defects Count: ${TestRuns[n].ExecutionDefectsCount}
TestSteps Defects Count: ${TestRuns[n].TestStepsDefectsCount}
Evidences Count: ${TestRuns[n].ExecutionEvidencesCount}
#{end}

#{for Tests}
@{title=${Tests[n].Key}|href=${BaseURL}/browse/${Tests[n].Key}} – ${Tests[n].Summary}

Test Description:
${wiki:Tests[n].Description}

 

When I export using Test Plan using this template I get 0 for count, and no test runs. Also tried proper capitalization "TestRuns" with no results.

"for Tests" works, and I get all the tests in the test plan.

this works for me. 

 

#{for testruns}

Number of Steps: ${TestRuns[n].TestStepsCount}

   #{for r=TestRuns[n].TestStepsCount}  

   Step Number: ${TestRuns[n].TestSteps[r].StepNumber}          

   Operator Actions:  ${TestRuns[n].TestSteps[r].Step}

  Expected Results:  ${wiki:TestRuns[n].TestSteps[r].ExpectedResult}

Actual Results: ${wiki:TestRuns[n].TestSteps[r].Data}

Comment: ${wiki:TestRuns[n].TestSteps[r].Comment}

  #{end}

 #{end}

Hi Teri, do you have any code before this block?

for now I don't .  I don't need to export out anything else.  I'm still in the beginning stages of building the template. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events