Issue with TestComplete Data-Driven loop
I have a question, does TestComplete supports Data Driven loop for 40 countries site URL's and for different languages(English and Non-speaking English languages).
Using Data Driven loop to run multiple testcases and data is getting from excel file.
Issue is with Data loop is not continuous, stopping me on errors mainly on "Property checkpoints", "Radio buttons", "check box" and "Objects".
URL Example _ for English speaking languages:
https://www.amazon.com/us/en (here URL says /us-United states country site and /en-English language)
https://www.amazon.com/my/en ( /my-Malaysia country site and /en-English language)
URL Example _ for Non-English speaking languages:
https://www.amazon.com/mx/es (here URL says /mx-Mexico country site and /es-spanish language, content text will be in spanish)
https://www.amazon.com/kr/ko ( /kr-united Korea country site and /ko-Korean language , content text will be in Korea)
-->Test Complete version 15.51
--> using keyword tests
--> using web applications for testing.
--> Dynamic URL parameters has been set and asterisk (*) added under URL processing properties.
--> For example, tested web application URL's like the following one:
added * in the object name mapping editor and URL's in Name Mapping will be as follows:
--> once applying data loop to the scripts, first loop is working as expected and 2nd loop item is breaking on errors "Objects does not exit"
-->unable to continue with next Data-Driven loop item.
--> Data loop should be continuous without any errors.
-->one single testcase should run continuous for 40 countries URL's listed in the loop.
Can someone please help me out!
Thanks for responding !
1st loop URL is for United States with English language
2nd loop URL is for Mexico with Spanish language
3rd loop URL is for UK with English language
Like wise we have 40 countries url loop items
Child objects are different those are changing because of
different country site URL's
Create a name mapping (parent object) that uses a wildcard like so,
Test your objects (child objects) to ensure the belong to the parent object.
click action is not same in the 1st loop and 2nd loop .UI part is different from country to country .i can see the below errors.
Click actions are different. UI part is different. May be data driven test is not your answer to resolving the issue.
You have provided screen shots of the error, but it's difficult to provide any suggestion without knowing what the UI looks like, or snippets of code relating to the error.
> Unable to find [...] Aliases.browser
Is Aliases.browser the full name of the object that cannot be found? (I.e. did not you truncate the name for privacy reasons?)
If the name is full, how 'browser' object is NameMapped in your project then?
/Alex [Community Champion]
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
no , Aliases.browser is not the full object name(due to privacy reasons not revealing the full name).
for example: error details looks like Aliases.browser.pageURLamazoncomUsEn.textnodeHome.textnode serversandsystems.
1st loop country UI looks like below image.
Please refer the marked ones in yellow , steps inside the script i need to click on and it should navigate to respective page.
Second country loop looks like below image, UI is different and Parent objects are not same