Forum Discussion

udaynegi31's avatar
udaynegi31
New Contributor
13 years ago

Code for printing the test step in a file

Hi All,

I need your help as from past few days I am trying to write the code to get the status of each test step in file using SOAPUI (in groovy script). Can anybody help me on this issue, asap.

Thanks in advance.

3 Replies

  • SiKing's avatar
    SiKing
    Community Hero
    Forget the implementation, describe the problem you are trying to solve.
  • udaynegi31's avatar
    udaynegi31
    New Contributor
    Hi,

    First of all thanks for replying.
    I am able to solve this problem but I got one more problem which aroused during the course of my work. I want to create a property using groovy script and use it further in my process. Can you help?

    This is the code for creating a property:
    def userIdInStep = testRunner.testCase.getTestStepByName("Properties" )
    // def userIdStr = userIdInStep.getPropertyValue( "name" );
    userIdInStep.setPropertyValue("name", "abc")


    Now I want to use it further in my process, how to use this property created in groovy? Please do the needful asap.

    Thanks in advance