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

While loop doesnt work

3 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 16 Aug 2014, 07:35 PM
Hello,

I need help with while loop -my test case contains several steps as part of while loop,  I want to check status of one element and repeat steps inside loop as long as element has specified status, it jumps into loop first time but after that it crashes even that status of element has not been changed. I tried almost everything but wihout success ..

so this loop is useless because it doesnt repeat steps inside it in case of true condition I dont know where is the problem,  i am aware that main point here is that element in verification condition must be available at the end of the loop (i am verifying this by adding same verification at the end of the loop what pasess of course), i tried also build custom element and use it as verify condition in form of ExistNot but issue persists..    

thanks for help

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 20 Aug 2014, 10:27 PM
Hi Igor,

When you state "but after that it crashes" do you mean the test fails and stops, or do you mean Test Studio itself crashes? If you mean the test fails, please go to Step Failure Details, find and click Export then attach the generated .zip file for us to analyze. It contains valuable information we need to start diagnosing the cause of a test failure.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Michele
Top achievements
Rank 1
answered on 02 Aug 2016, 02:46 PM
Hi, 
I am experiencing a similar scenario that was posted earlier. I have my While loop and it works on the first go, but then it moves to the next step just like it is an IF statement. So it is not looping. Is there a trick that I am missing? 
0
Boyan Boev
Telerik team
answered on 05 Aug 2016, 12:59 PM
Hello Michele,

In order to assist you best we need more detailed information on your scenario. 

1. Send us the execution log of the test.

2. Send us your test so we can have a better picture what you are trying to achieve.

3. Are you able to grant us a direct access to your application so we can debug the issue?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Igor
Top achievements
Rank 1
Answers by
Cody
Telerik team
Michele
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or