Hi,

JWebUnit is not supposed to have a GUI (especially when used with HtmlUnit 
plugin). You can try Selenium plugin I started to develop but it is still 
experimental, and the JWebUnit API is not totally supported.

Regards,
Julien

----- Message d'origine ----
De : malathi gopalan <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Samedi, 3 Novembre 2007, 0h14mn 50s
Objet : [JWebUnit-users] Unable to view the UI while using JWebUnit to test it

Hi,

I am using JWebUnit1.4.1. I am able to test my web
application, but I am not able to view the GUI while
it is tested.

Attached is the JWebUnit test.

I would appreciate your help.

Thanks in advance.

package com.mystock.jwebunit;

import net.sourceforge.jwebunit.junit.WebTestCase;
import
net.sourceforge.jwebunit.util.TestingEngineRegistry;
import
net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog;
import net.sourceforge.jwebunit.html.*;

import junit.framework.TestSuite;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class SampleJWebUnit extends WebTestCase
{
   public void setUp()
   {
      
getTestContext().setBaseUrl("http://localhost/mec/app";);
   }
   
   public void testSearch()
   {
       beginAt("/login.html");
       assertTextPresent("User Name:");
       assertTextPresent("Password:");
       
       //set the login form parameters
       setTextField("username", "admin");
       setTextField( "password", "main");
       
       submit("login");
       
       assertTextPresent("Current License"); 
       
       clickLinkWithText("continue");
       assertTextPresent("Events");
              
   }
}

Malathi


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users





      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to