Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Descriptive Programming Concepts - Good thread for Starters

This is a discussion on Descriptive Programming Concepts - Good thread for Starters within the QTP forums, part of the Software Testing category; Working on a version with jpegs. I should have this re-posted soon. Thank you, Anshoo...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-07-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Descriptive Programming Concepts - Good thread for Starters

Working on a version with jpegs. I should have this re-posted soon.

Thank you,

Anshoo

Last edited by Anshoo_Arora; 05-13-2008 at 09:52 PM.
Reply With Quote
The Following 11 Users Say Thank You to Anshoo_Arora For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-19-2008
Expert Member
 
Join Date: Sep 2007
Location: Hyderabad
Posts: 115
Thanks: 1
Thanked 19 Times in 15 Posts
rajaputra is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Hi anshoo, it is very useful techniques to write a dp for starters.
I am also giving some techniques for dp....
Here i am giving dp to click on a specified button....

using object repository

'''''''''''''''''''1st method'''''''''''''''''''''
window("flight reservation" ).winbutton( "update order").click 'common method

'''''''''''''''''''''2nd method'''''''''''''''''''''''
set wndobject=window( "flight reservation" ) ' assigning window object to an object variable
wndobject.winbutton ("update order").click ' following normal syntax ( click on a button)

''''''''''''''''''''''''''3rd method''''''''''''''''''''''''''''
set btnobject=window( "flight reservation" ).winbutton( "update order") ' assigning button object to an object variable
btnobject.click ' clicking on button using button object variable

''''''''''''''''''4th method'''''''''''''''''''''''''''
with window("flight reservation" ) ' using with statement .winbutton(" update order").click
end with

using dp:

'''''''''''''''''1st method''''''''''''''''''''''''Without Object Repsitory

window("text: =flight reservation" ).winbutton( "text:=&update order").click ' descriptive programming

'''''''''''''''''''2nd method''''''''''''''''''''''''''
set odes=description. Create ' creating a description object
odes("nativeclass" ).value=" button" ' assigning description to the description object
odes("text") .value="&update order"
window("text: =flight reservation" ).winbutton( odes).click ' clicking on button using the created description object

''''''''''''''''''3rd method''''''''''''''''''''''''''''
set odes=description. Create ' creating a description object
set btnobjlist=window( "text:=flight reservation" ).childobjects( odes) ' 'flitering the objects
for objindex=0 to btnobjlist.count- 1 propval=btnobjlist( objindex) .getroproperty( "text") ' get property value from object if propval="&update order" then ' compare property value btnobjlist(objindex ).click ' click on identified object exit for ' exit for loop after clicking on the button end if
next

''''''''''''''''''4th method'''''''''''''''''''''
public const wndflight="text: =flight reservation" ' assigning window object description to a constant
public const btnupdate="text: =&update order" ' assigning button object description to a constant window(wndflight) .winbutton( btnupdate) .click ' click on a button using description constants '''''''''''''''

If any body is having other techniques please post them...

Thank you
Arun Singh Rajaputra

Last edited by rajaputra; 02-19-2008 at 01:01 PM.
Reply With Quote
The Following 4 Users Say Thank You to rajaputra For This Useful Post:
  #3 (permalink)  
Old 04-09-2008
Junior Member
 
Join Date: Apr 2008
Location: Hyderabad
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
pvksuresh is on a distinguished road
Red face Re: Descriptive Programming Concepts - Good thread for Starters

Hi Anshoo,
how are you.i am very happy with your explanation about dp.thank you.Anshoo, i want some information from you about " when we go Descriptive Programming?" please give me information regarding to that.

Last edited by Anshoo_Arora; 04-09-2008 at 06:41 PM.
Reply With Quote
The Following User Says Thank You to pvksuresh For This Useful Post:
  #4 (permalink)  
Old 08-28-2008
Junior Member
 
Join Date: Aug 2008
Location: usa
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
sanjeev neeru is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Quote:
Originally Posted by Anshoo_Arora View Post
Working on a version with jpegs. I should have this re-posted soon.

Thank you,

Anshoo
Thank you.
Reply With Quote
  #5 (permalink)  
Old 09-04-2008
Junior Member
 
Join Date: Sep 2008
Location: hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
shalininetha is on a distinguished road
Smile Re: Descriptive Programming Concepts - Good thread for Starters

[QUOTE=pvksuresh;28706]Hi Anshoo,

hi anshu,
I have little bit confusion abt dp,pls give me clear explanation regarding when we go for dp.

raji
Reply With Quote
  #6 (permalink)  
Old 09-15-2008
Contributing Member
 
Join Date: Mar 2008
Location: Pune
Posts: 30
Thanks: 0
Thanked 13 Times in 8 Posts
chennaprashanth is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Hi friend,

Using Descriptive Programming automation scripts can be created Even if the application has not been developed. We can instruct QTP to perform methods on objects without referring to the Object Repository. This is possible with the help of Descriptive Programming.

Descriptive programming provides a way to perform action on objects which are not in Object Repository

Regards,
Prashanth Chenna,
Reply With Quote
The Following User Says Thank You to chennaprashanth For This Useful Post:
  #7 (permalink)  
Old 09-29-2008
Junior Member
 
Join Date: Sep 2008
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
varalakshmi.0703 is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Hi All,
I am a new member in geetinterview.com, Im shiva kumar and I had newly joined Senate Technologies Pvt Ltd Pune, and I would like to know to start up with QTP, can anybody help me in suggesting.
Reply With Quote
  #8 (permalink)  
Old 10-07-2008
Junior Member
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
dasiga999 is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

yes it is correct
Reply With Quote
  #9 (permalink)  
Old 11-10-2008
Junior Member
 
Join Date: Nov 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
RITUKAULQTP is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Certification preparation for hp quick test professional -hp0m16 course length : 3 days course objectives this course teaches you to: the concepts of functional automation. Getting abreast with the qtp and learning how to implement it to do effective test automation. Understanding the advanced level features of qtp along with doing hands on with them. Prerequisites candidates should be well versed with the concepts of manual software testing intended audience quality assurance engineers, and new users of qtp who need to implement qtp and/or executives who will be involved in any part of testing. Course outline introduction to automation architecture of functional automation tools record and play modes of recording object repository(types) object repository manager(orm) and merging of or object identification actions parameterization checkpoints(standard, text, bitmap, database, xml from resource) output values(standard, text, text area, bitmap, database, xml from resource) synchronization points regular expression recovery scenarios function libraries define vb functions vb subroutines accessing data table at runtime using vbscript concept of descriptive programming. Single physical description object of physical descriptions. Framework - types of framework: 0,1,2,3. What you pay ? individual fees inclusive of all = rs 8000/- group discounts available = rs 7000/- per candidate in a group of more than 3 . Benefits :- • work shops conducted by istqb certified & hp-qtp 9.2 ( score - 98%) certified and an industry expert • study material and precise guidance • friendly but professional environment • sessions on only week ends (sat-sun) contact us :- sqc infotech k2 , first floor , central market above nokia hotspot ,lajpat nagar 2 . New delhi-24 ph :- 09910722113 / 011-46573287
Reply With Quote
  #10 (permalink)  
Old 01-23-2009
Junior Member
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
dine24 is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

show me the thread link for descriptive programming
Reply With Quote
  #11 (permalink)  
Old 01-23-2009
Expert Member
 
Join Date: Jul 2007
Location: Kolkata
Posts: 182
Thanks: 7
Thanked 17 Times in 16 Posts
animesh.chatterjee is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

There are few good links.. http://www.geekinterview.com/talk/90...-starters.html (Descriptive Programming Concepts - Good thread for Starters)


descriptive programming simplified | quick test professional(qtp)


qtp descriptive programming - slideshare
Reply With Quote
  #12 (permalink)  
Old 03-18-2009
Junior Member
 
Join Date: Mar 2009
Location: INDIA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rameshbb is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Hi, In a window if an object is identified as winobject with a label "xyz" which is not listed when spyed, how to identify
Reply With Quote
  #13 (permalink)  
Old 03-24-2009
Junior Member
 
Join Date: Mar 2009
Location: Columbus
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
brbame is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

I am having trouble linking QTP to Quality Center, does any one what exactly can by done with the linking of these two programs as well as how to do it?
Reply With Quote
  #14 (permalink)  
Old 03-25-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,464
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Descriptive Programming Concepts - Good thread for Starters

hello brame,

What is the apt problem you are facing else faced please let us apt, so that experts will help you out.

Thanks
Deepasree
Reply With Quote
  #15 (permalink)  
Old 05-02-2009
Junior Member
 
Join Date: May 2009
Location: Hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nidhi_jain_1406 is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Hi
Am new to QTP.Have little knowledge of the same.Can any one please help me in learning QTP by giving me approriate links.Also I want to know about VB Scripting used in QTP.

Thanks
Nidhi
Reply With Quote
  #16 (permalink)  
Old 05-02-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,464
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Descriptive Programming Concepts - Good thread for Starters

hai friend,

With in the QTP manual provided by HP you can find n number of examples.

Thanks
Deepasree
Reply With Quote
  #17 (permalink)  
Old 05-11-2009
Junior Member
 
Join Date: Feb 2009
Location: Hyderabad
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
leo4rakesh is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Hi All,
Check out the attached document which describes about the usage of Descriptive Programming in QTP. I hope will give good idea about DP.
Attached Files
File Type: doc DP_in_QTP.doc (76.0 KB, 95 views)
Reply With Quote
  #18 (permalink)  
Old 05-12-2009
Junior Member
 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Magya123 is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

Quote:
Originally Posted by rajaputra View Post
hi anshoo, it is very useful techniques to write a dp for starters. I am also giving some techniques for dp.... Here i am giving dp to click on a specified button.... using object repository '''''''''''''''''''1st method''''''''''''''''''''' window("flight reservation" ).winbutton( "update order").click 'common method '''''''''''''''''''''2nd method''''''''''''''''''''''' set wndobject=window( "flight reservation" ) ' assigning window object to an object variable wndobject.winbutton ("update order").click ' following normal syntax ( click on a button) ''''''''''''''''''''''''''3rd method'''''''''''''''''''''''''''' set btnobject=window( "flight reservation" ).winbutton( "update order") ' assigning button object to an object variable btnobject.click ' clicking on button using button object variable ''''''''''''''''''4th method''''''''''''''''''''''''''' with window("flight reservation" ) ' using with statement .winbutton(" update order").click end with using dp: '''''''''''''''''1st method''''''''''''''''''''''''without object repsitory window("text: =flight reservation" ).winbutton( "text:=&update order").click ' descriptive programming '''''''''''''''''''2nd method'''''''''''''''''''''''''' set odes=description. Create ' creating a description object odes("nativeclass" ).value=" button" ' assigning description to the description object odes("text") .value="&update order" window("text: =flight reservation" ).winbutton( odes).click ' clicking on button using the created description object ''''''''''''''''''3rd method'''''''''''''''''''''''''''' set odes=description. Create ' creating a description object set btnobjlist=window( "text:=flight reservation" ).childobjects( odes) ' 'flitering the objects for objindex=0 to btnobjlist.count- 1 propval=btnobjlist( objindex) .getroproperty( "text") ' get property value from object if propval="&update order" then ' compare property value btnobjlist(objindex ).click ' click on identified object exit for ' exit for loop after clicking on the button end if next ''''''''''''''''''4th method''''''''''''''''''''' public const wndflight="text: =flight reservation" ' assigning window object description to a constant public const btnupdate="text: =&update order" ' assigning button object description to a constant window(wndflight) .winbutton( btnupdate) .click ' click on a button using description constants ''''''''''''''' if any body is having other techniques please post them... Thank you arun singh rajaputra
hi, i have been trying to get the text value of a webelement. i have written description for the object, fetched objects matching the description and used getroproperty to get text value: set objwebelement = description.create() objwebelement("micclass").value = "webelement" objwebelement("html tag").value = "td" set lists = browser("implement").page("useragingreport").childobjects(objwebelement) numberoflists = lists.count() for i = 0 to numberoflists - 1 dtlastlogindate = lists(i).gerroproperty("innertext ") if some action to be taken end if next but i'm getting error something like: this object cannot use getropropety function
Reply With Quote
  #19 (permalink)  
Old 05-12-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,464
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Descriptive Programming Concepts - Good thread for Starters

hai Magya,

The proper method for using roproperty is given below

stut=browser("implement").page("useragingreport").WebElement(webelement).GetROProperty ("innertext")
Msgbox stut

2. If you have new query please start new thread. Please don't mess with previous thread.

Thanks
Deepa
Reply With Quote
  #20 (permalink)  
Old 06-01-2009
Junior Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Sreeman03 is on a distinguished road
Re: Descriptive Programming Concepts - Good thread for Starters

how to write descriptive programming for regular expression for web based applications in qtp.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Descriptive Programming thotaravikiran QTP 12 09-02-2009 04:44 AM
QTP Script to descriptive programming niturao QTP 3 05-28-2008 04:47 PM
QTP DEscriptive Programming balajimaddy QTP 2 12-21-2007 10:17 AM
Descriptive programming any flight application Geek_Guest QTP 0 08-15-2007 05:12 AM
Descriptive Programming and Visual Basic Scripts Geek_Guest QTP 1 07-11-2007 04:24 PM


All times are GMT -4. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved