Running script from project file

Ask general questions here.
Posts: 9
Joined: Fri May 18, 2018 5:17 pm

Running script from project file

Post by atkiwi » Fri Sep 07, 2018 9:56 pm

So we're hosting one of our Ranorex Test Suites on Github. Some scripts we need for the test suite are bundled into the folder. I've considered that when telling Ranorex where to execute the scripts from but it doesn't seem to work. Was wondering if I'm doing this wrong or if there's a better way to do this.

$ScriptLocation is the same path as the one in the screenshot. Just tried both ways to see if there was a difference.

I have another test solution with the same scripts that get executed from a shared drive. This works fine but for this situation it would be ideal to have it pull from the project when I download it off github.

scriptpath3.PNG (17.21 KiB) Viewed 439 times
scriptpath2.PNG (11.33 KiB) Viewed 439 times
scriptpath1.PNG (25.58 KiB) Viewed 439 times

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

Re: Running script from project file

Post by odklizec » Mon Sep 10, 2018 8:41 am


At first, running Ranorex tests from shared/network drives, is not supported and not recommended! It's only a pure luck it works for you ;)

At second, I'm not quite sure I understand your request properly, but I think you should consider implementing something like Jenkins (or similar continuous integration system), which solves all problems with obtaining the most recent versions of tests, building them (or even building the AUT), their distribution, running and even reporting! Jenkins installation and proper configuration may take some time, but it's definitely worth the time in a long run! I would definitely skip the idea of using batch files and mainly shared drives ;)

Here is a pretty detailed guide, how to integrate Ranorex with Jenkins: ... n-process/

Watch also this webinar: ... tegration/

Eventually, check this guide, about integrating Ranorex with any continuous integration system: ... n-process/
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