小编Sat*_*hed的帖子

junit.framework.AssertionFailedError:在寄存器中找不到测试

我在使这个测试用例工作时遇到了问题.谁能指出我正确的方向?我知道我做错了什么,我只是不知道是什么.

import org.junit.*;
import com.thoughtworks.selenium.*;
import org.openqa.selenium.server.*;

@SuppressWarnings("deprecation")

public class register extends SeleneseTestCase {

  Selenium selenium;
  private SeleniumServer seleniumServer;
  public static final String MAX_WAIT = "60000";
  public final String CRN = "12761";

  public void setUp() throws Exception {
    RemoteControlConfiguration rc = new RemoteControlConfiguration();
    rc.setAvoidProxy(true);
    rc.setSingleWindow(true);
    rc.setReuseBrowserSessions(true);

    seleniumServer = new SeleniumServer(rc);
    selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://google.com/");
    seleniumServer.start();
    selenium.start();
  }

  @Test
  public void register_test() throws Exception {
    //TESTS IN HERE
  }

  @After
  public void tearDown() throws Exception {
    selenium.stop();
    // …
Run Code Online (Sandbox Code Playgroud)

junit selenium selenium-rc

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

junit ×1

selenium ×1

selenium-rc ×1