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
exe fails but runs successfully from Ranorex studio
Re: exe fails but runs successfully from Ranorex studio
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?
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
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.
If the EXE cannot find them then they will need to be copied to the same location as your EXE.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: exe fails but runs successfully from Ranorex studio
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.Saha wrote:It complains about missing files
Regards,
Alex
Ranorex Team
Re: exe fails but runs successfully from Ranorex studio
Thanks Alex and Ciege,
It works now, after copying the required Dll file at the same location where I had my exe file.
It works now, after copying the required Dll file at the same location where I had my exe file.