Hi everybody,
Im working on bank project with Ranorex first time. I have completed 2 part of project.
But we have a serious problem that I implement my test scenarios on a environment TEST4 with URL.
Now they want me to run my scenarios on TEST8 with different URL.
Content is the same but context is changing and ranorex cant not find the objects.
Is there anyway different from tracking all objects again ?? (there are more than 400 :\)
Running TestScenarios on Different Envionments ?
Re: Running TestScenarios on Different Envionments ?
That depends on how you created the repository objects in the first place.
What is the XPath of the /dom object? You could, for instance, change the /dom to use the domain and make it a variable that is passed in either as a global parameter on the command-line, or as a data table.
/dom[@domain=$Domain]
Then, you could create the actual URL on the fly using the domain variable and the page of the application.
Then, just launch the browser with the current URL. As long as the domain variable is bound correctly, it will be used every time a repo object under that /dom is searched for.
What is the XPath of the /dom object? You could, for instance, change the /dom to use the domain and make it a variable that is passed in either as a global parameter on the command-line, or as a data table.
/dom[@domain=$Domain]
Then, you could create the actual URL on the fly using the domain variable and the page of the application.
Code: Select all
Domain = "www.mydomain.com";
URL = "http://" + Domain + "/index.html";
Shortcuts usually aren't...
Re: Running TestScenarios on Different Envionments ?
Thank your for your answer.
İ have checked the domains and changed it.
this time it works but only some of them :/
]/container[@id='7.3']
]/container[@id='7.2']
other object xpaths have these kind of differences and there is no pattern between these changings.
İ have checked the domains and changed it.
this time it works but only some of them :/
]/container[@id='7.3']
]/container[@id='7.2']
other object xpaths have these kind of differences and there is no pattern between these changings.
Re: Running TestScenarios on Different Envionments ?
I don't understand the question.
Also, if you can't predict the outcome of a test, then either the test isn't valid or the system needs to be tested differently.
Also, if you can't predict the outcome of a test, then either the test isn't valid or the system needs to be tested differently.
Shortcuts usually aren't...