-
-
-
-
-
How to connect to SQL Server 2005 database from QTP
I created my database in SQL Server 2005 and used the following script to connect to my database from QTP. But it didn't workim ObjDBSet ObjDB= Create Object("ADODB Connection")ObjDB.ConnectionString = "DSN=Database Name"ObjDB.OpenStrQuery = "Select * From Table Name Where Condition for query"Set ObjResult = ObjDB.Execute(StrQuery)After I run the script in QTP. I'm getting the following error message"The...
-
-
-
-
-
-
-
-
-
-
-
-
-
How do you retrieve run time data from QTP scripts if the run time properties are not available.
For eg I have 'Window("Microsoft Excel - PivotTable67").Window("Query Refresh").Activate'.I need to get the string 'Microsoft Excel - PivotTable67'.Can anybody tell me how to get that using Regular Expressions,GetROProperty or some other technique
-
-
QTP Interview Questions
Ans