How we can add actions in the test using QTP?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
what is the framework followed by ur company in qtp
What is the purpose of loading qtp add-ins?
how to insert QTP to display errors and other description in the test results instead of halting execution by throwing error in the mid of executin due to an error (for object not found)?
I have a Webedit object. some text is entered in that object I want to know the font sixe of that text.How could I do this using QTP? This is a requirement for me. I am happy if any one help on this
What is the difference between action & script?
How to create a Runtime property for an object in QTP?
how to generate numbers in between to numbers suppose numbers in between 500 to 1000 in sequencies using vbscript
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
Does QTP supports Linux or Unix OS?.If so which scripting is preferable? Shell we do record and playback
How to capture screenshots of Exceptions/Errors during run- time?
in order to start automation testing what we should require (entry level to automation testing)
How to call a test from another test?