Forum Discussion

vijaydi's avatar
vijaydi
Contributor
13 years ago

clear all property values using groovy script

Could anyone please help me with the groovy code to clear all property values for properties created in the datasink step.

Thank you.

1 Reply

  • Jasper175's avatar
    Jasper175
    Frequent Contributor
    Depends where your script is located so you may need to change the path...

    Example In a TestCase TearDown Script for a DataSink within:

    Syntax: testCase.getTestStepByName("<DataSinkName>").setPropertyValue( "<fieldName>", "<value>" )
    Example:
    testCase.getTestStepByName("DataSink").setPropertyValue( "field1", "" )


    That will set the field named "field1" to blank

    Rob