Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Iterating Test Runs associated with a Test Execution

Xporter for Jira Document Generator allows rendering of all the Test Tuns associated with a Test Execution. 

...

Code Block
titleExpand to see the example on sample code
collapsetrue
#Iterating over Test Runs
#{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}

Iterating Pre-Conditions associated with a Test Run

Xporter for Jira allows rendering of the Pre-Conditions associated with a Test from a Test Run. 

Definition:

...


Exporting Test Runs custom fields

To export Test Runs Custom Fields you just have to defined the placeholder with the name of you custom field.

Example: Image that you have a custom field called "Run CF". To get the value printed on you document you just have to use the following placeholder:

Code Block
#{for testruns}
The Run CF value is: ${TestRuns[n].Run CF}
#{end}
Info

If your custom field type is a Number, Data or Date Time you can use formatting functions.

Iterating Pre-Conditions associated with a Test Run

Document Generator allows rendering of the Pre-Conditions associated with a Test from a Test Run. 

Definition:

$ {TestRuns[n].PreCondition.Field}

n is the index of Test Runs, starting from 0. The fields available for Pre-Conditions are:

  • Key
  • Summary
  • Conditions
  • Pre-Condition Type


n is the index of Test Runs, starting from 0. The fields available for Pre-Conditions are:

  • Key
  • Summary
  • Conditions
  • Pre-Condition Type
Code Block
titleExpand to see the example on sample code
collapsetrue
#Iterating over Test Runs
#{for testruns}
	#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}
#{end}

...

Iterating Attachments associated with a Test Run

Xporter for Jira Document Generator allows rendering of all the Attachments associated with a Test Run. 

...

Iterating Evidences associated with a Test Run

Xporter for Jira Document Generator allows rendering of all the Evidences associated with a Test Run. 

...

Iterating Defects associated with a Test Run

Xporter for Jira Document Generator allows rendering of all the defects associated with a Test Run.

...

Iterating Automated Test details associated with a Test Run

Xporter for Jira Document Generator allows rendering of the Details from Automated Tests associated with a Test Run. 

...

Iterating Manual Test Step details associated with a Test Run

Xporter for Jira Document Generator allows rendering of the Details from Manual Tests associated with a Test Run. 

...

Iterating Manual Test Step Attachments associated with a Test Run

Xporter for Jira Document Generator allows rendering of the Attachments from Manual Tests Steps associated with a Test Run. 

...

Iterating Manual Test Step Defects associated with a Test Run

Xporter for Jira Document Generator allows rendering of the Defects from Manual Tests Steps associated with a Test Run. 

...

Iterating Manual Test Step Evidences associated with a Test Run

Xporter for Jira Document Generator allows rendering of the Evidences from Manual Tests Steps associated with a Test Run. 

...

Code Block
titleExpand to see the example on sample code
collapsetrue
#Iterating over Test Runs
#{for testruns}
	#Iterating over Manual Test Steps from Test Run
	#{for r=TestRuns[n].TestStepsCount}
		#Iterating over Test Step Evidences
		#{for e=#Iterating over Test Runs
#{for testruns}
	#Iterating over Manual Test Steps from Test Run
	#{for r=TestRuns[n].TestStepsCount}
		#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}
        	Created: ${TestRuns[n].TestSteps[r].Evidences[e].Created}
        	HumanReadableSize: ${TestRuns[n].TestSteps[r].Evidences[e].HumanReadableSize}
        	MimeType: ${TestRuns[n].TestSteps[r].Evidences[e].MimeType}
        	Evidence:${TestRuns[n].TestSteps[r].EvidencesCountEvidences[e].Evidence}
			#{end}
			Name: 
	#{end}
#{end}
Info

If you want to export the images, for example ${TestRuns[n].

TestSteps

ExecutionEvidences[

r].Evidences[e].Name} Author:

d].FileURL} you can check here for instructions on how to do it.


Exporting Test Run Activity

Document Generator allows export all the activity of a Test Run.

Definition:

$ {TestRuns[n].

...

ActivityEntries[ac]}

ac is the index of the Activity entry, starting from 0. The field ActivityEntriesCount was created in order to give the Activity entry of a Test Run.

Example:

Code Block
titleExpand to see the example on sample code
collapsetrue
#{for testruns}
#{for d=TestRuns[n].ActivityEntriesCount}
Action: r].Evidences[e].Author}
			Link: @{title=${TestRuns[n].TestSteps[r].Evidences[e].FileURL}|href=${TestRuns[n].TestStepsActivityEntries[rd].Evidences[e].FileURL}Action}
			SizeAuthor: ${TestRuns[n].TestStepsActivityEntries[rd].Evidences[e].SizeAuthor}
        	CreatedCreated at: ${dateformat("dd-MM-yyyy HH:mm:ss"):TestRuns[n].TestSteps[r].Evidences[e].Created}
        	HumanReadableSizeActivityEntries[d].Created}
Changes:
#{for ch=TestRuns[n].ActivityEntries[d].ActivityItemsCount}
Field: ${TestRuns[n].TestStepsActivityEntries[rd].EvidencesActivityItems[ech].HumanReadableSizeField}
        	MimeTypeOldValue: ${TestRuns[n].TestStepsActivityEntries[rd].EvidencesChangedItems[ech].MimeTypeOldValue}
        	Evidence:NewValue: ${TestRuns[n].TestStepsActivityEntries[rd].EvidencesChangedItems[ech].EvidenceNewValue}
			
#{end}

	#{end}
#{end}
Info
If you want to export the images, for example ${TestRuns[n].ExecutionEvidences[d].FileURL} you can check here for instructions on how to do it.