Hi Curt,
You can do it with FEST (
http://fest.easytesting.org/swing ...disclaimer: I'm
the creator of FEST). Currently, FEST returns the
contents of a JList as an array of Strings:
JListFixture list = // create a JListFixture that
wraps the JList you are testing
assertThat(list.contents()).isEqualTo("one", "two",
"three").
Note: The 'assertThat' method is part of the
'Assertions' module included in FEST.
I hope that helps :)
Best regards,
-Alex
--- Dakshinamurthy Karra <technovator@...>
wrote:
> I don't know of these tools, but I am sure all of
> the tools will have
> some way of doing this.
>
> In Marathon (that I know --
> http://www.marathontesting.com) you just
> insert a assert_content into the script while
> recording the script.
>
> -- KD
>
> On Fri, Aug 1, 2008 at 12:30 AM, rcurthicks
> <rcurthicks@...> wrote:
> >
> > I would like to be able to validate that all of
> the items in a list box
> > correspond to a given list of the items.
> > Do any test tools (Abbot, QuickTestPro, other ?)
> provide an easy way to
> > do this ? Or will I need to select each item and
> then
> > compare it to the corresponding item in my
> requirements list ?
> >
> > Ideally, I'd also like some way of automatically
> generating any
> > discrepancies
> > for example:
> > "the value 'blue' is in list 'colors', but not in
> list 'options' "
> > "the value 'teal' is in list 'options', but not in
> list 'colors' "
> >
> > Thanks very much. Curt
> >
> >
>
>
>
> --
> Dakshinamurthy Karra (http://blog.jaliansystems.com)
>