We are currently evaluating xporter / xray but I'm having issues exporting executions, i.e. it doesn't work.
I am using xray 1.9.1 / xporter 3.4.3 / JIRA 6.4.7
The xporter documentation and the template on the template store uses code like:
#Overall Execution Status
Todo: ${TODO} %
Fail: ${FAIL} %
Pass: ${PASS} %
Executing: ${EXECUTING} %
Aborted: ${ABORTED} %
Custom Test Run Status: ${Blocked}
#Total of Test Runs
Test Runs Count: ${TestRunsCount}
#Iterating over Test Runs
#{for testruns}
Execution Status: ${TestRuns[n].Execution Status}
AssigneeID: ${AssigneeId}
Executed By: ${TestRuns[n].Executed By}
Started On: ${TestRuns[n].Started On}
Finished On: ${TestRuns[n].Finished On}
Comment: ${TestRuns[n].Comment|wiki=true}
Execution Defects Count: ${TestRuns[n].ExecutionDefectsCount}
TestSteps Defects Count: ${TestRuns[n].TestStepsDefectsCount}
Evidences Count: ${TestRuns[n].ExecutionEvidencesCount}
#Getting data from Pre-Condition
Pre-Condition Key: ${TestRuns[n].PreCondition.Key}
Pre-Condition Summary: ${TestRuns[n].PreCondition.Summary}
Condition: ${TestRuns[n].PreCondition.Conditions}
Type: ${TestRuns[n].PreCondition.Pre-Condition Type}
#Iterating over Evidences
#{for d=TestRuns[n].ExecutionEvidencesCount}
Name: ${TestRuns[n].ExecutionEvidences[d].Name}
Author: ${TestRuns[n].ExecutionEvidences[d].Author}
Link: @{title=${TestRuns[n].ExecutionEvidences[d].FileURL}|href=${TestRuns[n].ExecutionEvidences[d].FileURL}}
Size: ${TestRuns[n].ExecutionEvidences[d].Size}
#{end}
#Iterating over TestSteps Attachments
#{for a=TestRuns[n].TestStepsAttachmentsCount}
Name: ${TestRuns[n].TestStepsAttachments[a].Name}
Author: ${TestRuns[n].TestStepsAttachments[a].Author}
Link: @{title=${TestRuns[n].TestStepsAttachments[a].FileURL}|href=${TestRuns[n].TestStepsAttachments[a].FileURL}}
Size: ${TestRuns[n].TestStepsAttachments[a].Size}
#{end}
#Test Run Step Details
Cucumber Scenario: ${TestRuns[n].Cucumber Scenario}
Test Definition: ${TestRuns[n].Generic Test Definition}
#Iterating over Manual Test Steps from Test Run
#{for r=TestRuns[n].TestStepsCount}
StepNumber: ${TestRuns[n].TestSteps[r].StepNumber}
Step: ${TestRuns[n].TestSteps[r].Step|wiki=true}
Data: ${TestRuns[n].TestSteps[r].Data|wiki=true}
Expected Result: ${TestRuns[n].TestSteps[r].ExpectedResult|wiki=true}
Comment: ${TestRuns[n].TestSteps[r].Comment|wiki=true}
Status: ${TestRuns[n].TestSteps[r].Status}
#Iterating over Test Step Attachments
{for sa=TestRuns[n].TestSteps[r].AttachmentsCount}
Name: {TestRuns[n].TestSteps[r].Attachments[sa].Name}
Author: {TestRuns[n].TestSteps[r].Attachments[sa].Author}
Link: {title={TestRuns[n].TestSteps[r].Attachments[sa].FileURL}|href={TestRuns[n].TestSteps[r].Attachments[sa].FileURL}}
Size: {TestRuns[n].TestSteps[r].Attachments[sa].Size}
#{end}
#Iterating over Test Step Defects
{for dc=TestRuns[n].TestSteps[r].DefectsCount}
Link: {title={TestRuns[n].TestSteps[r].Defects[dc].Key}|href={BaseURL}/browse/{TestRuns[n].TestSteps[r].Defects[dc].Key}}
Summary: {TestRuns[n].TestSteps[r].Defects[dc].Summary|wiki=true}
#{end}
#Iterating over Test Step Evidences
#{for e=TestRuns[n].TestSteps[r].EvidencesCount}
Name: ${TestRuns[n].TestSteps[r].Evidences[e].Name}
Author: ${TestRuns[n].TestSteps[r].Evidences[e].Author}
Link: @{title=${TestRuns[n].TestSteps[r].Evidences[e].FileURL}|href=${TestRuns[n].TestSteps[r].Evidences[e].FileURL}}
Size: ${TestRuns[n].TestSteps[r].Evidences[e].Size}
#{end}
#{end}
#{end}
If I put this in a template and export using that template i get:
#Overall Execution Status
Todo: ${TODO} %
Fail: ${FAIL} %
Pass: ${PASS} %
Executing: ${EXECUTING} %
Aborted: ${ABORTED} %
Custom Test Run Status: ${Blocked}
#Total of Test Runs
Test Runs Count:
#Iterating over Test Runs
#Iterating over Test Step Evidences
#{end}
#{end}
Are the versions not compatible?
Hi,
This is due to a known issue. Please see [here|http://jira.xpand-it.com/browse/XPORTER-417].
Try to reinstall the Xporter.
Thank you.
Best,
RMRodrigues.
@Rui Rodrigues can be this affecting the filters? Because Im seeing some issues with the last testrun with status PASSED and when I execute a filter it's always showing in TO DO; same for issues that have more than one testrun and the last is PASSED but the filter is showing as FAIL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Franco, Which versions are you using? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.