Page 1 of 1

Global parameters not updated in report

Posted: Wed Dec 18, 2013 11:16 am
by Florian
Hello,

I have a weird issue with Ranorex report.
I change the value of parameters inside code modules like that:

Code: Select all

TestSuite.Current.Parameters["CloseBrowser"+server]="no";
But in the report, the values are not written.

I can use the new values inside the test suite, but I need to get the values of the previous file, parsing the XML.

Is it a known issue?

Re: Global parameters not updated in report

Posted: Wed Dec 18, 2013 3:58 pm
by krstcs
I believe that the global parameters get "saved/published" in the report before the test case/module is executed.

My guess is that you are changing the global parameters inside the current module, which means it will not be picked up by the report because the report already has the values that were passed to the test case/module.

Essentially, the report is telling you what the parameter was when the test case started. You will need to set the new value before the test case you want to use the value in.

The other option is to print the value using a "Report" action inside the module.

Re: Global parameters not updated in report

Posted: Wed Dec 18, 2013 4:12 pm
by Florian
I've just checked the previous Report.
On the 18th of November, the parameters had values. The following day, the parametrs are empty.
I guess I upgraded my Ranorex installation, but I can't remember what were the versions.

I use now a "Report" action inside a module to parse the XML file but it would be easier with the parameters.

Re: Global parameters not updated in report

Posted: Thu Dec 19, 2013 4:36 pm
by BernhardS
Hello Florian,

Unfortunately only the default values of the global parameters are reported by Ranorex. If you change the values during the runtime it will have no effect in the report.

Regards,
Bernhard