anyone can explain Diff B/w Actions and Functions
Answers were Sorted based on User's Feedback
1.Action is a thing specific to QTP while functions are a
generic thing which is a feature of VB Scripting.
2.Action have a object repository, Data table etc
associated with it while a function can't.
3.A function is just lines of code with some/none
parameters and a single return value while an action can
have more than one output parameters.
4.We can write a function in an Action...But in Function we
can't..
5. We can't call an Action in a function, But we can call a
function in an Action.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / aruna
we can pass values in functions ,but not in actions
functions are faster than actiions
| Is This Answer Correct ? | 3 Yes | 1 No |
Hi,iam new to automation and i have 1 year experience in manual testing.I have a little bit idea about QTP9.0 .But i have no idea about script writing using VB.Please help to learn script writing.
How to use Environment parameterization? Explain with an example.
what type automation is fofollowed in the project?
write a vb script to print even numbers from 1-50?
6 Answers Kclink Technologies, Logica CMG,
in qtp how can we do test when the build is not ready
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.
Is it possible to split an action? How?
How do you change Logical Name of the object in test script?
What is keyword view in qtp?
How you calling actions in qtp?
What scripting language QTP of?
How to open an application through scripting?