Author: lektran
Date: Sat Oct 17 22:14:35 2009
New Revision: 826314
URL: http://svn.apache.org/viewvc?rev=826314&view=rev
Log:
Fixed testCreateShipmentRouteSegement to look up it's shipment based on demo
data rather than relying on the sequenced shipmentId.
All facility tests now pass.
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/ShipmentTests.xml
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/ShipmentTests.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/ShipmentTests.xml?rev=826314&r1=826313&r2=826314&view=diff
==============================================================================
---
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/ShipmentTests.xml
(original)
+++
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/test/ShipmentTests.xml
Sat Oct 17 22:14:35 2009
@@ -201,7 +201,11 @@
<simple-method method-name="testCreateShipmentRouteSegment"
short-description="Test to create Shipment Route Segment"
login-required="false">
<log level="info" message="====================Create a Shipment Route
Segment test case=========================================="/>
- <set field="shipRouteSegMap.shipmentId" value="10000"/>
+ <entity-and list="shipments" entity-name="Shipment">
+ <field-map field-name="primaryOrderId" value="DEMO10090"/>
+ </entity-and>
+ <first-from-list entry="shipment" list="shipments"/>
+ <set field="shipRouteSegMap.shipmentId"
from-field="shipment.shipmentId"/>
<entity-one entity-name="UserLogin"
value-field="shipRouteSegMap.userLogin">
<field-map field-name="userLoginId" value="system"/>