Forum Discussion

shabar's avatar
11 years ago

[Resolved] Square Brackets in result output

Hi All

I am getting extra [] in my output with the following code

How can I get rid of this


def ui =

//get the xml reponse for the defined test step
def ResponseAsXml = context.expand( '${Simple Search#ResponseAsXml}')
def groovyUtils = new;
def holder = groovyUtils.getXmlHolder(ResponseAsXml);

def status= holder.getNodeValues("//GeocodeResponse//status") as String;
testRunner.testCase.testSuite.setPropertyValue( "result",status)

Expected result : OK
Actual result : [OK]