Page 1 of 1

Ranorex looking in wrong location for .ini file

Posted: Mon Jan 07, 2019 4:59 pm
by Oisin
Hi there,

When I manually start my Windows application under test, it starts correctly and the required .ini files are found and read. When Ranorex starts the application, it looks in the wrong location for these files, it is looking in C:\..\RanorexStudio Projects\LogIn\LogIn\bin\Debug\Config\ (where the solution is called LogIn). Can anyone tell me how to set the correct location?

Many thanks

Re: Ranorex looking in wrong location for .ini file

Posted: Tue Jan 08, 2019 9:03 am
by RobinHood42
Hi,

You could try to use an automated double-click on your application under test to open up the app.

Cheers,
Robin

Re: Ranorex looking in wrong location for .ini file

Posted: Tue Jan 08, 2019 9:06 am
by odklizec
Hi,

Have you tried to define working directory path in Run application command?
WorkingDir.png

Re: Ranorex looking in wrong location for .ini file

Posted: Tue Jan 08, 2019 10:48 am
by Oisin
Bit of a school boy error. I set the working directory, and now it runs like a dream.

Re: Ranorex looking in wrong location for .ini file

Posted: Tue Jan 08, 2019 11:47 am
by odklizec
Cool. Nice to hear such simple trick helped ;)