I have a grid that is only seen as a bitmap, even with the WEB and .NET add-ins. Could using NATIVE properties help me make these manageable? Right now I am stuck with only being able to use analog code because even Low Level code does not touch the cells. Roman - what chapter of what book in the QTP books can I read to understand more about what you were talking about below? Or maybe it's only VBScript knowledge links? In a message dated 9/10/11 9:46:40 P.M. Eastern Daylight Time, [email protected] writes:
I still don't understand why you need to wrap the native call to _QTP_ objects. Create something like Class MyGrid and make create set/let/get properties, it will hide all ugly item(1).item(2) inside, FireEvent you can replace with DeviceReplay or Shell SendKeys (if you really need) or just hide them inside the class implementation. BY the way using FireEvent is valid option, the problem would be to use native code call to simulate an action. QTP objects are well documented, there are very limited number of properties you can use for the mapping (see "Mapping User-Defined Test Object Classes") but using OOP you can achieve what yo want without headache. Only if you use Classes you can't create an object using "new MyGrid" inside an QTP Action. You need to create library with Function objMyGrid() Set objMyGrid= new MyGrid End Function and call the function in an action Set grid = objMyGrid() Roman On Sat, Sep 10, 2011 at 1:43 AM, QTP MASTER <[email protected]_ (mailto:[email protected]) > wrote: Hi, I am automating a third party grid in my application. Many of the methods that can be performed on that control, can be done only with Native objects. Few objects in the application, are actually not visible to the QTP to add them to OR, as its a kind hierarchy in which they exist . There are grids that exist inside another grid and this kind of Hirarchy continues. I am getting those objects like this objGrid.Children.Item(0).Children.Item(1)... and so on... Many of the actions are now performed by using FireEvent in the native object. Sometimes inspite of having a proper event object, no actions are performed on the application. These actions, Methods are working with QTP Test objects. Now Since this Hierarchy is got from Native objects, I wanted to convert them to QTP Test objects. Thanks in Advance, Prasanna. On Sep 9, 6:01 am, Roman Zilber <[email protected]_ (mailto:[email protected]) > wrote: > Why do you need that? > > On Thu, Sep 8, 2011 at 9:06 AM, QTP MASTER <[email protected]_ (mailto:[email protected]) >wrote: > > > > > > > > > Hi any idea on this? I am still searching for answers. > > > Thanks, > > Prasanna. > > > On Sep 6, 2:04 pm, Prasanna Narayanan Srinivasan > > <[email protected]_ (mailto:[email protected]) > wrote: > > > Hi All, > > > > My automation involves automating of a third party control, which can be > > > handled only through Native object's Properties, methods and Events. > > > > Now I want to convert those Native objects to QTP Test Objects. When I > > > convert the Object in the following way, its only upto Page it works and > > not > > > more than that. > > > Please let me know, if anybody know how to do this. > > > > Example : > > > > Set objBrowserNative=Browser("").Object > > > Msgbox Browser(objBrowserNative).Exist *' Returns True* > > > > Set objBrowserPageNative=Browser("").Page("").Object > > > Msgbox Page(objBrowserPageNative).Exist *' Returns True* > > > > Set objEditNative = Browser("").Page("").WebEdit("").Object > > > Msgbox WebEdit(objEditNative).Exist * 'Returns False* > > > Msgbox Browser("").Page("").WebEdit(objEditNative).Exist * 'Returns > > > False* > > > > Please let me know, as to how to retrieve QTP Test Object using Native > > > Object. > > > > *With Best Regards, > > > Prasanna Narayanan S* > > > -- > > You received this message because you are subscribed to the Google > > "QTP - HP Quick Test Professional - Automated Software Testing" > > group. > > To post to this group, send email to [email protected]_ (mailto:[email protected]) > > To unsubscribe from this group, send email to > > [email protected]_ (mailto:[email protected]) > > For more options, visit this group at > >_http://groups.google.com/group/MercuryQTP?hl=en_ (http://groups.google.com/group/MercuryQTP?hl=en) -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected]_ (mailto:[email protected]) To unsubscribe from this group, send email to [email protected]_ (mailto:[email protected]) For more options, visit this group at _http://groups.google.com/group/MercuryQTP?hl=en_ (http://groups.google.com/group/MercuryQTP?hl=en) -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at _http://groups.google.com/group/MercuryQTP?hl=en_ (http://groups.google.com/group/MercuryQTP?hl=en) -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
