Custom variables/parameter values according to environment

Best practices, code snippets for common functionality, examples, and guidelines.
bberrabah
Posts: 24
Joined: Wed Dec 20, 2017 6:18 pm

Custom variables/parameter values according to environment

Post by bberrabah » Mon Feb 19, 2018 2:30 pm

Hello;

How it is possible to use multiple data for multiple application under test environment.
For example assume that we have 3 environments, with the parameter ENV: Staging/Test/PPR
for each one we have 2 variables : URL (of the environment) and PortalType=Portal/DirectAccess.

I want so that i only introduce the ENV variable value as parameter and the URL and portalType will be automatically set!

Any idea please?

Best regards

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

Re: Custom variables/parameter values according to environment

Post by odklizec » Mon Feb 19, 2018 2:46 pm

Hi,

Sure, this is doable either with Ranorex data connector and/or Global/TestCase/SmartFolder parameters, connected to module variables. We discussed it recently here:
https://www.ranorex.com/forum/how-to-ma ... 11861.html
And data connectors are very well covered in Ranorex user guide:
https://www.ranorex.com/help/latest/les ... en-testing
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