我在使本測試案例正常工作時遇到問題。任何人都可以將我指向正確的方向嗎?我知道我做錯了什麼,我只是不知道。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();
// Thread.sleep(500000);
}
}
而且,我發現了以下錯誤:
junit.framework.AssertionFailedError: No tests found in register
at jumnit.framework.TestSuite$1.runTest(TestSuite.java:97)
我難倒。