Patches item #1041144, was opened at 2004-10-06 04:37
Message generated for change (Settings changed) made by henryju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497984&aid=1041144&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Ivan Jensen (ivan1976)
Assigned to: Jim Weaver (jimweaver)
Summary: jWebFit - submit form with two or more submit buttons

Initial Comment:
I found that I couldn't submit a form when there were 
two submit buttons.  The submit() method seemed to be 
checking the wrong cell to get the button to action.

Also included is a way of adding a comment row to a 
fixture.  Simply make the row's first column 
read "comment" and then the rest of the rows are 
ignored.

----------------------------------------------------------------------

>Comment By: Julien HENRY (henryju)
Date: 2006-06-16 16:36

Message:
Logged In: YES 
user_id=1235926

Sorry, but jWebFit should move in another project to make
jWebUnit easier to manage (like Webtest with HtmlUnit).
Perhaps someone that is using jWebFit could create a new
sourceforge project.

----------------------------------------------------------------------

Comment By: Ivan Jensen (ivan1976)
Date: 2004-10-06 23:30

Message:
Logged In: YES 
user_id=1133834

Jim,

Thanks for your response, It would appear that I was 
submitting my form using the wrong mechanism. I was using: 

|submit|run_report|

This was causing HttpUnit to throw a NPE.  I upgraded 
HttpUnit to 1.6 which told me that If I am going to submit a 
form with multiple submit buttons then I must provide the 
name of the button to press.  Obviously I was contorting the 
reflection to get (more) directly to the submit() method.

However, your suggested method:

|press|submit|run_report|

works fine.  Lack of knowledge about Fit on my part it would 
appear, once I send this I can see more reading coming up. 

Regarding the addition of comment() method.  I wanted inline 
comments to break up my test cases and group related 
tests.  I tried calling ignore() initiall, but had a problem 
with "variable count not found".  This may have been to do 
with an upgrade of Fitnesse/Fit I was compiling against.  It 
would appear that the Counts class has been refactored out 
of another class.  I have since tried calling ignore() again and 
it is performing how I though it should (rendering comment() 
useless).

I'm glad to hear you are working on some docs for the Fit 
plugin, I have struggled a bit so far (obviously).  I really like 
the whole concept of Fit and Fitnesse and really appreciate 
the effort you guys are putting in.

Cheers,

Ivan

----------------------------------------------------------------------

Comment By: Jim Weaver (jimweaver)
Date: 2004-10-06 17:29

Message:
Logged In: YES 
user_id=619947

Heya Ivan,

With regards to the submit problem, can you post your
complete fit table?  THe current code looks ok to me, and
passes its tests.  The syntax for submitting a named button
should look a lot like that for pressing a link:

|press|submit|buttonName|
|press|link|link text|

With regard to comment, why put your comments inline in the
fit table as opposed to just above the table?  Is that
something fit itself is supporting now?  Alternatively,
there is an ignore action that you can use in the existing code:

|ignore|my comment|

The entire row will be colored gray, which will make it
stand apart from the executable rows.

Thanks for your submissions, though, and I'm currently
working on documentation for using jWebUnit with fit /
Fitnesse that will hopefully be released on this site soon.

Jim

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497984&aid=1041144&group_id=61302


_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to