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 |
hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?
OPening of notedpad in QTP to write and execute the coding?
How to remove associated function library?
How to use debug tools?
If some requirements r changed during the testing process ,then how can u handle this in frame work?
How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)
Hi All, I am new to QTP but i was trained on winrunner before. My problem is..QTP 8.2 was unable to record my application which is a java app. By selecting smart identification, i was somehow able to record the test BUT QTP cant run the test! Can anyone help me in walking through this problem..Is java addin really necessary for this?? Is there anyways i can run the test successfully? I am not sure whats going wrong in my testing.Please do help me asap as i need to submit the report early. Thanks in advance
OR is full with objects but i want to add 5 more objects,but i tried merging files,shared mode and descriptive ,iwont work.is there any alternative for that
I want to know how to execute the descriptive programming in qtp for the webedit object which does not contain attached text property. but i have checked it with name and html id property. Even though it is not executing. it is giving error in object's physical description.
scalability testing comes under in which tool?
I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods