How do I get a record count on a database with UFT GUI
Question ID: 106954
0
0

I am can not find a way to get a count of records for a list of items in a database.

Marked as spam
Posted by (Questions: 44, Answers: 0)
Asked on July 8, 2016 9:20 pm
296 views
Answers (1)
0
Private answer

After some research I was able to get record count with the UFT GUI script. The variable 'ra' is the record count and you can use that value to validate that there was rows deleted..

Below is the script we used:

Dim con
Dim ra

Set con=CreateObject(''ADODB.Connection'')

con.ConnectionString= ''<>''
con.Open

con.Execute ''exec <>'',ra
msgbox ra

con.Close
Set con=nothing

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on July 8, 2016 9:20 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top