How we can add actions in the test using QTP?

Answers were Sorted based on User's Feedback



How we can add actions in the test using QTP?..

Answer / uday kumar_anem

We can add actions by following:
1. Insert Menu -> Call to new action
2. Right click on (expert/keyword view) -> Action -> Insert
call to new

Is This Answer Correct ?    14 Yes 0 No

How we can add actions in the test using QTP?..

Answer / shankar.majji

One VB Script program can be devided into multiple actions.
Every action indicates a meaningful set of operations to re-
use in other VB Script programs. We can design more
modularise and efficient scripts. It helps us to
parameterise specific components of a test. Two or more
tests can call the same action.

Is This Answer Correct ?    1 Yes 0 No

How we can add actions in the test using QTP?..

Answer / suresh

Right click new action

Is This Answer Correct ?    0 Yes 2 No

How we can add actions in the test using QTP?..

Answer / kirankumar.y

there four actions call to action ,copy of action,call to
exesitng action,call to winner,split action just right
click on any one select it

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

how can i call reusable action in a function could any one explain me?

2 Answers   Livetek,


vb script for calling one function to the another function

2 Answers  


how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and next day same page is having 60 links. if i run same programe it should display total links in webpage ?

4 Answers   CTS,


how many script you will wright in a year ? i told it's depends on the proj..and 'n.no of ... but he forced me to tell some num. or avg .....how many i suppose to tell..??and do a favor per day how many script don't thing it's repeated question or common ...help me post a ans...thanks for advance

1 Answers   HCL,


Explain roles and responsibilites of 2yrs Automation qtp engineer.

3 Answers   Oracle,


what is the difference between seat and concerent licenses.

3 Answers   AppLabs, TCS,


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

0 Answers  


What are some test assets and related extensions of qtp?

0 Answers  


How do you script a nested loop in QTP? I am showing a snipet of my code. Any suggestions to help me get this to work would be great appreciated! STEP A - Customer Number: No loop - ISBN: Loop STEP B - Customer Number: Loop - ISBN: Nested Loop Here is the code I am using now. I am using i for the loop and j for the nested loop in STEP B of my script. =========================================== 'CREATE AN ADDITIONAL CUSTOMER Dim myNum, RowNum, RowCnt2, val2, total, i DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" RowCnt2 = DataTable.GetRowCount i = 1 DataTable.SetCurrentRow(i) ' Set row to one Do while Not i > RowCnt2 i=i+1 DataTable.SetNextRow MsgBox Datatable.Value("Customer_Num") Msgbox i Msgbox RowCnt2 If Not i > RowCnt2 then val2=datatable.Value("Customer_Num","Global") OracleFormWindow("Sales Order").SelectMenu "File->New" OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").Enter val2 End If 'CREATE SECOND ISBN LIST DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" Dim j, RowCnt3, val3 RowCnt3 = DataTable.GetRowCount For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) ' datatable.getSheet("DataTable").setNextRow If Trim(DataTable("ISBN",dtGlobalSheet)) = "" Then j = j - 1 Exit For End If Next 'Define ISBN rows If RowCnt3 <> j Then RowCnt3 = j End If 'Loop through ISBN rows For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) val3 = Datatable.Value("ISBN","Global") msgbox j If j = 1 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").Enter val3 else If j < 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).Enter val3 else If RowCnt1 => 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").InvokeSoftkey "DOWN" OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").Enter val3 end if end if End If Next 'EXIT APP msgbox i loop Browser("Browser").Page("Oracle Applications 11i").Sync Browser("Browser").Close ========================================== It isn't working correctly in my nested loop in STEP B (for ISBN). Any ideas?? Thanks! SBsteve

0 Answers  


what are the disadvantages of descriptiveprograming

5 Answers   GE,


how your doing reporting in your script?

1 Answers   IBM,


How would you export a script from one pc to another in qtp?

0 Answers  


Categories