Ask a Question

Keyword Test - How to save the array of Find objects and loop through

SOLVED
lingling_chiang
Contributor

Keyword Test - How to save the array of Find objects and loop through

I want ot use the keyword test to find a list of objects, and then loop through the array of objects to nail down the specific one.

Is there a way to save the array of objects in the variable?

 

6 REPLIES 6
Marsha_R
Community Hero

This should help you out:

https://support.smartbear.com/testcomplete/docs/testing-with/variables/data-types/table.html


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
sonya_m
SmartBear Alumni (Retired)

Thank you Marsha!

 

@lingling_chiang  was the article helpful for your situation? Please let the Community know if you require anymore assistanceSmiley Happy


Sonya Mihaljova
Community and Education Specialist

Not what I am looking. In the keyword test, the variable tab, the list of variable does not have the option of array. 

It seem the only way is the scripting. 

table.GIF

 

 

 

Did this not work for you?


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
tristaanogre
Esteemed Contributor

Also, an Array is simply a kind of object... so...  assign it to an object.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Thanks for the information. i give a try again.  Thanks

cancel
Showing results for 
Search instead for 
Did you mean: