1

I have a Test Case called "testCaseOne"

It contains three Test Steps:

"AMFrequestOne"

"propertyTransfer"

"AMFrequestTwo"

"AMFrequestOne" creates a database object.

"propertyTransfer" sends the ResponseAsXml to a temporary property in "testCaseOne" called "tempProp".

I need to reference "tempProp" in a script inside of "AMFrequestTwo"

I've tried the following

def temp = testRunner.testCase.getPropertyValue( "tempProp" )

but I get the error "No such property: testRunner for class: Script6" (number increments with tries)

Is this because in an AMF request "Script is invoked with log, context, parameters and amfHeaders variables" and testRunner is not recognized?

I know it seems odd, but is it possible to do this? I'm unable to use a specific xpath property transfer between the two AMF Requests as it's possible for the structure to change and I'm not always looking for the same node.

4

1 回答 1

4

用过的

def temp = context.testCase.getPropertyValue( "tempProp" )

代替

def temp = testRunner.testCase.getPropertyValue( "tempProp" )

这很好用。

于 2012-06-04T15:47:44.817 回答