Working on a version with jpegs. I should have this re-posted soon.
Thank you,
Anshoo
Printable View
Working on a version with jpegs. I should have this re-posted soon.
Thank you,
Anshoo
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....
[u][color="red"]using object repository[/color][/u]
'''''''''''''''''''[color="magenta"]1st method[/color]'''''''''''''''''''''
window("flight reservation" ).winbutton( "update order").click 'common method
''''''''''''''''''''[color="magenta"]'2nd method[/color]'''''''''''''''''''''''
set wndobject=window( "flight reservation" ) ' assigning window object to an object variable
wndobject.winbutton ("update order").click ' following normal syntax ( click on a button)
'''''''''''''''''''''''''[color="magenta"]'3rd method[/color]''''''''''''''''''''''''''''
set btnobject=window( "flight reservation" ).winbutton( "update order") ' assigning button object to an object variable
btnobject.click ' clicking on button using button object variable
''''''''''''''''''[color="magenta"]4th method[/color]'''''''''''''''''''''''''''
with window("flight reservation" ) ' using with statement .winbutton(" update order").click
end with
[u][color="red"]using dp:[/color][/u]
''''''''''''''''[u][COLOR="Magenta"]'1st method[/COLOR][/u]''''''''''''''''''''''''Without Object Repsitory
window("text: =flight reservation" ).winbutton( "text:=&update order").click ' descriptive programming
''''''''''''''''''[u][COLOR="Magenta"]'2nd method[/COLOR][/u]''''''''''''''''''''''''''
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
'''''''''''''''''[u][COLOR="Magenta"]'3rd method[/COLOR][/u]''''''''''''''''''''''''''''
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
''''''''''''''''''[u][COLOR="Magenta"]4th method[/COLOR][/u]'''''''''''''''''''''
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
[COLOR="Purple"][B]Arun Singh Rajaputra[/B][/COLOR]
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.
[QUOTE=Anshoo_Arora;25523]Working on a version with jpegs. I should have this re-posted soon.
Thank you,
Anshoo[/QUOTE]
Thank you.
[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
Hi friend,
Using Descriptive Programming automation scripts can be created [B]Even if the application has not been developed[/B]. 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,
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.
yes it is correct
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
show me the thread link for descriptive programming
There are few good links.. [url]http://www.geekinterview.com/talk/9046-descriptive-programming-concepts-good-thread-starters.html[/url]
[url=http://mercuryquicktestprofessional.blogspot.com/2006/11/descriptive-programming-simplified.html]descriptive programming simplified | quick test professional(qtp)[/url]
[url=http://www.slideshare.net/yassa/qtp-descriptive-programming]qtp descriptive programming - slideshare[/url]
Hi, In a window if an object is identified as winobject with a label "xyz" which is not listed when spyed, how to identify
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?
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
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
hai friend,
With in the QTP manual provided by HP you can find n number of examples.
Thanks
Deepasree
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.
[quote=rajaputra;26291]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.... [u][color="red"]using object repository[/color][/u] '''''''''''''''''''[color="magenta"]1st method[/color]''''''''''''''''''''' window("flight reservation" ).winbutton( "update order").click 'common method ''''''''''''''''''''[color="magenta"]'2nd method[/color]''''''''''''''''''''''' set wndobject=window( "flight reservation" ) ' assigning window object to an object variable wndobject.winbutton ("update order").click ' following normal syntax ( click on a button) '''''''''''''''''''''''''[color="magenta"]'3rd method[/color]'''''''''''''''''''''''''''' set btnobject=window( "flight reservation" ).winbutton( "update order") ' assigning button object to an object variable btnobject.click ' clicking on button using button object variable ''''''''''''''''''[color="magenta"]4th method[/color]''''''''''''''''''''''''''' with window("flight reservation" ) ' using with statement .winbutton(" update order").click end with [u][color="red"]using dp:[/color][/u] ''''''''''''''''[u][color="magenta"]'1st method[/color][/u]''''''''''''''''''''''''without object repsitory window("text: =flight reservation" ).winbutton( "text:=&update order").click ' descriptive programming ''''''''''''''''''[u][color="magenta"]'2nd method[/color][/u]'''''''''''''''''''''''''' 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 '''''''''''''''''[u][color="magenta"]'3rd method[/color][/u]'''''''''''''''''''''''''''' 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 ''''''''''''''''''[u][color="magenta"]4th method[/color][/u]''''''''''''''''''''' 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 [color="purple"][b]arun singh rajaputra[/b][/color][/quote]
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
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
how to write descriptive programming for regular expression for web based applications in qtp.