Update Ranorex to 9.1.1 - global parameters...

Ask general questions here.
Johann
Posts: 19
Joined: Fri May 03, 2019 8:55 am

Update Ranorex to 9.1.1 - global parameters...

Post by Johann » Tue Aug 06, 2019 2:19 pm

After update Ranorex to 9.1.1, my global parameters are no longer set.
In the [setup] of my Test Suite, I run a recording, where I set my global Parameter.

Code: Select all

filePath= "C:\\Paremeters.txt";
var ParametersString = File.ReadAllLines(filePath);
List<string> listGlobalParameters= new List<string>(ParametersString);

if (listGlobalParameters.Contains("Parameter1")) globalParameter1 = "TRUE";
if (listGlobalParameters.Contains("Parameter2")) globalParameter2 = "TRUE";
It's not good code, but it worked before.

Johann
Posts: 19
Joined: Fri May 03, 2019 8:55 am

Re: Update Ranorex to 9.1.1 - global parameters...

Post by Johann » Tue Aug 06, 2019 2:50 pm

The textfile contains umlauts like "ä", "ö", "ü", "ß".

Just have to add "Encoding.Default" to my code:

Code: Select all

var ParametersString = File.ReadAllLines(filePath, Encoding.Default);
And it works again...