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]>
À : [email protected]
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
[email protected]
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 
http://fr.answers.yahoo.com
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to