Forum Discussion

easyfish's avatar
easyfish
Contributor
10 years ago

How to set value smartly in test step in data-driven testing?

Hi,

 

Vi have soapui test steps and would like to convent to data-driven testing.  To take value from data source, now I manually copy and paste ${DBDataSource#value1}, ${DBDataSource#value2} to the corresponding field of request and result.  It is really time-consuming. Do you have any tips?  Can I use any groovy script to change the value of the request and result in test step? Do you have any groovy script example?

 

Thanks for your kind support in advance!

 

 

3 Replies

  • If you're using SoapUI NG Pro, the Point and Click Testing will allow you to map your DataSource properties to inputs in your requests with the click of a button.

     

    For more information, please see this document.

    • easyfish's avatar
      easyfish
      Contributor

      Thanks for your reply!

      While it takes more time to click and point from get data option than copy and paste, since I have to select from project - test suite- test case- test step- datasource - columns.

       

      Do you have any tips?  Thanks! 

      • easyfish's avatar
        easyfish
        Contributor

        I tried to clone data source and soap request. The usage helps.