java.lang.Exception: TestCase [测试用例名称] 失败,没有断言
java.lang.Exception: TestCase [Test case name] failed without assertions
正在获取 java.lang.Exception:尝试从 eclipse
执行 soap ui 测试用例时,测试用例 [测试用例名称] 失败且没有断言
SOAPUI->在 soapUi 中创建了一个测试用例并保存了项目 "testcase.xml"
eclipse->创建了一个新项目并打开了步骤 1xml 中保存的项目
引用了本教程
https://selenium-qa.com/2018/03/23/soapui-with-bdd-cucumber/
Java 用于 运行 soap 测试用例的代码
SoapUITestCaseRunner SoapUITestCaseRunner= new SoapUITestCaseRunner();
SoapUITestCaseRunner.setProjectFile("resource\testcase.xml");
SoapUITestCaseRunner.setTestSuite("TestSuite");
SoapUITestCaseRunner.setTestCase("TestCaseName");
SoapUITestCaseRunner.run();
执行上述代码时出现以下错误。
log4j:WARN No appenders could be found for logger (com.eviware.soapui.tools.SoapUITestCaseRunner).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.lang.Exception: TestCase [testcasename] failed without assertions
at com.eviware.soapui.tools.SoapUITestCaseRunner.run(SoapUITestCaseRunner.java:392)
at soaptest.executeSOAP.main(executeSOAP.java:37)
检查教程步骤 'add assertions',看来您的测试缺少它们。
直接 运行 来自 java
的肥皂项目
ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/C", "Start","C:/Users/Soap.bat");
System.out.println("T2");
File dir = new File("C:\Users\ExpediaExamples");
pb.directory(dir);
Process p = pb.start();
正在获取 java.lang.Exception:尝试从 eclipse
执行 soap ui 测试用例时,测试用例 [测试用例名称] 失败且没有断言SOAPUI->在 soapUi 中创建了一个测试用例并保存了项目 "testcase.xml"
eclipse->创建了一个新项目并打开了步骤 1xml 中保存的项目
引用了本教程 https://selenium-qa.com/2018/03/23/soapui-with-bdd-cucumber/
Java 用于 运行 soap 测试用例的代码
SoapUITestCaseRunner SoapUITestCaseRunner= new SoapUITestCaseRunner();
SoapUITestCaseRunner.setProjectFile("resource\testcase.xml");
SoapUITestCaseRunner.setTestSuite("TestSuite");
SoapUITestCaseRunner.setTestCase("TestCaseName");
SoapUITestCaseRunner.run();
执行上述代码时出现以下错误。
log4j:WARN No appenders could be found for logger (com.eviware.soapui.tools.SoapUITestCaseRunner).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.lang.Exception: TestCase [testcasename] failed without assertions
at com.eviware.soapui.tools.SoapUITestCaseRunner.run(SoapUITestCaseRunner.java:392)
at soaptest.executeSOAP.main(executeSOAP.java:37)
检查教程步骤 'add assertions',看来您的测试缺少它们。
直接 运行 来自 java
的肥皂项目ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/C", "Start","C:/Users/Soap.bat");
System.out.println("T2");
File dir = new File("C:\Users\ExpediaExamples");
pb.directory(dir);
Process p = pb.start();