How do u write script in qtp? where do u write?

Answers were Sorted based on User's Feedback



How do u write script in qtp? where do u write?..

Answer / sreekanth

In QTP we can develop the script in following ways :

1. By Using Standard Recording :Here script will be
Automaticaly Generated as per the recording.

2.Manually writing the Script:

for above two ways script will be written in the
Expert view of the Test Pane of Quick Test Window.

3. Using Library Files(.vbs):
In.vbs files also we can write the script & then we can
associate that files to a particular test if needed.

Mostly we are going to develop the scripts in expert view
by using 1 or 2 itself.

Is This Answer Correct ?    6 Yes 0 No

How do u write script in qtp? where do u write?..

Answer / ns

thanks sreekanth

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

How to supress warnings from the "Test results page"?

6 Answers   BirlaSoft,


what is the extension of new local object repository?

5 Answers  


Can you brief the hurdles you faced during Automation testing?

0 Answers  


Explain calling sub procedure.

0 Answers  


can u put checpoints for moving images

2 Answers   Accenture,






what is the test object?

1 Answers  


how do you remove object repository at runtime and load object repository and verify it

2 Answers   Thomson Reuters,


Hi, I am learning QTP. can someone please tell me a site from where i can learn QTP scripting Thanks in advance

0 Answers  


you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani

4 Answers   Oracle,


Write test cases for copy and past password in password field ?

0 Answers  


Give answer with example what is orthogonal array testing technique?

1 Answers   CTS, Wipro,


For the below written code , i want to be stop the loop (ex:10 times), but it is focusing to first line of the code & generating error. vbwindow("vbname:=frmMain").Type micAltDwn + "6" + "2" + "D" +micAltUp 'wiil open the particular window in application vbwindow("vbname:=frmDeduction").vbbutton("vbname:=cmdNew").Click DataTable.ImportSheet"F:\QTP VBScript\Form 26-1.xls","Deduction",Global RowCount = DataTable.GetSheet("Global").GetRowCount i=RowCount For j =1 to i 'vbwindow("vbname:=frmDeduction").WinObject("nativeclass:=DataComboWndClass","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type DataTable("Section", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micTab vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtOfPay").Set DataTable("Amount_of_Payment", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Set DataTable("Amount_PaidCredited_Date", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type DataTable("Deduction_is", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micTab vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdSave").Click DataTable.SetNextRow Next vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdClose").Click

0 Answers  


Categories