简体   繁体   English

SoapUI:如何从外部文件包含Java文件(而非Jar文件)

[英]SoapUI: how to include Java file (not Jar file) from external file

similar to " SoapUI: How to include Groovy script from an external file " 类似于“ SoapUI:如何从外部文件包含Groovy脚本

how can I import/include .java files in groovy step (not .jar file). 如何在Groovy步骤中导入/包括.java文件(而不是.jar文件)。 The reason we want this is because if we create .jar and loose code somehow, any updates are very much problematic. 我们之所以想要这样做,是因为如果我们以某种方式创建.jar和松散的代码,那么任何更新都会有很大的问题。

Thanks in advance. 提前致谢。

using open source version of soapui 使用soapui的开源版本

由于Java 99%的源与Groovy兼容,因此您可以将.java文件重命名为.groovy,然后按照链接的文章中的说明进行操作。

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

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