Forum Discussion

sakthivel's avatar
sakthivel
Contributor
7 years ago

SOAP JDBC request using Groovy Script

Hi,

      How to Create SOAP JDBC request Using Groovy Script.  Would you please some give simple example/ I am new to SOAP UI Automation. I really need some help. Thanks in Advance.

 

 

Thanks

Sakthi

 

 

2 Replies

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi Sakthi,

     

    Thank you for your post. You can start with the following: 

    Using JDBC Drivers From Scripts: https://support.smartbear.com/readyapi/docs/testing/scripts/samples/jdbc.html

     

    To set the JDBC connection string for the JDBC request Test Step, you can use the following script:

     

    for (ts in testSuite.project.getTestSuiteList()) {
    log.info ts.name
    for (tc in ts.getTestCaseList()) {
    for(testStep in tc.getTestStepList()) {
    if(testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.ProJdbcRequestTestStep) {
    testStep.setConnectionString(someConnectionString)
    }
    }
    }
    }
    
    • sakthivel's avatar
      sakthivel
      Contributor

      Thank you for help. I will try it and let you know. Again Thanks Lot