在我的SoapUI工作区上,我有几个项目。
它们中的每一个都可能包含一个或多个测试套件,以及几个测试用例
展开每个项目,然后打开测试套件,运行它,打开下一个等等,这是相当耗时的。我这样做是为了在本地测试,然后再次测试测试框
有没有一种方法可以让我在SoapUI工作区中一键运行所有测试?
发布于 2010-08-26 08:44:51
您可以只使用命令行编写一个脚本来运行所有测试。
例如,如果您有两个项目,Project1和Project2,每个项目都包含两个测试套件,您可以编写一个简单的脚本,如下所示:
#!/bin/bash
./testrunner.sh -sUnitTesting -f Project1-soapui-project.xml
./testrunner.sh -sUnitTesting2 -f Project1-soapui-project.xml
./testrunner.sh -sotherTests -f Project2-soapui-project.xml
./testrunner.sh -sotherTests2 -f Project2-soapui-project.xml发布于 2010-08-24 00:07:15
我还没有找到在ver中的方法。3.5.1。
您可以通过执行以下操作来节省一点时间:
双击项目,单击"Test Suites“选项卡,单击RUN按钮。
这将运行项目中的所有套件。
发布于 2014-11-24 15:55:26
在Windows (CMD)上使用:
@echo off
set SOAPUI_HOME=C:\DevTools\soapui\SoapUI-Pro-5.0.0
call %SOAPUI_HOME%\bin\testrunner.bat -sUnitTesting -f Project1-soapui-project.xml
call %SOAPUI_HOME%\bin\testrunner.bat -sUnitTesting2 -f Project1-soapui-project.xml
call %SOAPUI_HOME%\bin\testrunner.bat -sotherTests -f Project2-soapui-project.xml
call %SOAPUI_HOME%\bin\testrunner.bat -sotherTests2 -f Project2-soapui-project.xmlhttps://stackoverflow.com/questions/3548769
复制相似问题