Micro Focus QTP (UFT) Forums
UFT Tool runs more than one iteration always - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: UFT Tool runs more than one iteration always (/Thread-UFT-Tool-runs-more-than-one-iteration-always)



UFT Tool runs more than one iteration always - cthossain - 02-12-2017

UFT Tool runs more than one iteration for a single iteration . I have the following code-
 
Code:
Systemutil.Run "FlightsGUI.exe","","C:\Program Files (x86)\HP\Unified Functional Testing\samples\Flights Application\","open"
Const login = "devname:=HPE MyFlight Sample Application"
WpfWindow(login).WpfEdit("devname:=agentName").Set "john"
WpfWindow(login).WpfEdit("devname:=password").Set "hp"
WpfWindow(login).WpfButton("devname:=okButton").Click
WpfWindow(login).Close
 Before trying the above code I added 3 rows/values in the global data sheet. But I deleted them all later. There's no object in repository.
"Data table iteration = run all rows" is set in File>Settings>Run . There is no entry in Tools> Data Driver.
 Why does it still run thrice, even when there is no rows in any datasheet. I reloaded the test script, yet all the same...


RE: UFT Tool runs more than one iteration always - cthossain - 02-12-2017

MAYBE A BUG in UFT14. Even after deleting all data/values from EACH OF THE CELL from Global data sheet by Edit>Clear>All , my test script wud run thrice ( for Three previous global data sheet parameterized values ) . I had no clue as to why it is run thrice while the data sheet is empty. Then I Found that even the data sheet was empty, three block selection was shown in three rows ( but there was no value). Then I manually selected ALL THE ROWS (mouse click and drag), and then Edite>Clear>All , only then I was able to delete the values from the global data sheet and script runs once.  My question is how come the scipt runs for more than once when there is no data sheet rows/values.


RE: UFT Tool runs more than one iteration always - cthossain - 02-12-2017

Even after deleting all data/values from EACH OF THE CELL from Global data sheet by Edit>Clear>All , my test script wud run thrice ( for Three previous global data sheet parameterized values ) . I had no clue as to why it is run thrice while the data sheet is empty. Then I Found that even the data sheet was empty, three block selection was shown in three rows ( but there was no value). Then I manually selected ALL THE ROWS (mouse click and drag), and then Edite>Clear>All , only then I was able to delete the values from the global data sheet and script runs once.  My question is how come the scipt runs for more than once when there is no data sheet rows/values.