It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

1 vote
Answer accepted

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
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

215 views 3 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you