Checking Out Parameters
Simple Type
The following test invokes the operation "outMessage" on the object referenced as "getSo" setting the in parameter "i_msg" to "my_value" and validates that the value of the out parameter "o_msg" is "my_value".
<test name="test_invoke_param_out_1"> <flow>flow1</flow> <description>Test operation with an simple out parameter</description> <action> <invoke object="getSo" operation="outMessage"> <in name="i_msg" value="my_value"/> <out name="o_msg" value="my_value"/> </invoke> </action> </test>
Objects
The following test invokes the operation "outMessage" on the object referenced as "getSo" setting the in parameters i_msg to "my_value" and referecing the object parameter "o_module" as "invoke_param_out_4@@2".
<test name="invoke_param_out_4"> <flow>flow1</flow> <description>Test operation with a valid object as out parameter</description> <action> <invoke object="getSo" operation="outMessage"> <in name="i_msg" value="my_value"/> <out name="o_module" object="2"/> </invoke> </action> </test>
Copyright © Cloud Software Group, Inc. All rights reserved.