Deploy ranorex project with trial license

Ask general questions here.
User avatar
rfvtgb
Posts: 5
Joined: Wed Mar 27, 2019 10:46 am

Deploy ranorex project with trial license

Post by rfvtgb » Wed Mar 27, 2019 10:53 am

Hello, I am trying to deploy my small project for target machine (which don't have ranorex installed) to check whether ranorex can run on my target machine. I copied output to target machine and ran application file but not worked...so my question is can i deploy project with trial license and if no then after purchasing license can ranorex will run normally on any machine with different display settings and no ranorex installed?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4549
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Deploy ranorex project with trial license

Post by odklizec » Thu Mar 28, 2019 8:35 am

Hi,

how exactly did you copy the project? Have you followed these instructions?...
https://www.ranorex.com/help/latest/int ... eployment/

It's not enough to simply copy the exe file and ref. data. You must also copy Ranorex libs to the target machine! You can do it either manually, or by enabling Copy runtime to output option in Ranorex settings. Additionally, you can use Ranorex Remote functionality, as described here:
https://www.ranorex.com/help/latest/ran ... roduction/

As for running tests on machine with different display settings, it all depends on how well is your test designed. Especially, it the xpaths are reachable on target machine (if the UI is shrunken or partially outside the visible screen area, etc. ). And if you our tests are using screenshot-based steps, then you are most probably out of luck. In my opinion, it's always better to design tests on machine, on which the tests will be actually running. This should prevent unwelcome surprises and eventual redesign of tests.
Pavel Kudrys
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

User avatar
rfvtgb
Posts: 5
Joined: Wed Mar 27, 2019 10:46 am

Re: Deploy ranorex project with trial license

Post by rfvtgb » Thu Mar 28, 2019 9:28 am

Thank you so much. This will help me definitely now i just build test case using screenshots, i will try to use xpath.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4549
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Deploy ranorex project with trial license

Post by odklizec » Thu Mar 28, 2019 9:35 am

Hi,

Xpaths are the only correct approach! Screenshot-based TA is definitely bad idea. It's unreliable and in long term run also crazy to maintain :) You should use it just in case an element is not recognizable via xpath or GDI Capture approach. And it should be used just for small elements.
Pavel Kudrys
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

User avatar
rfvtgb
Posts: 5
Joined: Wed Mar 27, 2019 10:46 am

Re: Deploy ranorex project with trial license

Post by rfvtgb » Mon Apr 08, 2019 4:08 am

I have one doubt in deploying project to target machine.
step 5 Copy this entire folder to your target machine using the following commands:
xcopy "bin\debug*.*"
xcopy /a

Completely no idea where should i give this commands? please help.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4549
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Deploy ranorex project with trial license

Post by odklizec » Mon Apr 08, 2019 12:40 pm

Hi,

Xcopy is a command line tool, so basically, you should use it in command prompt window (cmd). Simply go to Start and type CMD. It should offer you Command Prompt window, where you can use these commands. Eventually, create a batch file, where you can use them at once. And finally, you can also use them directly in Ranorex Studio >> Project properties >> Build Event window, where you can specify post build event commands:
ProjectProperties_PostBuild_Event.png
ProjectProperties_PostBuild_Event.png (16.32 KiB) Viewed 34 times
Pavel Kudrys
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

User avatar
rfvtgb
Posts: 5
Joined: Wed Mar 27, 2019 10:46 am

Re: Deploy ranorex project with trial license

Post by rfvtgb » Tue Apr 09, 2019 2:55 am

Very helpful. Thank you again.