Ask a Question

Issue with TestComplete Data-Driven loop

Occasional Contributor

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: (here URL says /us-United states country site and /en-English language) ( /my-Malaysia country site and /en-English language)


URL Example _ for Non-English speaking languages: (here URL says /mx-Mexico country site and /es-spanish language, content text will be in spanish) ( /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.


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!






Champion Level 3

Does the child object actually belong to the parent object? 


What's the URL for the first loop and the second loop?

Occasional Contributor

Hi raghvani,
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

Champion Level 3

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.

Occasional Contributor

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.






Champion Level 3

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.
Occasional Contributor

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.



Champion Level 3

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

Occasional Contributor

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




Showing results for 
Search instead for 
Did you mean: