hi Don't use the index value in quotes...u have to mention like this
JavaWindow(Window name).JavaList(List name).GetItem(0)

If index 0 is not retrieving any values..try to put 1 and check as well...

hope this works for u...



On Tue, Oct 6, 2009 at 1:56 PM, Jagannath Prasad Padhy <[email protected]>wrote:

>
> Hi All,
> My application has a JavaList object using which I can perform the
> operations like "Select" and GetROProperty("items count")
> successfully.
> But when I try to retieve an element in the JavaList through
> JavaWindow(Window name).JavaList(List name).GetItem("0"), the
> systemreturns me the value as "#0"(i.e. the index number preceded by
> "#").
> I tried using the "list_content" property through JavaWindow(Window
> name).JavaList(List name).GetROProperty("list_content"), the system
> returns values like "null null". If three elements are there, then
> three "null" values will be displayed.
>
> I am using licensed QTP 10.0 with Java Addin. my application is on
> JavaSwing.
>
> Appreciate if you can provide any solution for this.
>
>
> Regards,
> Jagannath
>
> >
>


-- 
Mallipeddi Sreedhar
91-9000994721

--~--~---------~--~----~------------~-------~--~----~
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