This is a migrated thread and some comments may be shown as answers.

How to skip an iteration and move to the next iteration based on a value in data row

5 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul Khader
Top achievements
Rank 1
Abdul Khader asked on 26 Dec 2016, 08:11 AM

Hi Team,

My requirement is that i want to skip an iteration if an expected data is found in a row

for example my data table looks like

Flag         Username       Password

Red            red_ted            123

Blue           blue_glue         123

Yellow        yellow_glow     123

 

if (Data["Flag"] == "Blue")

{

<Skip Iteration logic>

}

 

Expected Result is current iteration should be skipped and move to next iteration i.e., row of "Yellow". Please advise how to achieve this

 

 

5 Answers, 1 is accepted

Sort by
0
Abdul Khader
Top achievements
Rank 1
answered on 27 Dec 2016, 12:48 PM

Team,

 

Any information on above query ? please guide me

How to Skip Iteration based on a cell value in local data table ?

 

Thanks

Abdul

0
Abdul Khader
Top achievements
Rank 1
answered on 27 Dec 2016, 12:50 PM

Team,

 

Please guide me on the above query. 

How to Skip the current Iteration if an expected cell value is found ?

 

Expected Result : Next Iteration should start

 

Regards

Abdul

0
Elena
Telerik team
answered on 28 Dec 2016, 12:02 PM
Hi Abdul,

Thank you for your interest in Telerik Test Studio and contacting us. 

The exact scenario you have is not documented exactly. Though there is a described approach for non iterative data driven test which could be used as a base line for your use case. Please review the shared article and let me know if it would be suitable to be modified for your needs. 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul Khader
Top achievements
Rank 1
answered on 03 Jan 2017, 06:40 PM

Thanks Elena for the reply

Unfortunately in my use case we are not using any external data sources like XML, Excel etc.

We are totally dependent on Local Data table of Test Studio because we have to capture the results of tests in each iteration from the Results tab of Test Studio.

Please advise any way by which we can control the iteration of Local Data table ? Specifically Skip the Iteration based on a cell value - attached snaps

 

Regards

Abdul

0
Elena
Telerik team
answered on 06 Jan 2017, 11:55 AM
Hello Abdul,

You could include your data in an external data source as well. Please have a look on this article and let me know if that will be useful in your case. 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Abdul Khader
Top achievements
Rank 1
Answers by
Abdul Khader
Top achievements
Rank 1
Elena
Telerik team
Share this question
or