What is the difference between functions and actions in
QTP?
Answer Posted / sreeprasad
Reusable Action is peice of code that perform an action on
the application , which has application logic.
On the other hand , Functions does not have the application
logic . It performs a specific action on the data retrieved
from the application and returns the result to the calling
action.
For Ex: Your application has TextBox and Button,
Input : In the textbox we need to enter a numeric value
say 5.
Action : Calculate the Factorial
Expected : Factorial value should be displayed in the
textbox.
Here setting a value to textbox , performing the click
operation and corresponding verification is maintained in
the Action , calculation of the factorial value to arrive
at the expected output we use a Function.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
In qtp, explain what is qrs file?
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
How to suppress warnings from the test results page?
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
Should have experience in framework means?
how did u use automating testing tools in ur job?
How you can write contexts to text file in qtp?
Define virtual object?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
What is the difference between byref and byval in qtp?
Explain the difference between check point and output value?