我很感兴趣是否有办法通过使用beforeRun()方法中的任何配置从扩展SoapUITestCaseRunner的类中启动Spring Boot Application。
If you want to start some other application from with soapui, then you can add the logic inside of Setup script
of the project.
Open your soapui project -> double click on the project -> go to Test Suites tab. Setup Script
button is available in the bottom.
Add the business logic to start your Spring Boot application into Setup Script
(shown in the below screen shot) which will be executed before running any of the test suites.
And you may also use TearDown Script
to shut down the application.
Based on the comment, below is the update:
Looks user wants to run the soapui project from within his/her own application.
Below is the java
code snippet to do so, which is taken from SoapUI's documentation .
SoapUITestCaseRunner runner = new SoapUITestCaseRunner();
//Change project path to suit your environment
runner.setProjectFile("/absolute/path/to/soapui-project.xml");
runner.setPrintReport(true);
runner.run();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.