org.junit.Assert;import org.junit.runner.RunWith;import org.junit.runners.Parameterized.Parameters;
public class QtyByParam我在Type mismatch: cannot convert from Class<P
我试图使用Junit运行跨浏览器测试(从xml文件中读取),并得到以下错误:
**"java.lang.Exception: Method verifyTitle should have no parameters at org.junit.runners.model.FrameworkMethod.validatePublicVoidNoArg(FrameworkMethod.java:69) at org.junit.runners.ParentRunner.validatePublicVoidNoArgMethods(ParentRunner.java:131) at org.j
<init>(BlockJUnit4ClassRunner.java:57) at org.junit.runners.Parameterized.createRunnersForParameters(Parameterized.java:319)
at org.junit.runners.Param
错误消息看起来像org.junit.runners.Parameterized.parametersMethodReturnedWrongType(Parameterized.java:340).请帮帮忙at org.junit.runners.Parameterized.parametersMethodReturnedWrongType(Parameterized.java:340)
at org.junit.runners.Parameterized.allParameters(Par