Highlighted
Respected Contributor.
Respected Contributor.
149 views

Re: Create n users using UFT

Hi

I am going to prepare a script which can generate more than 100 users and now I test it using 2 users in my scripts.

I create two rows in global datasheet and put down some control parameters:

endRow = DataTable.GetRowCount   /* no. of row = 2 */

begin=1

For begin =1 to endRow

        DataTable.SetCurrentRow(begin)

        /* Create user according to the spreadsheet */

Next

 

When I run the test script, I found that UFT did go through the spreadsheet from row 1 to 2. However, it runs again to go through the spreadsheet from row 1 to 2.

 

In the report, I do see two scenario and each scenario go over 2 rows.

I want to know how to control UFT to go through the spreadsheet by one time only.

 

Thanks.

 

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.