SOAPUI:从命令行中的不同项目testrunner更新时,全局属性未保存 [英] SOAPUI: Global properties not getting saved when updated from different project testrunner in command line

查看:127
本文介绍了SOAPUI:从命令行中的不同项目testrunner更新时,全局属性未保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SOAP UI中有三个不同的项目,并且都共享一个相同的全局属性。通过Groovy脚本,我需要使用testrunner从命令行执行这三个项目中的测试套件。第一个项目创建一个全局属性,当第二个项目中的测试套件得到执行时,全局属性为空。我试图在命令行中使用(S)来保存项目,但仍然是同样的问题。当我手动执行这三个项目的groovy脚本时,它工作正常。

解决方案

SoapUI处理内存中的所有内容。

您的GUI测试,您可以一次加载多个项目。由于它们都在内存中,因此它们可以在它们自己之间共享属性。



当您从CLI运行测试时,只能引用一个项目来自testrunner的一段时间。因此,多个项目不能共享数据。



您将不得不重新设计您的测试方法。您没有明确指定您如何运行测试,以及您正在尝试完成什么。但是你可能能够通过一个环境变量传递信息。请参阅文档


I have three different projects in SOAP UI and all share a same global property. Through a Groovy script, I need to execute the test suites in these three projects from command line using testrunner. First project creates a global property and when the test suite in the second project gets executed, the global property is coming as null. I have tried using (S) in the command line to save project but still the same issue. When I manually execute the groovy scripts of these three projects, it works fine.

解决方案

SoapUI processes everything in memory.

When you are running your tests from the GUI, you are able to load multiple projects at a time. Since they are all in memory, they are able to share properties between themselves.

When you are running your tests from the CLI, you are able to reference only one project at a time from the testrunner. Therefore multiple projects cannot share data.

You will have to redesign your test approach. You did not explicitly specify how you are running your tests, and what you are trying to accomplish. But you might be able to pass the information through an environment variable. See documentation.

这篇关于SOAPUI:从命令行中的不同项目testrunner更新时,全局属性未保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆