Thanks for the reply Julien.

 

Issue is there even if I use Junit 4 and call a single method n number of times 
using different parameters.

 

JWebUnit report will consider them as single test method as the name is same 
and give the report only for latest method.

 

I also thought of the same solution but there are 400 values for which I need 
to run the test method and show it on JUnitReport.

 

Is there any other possible solution.

 

Regards

Rajinder

 

 

 

________________________________

From: Julien HENRY [mailto:[email protected]] 
Sent: Tuesday, June 09, 2009 4:55 PM
To: JWebUnit Development mail list
Subject: [JWebUnit-development] Re : JWebUnit-Help Needed

 

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

Reply via email to