Validating Attributes
Exact Matching
<test name="test_sod_attr_1"> <flow>flow1</flow> <description>Test sod : attribute exact matching</description> <inject mod="getSo"> <so orderId="1"> <sod orderId="1"> <attr name="customerId" value="my_cust_id"/> </sod> </so> </inject> <expect mod="port1"> <so orderId="1"> <sod> <attr name="customerId" value="my_cust_id"/> </sod> </so> </expect> </test>
Regexp Matching
<test name="test_sod_attr_2"> <flow>flow1</flow> <description>Test sod : attribute regexp matching</description> <inject mod="getSo"> <so orderId="1"> <sod> <attr name="customerId" value="my_cust_id"/> </sod> </so> </inject> <expect mod="port1"> <so orderId="1"> <sod> <attr name="customerId" reValue="my_cust.*"/> </sod> </so> </expect> </test>
Copyright © Cloud Software Group, Inc. All rights reserved.