Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
End Loop
#1
Not Solved
I have an If statement that allows the script to advance if TRUE or Reruns the test from the beginning if FALSE. The first step (in the beginning) uses a datatable to pick a user name and then the next steps advance forward to the conditional statement if true complete test.

The issue is,

if TRUE --> CheckMenuOption =Browser("Main Menu").Page("Main Menu").Link("Reporting").Check (CheckPoint("Reporting")) --> there is no need to run the test again.

How can I program it to do that?

Any ideas?

Thanks - Charles
Reply
#2
Not Solved
if CheckMenuOption =Browser("Main Menu").Page("Main Menu").Link("Reporting").Check (CheckPoint("Reporting")) then ExitTest

Reply
#3
Not Solved
Sakit - thanks for the reply but I think I misstated it - I actually don't want to end the test I just didn't want it to grab the next user in the DataTable. I found the solution - the DataTable.DeleteSheet method. It deletes the run-time datatable when my condition is True therefore it doesn't run the test over after it is true. :-)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Infinit loop Suma Parimal 1 2,798 05-29-2014, 01:22 PM
Last Post: basanth27
  Why I need more then one End If ? nidhitaneja 3 2,421 02-27-2014, 10:46 PM
Last Post: supputuri
  Exit Do loop shipu 1 4,939 12-20-2013, 06:33 AM
Last Post: basanth27
Smile Infinite FOR loop issue Sivapratha 3 4,477 04-01-2013, 09:44 AM
Last Post: basanth27
  Do Until loop returning failure mitch 0 3,628 05-27-2011, 12:20 AM
Last Post: mitch

Forum Jump:


Users browsing this thread: 1 Guest(s)