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