Page History
...
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 testruntestruns} The Run CF value is: ${TestRuns[n].Run CF} #{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. |
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 | ||||
---|---|---|---|---|
| ||||
#{for testruns}
#{for d=TestRuns[n].ActivityEntriesCount}
Action: ${TestRuns[n].ActivityEntries[d].Action}
Author: ${TestRuns[n].ActivityEntries[d].Author}
Created at: ${dateformat("dd-MM-yyyy HH:mm:ss"):TestRuns[n].ActivityEntries[d].Created}
Changes:
#{for ch=TestRuns[n].ActivityEntries[d].ActivityItemsCount}
Field: ${TestRuns[n].ActivityEntries[d].ActivityItems[ch].Field}
OldValue: ${TestRuns[n].ActivityEntries[d].ChangedItems[ch].OldValue}
NewValue: ${TestRuns[n].ActivityEntries[d].ChangedItems[ch].NewValue}
#{end}
#{end}
#{end}
|