Hi Guys, In one of my interviews, I was asked to Write a
paragaraph explaining how much scripting I did in QTP? I
don't know where to start and what to write. So I need your
help in writing that.
Answer Posted / sreeprasad
I think in order to test your skills in QTP they must have
asked like that.You must have taken one screen in your
project and must have written Script for that.For Example i
think you are familiar with Login page which has the
username and password textfields with Login Button.
Step1:
Open QTP and load the Webaddins and VB addins if required.
In New test, First Learn the Objects "Username
textfield,Password textfield,Login button" of that Login
page using "Add object" Concept in "Object Repository" and
adds the objects information to the ObjectRepository.
Step2:Go to Expert view and then start writing the Script
as
Browser("Login").Page("Login").WebEdit
("username").Set "username" --- 1
1--- this script enters the data "username" into the
username field by placing the cursor to the username field
which is in the page "Login" of Browser "Login"
Browser("Login").Page("Login").WebEdit
("username").SetSecure "password" -2
2--- this script enters the data "password " in secure
format in the password field by placing the cursor to the
password field which is in the page "Login" of
Browser "Login".
Browser("Login").Page("Login").WebButton("Login").Click
---this script clicks on the Login button by placing the
cursor on the Login button which is in the page "Login" of
Browser "Login.
This is how you need to explain the script what you have
written.
Regards,
2nd answer
You can tell them that you have used some "Condition
Statements" to check the records in your database.
IF Condition THEN
Reporter.reportevent "-------"
END IF
3rd answer
1# Scripting in QTP is about working in expert view.
2# Creating User defined Functions using VB Scripts.
3# Using Conditional loops.
4# Manipulating with Functions, Test objects and Utilities.
5# Creating Libraries, creating startup script, creating
init script.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the qtp test phases.
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
How the exception handling can be done using quicktest professional?
what is test scheduleling?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
What are advantages of test automation?
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
How to write business scripts using object repository with different scenarios
How to execute a winrunner script in quicktest professional (qtp)?
How many tabs are available to view your test in a test pane and what are they?
If object is not recognized by qtp but the object is standard object what is your approach?
How do you configure QTP AND Test director?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What is test object?
Is it possible to switch between recording modes during a test creation?