Ask a Question

Revisit Instance to Instance Testing

MarkSchofer
Frequent Contributor

Revisit Instance to Instance Testing

I currently an setting the instance (URL) at the project level and It works as expected. Our user community does not want to reset the instance for each project every time it is tested. There is a methodology for using wild cards (Mapping) in the URL and I have not quite figured it out. Any insights would be greatly appreciated.

7 REPLIES 7
Marsha_R
Community Hero

Here's a short video

https://support.smartbear.com/testcomplete/videos/using-the-wildcard-in-the-name-map/

 

Here's a reference page

https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html#InNameMapping


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
MarkSchofer
Frequent Contributor

The video is great for dynamic ids within links. Thank you so much for sharing. I have not figured that out for changing from instance to instance (url)

Give us a screenshot of where you are trying to set this up and we can probably help.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
MarkSchofer
Frequent Contributor

I ran the test in one instance and I have a very simple login script.

In QAT5 it works fine and then can not find this object in another instance....QAT1



Unable to find the following object when executing the SetText command:

Aliases.​browser.​pagePersLogIn.​sectionPanelColumnHalf.​textboxUserId

MarkSchofer
Frequent Contributor

MarkSchofer_0-1621362474496.png

The highlighted object is the one that needs an alias and I can not figure it out our getting it to work.

Okay, but where is that object in the Name Mapping?  That's where a alias will be set up.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
MarkSchofer
Frequent Contributor

I posted that realizing the solution was close as I came to the conclusion there was a new object name being generated each time. I wild cared the URL string and I am testing right now. I believe I may have it figured out. It is funny how we work (in isolation), as you forced me to work they way that works for me. As soon as I talked out the problem the solution was pretty clear.

cancel
Showing results for 
Search instead for 
Did you mean: