Geeks Talk

Prepare for your Next Interview




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 FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-07-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 49 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 08:52 PM.
Reply With Quote
The Following 8 Users Say Thank You to Anshoo_Arora For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-19-2008
Contributing Member
 
Join Date: Sep 2007
Location: Hyderabad
Posts: 90
Thanks: 1
Thanked 13 Times in 13 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 12:01 PM.
Reply With Quote
The Following User Says 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 05:41 PM.
Reply With Quote
The Following User Says Thank You to pvksuresh For This Useful Post:
  #4 (permalink)  
Old 1 Week Ago
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 3 Days Ago
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
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 02:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved