Team,
I am new to ranorex. I am working on a task to execute my scripts on a machine which does not have ranorex installed.
I followed all the steps mentioned in the post "feature-request-executable-tests-without-ranorex-t1969" (at least to my level best)
But, i am still unable to execute the scripts and getting an error as "unable to find Ranorex.Core.Winapi.dll...."
Can anyone help?
Script execution without Ranorex
-
- Posts: 3
- Joined: Tue Apr 24, 2018 7:12 pm
Script execution without Ranorex
Regards,
Prasad
Prasad
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Script execution without Ranorex
Hello Prasad,
The thread you are following is very outdated (posted in 2011). I recommend using the new portable runtime feature intrduced in Ranorex 8.0: "Simplified test deployment: Ranorex tests can be generated as portable packages, so there is no Ranorex Runtime installation required". You can enable this feature in the Ranorex Settings:
This setting copies the Ranorex runtime to the output folder when building your project. When you run a test on a machine without Ranorex installed, The test executable will use this runtime.
I hope this helps!
Cheers,
Ned
The thread you are following is very outdated (posted in 2011). I recommend using the new portable runtime feature intrduced in Ranorex 8.0: "Simplified test deployment: Ranorex tests can be generated as portable packages, so there is no Ranorex Runtime installation required". You can enable this feature in the Ranorex Settings:
This setting copies the Ranorex runtime to the output folder when building your project. When you run a test on a machine without Ranorex installed, The test executable will use this runtime.
I hope this helps!
Cheers,
Ned
You do not have the required permissions to view the files attached to this post.
-
- Posts: 3
- Joined: Tue Apr 24, 2018 7:12 pm
Re: Script execution without Ranorex
Hi Ned,
Thank you for the support. But i am getting the error as below. The same issue which i was expereincing even with Ranorex 7.0. Please find the screenshot attached.
I copied the entire folder with settings, solution,etc to a destination folder along with the floating license kept under the "bin\Debug". The error mentioned in the attachment is at the line #19, which is
return MainInvoker.Invoke(Assembly.GetExecutingAssembly(), "", args);
Please clarify.
Thank you for the support. But i am getting the error as below. The same issue which i was expereincing even with Ranorex 7.0. Please find the screenshot attached.
I copied the entire folder with settings, solution,etc to a destination folder along with the floating license kept under the "bin\Debug". The error mentioned in the attachment is at the line #19, which is
return MainInvoker.Invoke(Assembly.GetExecutingAssembly(), "", args);
Please clarify.
You do not have the required permissions to view the files attached to this post.
Regards,
Prasad
Prasad
Re: Script execution without Ranorex
Hi,
In my opinion, the machine where you trying to run your tests, most probably lacks some of the required system pre-requisities (mentioned here). These libs are usually installed (if missing or old) with Ranorex setup, so this is why it's always better to install Ranorex on target machine, no matter it will not be actively used on the target machine.
In my opinion, Ranorex should be installed on each machine, where the tests are supposed to run. If for nothing else, then for debugging purposes. A test, developed on one machine, may fail on another machine and so you would like to debug the problem on the target machine.
So check the libs and eventually install Ranorex on the target machine. I think you can even uninstall it then, if not needed. The system libs will stay there even after Ranorex uninstall.
In my opinion, the machine where you trying to run your tests, most probably lacks some of the required system pre-requisities (mentioned here). These libs are usually installed (if missing or old) with Ranorex setup, so this is why it's always better to install Ranorex on target machine, no matter it will not be actively used on the target machine.
In my opinion, Ranorex should be installed on each machine, where the tests are supposed to run. If for nothing else, then for debugging purposes. A test, developed on one machine, may fail on another machine and so you would like to debug the problem on the target machine.
So check the libs and eventually install Ranorex on the target machine. I think you can even uninstall it then, if not needed. The system libs will stay there even after Ranorex uninstall.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 3
- Joined: Tue Apr 24, 2018 7:12 pm
Re: Script execution without Ranorex
Thank you odklizec and Ned,
I tried few things as mentioned in your posts.
1. Uninstall Ranorex and Try the execution - Worked
2. Analyzed my machine for all the pre-requisites mentioned and installed the missing - Worked
That was really helpful and i highly appreciate.
I tried few things as mentioned in your posts.
1. Uninstall Ranorex and Try the execution - Worked
2. Analyzed my machine for all the pre-requisites mentioned and installed the missing - Worked
That was really helpful and i highly appreciate.
Regards,
Prasad
Prasad