Issue with TestComplete Data-Driven loop
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Issue with TestComplete Data-Driven loop
Hello Community,
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)
Details:
-->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:
http://www.example.com/shop/login/systems/category=12111
added * in the object name mapping editor and URL's in Name Mapping will be as follows:
http://www.example.com/shop/login/*/*
Issues:
--> 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.
Expecting behavior:
--> 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!
Regards,
Sindhuja.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the child object actually belong to the parent object?
What's the URL for the first loop and the second loop?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for responding !
1st loop URL is for United States with English language
https://www.amazon.com/us/en
2nd loop URL is for Mexico with Spanish language
https://www.amazon.com/mx/es
3rd loop URL is for UK with English language
https://www.amazon.com/uk/en
Like wise we have 40 countries url loop items
Child objects are different those are changing because of
different country site URL's
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Create a name mapping (parent object) that uses a wildcard like so,
https://www.amazon.com/*
Test your objects (child objects) to ensure the belong to the parent object.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> 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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The only thing I can suggest is to step through your code and correct your name mappings, may be include wildcards, for those controls that can not be found
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
