Re: passing arguments to test case while adding them to test suite

"David Saff [email protected] [junit]" <[email protected]> Mon, 24 Nov 2014 12:03:21 -0500
Newsgroups gmane.comp.java.junit.user
Message-ID <CALrw-PyJ+gBsmZaceFv8ofOnu3obCxCjAfQL+bmJU13iSkMGKQ@mail.gmail.com>
First question is, do you need to use the test method with two parameters
directly?  Are you calling it multiple times with different parameters, or
just once?  Thanks,

   David Saff

On Sun, Nov 23, 2014 at 11:59 PM, [email protected] [junit] <
[email protected]> wrote:

>
>
> hi all,
>
>
> i need help on passing arguments to a test case when i am adding it to
> test suite.
>
> for example:
>
>
> myClass has a method testingMethod(String arg1, String arg2) which takes 2
> arguments as input.
>
> now i am adding myClass to a test suite using suite.addTest(myClass.class).
>
>
> i need to pass 2 string arguments also along with the class name so that
> the method testingMethod receives the parameter values.
>
>
> Kindly help me on this topic.
>
> Thanks in advance.
>
> Ishan
>
>  
>