简体   繁体   English

如何在 SoapUI 中从 API 访问属性

[英]How do I access properties from API in SoapUI

I run a testcase in SoapUI from Java with testrunner API and pass a PropertiesMap with a key and value.我使用测试运行程序 API 在 SoapUI 中从 Java 运行一个测试用例,并传递一个带有键和值的 PropertiesMap。 However this does not get passed to the test and the execution of the XML passed to the endpoint obviously fails.然而,这并没有通过测试,并且传递给端点的 XML 的执行显然失败了。 What action should I take in either the SoapUI project or from the API for this to work as intended?我应该在 SoapUI 项目或 API 中采取什么措施才能按预期工作?

Apparently this only works with the insanely expensive readyAPI (formerly SoapUI Pro) The work around solution is to write a file from Java, call the SoapUI case and have a Groovy script in SoapUI read the file显然这只适用于极其昂贵的readyAPI(以前的SoapUI Pro)解决方案是从Java写入一个文件,调用SoapUI案例并在SoapUI中使用Groovy脚本读取文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM