Page 1 of 1

How to change Test Suite Description via Jenkins parameters

Posted: Fri Jun 28, 2019 9:15 am
by Lyuba Boerma
Hi)
Can i add/change Description of a Test suite via Jenkins parameters?
Is such parameter /variable exists for ranorex pluging ?
The reason why i need it - that we are running our tests on different customers installations, And i want to add Customers Name as a comment to a jenerated PDF report.
If i run it from my machine i always add it on a Description field.. But don't know how to do it via Jenkins

Option 2. I can also use for this a value of one of my Ranorex global parameters. But it need to be in a header of PDF report than.

What is possible?

Thanks)
jD.png

Re: How to change Test Suite Description via Jenkins parameters

Posted: Fri Jun 28, 2019 9:33 am
by odklizec
Hi,

I'm afraid, there is no way to edit the test suite description via command line/Jenkins plugin parameters? It may not even be possible via code? I think your best hope is using Global parameter. For basic report customization options, check these links:
https://www.ranorex.com/help/latest/ran ... thusername
https://www.ranorex.com/forum/adding-va ... 10821.html

Re: How to change Test Suite Description via Jenkins parameters

Posted: Fri Jun 28, 2019 3:41 pm
by Lyuba Boerma
thanks. I found how to add my custom element to report.
But how to make him reed a value from Global Parameters?
cust.png

Re: How to change Test Suite Description via Jenkins parameters

Posted: Wed Jul 03, 2019 11:40 am
by RobinHood42
Hi Lyuba,

You simply need to pass the value from the global parameter to the created custom element.
TestSuite.Current.Parameters["MyGlobalVariable"];
Cheers,
Robin :mrgreen: