Roman ~ This is very generous answer, thank you very much. You like an old  
buddy!
 
 
In a message dated 9/13/11 12:51:52 A.M. Eastern Daylight Time,  
[email protected] writes:

Hi, 


_http://msdn.microsoft.com/en-us/library/4ah5852c(v=vs.85).aspx_ 
(http://msdn.microsoft.com/en-us/library/4ah5852c(v=vs.85).aspx)    
_http://msdn.microsoft.com/en-us/library/613k2d48(v=VS.85).aspx_ 
(http://msdn.microsoft.com/en-us/library/613k2d48(v=VS.85).aspx) 
...


I don't work now with QTP, and don't have it installed on my machine, I  am 
not sure I can be much help with specific questions.
You don't need to use .net add-in with Web,it can't help. You need to  know 
what type of object you deal with, you can try to see the source of the  
page or ask developers. The simplest way - select the greed and Rright Click  
-> View Source.
Cells not suppose to be recognized by QTP, you can have an access to the  
cells using QTP methods (see help for WebTable object), if you have an image  
or flash object, there are different stories ...
All topics you need to know about QTP you can find in The User Guide or  
Help. There is no need in additional books about QTP.




As I see it, QTP and vbscript are not a good start point to learn  
programming, it is a bad language and very tool for specific purpose. There  
are 
many common techniques how to program, vbscript allow only few. It is  better 
to learn programming and write code as it should be, with adjustment to  
VBScript limitations. What I've tried to say it the previous replay to the  
question: the task to make code look in "QTP way" shouldn't be primary target,  
there are another ways to organize code.


> what  book in the QTP books can I read to understand
if you able to record  Browser().Page().WebTable()... click on webtable and 
press F1. You will find  all the functions you need to work with Cells 
(there are links to examples as  well)




Roman
On Sun, Sep 11, 2011 at 5:44 PM, <[email protected]_ 
(mailto:[email protected]) > wrote:


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]_ (mailto:[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]_ 
(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

Reply via email to