Search code examples
automated-testsdesktop-applicationhp-uft

UFT executes application in multiple instances


I have an UFT testcase to test a desktop application. I set application to be executed during test execution under Record and Run settings in UFT. Application is executed, but twice in each test execution.


Solution

  • Following suggestions:

    1. Check the run iterations settings
    2. Use a for loop to iterate through the rows in datatable.

    Count the number of rows and set the counter for each row.

    rowcount = DataTable.GetSheet("Global").GetRowCount
    DataTable. SetCurrentRow(2)