Forum Discussion

twozedz's avatar
twozedz
Occasional Contributor
8 years ago
Solved

HI i need to setup datasink using groovyscript

HI I have soapui pro 

I have a project with a large number of test cases.

Using groovy script i need to add a datasink test step to each test case which will write response values to excel.

 

I do not want to manually go and add datasink test step in each test case. 

 

So where do i start? 

 

Thanks in Advance.

 

 

7 Replies

  • testhrishi's avatar
    testhrishi
    Frequent Contributor

    Ok, where you planning to add groovi script though?

    I guess I am trying to understand the purpose of writing each response to excel before I can suggest something here.

    I would recommend using datasink in case of need to produce mass data.

    Other than that for automation why would you like you preserve each and every run results every time test runs on top of test logs and results?

    • twozedz's avatar
      twozedz
      Occasional Contributor

      Hi testthrishi

       

       

      I need to use the groovyscript in Project1 to clone the datasink step from Project1 into all of the test cases in Project2.

       

      Project1

      TestCase1

      Teststep1

      Datasink

      GroovyScript

       

       

      Project2

      TestCase1

       

      TestCase2

       

      TestCase3

       

       

       

       

       

      Can this be done? I can hardly see any books online that teach this stuff? DO you know of any good resources? I am good with Java but i just am having trouble with groovyscript syntax for soapui