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 |
What are the difference between QTP and Winrunner
who is the best faculty in HYD? Nageshwar rao or GC reddy?
Dear Friend, I am New in QTP 10 so can any one tell me how to do QTP testing on WEB APPLICATION while writing VBScript. If Possible then Give Example how to write vbscript in QTP to test WEB Apllication. Vishal Patil
Limitations in QTP?
What is difference between shared and local object repository?
how will load the object during runtime?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
Pls let me know how to find out creation time and index for the web application in descriptive programming?
Why we are going for descriptive programming ? I answered as 'If objects are not present in OR we will go for descriptive Programming'? Is this correct ?
I've some problem in Descriptive programming plz help me. I've written in a click event code in Functional library when I run this flight reservation program It is not run. How to I write multiple click event in functional library. My program is this. I have associate an action with functional library. Public Function ClickButton(byval ApplicationName, byval WindowName, byval ObjectName, byref Comments) If Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Exist Then Dialog("text:=" &WindowName).Activate Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Click Elseif Window("text:="&ApplicationName).WinButton("text:=" &ObjectName).Exist Then Window("text:=" &ApplicationName).Activate Window("text:=" &ApplicationName).WinButton("text:=" &ObjectName).Click End if End Function
wht is Automation testing frame work. pls explain it
explain abt dyanamic changing object with example?