Bugs item #981906, was opened at 2004-06-29 14:13
Message generated for change (Comment added) made by matani
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=981906&group_id=61302

Category: None
Group: None
Status: Closed
Resolution: None
Priority: 9
Submitted By: Saleh matani (matani)
Assigned to: Martijn Dashorst (dashorst)
Summary: clickbutton bug

Initial Comment:
the new Version of httpUnit include a bugfix witch use to 
be also fixed bei jWebUnit , i am talking here about 
clickbutton or assertbuttonpresent , this methods are 
implemented to search a button in a form tag , (form) , 
after the HTML 4.0 there is a new tag names <BUTTON> 
and it dose not need forms but with jwebunit and the 
current Release of http Unit there is no way to test 
buttons that are not in <form> tag , the bugfix ist 
allready checked in in the cvs Repository from httpUnit , 
thats mean , if you check out the httpunit and generate 
your jar file then you can work with buttons outer a form 
tag , but you need to make some changes in the 
jwebunit httpUnitDialog.java!
the changes are:


  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  // bugfix by Saleh Matani
  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 

  /**
   * @return the forms count in response
   */
  public int getFormCount()
  {
    try
    {
      int i = resp.getForms().length;
      return i;
    }
    catch (SAXException e)
    {
      e.printStackTrace();
    }
    return 0;
  }

  /**
   * Return the HttpUnit Button with a given id.
   *
   * @param buttonId
   */
  public Button getHtmlElementButton(String buttonId)
  {
    try
    {
      Button button = (Button) resp.getElementWithID
(buttonId);
      return button;
    }
    catch (SAXException e)
    {
      return null;
    }
  }

  public Button getFormButton(String buttonId)
  {
    int formCount = getFormCount();
    for (int i = 0; i < formCount; i++)
      if (getForm(i).getButtonWithID(buttonId) != null)
        return getForm(i).getButtonWithID(buttonId);
    return null;
  }

  public Button getButton(String buttonId)
  {
    Button button;
    button = getHtmlElementButton(buttonId);
    if (button != null)
      return button;
    button = getFormButton(buttonId);
    if (button != null)
      return button;
    return null;
  }

  // end bugfix by Saleh Matani !!!!!!!!!!!!!!!!!!!!!!!!!!!! 
  //for Developer! , Please check this code to cvs


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

>Comment By: Saleh matani (matani)
Date: 2004-09-06 11:49

Message:
Logged In: YES 
user_id=923609

i have closed this because there was a lot of changes after
i asked to check this in CVS , anyway , no body give me any
kind of feed back since fiew months , i realy do not know if
Admin and all developer still alive !!!! its realy agreate
framework but if thy do not give a chance for other
developer to work with then...

i did make the changes and also alot of bugfixes by me
,logging is also working good ! if somebody need the jars
then mail me  , i have also the Bug fixed httpUnit version ..

bye !!!


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

Comment By: Saleh matani (matani)
Date: 2004-09-06 11:49

Message:
Logged In: YES 
user_id=923609

i have closed this because there was a lot of changes after
i asked to check this in CVS , anyway , no body give me any
kind of feed back since fiew months , i realy do not know if
Admin and all developer still alive !!!! its realy agreate
framework but if thy do not give a chance for other
developer to work with then...

i did make the changes and also alot of bugfixes by me
,logging is also working good ! if somebody need the jars
then mail me  , i have also the Bug fixed httpUnit version ..

bye !!!


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

Comment By: Saleh matani (matani)
Date: 2004-09-01 14:57

Message:
Logged In: YES 
user_id=923609

Hello  all Admins  , i would like to ask  how long time it
takes to check this fix to CVS Repository ? its really not
easy to merge my fixes with the new fixes of the SourceForge
jwebUnit CVS !

may i get any Feedback from you please ???

thanks again

Saleh Matani


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

Comment By: Saleh matani (matani)
Date: 2004-06-29 14:45

Message:
Logged In: YES 
user_id=923609

this test case success with bug fix and fail with the Realease 
1.2 and httpUnit 1.5.4

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

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to