Ask a Question

Issue with TestComplete Data-Driven loop

sindhuja
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:

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.

 

 

10 REPLIES 10
rraghvani
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?

sindhuja
Occasional Contributor

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










rraghvani
Champion Level 3

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.

sindhuja
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.

sindhuja_0-1685997216499.png

 

sindhuja_0-1685997473391.png

 

 

rraghvani
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.

 

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?

 

Regards,
  /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
================================
sindhuja
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.

sindhuja_0-1686034596808.pngsindhuja_1-1686034629852.png

 

rraghvani
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

sindhuja
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.

sindhuja_0-1686057907558.png

 

Second country loop looks like below image, UI is different and  Parent objects are not same

sindhuja_1-1686058114907.png

 

 

cancel
Showing results for 
Search instead for 
Did you mean: