Page 1 of 1

exe fails but runs successfully from Ranorex studio

Posted: Thu Mar 10, 2011 9:10 pm
by Saha
Hi,

Our scripts are running file when we run it from Ranorex studio. But When I tried to run the exe file after closing studio, it fails. It complains about missing files. We have full licence for Ranorex Studio.
Any idea what we are missing here?

Thanks,
Saha

Re: exe fails but runs successfully from Ranorex studio

Posted: Thu Mar 10, 2011 9:13 pm
by Saha
Few more information about this issue..
We are planning to use windows scheduler to run the exe file after office time. Any better idea on how to schedule the execution?

Re: exe fails but runs successfully from Ranorex studio

Posted: Thu Mar 10, 2011 9:55 pm
by Ciege
Do you have the references to the Ranorex DLLs pointed to the correct location?
If the EXE cannot find them then they will need to be copied to the same location as your EXE.

Re: exe fails but runs successfully from Ranorex studio

Posted: Fri Mar 11, 2011 9:55 am
by Support Team
Saha wrote:It complains about missing files
What is the error message you get? As Ciege said, all dependent files need to be in the same directory as the executable. So in general, you have to copy the complete output directory (e.g. "bin/debug") to the target destination in order to run the test.

Regards,
Alex
Ranorex Team

Re: exe fails but runs successfully from Ranorex studio

Posted: Fri Mar 11, 2011 3:12 pm
by Saha
Thanks Alex and Ciege,

It works now, after copying the required Dll file at the same location where I had my exe file.