0

I am using SOAP UI for API test . Recently I created a testcase using REST REQUEST, send request params using groovy script like below images.

enter image description here

enter image description here

But how to pass Request params (version and authProvider ) dynamically in one testcase . Is it Possible in SOAP UI ?

Same scenerio i did in Spock test by WHERE block.

enter image description here

FirstTime version - "v1" and authProvider - "Salesforce" SecondTime version - "v2" and authProvider - "Bullhorn"

Is it possible in SOAPI UI? or need to write another testcase for different request?

maha lakshmi
  • 57
  • 1
  • 2
  • 9
  • You may need to use data driven approach in order to achieve the same. It appears that this post is similar to http://stackoverflow.com/questions/40402086/groovy-script-automatic-request-and-saving-response-from-soap-ui. so please check if that is useful. – Rao Nov 20 '16 at 16:22
  • Thanks Rao for your quick response. (http://stackoverflow.com/questions/40402086/groovy-script-automatic-request-and-saving-response-from-soap-ui) in this post, using file content as request . for example , order.txt - first time ,orderId as 34 again i will check different orderId means (56,54..) ,need to change the file content of order.txt right? – maha lakshmi Nov 22 '16 at 05:32
  • You need to have all the data that you would like to iterate with in the data source file. – Rao Nov 22 '16 at 05:33
  • I am using SOAP UI (Open Source ) not a PRO edition. Data source option is only available in PRO edition . – maha lakshmi Nov 22 '16 at 06:23
  • That is right, the link provided in the first comments handle the data source using groovy script. – Rao Nov 22 '16 at 06:24
  • Any option to send request dynamic without data source in SOAP UI (Open source ) ? – maha lakshmi Nov 22 '16 at 07:00
  • That was contradictory. – Rao Nov 22 '16 at 07:37

0 Answers0