Ask a Question

Automated download of dependencies

SOLVED
Ofer-Yaniv
New Contributor

Automated download of dependencies

Hi 

 

We are using SoapUI 5.6.0 CLI for executing tests.

The tests include groovy source code that is importing org.apache.poi.xssf.usermodel

 

Can the SoapUI CLI tool automatically download the test dependencies before executing the tests?

 

Thanks

 Ofer

1 ACCEPTED SOLUTION

Accepted Solutions
nmrao
Community Hero

Re: Automated download of dependencies

5 REPLIES 5
nmrao
Community Hero

Re: Automated download of dependencies

You mean, are you using @Grab annotation in groovy scripts?
Download and copy Apache-Ivy library under SOAPUI_HOME/bin/ext directory
https://repo1.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar


Regards,
Rao.
Ofer-Yaniv
New Contributor

Re: Automated download of dependencies

Hi Rao

 

Thank you for the prompt response.

 

I am not familiar with the @Grab annotation in groovy scripts.

 

I would like to integrate the SoapUI CLI tool in a CI/CD pipeline for automated execution of SoapUI tests.

I would like to avoid manual download steps of the required dependencies - before the execution of any new SoapUI test.

 

Would the @Grab annotation automatically download the dependencies jar files into the bin/ext folder of SoapUI?

What is the Apache-Ivy used for?

Thanks
  Ofer

nmrao
Community Hero

Re: Automated download of dependencies

1. apache-ivy library should be manually downloaded and copy in the given location.
2. Regarding @Grab, yes, it downloads automatically the dependencies provided step 1 is done.
3. Below is sample to get the dependencies for apache-poi libraries. This should be first line in your groovy script.
@Grab('org.apache.poi:poi:4.1.2')


Regards,
Rao.
nmrao
Community Hero

Re: Automated download of dependencies

Ofer-Yaniv
New Contributor

Re: Automated download of dependencies

Thank you Rao for the excellent support!

 

I would definitely try that while integrating SoapUI into our CI/CD pipeline.

cancel
Showing results for 
Search instead for 
Did you mean: