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

Your roles and responsibilities and daily tasks? (As automation tester)

0 Answers   Oracle,


Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma

0 Answers  


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

0 Answers  


Where you are storing your script?

0 Answers  


If enter into interviewer room? how u introduce with him. with shakehand or waht?

2 Answers  


hi is there any chance to change encoding the password

3 Answers  


i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade edit box through script... i told to interviewer, using Ms excel & test easily..but interviwer not happy with that answer?

2 Answers   Accenture,


how to find that tools work well with ur existing system?

0 Answers  


Explain types of descriptive programming?

0 Answers  


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

0 Answers  


Can objects recognised without repository?

5 Answers  


What will be happen if i load object repository at run time, but it has already associated.

0 Answers   NTT Data,


Categories