public class testRunner {
@Test
public void soapUi() throws XmlException, IOException, SoapUIException
{
WsdlProject project=new WsdlProject("C:\\Users\\ALTAF MANSURI\\Documents\\EmployeePortal-soapui-project.xml");
WsdlTestSuite testsuite=project.getTestSuiteByName("Testing");
for(int i=0;i<testsuite.getTestCaseCount();i++)
{
WsdlTestCase testCase=testsuite.getTestCaseAt(i);
TestRunner runner=testCase.run(new PropertiesMap(), false);
int statusCode = runner.getStatusCode();
Assert.assertEquals(com.eviware.soapui.model.iface.Submit.Status.FINISHED, runner.getStatus());
}
}
}
我得到以下错误:
[remotetestng]检测到testng版本6.14.2 `失败:soapui java.lang.assertionerror:应为[finished],但找到[finished]
暂无答案!
目前还没有任何答案,快来回答吧!