Thanks for the reply. When I try that I get
  Mar 7, 2007 10:30:11 AM net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog$1 
webWindowContentChanged
  INFO: Window "" changed : "no_html" became "no_html"
   
  I also see Java.lang.ClassCastException 
com.gargoylesoftware.htmlunit.UnexpectedPage.
  

Julien HENRY <[EMAIL PROTECTED]> wrote:
          Hi,

setBaseUrl should be used to avoid writing base url each time.

Try this:
  public void setUp() {
  setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT);
  getTestContext().setBaseUrl("http://localhost:8080/cc/";);
  }
  public void testSearch() throws Exception {
  beginAt("/MyApp.do");


  ----- Message d'origine ----
De : Modha Kumar <[EMAIL PROTECTED]>
À : jwebunit-users@lists.sourceforge.net
Envoyé le : Mercredi, 7 Mars 2007, 17h18mn 14s
Objet : [JWebUnit-users] setBaseUrl problem

  Hi All
   
  How can I avoid Jwebunit appending / at the end of url
   
  http://localhost:8080/cc/MyApp.do works however when url is changes to
  http://localhost:8080/cc/MyApp.do/ it does not.
   
  Here is my program. Now i get http status 404 because of / appended at end.
   
  public void setUp() {
  setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT);
  getTestContext().setBaseUrl("http://localhost:8080/cc/MyApp.do";);
  }
  
  public void testSearch() throws Exception {
  beginAt("/");
  assertFormPresent("mainForm");
  setTextField("user", "su");
  setTextField("pass", "pass");
  clickButtonWithText("Login");
   
  Please let me know.
   
  Thanks
  -------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
  _______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users






  
---------------------------------
  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! 
Questions/Réponses.-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to