Page 1 of 1

Update Test case 'version' in TestRail

Posted: Tue Feb 12, 2019 4:10 pm
by act234
Is it possible to populate the Version field when reporting results to TestRail?

Re: Update Test case 'version' in TestRail

Posted: Fri Feb 15, 2019 9:06 am
by qwertzu
Hi,

You can update a field via the TestRail.trsd file which is placed in the "Solution Items" folder after connecting to TestRail.
I saw that Ranorex 9 has the pre-defined syntax in there for updating a field:

ResultFields.png

You have to enter the type of your field, the name, the SystemName and the value you want to give the field.


regards, qwertzu

Re: Update Test case 'version' in TestRail

Posted: Fri Feb 15, 2019 2:55 pm
by act234
Cheers, that did the trick!

Re: Update Test case 'version' in TestRail

Posted: Fri Feb 15, 2019 3:11 pm
by qwertzu
You're welcome!

Re: Update Test case 'version' in TestRail

Posted: Fri Mar 01, 2019 4:00 pm
by Asterix
Hi, what is the difference between Value and Default:

setting as following:
"Value": "my Version in value"
"Default": "my Version in default"

--> This is "my Version in default" that is reported to TestRail. So, what is the purpose of "Value" tag ?

For tests executed in CI environment, is there an easy way to update this version value reported to TestRail (e.g that for example assign the BUILD_NUMBER value) ?

Re: Update Test case 'version' in TestRail

Posted: Mon Mar 04, 2019 3:37 pm
by qwertzu
Hey Asterix,
So, what is the purpose of "Value" tag ?
Good question :-)
I guess this is just the syntax that TestRail needs, so this question is rather TestRail related.
For tests executed in CI environment, is there an easy way to update this version value reported to TestRail (e.g that for example assign the BUILD_NUMBER value) ?
Updating the version field is not possible dynamically. You have to write it in this TestRail file.
Maybe, you can add a feature request for e.g. the Jenkins plugin.

regards, qwertzu