javaAssert失败,即使预期值和实际值相同

4ioopgfo  于 2021-06-29  发布在  Java
关注(0)|答案(0)|浏览(252)
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]

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题