Groovy

  • 12
    Jun

    Getter dependency for Cucumber scenarios with Picocontainer

    Step 1: Create Maven project with following POM.xml =================================================== UTF-8 UTF-8 1.8 1.8 4.2.6 3.141.59 6.5.1 io.cucumber cucumber-picocontainer 4.3.1 test org.testng testng ${testng.version} test io.cucumber cucumber-java ${cucumber.version} test io.cucumber...

    Read More
  • 24
    Apr

    Read CSV file as library file in SoapUI

    Step 1:  create a groovy file on your file system (say: C:\\SRTemp\\abc.txt) —————————————————————————– TESTCASENO,COUNTRY,CAPITAL TC004,0152935633,2019-05-05 Step 2: create a CSVReader.groovy with following contents: ———————————————————– class CSVReader { String hello(TestCaseNumber)...

    Read More
  • 24
    Apr

    Read csv file in groovy

    following code snippet can be used to read csv file in groovy language   // Define your Test Case number and “Test Data file in next two lines testRunner.testCase.setPropertyValue(“TestCaseNo”,”TC004″)...

    Read More