Hi folks,
I recorded a recording file for a site with domain starts with cc.auto. Now it was changed to cc.qa.
I saw there were a lot of elements in the repository with cc.auto as an xpath.
Is there an easy way to run this recording script on the new domain without re-recording it?
Thanks in advance!
yinghu
run recording on the same website with different domain?
Re: run recording on the same website with different domain?
You could edit all of those repository items and make the domain a variable that you set in a global parameter. That way you could just change the value of the Global Parameter.
You should probably also re-arrange your repository so that everything with that path was inside a rooted-directory. You could then right-click the folder and choose "Optimize Folder Path" and have only one object to edit.
Code: Select all
ORIGINAL PATH: /dom[@domain="123.com"]/...
VARIABLE PATH: /dom[@domain=$testDomain]/...
Shortcuts usually aren't...
Re: run recording on the same website with different domain?
Thanks alot for your quick response!
I am guessing this is the best way to do that.
Appreciated!
I am guessing this is the best way to do that.
Appreciated!
krstcs wrote:You could edit all of those repository items and make the domain a variable that you set in a global parameter. That way you could just change the value of the Global Parameter.
You should probably also re-arrange your repository so that everything with that path was inside a rooted-directory. You could then right-click the folder and choose "Optimize Folder Path" and have only one object to edit.Code: Select all
ORIGINAL PATH: /dom[@domain="123.com"]/... VARIABLE PATH: /dom[@domain=$testDomain]/...