cancel
Showing results for 
Search instead for 
Did you mean: 

Start linux command in teststep

Highlighted
New Contributor

Start linux command in teststep

I would like to start a script on a linux server. This scripts takes care of sending documents which are received by a mock in SOAP.
We now need to start the script manually and would like to start this from the testcase.

We need the following:
1. Connect with linux server
2. Start a script on this server
3. Receive the documents which are send by this script in a mock.

The third step is already working but the first two steps we can't get it working.
3 REPLIES 3
Highlighted
Moderator

Re: Start linux command in teststep

Hi Jeroen,

 

Thank you for your post! Please check the following links which can be useful for you:

(Community) Running Linux command via Groovy

(stackoverflow) Groovy executing shell commands



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: Start linux command in teststep

Thank you Anastasia, I did find these topics. But I can't find a way to connect to the Linux server.

When I execute these commands the scripts gives an error that it can't find the file which it should execute.

 

Can you tell me how I connect to a Linux server from a groovy script?

 

Jeroen

Highlighted
Moderator

Re: Start linux command in teststep

Jeroen,

 

Ok, then, please check these topics:

http://www.randomactsofsentience.com/2012/02/using-groovy-script-to-ssh-tunnel-to.html

https://community.smartbear.com/t5/SoapUI-Open-Source/can-soapui-run-commands-on-a-unix-server/td-p/...



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors