下面是我的跑步者类文件
package Runners;
import java.io.File;
import java.util.Properties;
import org.junit.runner.RunWith;
import org.testng.annotations.AfterClass;
import com.cucumber.listener.Reporter;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions( strict=true
,features={"C:\\Users\\Narendra\\workspace\\Grab_On\\Features\\Bank_Filter.feature"},
plugin={"pretty:STDOUT","C:\\Users\\Narendra\\workspace\\Grab_On\\Reports\\Cucumber-pretty",
"json:C:\\Users\\Narendra\\workspace\\Grab_On\\Reports\\Cucumber-json",
"com.cucumber.listener.ExtentCucumberFormater:C:\\Users\\Narendra\\workspace\\Grab_On\\Reports\\Cucumber-extent\\report.html"
},
glue = {"Scripts"}
,dryRun=false
)
public class Bank_Filter_Runner {
@AfterClass
public static void reportsetup()
{
Reporter.loadXMLConfig(new File("src/test/java/Resources/extent-config.xml"));
Properties p=System.getProperties();
p.list(System.out);
/*
Reporter.setSystemInfo("User Name", System.getProperty("User.name"));
Reporter.setSystemInfo("Time Zone", System.getProperty("User.timezone"));
Reporter.setSystemInfo("64 Bit", "Windows 7");
Reporter.setSystemInfo("2.53.0", "Selenium");
Reporter.setSystemInfo("3.5.0", "Maven");
Reporter.setSystemInfo("1.8.0_151", "Java Version");
Reporter.setTestRunnerOutput("Cucumber JUnit Test Runner");
*/
}
}
当我执行它时,我收到一个错误,如下所示:
cucumber.runtime.CucumberException:无法加载插件类:C
请有人帮助我...