Injecting a Service Order

Inject element

The following test injects a service order with orderId "inject@@1", references the service order as "inject@@1" and wait for the service order to come to module "port1".

<test name="inject">
		<flow>flow1</flow>
		<inject mod="getSo">
			<so orderId="1"/>
		</inject>
		<expect mod="port1">
			<so orderId="1"/>
		</expect>
	</test>

Inject action

The following test :
  • creates a service order with orderId "inject@@1"

  • references the service order as "inject@@1"

  • calls onPut on the module named "getSo"

  • waits for the service order with orderId "inject@@1" to come to module "port1"

<test name="action_inject">
	<flow>flow1</flow>
		<description>Test wod : dataset validation</description>
		<expect mod="port1">
			<so orderId="1"/>
		</expect>
		<action>
			<inject mod="getSo">
				<so orderId="1"/>
			</inject>
		</action>
	</test>