-
-
-
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 to check dynamic cell data.
Here i used Reg Exp but it was not working
-
-
How to focus on nth page of an web application?
I want to focus on the 9th page of my web application. What should I do? Explain with script.
-
How to prevent sharing QTP Scripts with others?
Is there any option in QTP for not sharing our scripts with others. I just dont want anybody to see my scripts. What is the way?
-
-
JavaWindow("Connected to .. fins003t:20216").JavaEdit("JTextArea").Set cstr(P_File)
P_File contains
35=D49=MY56=PEERS115=FIXTEST34=4657=FIXMAJ52=20061129-15:24:30.92511=SLF78900461=5120516163=664=20061129-15:24:3021=318=255=NT207=TO54=160=20050425-15:44:1738=2250040=244=1559=0377=N9176=Y10=0
I HAVE TO SEND THE ABOVE MESSAGE TO MY APPLICATION.
Problem is I am able to send the message but WITHOUT THE SQUARES.I used msgbox function to see if the message is picking up correctly from the datatable.It is picking the message correctly with SQUARES but when you click on send the message is displayed without the squares(delimeters)Qtp is inot recognising those.
If anyone could suggest anything that will help me move forward i will really appreciate it.">Delimeters in QTP.How to make QTP recognise Delimeters.P_File =DataTable("p_File", dtLocalSheet)JavaWindow("Connected to .. fins003t:20216").JavaEdit("JTextArea").Set cstr(P_File)P_File contains 35=D49=MY56=PEERS115=FIXTEST34=4657=FIXMAJ52=20061129-15:24:30.92511=SLF78900461=5120516163=664=20061129-15:24:3021=318=255=NT207=TO54=160=20050425-15:44:1738=2250040=244=1559=0377=N9176=Y10=0I HAVE TO SEND THE ABOVE MESSAGE TO MY APPLICATION.Problem is I am able to send the message but WITHOUT THE SQUARES.I used msgbox function to see if the message is picking up correctly from the datatable.It is picking the message correctly with SQUARES but when you click on send the message is displayed without the squares(delimeters)Qtp is inot recognising those.If anyone could suggest anything that will help me move forward i will really appreciate it.
-
Upgrading QTP Scripts Question
I have script recorded in QTP 8.2 and Objects recorded in QTP 9.1 then tell me how to update the script from QTP 8.2 to QTP 9.1 so that all recorded objects are also identified in updated script(QTP 9.1). I tried before but in some objects are not identified. Please help.RegardsAbhy
-
-
-
-
-
-
-
QTP code for running stored procedure
I want to execute a database Procedure in QTP, the connection i am able top make but i am not able to execute the procedure and get the response from it.Also mention how to get response if out parameter is not in the Procedure but is there in Package somewhere.
-
How do you capture values from Adobe format file in QTP
Hi all,1)How to capture the values in Adobe format file? 2)There are 2 values in the Adobe file. Now, I have to capture those values and calculate (Column 1 * .124 = Column2 (Total of Column 1 * .124)) them. But, when I am trying to put Text Check point to calculate the values, QTP is not accepting to put the Text Check Point for that Particular Values. It would be very helpful if any one suggest me...
-
-
How to import a data sheet from Quality Center ?
In my script, i was picking up the data from an external sheet located on my desktop which i was importing using DataTable.ImportSheet ("C:desktopabc.xls", "", "")The above is step is working fine. Now, i am supposed to upload my script in QC. For which i uploaded the excel sheet as an attachment in QC & updated the path of the excel sheet in my script.But, while running it is throwing an error as...
QTP Interview Questions
Ans