ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
i need to learn the descriptive programming very well so for
that what to do am reading the qtp user mannual but it is
not so any materials or links with examples i want   please
help me
 Question Submitted By :: Subhan.qa
I also faced this Question!!     Rank Answer Posted By  
 
  Re: i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me
Answer
# 1
Hi,

In Decriptive programming all the properties and their 
values which make an object uniquely identifiable are 
written in the script.

Regular Expressions can be used to specify the value.

Easy way to learn Descriptive programming would be 
1.Record the script
2. Now modify the code in such a way the code becomes 
independent of object repository
3.Now try to run this code

Eg. 
1.If the recored statement is 
Browser("Yahoo Login").Page("yahoo Login").WebEdit
("Login").set "User1"

2. Now try to identify the variable-value pair for each oh 
these objects which will make these objects unique.
For example if for 'Page' object , its title makes it 
unique, then specify the property-value pair in the 
description

Browser("title:=Yahoo Login").Page("title:=Yahoo 
Login").WebEdit("Name:=Login","html tag:=INPUT").set "User1"

Note: 
1. Object Spy will give the the list of all the properties  
and their current value for an object. 
2. what i do is, 
  I. i record the script, now the object  repository is 
created.
  II. Now i start changing the script, by looking at the 
object repository i change the description of the object in 
the script. 
   III. Run the modified script. I correct the script until 
the scrit runs successfully.
   IV. When the script runs without any error and is 
completely descriptive. Go to Object Repositry and delete 
the antire object repository
3.You can write partly descriptive script also
E.g. 
Browser("Yahoo Login").Page("yahoo Login").WebEdit
("Name:=Login","html tag:=INPUT").set "User1"
 
Is This Answer Correct ?    0 Yes 0 No
Pallavi
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.  3
How can i find out any "text's" coordinates in excel sheet For example: I want to know the coordinates of "F" Column in the excell sheet While recording when i clicked on F column it is showing the coordinate values 385,9 but with out recording how can i find out them Suppose i want to clik on "H" column writing the script like this Window("Book1").WinObject("Book1").Click (...........) Here I Dont know what (x y )values should i enter Please any one can help me? Livetek1
Waht is diff between SystemUtil.Run and invokeapplication  4
HOW TO DO THE BATCH TESTING USING QTP? CTS6
How i can change shared repository to per test repository in qtp  1
How Does Run time data (Parameterization) is handled in QTP? IBM2
is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE  15
can any body tell me all of the release dates of QTP?????..... thanks in adv!  3
Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri  2
what is the main process in QTP? Ordain-Solutions3
Hi All I am installing QTP 8.0/8.2 in my office desktop (WIN XP) but it is not working. Inspite Installion is succesfully done but when i open qtp from programs it opens only first screen of add-in and after that it disappears. But in my other computer at home (winxp) it is working fine. Can you please give the reason, why it is not working in office desktop. DEEPAK SINGH Satyam4
If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is? Wipro3
plz anybody tell me how to explain the architecture of one particular project.plz give me answer for this.....RAJESH TCS6
IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp  2
If you use low level recording,what objects will be recorded in Object Repository and what properties? CTS3
Hi Friends, I have an application that is having some options to choose. While doing business transaction I need to select one option among from available options. But here the thing is, we won't get one option which we've chosen already and the available options will get automatically from the system with time basis, moreover each and every option having with various label names respective to that option. So obviously if I run my recorded script will automatically gets fail, even though it got pass at first time. Could anyone please give me appropriate solution for this. I would be greatly obliged with you if you give the solution as soon as possible. Zensar1
hi all, I want to know about the QTP scripts, i have read more books but all areis to be a theory so how can i improve my script skills. if anybody knows about qtp scripts plz guide me and i need a sample scripts.my mail id is karthis4u@gmail.com, 9986667831 If you all have any data send it to akadi111@gmail.com  2
Suppose there are 100 links in a web page and the number of links will be changing dynamically from time to time. I need code such that every time i had to click on the last link of the web page. Virtusa2
hi this is srinivasa(from blr) i complited my B.tech(e.c.e) in 2007 im searching job in s/w testing but idont have freshers resume for s/w testing please send some s/w testing resume for me(fresfers resumes only) advns thnks you  2
please tell me how to identify the index of the link in the web table .links are not constant.example i want to click the link in the inbox ,search the item and click the partcular mail.(mail links count is not constant)  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com