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 recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
Please tell me the steps to record the test in Analog recording mode in QTP version 9.2???
keyword driven framework having how many folders? explain folders in detail?
What is text/text area checkpoint?
tell me about if in the interview what i should tell about pharma application,what r the pharma application concepts,i need pharma application testing features
Explain abt the File System Object in QTP with ex
how open two urls in one browser? plz urgent
what is file database
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
Explain in brief about the QTP Automation Object Model.
How do u retrieve data from a text file into different variables. i.e. in a text file named "source" , the data is like : india,1000,japan,200,china,50,singapore,45050 this is given in the first line of the text file. in the second line of the text file the dta is: sun,moon,planet,river,earth,water if u use "readline" method by using FSO concept u can retrieve the entire line in to a variable. but i want to import each field (ex: "india" in one variable, "1000" in another variable etc..). Apprecitae proper replies.
How you are developing the script? Using record and play back or manual?