What is the exact difference bet function and action in QTP
Anybody can explain it in detail..Thanks in advance..
Answers were Sorted based on User's Feedback
Answer / dibyendu hembram
Function:- function is a group of methods and instruction
and it can be access whenever we call that function
Action:- action is use to split our test script into more
flexible and logical unit advantage:- 1.if we require a
particular step of our test script then we can use action
by making it reusable action. 2. if 2 or more than two
scripts require the same script then we go for the action
| Is This Answer Correct ? | 6 Yes | 9 No |
Answer / sowmya m
Function must return avalue where Action is not required
| Is This Answer Correct ? | 0 Yes | 4 No |
Hello Everybody, please tell me how to use accessibility checkpoint and XML checkpoint by giving any practical example of it.please provide me the steps to perform that and also pls provide the code too. Thanks in advance, Gaytri
what type of test cases tou will automate?
can any one tell me how to select some text.i need the script for that
In QTP, while launching qtp application from startup.. we find Advanced Keyword-Driven Testing caption.. wht is that...Anybody can pls explain it. Thanks in Advance
We have a dynamic webtable where rows keep on adding.I have to click on particular row where the status changes to Update or Save.How do you click on Status(either it can be Update or save)
How to handle the exceptions using recovery secnario manager in quicktest professional?
Does QTP support Linux Red Hat? Does QTP support Flash?
how to identify the objects if application consists of objects that have same properties.
Hi How to retrieve data from web element line by line?
Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties..
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.
For which type of project the iterative model is suitable?