Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么Linux上的java在“延迟”测试步骤中杀死Soap UI的testrunner.sh?_Java_Linux_Soapui - Fatal编程技术网

为什么Linux上的java在“延迟”测试步骤中杀死Soap UI的testrunner.sh?

为什么Linux上的java在“延迟”测试步骤中杀死Soap UI的testrunner.sh?,java,linux,soapui,Java,Linux,Soapui,我有一个带有简单测试套件的Soap UI项目: 第一步:等待1分钟 第二步:循环到第1步 我想从命令行在testrunner.sh中运行它: testrunner.sh -s"TestSuite" -f. test-soapui-project.xml 在第一个测试步骤中几秒钟后,它总是崩溃,并显示以下消息: SoapUI 5.0.0 TestCase Runner 21:31:19,441 INFO [DefaultSoapUICore] Creating new settings at

我有一个带有简单测试套件的Soap UI项目:

第一步:等待1分钟 第二步:循环到第1步 我想从命令行在testrunner.sh中运行它:

testrunner.sh -s"TestSuite" -f. test-soapui-project.xml
在第一个测试步骤中几秒钟后,它总是崩溃,并显示以下消息:

SoapUI 5.0.0 TestCase Runner
21:31:19,441 INFO  [DefaultSoapUICore] Creating new settings at [/usr/home/me/soapui-settings.xml]
21:31:20,076 INFO  [WsdlProject] Loaded project from [file:/usr/home/me/soapui-workdir/test-soapui-project.xml]
21:31:20,219 INFO  [SoapUITestCaseRunner] Running SoapUI tests in project [Test]
21:31:20,219 INFO  [SoapUITestCaseRunner] Running TestSuite [TestSuite], runType = SEQUENTIAL
21:31:20,226 INFO  [SoapUITestCaseRunner] Running SoapUI testcase [Test]
21:31:20,227 INFO  [SoapUITestCaseRunner] running step [Wait 1 Minute]
/usr/home/me/SoapUI-5.0.0/bin/testrunner.sh: line 57: 18171 Killed                  java $JAVA_OPTS -cp $SOAPUI_CLASSPATH com.eviware.soapui.tools.SoapUITestCaseRunner "$@"
我的问题是:

有人能复制这个吗?延迟是否不打算用于更长的时间?否则我怎么能等到我在测试中执行下一个请求呢

要导入到Soap UI的项目xml:

++更新:++


当我删除循环步骤时,行为完全相同。testrunner.sh在1分钟延迟结束前崩溃。

请注意,在条件转到步骤中,您提供了条件XPath表达式。XPath是针对上一步上下文执行的。在您的例子中,延迟步骤没有任何可以表示为XPath的上下文,因此testrunner失败。严格地说,这可能是SoapUI中的一个bug

如果您想反驳这一点,您可以在延迟和条件转到之间插入一些请求步骤,这将有任何响应


这确实是除Groovy脚本之外的一种在SoapUI中造成延迟的首选方法。

实际上,这不是一个完整的最小示例。第二步不需要演示该行为。在soupUI前端,相同的测试项目与预期的一样有效。好的,我将很快进行测试。关于你的问题:我需要两个测试步骤之间的延迟;我还有什么其他的可能性?请注意,这只是一个很小的例子。在我的实际项目中,我总是在循环之前有一个soap请求。行为是一样的…确保生成响应的步骤紧跟在条件转到之前。这很奇怪。我在测试中使用了长达5分钟的延迟,没有问题。我唯一的建议是:升级SoapUI,看看它是否仍然存在。我使用的是5.0.0。有更新的版本吗?我现在更倾向于服务器配置的方向。这是一个web服务器,可能有一些限制。。。
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="Test" resourceRoot="" soapui-version="5.0.0" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:testSuite name="TestSuite"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Test" searchProperties="true"><con:settings/><con:testStep type="delay" name="Wait 1 Minute"><con:settings/><con:config><delay>60000</delay></con:config></con:testStep><con:testStep type="goto" name="loop"><con:settings/><con:config xsi:type="con:GotoStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:condition><con:name>loop allways</con:name><con:type>XPATH</con:type><con:expression>0=0</con:expression><con:targetStep>Wait 1 Minute</con:targetStep></con:condition></con:config></con:testStep><con:setupScript/><con:tearDownScript/><con:properties/></con:testCase><con:properties/><con:setupScript/><con:tearDownScript/></con:testSuite><con:properties/><con:wssContainer/><con:oAuth2ProfileContainer/></con:soapui-project>