- 授权协议: GPL
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://jwebunit.sourceforge.net/
- 软件文档: http://jwebunit.sourceforge.net/quickstart.html
软件介绍
jWebUnit 是基于java的测试网络程序的框架。它提供了一套测试见证和程序导航标准。jWebUnit 有JUnit和HttpUnit 实现。
示例代码:
public class ExampleWebTestCase extends WebTestCase {
public void setUp() {
super.setUp();
setBaseUrl("http://localhost:8080/test");
}
public void test1() {
beginAt("/home");
clickLink("login");
assertTitleEquals("Login");
setTextField("username", "test");
setTextField("password", "test123");
submit();
assertTitleEquals("Welcome, test!");
}
}
