How to make an autotest running from different links?

Experiences, small talk, and other automation gossip.
Grygoriy
Posts: 1
Joined: Thu May 06, 2021 4:01 pm

How to make an autotest running from different links?

Post by Grygoriy » Thu May 06, 2021 4:16 pm

Good day. We are just studying the trial version of Ranorex. We have several test environments that run from different links. The sequence of actions is the same for all environments. How to make sure that the test is not overwritten on each environment, but so that the autotest runs on each environment? Thank you

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

Re: How to make an autotest running from different links?

Post by odklizec » Fri May 07, 2021 8:55 am

Hi,

I'm afraid, I'm not quite sure what you mean with...
"How to make sure that the test is not overwritten on each environment, but so that the autotest runs on each environment?"
If the test is the same, so what exactly you mean by different environment? Different URL, or different machine or what exactly?

If you ant to run the same test with different URLs, then you must parametrize the OpenBrowser action with variable and simply pass the correct URL for given environment. Ideally, you should do it via data connector, or vie Global Parameter. You may also need to update DOM element in repository, so it will work with different URLs.

Please share as much details as you can, even with some screenshots. Otherwise, it's hard to tell what you should exactly do.
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