MrMax
15 years agoOccasional Contributor
GroovyScript Call 2 Global Properties File
Hi,
Currently I have a groovyscript that calls from a text file endpoint IP and URL.
This is working fine so each time I wish to test on a different machine I just add the ip to the config text file.
My question is; for example if I add a username and password to config file, can I use a groovy script to populate
the global properties within soapui. So to be clear get the username and password from the text file and transfer to global properties within soapui.
Can someone provide me with some API code I assume of put me on the right track.
Regards
Max
Currently I have a groovyscript that calls from a text file endpoint IP and URL.
This is working fine so each time I wish to test on a different machine I just add the ip to the config text file.
My question is; for example if I add a username and password to config file, can I use a groovy script to populate
the global properties within soapui. So to be clear get the username and password from the text file and transfer to global properties within soapui.
Can someone provide me with some API code I assume of put me on the right track.
Regards
Max