Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 / sowmya

Your question was how to add actions in the test.
Are you trying to add a new action in the test itself or are
you trying to call an existing action?

1.If you are trying to add a new action: Alt I then N
or go to insert and select new action. It will generated
Action 2

2.Again the same procedure go to insert and you can select
Call to Copy of an Action or an Existing Action

Is This Answer Correct ?    5 Yes 0 No

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

Answer / sreeprasad

There are 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 ?    2 Yes 0 No

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

Answer / sandeep

Please refer to this VB Script.

You can add new action programmatically also.

' Dim qtApp, ActionContent, ActionName, ActionDescr,
NewAction, SecondAction, script
Set qtApp = CreateObject("QuickTest.Application") ' Create
the application object
qtApp.Launch
qtApp.Visible = True
qtApp.New

ActionContent = "Window(""Calculator"").WinButton
(""1"").Click" & vbCrLf & "Window(""Calculator"").WinButton
(""+"").Click" & vbCrLf & "Window(""Calculator"").WinButton
(""+"").Click" & vbCrLf & "Window(""Calculator"").WinButton
(""="").Click"
ActionDescr = "A new sample action for the test."
ActionName = "Action" + CStr(qtApp.Test.Actions.Count + 1)

'Add a new action at the begining of the test

Set NewAction = qtApp.Test.AddNewAction(ActionName,
ActionDescr, ActionContent, False, qtAtBegining)



For Attributed like ActionContent, please read all text
from any Text file in which you have already written some
code.


With this help you can generate new QTP Script pretty
quickly.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / thangaraj

Set NewAction = qtApp.Test.AddNewAction(ActionName,
ActionDescr, ActionContent, False, qtAtBegining)

Is not working. Please let me know the exact code for
creating a new action. Thanks in advance

Is This Answer Correct ?    1 Yes 0 No

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

Answer / rafi

just right click on the test pane select action if you want
give action name

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

what are the mandatory properties in qtp? what are the library functions in qtp?

3 Answers   Wipro,


What’s the QTP testing process?

1 Answers  


What is the difference between client server application and web based application?

1 Answers   IBM,


Can u call winRunner scripts from QTP?

4 Answers  


what is the test object?

1 Answers  


We have a text file which contains 1 to 100 numeric values sequentially like 1 2 . . 100 Now we have to count them and transfer to XML file by writing a code in qtp.

1 Answers   Cap Gemini,


Can we test internet application using QTP?

2 Answers   Quinnox,


Per-Action Vs Shared repository?

5 Answers  


How to merge the two object repositories

3 Answers   Wipro,


Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT

1 Answers  


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

0 Answers  


When a requirement is given to u to automate , What is ur basic approach ?

4 Answers  


Categories