A company I am doing some performance testing work for uses QTP (Quick Test
Pro). They want to run some of these scripts and get measurements. I
installed the application on my laptop, got a copy of their test scripts,
and tried running them. They failed and when I talked to their test lead, he
asked me if I was using a laptop. He had me use the Java object inspection
tool in the program and it showed a window with a title bar and another
window inside of it. It is supposed to show a Java object hierarchy but it
didn't. He said that they know of the problem and that it only happens on
laptops for them.

If you are using a laptop, perhaps using a desktop will resolve the problem.
If it does, then at least you are closer to identifying the issue and maybe
can find a work around.

2009/6/25 Robin <[email protected]>

>
> Yep, Eclipse works fine.
>
> Swing does supposedly support accessibility although obviously this
> takes a bit more work with there being no native components involved.
> The JavaDoc shows various swing components implementing Accessible.
> It's one of those things I'd sort of expect to work out of the box, if
> it doesn't it kind of shoots swing in the foot for any serious desktop
> development. For this reason I can't believe it's not possible, even
> if you do have to jump through a few hoops, possibly even flaming
> ones.
>
> thanks anyway.
>
> On Jun 25, 4:30 pm, Casper Bang <[email protected]> wrote:
> > Ouch, that's a tough one. As I'm sure you're aware, Swing is
> > simulating native widgets (at least non-heavyweight stuff) so even if
> > it may look like a generic File chooser, it isn't. A good example of
> > your problem would be to launch Spy++ that comes with Visual Studio
> > and try to capture components. If I try this with a generic Windows
> > application, I get a handle and can see the component class to be
> > ToolbarWindow32. If I try to do the same with a Swing application, all
> > I get is the top-level heavyweight component called SunAwtFrame.
> >
> > A screen reader would work by walking the native Windows component
> > tree and issue appropriate calls to GetWindowText etc. so just as the
> > Spy++ exercise above demonstrates, all it would be able to get to is
> > the SunAwtFrame and its caption.
> >
> > This is one big reason to prefer SWT apart from its speed. Out of
> > curiosity, can the screen reader handle Eclipse?
> >
> > /Casper
> >
> > On 25 Jun., 16:53, Robin <[email protected]> wrote:
> >
> > > Has anyone tried using the java accessibility stuff. We have a java
> > > swing app we sell and are looking into accessibility, specifically
> > > support for screen readers. A guy I work with has asked this question
> > > on stackoverflow, but we're both a bit baffled as to what could be at
> > > issue.
> >
> > >http://stackoverflow.com/questions/1043757/how-do-i-make-vistas-narra.
> ..
> >
> > > We've tried downloading a commercial swing component demo (jide) and
> > > get the same results, it'll narate the top level window title, but
> > > then claims there are no other controls. We've not had time to check
> > > if this is just a vista thing yet, figured I'd post here in case
> > > someone knew of a gotcha which could be tripping us up
> >
> > > any ideas?
> > > Thanks for any help,
> > > Robin
> >
>


-- 
Robert Casto
www.robertcasto.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" 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/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to