tag:blogger.com,1999:blog-3154230739686508173.post588103605591655604..comments2023-04-02T15:36:00.230+03:00Comments on Easy way to automate testing: QTP Descriptive Programming - How to get number of objectsDmitry Motevichhttp://www.blogger.com/profile/03519257111492581809noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-3154230739686508173.post-24859350374915771562009-09-24T19:54:29.807+04:002009-09-24T19:54:29.807+04:00Can we do the same thing to count the number of ob...Can we do the same thing to count the number of objects in a window application?Ushahttps://www.blogger.com/profile/12786897420526762505noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-61941592204438373192009-06-25T13:57:59.743+04:002009-06-25T13:57:59.743+04:00How to Write a DP for following web site:(object s...How to Write a DP for following web site:(object spy display 6 thing in this web page)<br /><br />Browser:<br />Page:<br />WebTable:HOME<br />WebTable:Parent Registraion <br />WebTable:Parent Registraion (Again)<br />WebEdit:Unknownhttps://www.blogger.com/profile/05984188400284812684noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-28467877137530177052009-06-25T07:44:20.893+04:002009-06-25T07:44:20.893+04:00HI,
I copy pasted the code.
I also opened the goog...HI,<br />I copy pasted the code.<br />I also opened the google labs page and created the object in OR.<br /><br />I still get the error message as "Google Sets" Browser object was not found in OR. Check the OR to confirm that object exists or to find correct name for the object.<br /><br />Please help me to proceed.Unknownhttps://www.blogger.com/profile/12078701430355487177noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-54666004650747777132009-05-22T17:06:37.872+04:002009-05-22T17:06:37.872+04:00hi,
How to SELECTALL text(CTRL+A) in qtp.Send keys...hi,<br />How to SELECTALL text(CTRL+A) in qtp.Send keys aint working.pls helprevaraghavanhttps://www.blogger.com/profile/16540880891338931581noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-70395403410577787222009-05-22T17:05:43.884+04:002009-05-22T17:05:43.884+04:00how to SelectAll text(CTRL+A) using QTP mine is an...how to SelectAll text(CTRL+A) using QTP mine is an edit box in the application.I tried Sendkeys not working..Pls helprevaraghavanhttps://www.blogger.com/profile/16540880891338931581noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-68851207159676760742009-04-13T06:53:00.000+04:002009-04-13T06:53:00.000+04:00Hi,I became a big fan your site, and using most of...Hi,<BR/>I became a big fan your site, and using most of your code skills in my current project.<BR/>I have an object by name CUSTNUM and its created thru OR. Now the same object during run time i want to capture the object and update the OBJ CUSTNUM. I am able to capture the object during runtime but i dont know how to update the object onto OR.<BR/>Any help is greatly appreciated.<BR/>thanks,<BR/>BadeRajubade rajunoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-1031421544596930052009-02-20T21:17:00.000+03:002009-02-20T21:17:00.000+03:00Hi Dmitri,i have a webedit inside the webtable in ...Hi Dmitri,<BR/><BR/>i have a webedit inside the webtable in my application.<BR/><BR/>i need to set a value in the webedit.....can u help me with the function.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-79318840962441923022009-02-07T21:21:00.000+03:002009-02-07T21:21:00.000+03:00@Anonymous (January 29, 2009),Maybe, you didn't op...@Anonymous (January 29, 2009),<BR/>Maybe, you didn't open an initial page (Google Sets).Dmitry Motevichhttps://www.blogger.com/profile/03519257111492581809noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-34466899892717735352009-01-29T08:16:00.000+03:002009-01-29T08:16:00.000+03:00Thank you very much for all of your articles. They...Thank you very much for all of your articles. They are fantastic.I learned a lot. I have a question here. when I run this program it is giving number of edit class =0 in message box.<BR/>what did I do wrong.Could you please tell meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-33816809772296818332008-12-04T19:50:00.000+03:002008-12-04T19:50:00.000+03:00@Yesh,The main purpose to use DP is a processing o...@Yesh,<BR/>The main purpose to use DP is a processing of dynamic objects (buttons, edits, link). <BR/>You can know properties of such objects during <B>run-time session only</B>.<BR/><BR/>That;s why you cannot create these objects into OR.Dmitry Motevichhttps://www.blogger.com/profile/03519257111492581809noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-65882300712520132142008-12-03T19:58:00.000+03:002008-12-03T19:58:00.000+03:00Dmitri,Your article gives a good insight in to Des...Dmitri,<BR/><BR/>Your article gives a good insight in to Descriptive programming using QTP.<BR/><BR/>I have a question though. Doesn't one use DP to avoid using the OR. Feels like using OR defeats the purpose of introducing DP in to your testing.<BR/><BR/>YeshUnknownhttps://www.blogger.com/profile/09664541760619097442noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-61534943540656702042008-11-13T10:11:00.000+03:002008-11-13T10:11:00.000+03:00Thanks, it was very usefulThanks, it was very usefulUnknownhttps://www.blogger.com/profile/04719111951615143517noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-89841928820571081212008-10-20T13:00:00.000+04:002008-10-20T13:00:00.000+04:00@Ganesh Babu N R,You are right. Thank you!I've edi...@Ganesh Babu N R,<BR/>You are right. Thank you!<BR/><BR/>I've edited the article and changed "micClass" to "micclass".<BR/>BTW, on screenshots I used correct form ("micclass").<BR/><BR/>Thank you for attention, Ganesh. :)Dmitry Motevichhttps://www.blogger.com/profile/03519257111492581809noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-17900244776015559872008-10-19T20:07:00.000+04:002008-10-19T20:07:00.000+04:00In v9.5 this code should be corrected :Desc("micCl...In v9.5 this code should be corrected :<BR/>Desc("micClass").Value = "WebEdit"<BR/>has to be <BR/>Desc("micclass").Value = "WebEdit"<BR/><BR/>"micClass" results in an Run Time error.<BR/><BR/>Just an FYI :-)<BR/><BR/>Thanks to the article DmitryGanesh Babu N Rhttps://www.blogger.com/profile/09415914971120299227noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-80010498911389360972008-10-17T05:36:00.000+04:002008-10-17T05:36:00.000+04:00Hi dmitri I m sorry...actually it works fine even ...Hi dmitri <BR/><BR/>I m sorry...actually it works fine even without adding the browser object to the OR<BR/><BR/>the mistake that I have done was <BR/>I have used <BR/>linkdesc("micclass").value="link"<BR/><BR/>instead of <BR/><BR/>linkdesc("micclass").value="Link"<BR/><BR/>(capital 'L' in "link")<BR/><BR/>Thanx...:)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-15240523903450976372008-10-17T05:01:00.000+04:002008-10-17T05:01:00.000+04:00Even if I use this description for browser,Set bro...Even if I use this description for browser,<BR/><BR/>Set brodesc=description.Create()<BR/>brodesc("micclass").value="browser"<BR/>brodesc("title").value="Google Sets"<BR/><BR/>I have got to add the browser object to the object repository....only then I m not getting the general run error in line<BR/><BR/>Set alllinks=browser(brodesc).page(pagedesc).ChildObjects(linkdesc)<BR/><BR/>why is that?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-41747247329471875612008-10-16T16:45:00.000+04:002008-10-16T16:45:00.000+04:00i got the output motevich by the method using in i...i got the output motevich by the method using in images<BR/><BR/>At bottom u gave the tips u know.<BR/><BR/>thanks dmitryAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-58980762614714728682008-10-16T15:13:00.000+04:002008-10-16T15:13:00.000+04:00@Johnson,I do not see your yesterday's comments.Al...@Johnson,<BR/>I do not see your yesterday's comments.<BR/>Also, plese provide <B>detailed</B> info about your issue - source code, error message, line#, what did you try and its resutls, and so on.<BR/>Since you didn't provide such info, I cannot answer.Dmitry Motevichhttps://www.blogger.com/profile/03519257111492581809noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-21345124829864072332008-10-16T14:49:00.000+04:002008-10-16T14:49:00.000+04:00hiDimitry thanks for your responseyesterday i ask ...hi<BR/>Dimitry thanks for your response<BR/><BR/>yesterday i ask doubt in <BR/><BR/>http://motevich.blogspot.com/2008/08/qtp-descriptive-programming-number.html<BR/><BR/><BR/>Initially i got the code as<BR/><BR/>Browser("Google Sets").Page("Google Sets").Sync<BR/>Browser("Google Sets").Close<BR/><BR/>after that i modified what you said in your blog and run the script, it shows "general run error"<BR/>In OR browser and page only present <BR/><BR/>am i correct i think u understand my doubt.<BR/>please i want this ouput in my system<BR/>what can i doAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-1002920547134839382008-10-16T08:32:00.000+04:002008-10-16T08:32:00.000+04:00@Niki,You missed Browser object.Change this line:S...@Niki,<BR/>You missed Browser object.<BR/><BR/>Change this line:<BR/><I>Set alllinks=page(pagedesc).ChildObjects(linkdesc)</I><BR/>like this:<BR/><I>Set alllinks=<B>browser(brodesc).</B>page(pagedesc).ChildObjects(linkdesc)</I>Dmitry Motevichhttps://www.blogger.com/profile/03519257111492581809noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-39837125110153194902008-10-16T07:47:00.000+04:002008-10-16T07:47:00.000+04:00Thanx..u r doing a gr8 jobcan u pls let me know wh...Thanx..u r doing a gr8 job<BR/><BR/>can u pls let me know whts wrong in here....I m getting a general run error....<BR/><BR/>Set brodesc=description.Create()<BR/>brodesc("micclass").value="browser"<BR/>brodesc("title").value="Google Sets"<BR/><BR/>Set pagedesc=description.Create()<BR/>pagedesc("micclass").value="page"<BR/>pagedesc("title").value="Google Sets"<BR/><BR/>Set linkdesc=description.Create()<BR/>linkdesc("micclass").value="link"<BR/><BR/>Set alllinks=page(pagedesc).ChildObjects(linkdesc)<BR/>msgbox"No. of links "&alllinks.countAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-29129757183260416422008-10-15T22:17:00.000+04:002008-10-15T22:17:00.000+04:00How can I explain reasons of the error if you didn...How can I explain reasons of the error if you didn't provide the error message?Dmitry Motevichhttps://www.blogger.com/profile/03519257111492581809noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-42141360118081529582008-10-14T17:42:00.000+04:002008-10-14T17:42:00.000+04:00Hiyour videos on o/p values is really superb.I hav...Hi<BR/>your videos on o/p values is really superb.<BR/>I have problem in "QTP Descriptive Programming - number of objects" in that by using object spy it shows two webtables after that webedit is displayed<BR/>Yesterday i worked correctly i got the proper o/p what you said.<BR/>Now i got this error <BR/>could you explain me for reason this happensAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-34434515389225329492008-09-22T15:03:00.000+04:002008-09-22T15:03:00.000+04:00to Anonymous/Anit, Answered in above comments.to Anonymous/Anit, <BR/>Answered in above comments.Dmitry Motevichhttps://www.blogger.com/profile/03519257111492581809noreply@blogger.comtag:blogger.com,1999:blog-3154230739686508173.post-68384961085125750142008-09-22T14:27:00.000+04:002008-09-22T14:27:00.000+04:00I am getting an error on this line of code: Set Ed...I am getting an error on this line of code: Set Edits = Browser("Google Sets").Page("Google Sets").ChildObjects(Desc)<BR/><BR/><BR/>Kindly help me to solve it<BR/><BR/>Cheers,<BR/>AnitaAnonymousnoreply@blogger.com