什么是错误的设置环境的代码无法运行该代码成立之后TestNG的不运行
亲切指导它
package tc1;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class TC001 {
WebDriver driver;
@BeforeClass
public void launchBrowser(){
FirefoxDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(50000, TimeUnit.SECONDS);
}
@Test
public void login(){
driver.get("http://www.meritnation.com/testprep");
driver.findElement(By.className("login-link")).click();
//Thread.sleep(50000);
}
@AfterClass
public void browserClose(){
driver.quit();
}
}
有显示零游程和零故障运行TestNG的输入代码here
[TestNG的]运行: C:\用户\用户\应用程序数据\本地\ TEMP \ TestNG的-蚀 - 1256807320 \ TestNG的-customsuite.xml
===============================================默认的测试
测试运行:0,失败:0,跳过:0
============================ ===================默认套房
总测试运行:0,失败:0,跳过:0
[TestNG的]时间采取[FailedReporter通过= 0失败= 0跳过= 0]:3 ms
[TestNG]时间采取 [email protected]:1毫秒
[TestNG的]采取[email protected]时间:
[TestNG的]时间采取的56毫秒
[email protected]:26 毫秒[TestNG的]时间采取 [email protected]:9毫秒
[TestNG的]采取 org.testng时间.reporters.SuiteHTMLReporter @ 6bf2d08e:66 ms
你是如何引发的考验吗? –