Forum Discussion

senthil1's avatar
senthil1
Occasional Contributor
9 years ago

Groovy script to create Test cases with test steps

Hi 

I am trying to create 50 Test cases. I need to change only few parameters in each test step. I am requiring to create a groovy script which creates Test Cases. Is there any link which I can refer to?

 

Regards

Senthil

7 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Can you please elaborate your use case?
    • senthil1's avatar
      senthil1
      Occasional Contributor

      Hi 

       

      I need to create 50 test cases like the test case in the image, with change in values with Properties test step. If I have a groovy to do this, without manually creating each test case with change in properties file.   

       

       

      • nmrao's avatar
        nmrao
        Champion Level 3
        I am not sure if the problem I got it right.

        Is not it candidate for the data driven instead of copying them to 50 times?
  • senthil1's avatar
    senthil1
    Occasional Contributor

    Hi

     

    I was away, and I was not able to respond earlier.

     

    with one testcase created manually in the testsuite, I took the testcase.xml and modified, created copies. This works for me. I can do semi automatic now, which is ok for me. 

     

    Regards,

    Senthil