End Loop - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: End Loop (/Thread-End-Loop) |
End Loop - wheelercha - 12-17-2009 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 RE: End Loop - Saket - 12-17-2009 if CheckMenuOption =Browser("Main Menu").Page("Main Menu").Link("Reporting").Check (CheckPoint("Reporting")) then ExitTest RE: End Loop - wheelercha - 12-18-2009 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. :-) |