Hi,
You can try something like:
private void testFoo(Param p) {
beginAt(...);
...
...
}
public void test1() {
testFoo(param1);
}
public void test2() {
testFoo(param2);
}
public void test3() {
testFoo(param3);
}
public void testn() {
testFoo(paramn);
}
But if you need many different parameters it may be not very efficient.
JUnit 4 as suggested by Jevon would be better.
Regards,
Julien
________________________________
De : Jevon Wright <[email protected]>
À : JWebUnit Development mail list <[email protected]>
Envoyé le : Mardi, 9 Juin 2009, 13h16mn 27s
Objet : Re: [JWebUnit-development] JWebUnit-Help Needed
Hi,
You may be interested in something like JUnit 4's Parametized class:
http://junit.org/apidocs/org/junit/runners/Parameterized.html
Though I'm not sure if JWebUnit works with JUnit 4?
Cheers
Jevon
On 6/9/09, Singh-2, Rajinder <[email protected]> wrote:
Hi
Is there any way in which I can write the test
method in JWebUnit which can be called n number of times for different input
parameters i.e. writing a parameterized test method.
I need to get the detailed report in JunitReport
for each time the method ran for different parameters.
Right now I am unable to write a test
method with parameters.
Please help.
Regards
Rajinder
________________________________
From:Singh-2,
Rajinder [mailto:[email protected]]
Sent: Tuesday, June 02, 2009 12:13
PM
To: [email protected]
Subject: [JWebUnit-development]
JWebUnit-Help Needed
Hi,
I want to click an Image in form on my HTML page
<INPUT NAME="submit"
TYPE="Image" src="images/XX/yy.jpg" border=0>
I tried using
clickElementByXPath("//inp...@type='Image'
and @NAME='submit']");
But I am unable to click this image in JWebUnit.
Please help its urgent.
Regards
Rajinder Singh
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development