Forum Discussion
What I am trying to create out here is:
From a Team City job, soapui is started on whatever build\test server - in this case something Win10 based because Azure mount only works from Win10 and not Win7.
So Soapui starts up.,
*** STEP I need: Groovy script executes .bat file to mount Azure file storage
Test script runs to perform Request that will generate some files that are stored on Azure side
Groovy script will copy over Azure storage files to local side
-- again how to get execute() to work from Groovy script
Groovy script to do some verification for what test case needs
Groovy script to remove files\mount (Optional depending on how the server acts when a Team City job is done)
So mounting has to occur when SoapUI is executed whereever Team City directs it.
So at this point is just trying to get Groovy script to actually execute something that works correctly
and not some java error back or nothing happening at all.
Manually the .bat to mount and unmount works
So above is the general concept.
https://stackoverflow.com/questions/7112259/how-to-execute-windows-commands-using-java-change-network-settings
- jkrolczy4 years agoRegular Contributor
Still never got to work.
I'll will have to play with more.
I find it interesting that mounting a drive locally that from a SoapUI session that the Groovy script cannot detect this locally mounted drive to Azure.
Optional direction for me:
Looking into accessing the Azure Portal with Azure REST APIs.
Trying to figure out how to do in open source SoapUI.