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

How to add coded step as verify statement in while loop

1 Answer 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Akbar
Top achievements
Rank 1
Akbar asked on 28 Mar 2011, 06:06 AM
Hi,

We are using trial version of Web UI test QA edition. I written a code which return return number of records in list box and would like to add as verify statement in logical while loop.

so my test execution steps will be. If number of records is one. Then perform some record step.

I would like to know how we can add coded step in while loop or if and else statement using logical options in WebUi test QA edition.

Akbar

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 28 Mar 2011, 05:35 PM
Hello Akbar,

Currently you can only add a non-coded condition to a logical statement, such as Wait or Verification.

A work-around is to write your own If/Else statement in a coded step with any condition you like. You can then use the TestAsStep feature to execute different subtests depending on whether your condition is met or not.

Regards,
Anthony
the Telerik team
Tags
General Discussions
Asked by
Akbar
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or