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 / 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 |
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.
What is meant by Output Value in UFT?
How many types of recording facility are available in QTP?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
In QTP how to interact tool and application build?
what testing activities u may want to automate?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
Hi, i want download attached files in test plan area from QC to local drive in my system using QTP script. Please help me
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?
what are all the fileds present in object repository?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????