Exporting Test Executions doesn't work

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?

2 answers

1 accepted

Accepted Answer
1 vote

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.

Hi Franco, Which versions are you using? Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 3 hours ago in Canada

TOPIC TUESDAY - Oct 16th - Fav Atlassian Logo

Hey folks, We are back with your Topic Tuesday Question for the week. This week we are asking what is your fav new Atlassian logo? My vote would be for Statuspage. Let us know your thoughts! &nbs...

15 views 2 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you