Hi Team,
I have come across an issue, If I want to run my scripts in staging as well as prod environment, in which the change is only of URL. For ex. stag.xyz.com and xyz.com. When I am trying to run it, my test cases are failing due to domain change problem.
As in few cases, only 'a' element has been called by base domain. How to run my scripts across dev, stag and prod environment. Is there anyway by which I can skip creating scripts in all different environment or in other words I can resume my one env script in another.
Ranorex version : 8.2.1
Windows : 10
Thanks.
Domain name trouble
Domain name trouble
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User
Re: Domain name trouble
Hi,
Have you tried to use “or” operator within the domain xpath? Like this
Have you tried to use “or” operator within the domain xpath? Like this
Code: Select all
/dom[@domain=‘abc.com’ or @domain=‘xyz.com’]
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
Re: Domain name trouble
I have tried changing URL and domain, that worked.
But If I will give 2 domains as you suggested, I have to give 'or' between URL`s too. Is my understanding correct ?
But If I will give 2 domains as you suggested, I have to give 'or' between URL`s too. Is my understanding correct ?
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User
Re: Domain name trouble
I have recorded the script in one domain and now i want execute same script in different domain.
where we need to define domain as variable in ranorex UI. Can you please share the steps with me?
is possible with screenshot?
where we need to define domain as variable in ranorex UI. Can you please share the steps with me?
is possible with screenshot?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Domain name trouble
Hello Ashvin,
There is a quite good article in our user guide describing how to use variables inside the Ranorex Repository.
Please read the section Repository variables and let us know if you have additional questions.
Best regards,
Bernhard
There is a quite good article in our user guide describing how to use variables inside the Ranorex Repository.
Please read the section Repository variables and let us know if you have additional questions.
Best regards,
Bernhard
Re: Domain name trouble
Hey, sorry for come back so late. But this did not work.odklizec wrote: ↑Wed Aug 29, 2018 1:12 pmHi,
Have you tried to use “or” operator within the domain xpath? Like thisCode: Select all
/dom[@domain=‘abc.com’ or @domain=‘xyz.com’]
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User
Re: Domain name trouble
Hi,
Unfortunately, without knowing more details, about what exactly does not work, there is not much anyone here can do or suggest. Could you please show us the structure of your repository and post a Ranorex snapshot of the problematic element(s)? Are you sure the domain name is the only changing attribute?
Unfortunately, without knowing more details, about what exactly does not work, there is not much anyone here can do or suggest. Could you please show us the structure of your repository and post a Ranorex snapshot of the problematic element(s)? Are you sure the domain name is the only changing attribute?
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
Re: Domain name trouble
Hey,
Thanks a lot Odklizec. It worked, actually I did a mistake in changing domain name only in setup. Ideally it should be in repo. So, got it later posting comment.
Thanks for the help.
Thanks a lot Odklizec. It worked, actually I did a mistake in changing domain name only in setup. Ideally it should be in repo. So, got it later posting comment.
Thanks for the help.
Regards,
Charu Solanki
Ranorex User
Charu Solanki
Ranorex User