Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

i can done the project with QTP in that time i can say how many members in my team size?

1871


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

2107


What is throw Object?

2052


There is an excel file of 1 to 100 sheets how you will iterate through it?

941


What are the different types of recovery operation?

964


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

1673


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2467


Can I change properties of a test object?

1085


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

2066


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

1046


Explain the concept of how quicktest professional (qtp) identifies object?

955


Explain the difference between check point and output value?

952


How you can find length of array in qtp?

956


When you open QTP, how many sheets you can see?

1025


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

980