Edgar Balderas
Edgar Balderas

Reputation: 23

Get SoapUI version at runtime

How can I get the SoapUI version on which the test case was run with Groovy script? I need to log by policy how the testing was executed, including the software used to run the test cases.

Something similar to this to get Java version:

String javaVersion = System.getProperty("java.version")
// Set something like "11.0.12"

Upvotes: 0

Views: 283

Answers (1)

daggett
daggett

Reputation: 28599

https://www.soapui.org/apidocs/5.5.0/com/eviware/soapui/SoapUI.html#SOAPUI_VERSION

log.info('version: '+com.eviware.soapui.SoapUI.SOAPUI_VERSION)

output:

INFO:version: 5.5.0

Upvotes: 1

Related Questions