validating lists with test tool

View: New views
5 Messages — Rating Filter:   Alert me  

validating lists with test tool

by rcurthicks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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


Re: validating lists with test tool

by Mike Forsberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I really like webtest for testing web pages.

http://webtest.canoo.com/webtest/manual/WebTestHome.html

On Thu, Jul 31, 2008 at 2:00 PM, 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
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

Re: validating lists with test tool

by Dakshinamurthy Karra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)

Re: validating lists with test tool

by Alex Ruiz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



     

Re: validating lists with test tool

by shura-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In Jemmy you write your test code in Java, so you can do anything.

Shura.

On Jul 31, 2008, at 11:00 PM, 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
>
>
>