Ask a Question

I have many create options

yoorahn
Contributor

I have many create options

Hello..! 

I made automation test using keyword test. 

 

I wonder How can I handle easily various create options.  

my automation test has many create options like search box, Key-in box and select options after click triangle button . 

 

For example, 

Create to New Opportunity, I was recorded Keyword test.. choose option- 'Caategory1:A'- ' Category2:A1

and I was succeed the test. (I used 'Image based Action' about select box)

and then, I need ' Caategory1:A -  Category2: A2'

Then, must I rerecord? because only change the  Category2: A2 ? 

I only want to change 'Category2: A2' on made test

How can I handle easily? 

 

And I wanna tips about How can i easily handle search box, Key-in box and select box. in keword test!

Please give me some know-how

boxhandling.jpg

6 REPLIES 6
Marsha_R
Community Hero

Re: I have many create options

You can create a loop to go through your test multiple times

https://support.smartbear.com/testcomplete/docs/keyword-testing/basic/data-driven-loops.html

 

and for each loop, you can have a row of different data to use in the fields - there are different ways to do this

https://support.smartbear.com/testcomplete/docs/testing-with/working-with-external-data-sources/inde...

 


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
yoorahn
Contributor

Re: I have many create options

Thanks your answer. 

What I know is, Data driven loop with excel file only can handle key-in value.

But my variable options is composed of select options. (select options after click triangle button like image.) 

yoorahn_0-1629875274279.png

 

Can I use Data driven loop with image based action or other? Except key-in value?

I have to handle composed of select options. (select options after click triangle button like image.)  

How can I do that..? 

Can I handle with ‘select options after click triangle button’ and  ‘Data driven loop’?

Marsha_R
Community Hero

Re: I have many create options

The values in a drop-down (your triangle button) usually have an index in their properties and you can refer to them that way, or they will have a text property that has your A and B names in it.  Use those values in your data file and Set the field to that value rather than using Keys to type in it.


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
yoorahn
Contributor

Re: I have many create options

Thanks, for your answer. everytime, your answer pretty help. 

your answer is pretty right. I checked that they have a text property. (textnodeA)

 

yoorahn_0-1629937608884.png

 

 

Then all I have to do is 'textnode~''s ~ part  change  'A' to 'B'  on Testcomplete?

Marsha_R
Community Hero

Re: I have many create options

Try it and see what happens!

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
yoorahn
Contributor

Re: I have many create options

Sorry, Please check my image one more.. 

I tried Data driven loop. 

I can connect only 'Text=YR~' in data driven loop with CSV file. 

But What i wanna do is, yellow part.

I have 2record type (A1,A2) and A1 record type is expressed textnodeA1 in the Keyword test. 

I wanna select A2 record type, Then do I rerecord that test again? 

Inkedoptionselect_LI.jpg

 

cancel
Showing results for 
Search instead for 
Did you mean: