Test case classname renaming
Posted: Fri Mar 09, 2018 10:59 am
Hello all,
I am using the JUnit-Export feature of Ranorex reports.
I modify it and import it to our ALM System to generate test runs and issue entries.
The ALM uses a combination of the classname and name of a test case to create a unique test case name in the ALM.
When repeating the Ranorex test, it will recognize that name in further test runs and can assign it to the same entries in the ALM system.
Now my problem:
Some of the tests use Excel tables and generate names containing "...Dataiteration x" where x is the row index. Here is some code from the rxlog.junit.xml file
The Issue/TestRun generated by the ALM has now the Name TestSuitName.ProjectName.SmartFolderLvl1Name.SmartFolderLvl2Name.TC_TestCaseName_DataIteration_1
We then link the Issues/TestRuns with requirements and test specs in the ALM.
If, for some reason, the order of the Excel tables change or rows are added or removed, the DataIteration index will change/move, too.
This results in the wrong rows that are linked to the wrong requirements, but with the same name "DataIteration 1".
Is there a way to rename the classname and or the name to, for example, rename DataIteration 1 to a more unique word?
Maybe we can use contents from the Excel columns (name col, comment col...) to create unique names that are definitely linked to a special row?
In another post I saw someone using something like "Ranorex.Core.Reporting.TestReport..." to manipulate reports. Is ther an option for me, too?
Thanks in advance
A. Rutscheidt
I am using the JUnit-Export feature of Ranorex reports.
I modify it and import it to our ALM System to generate test runs and issue entries.
The ALM uses a combination of the classname and name of a test case to create a unique test case name in the ALM.
When repeating the Ranorex test, it will recognize that name in further test runs and can assign it to the same entries in the ALM system.
Now my problem:
Some of the tests use Excel tables and generate names containing "...Dataiteration x" where x is the row index. Here is some code from the rxlog.junit.xml file
Code: Select all
<testcase
name="TC_TestCaseName_DataIteration_1"
time="10"
classname="TestSuitName.ProjectName.SmartFolderLvl1Name.SmartFolderLvl2Name">
<system-out>...some comment</system-out>
</testcase>
We then link the Issues/TestRuns with requirements and test specs in the ALM.
If, for some reason, the order of the Excel tables change or rows are added or removed, the DataIteration index will change/move, too.
This results in the wrong rows that are linked to the wrong requirements, but with the same name "DataIteration 1".
Is there a way to rename the classname and or the name to, for example, rename DataIteration 1 to a more unique word?
Maybe we can use contents from the Excel columns (name col, comment col...) to create unique names that are definitely linked to a special row?
In another post I saw someone using something like "Ranorex.Core.Reporting.TestReport..." to manipulate reports. Is ther an option for me, too?
Thanks in advance
A. Rutscheidt