Class CLFOTestDataSO_06
- java.lang.Object
-
- org.openbravo.test.copyLinesFromOrders.data.CopyLinesFromOrdersTestData
-
- org.openbravo.test.copyLinesFromOrders.data.CLFOTestDataSO_06
-
public class CLFOTestDataSO_06 extends CopyLinesFromOrdersTestData
Check that created line has the same product and attributes than the line from it was created from. Check three cases: 6.1 - Product without attributes (already tested in other cases) 6.2 - Product with attributes (an instance attribute). In this case the attribute is copied. 6.3 - Product with attributes (not an instance attribute). In this case the attribute isn't copied.- Author:
- Mark
-
-
Constructor Summary
Constructors Constructor Description CLFOTestDataSO_06()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTestSettings()
Add extra settings to the test Create a new Attribute Organization = Spain Name = Size Instance Attribute = Yes List = Yes Add an Attribute Value to it Search key = Name = XL Create a new Attribute Set Organization = Spain Name = Size Add as assigned attribute the previously created Size attribute. Create a new Product and assign the created Size Attribute Set to it Create a new Product and assign the existing Colour Attribute Set to itString
getTestDescription()
String
getTestNumber()
void
initialize()
boolean
isExecuteAsQAAdmin()
-
Methods inherited from class org.openbravo.test.copyLinesFromOrders.data.CopyLinesFromOrdersTestData
applyTestSettingsBeforeExecuteProcess, createAUMForProduct, createExpectedLine, createOrderHeader, createOrderHeaderOrderLinesAndExpectedCopiedLines, createOrderLine, generateDataForPerformanceTest, getExpectedOrderAmounts, getExpectedOrderHeader, getExpectedOrderLines, getOrder, getOrderLinesCopiedFrom, getOrdersCopiedFrom, setExpectedOrderAmounts, setExpectedOrderHeader, setExpectedOrderLines, setOrder, setOrderLinesCopiedFrom, setOrdersCopiedFrom
-
-
-
-
Method Detail
-
initialize
public void initialize()
- Specified by:
initialize
in classCopyLinesFromOrdersTestData
-
applyTestSettings
public void applyTestSettings()
Add extra settings to the test- Create a new Attribute
- Organization = Spain
- Name = Size
- Instance Attribute = Yes
- List = Yes
- Add an Attribute Value to it
- Search key = Name = XL
- Create a new Attribute Set
- Organization = Spain
- Name = Size
- Add as assigned attribute the previously created Size attribute.
- Create a new Product and assign the created Size Attribute Set to it
- Create a new Product and assign the existing Colour Attribute Set to it
- Overrides:
applyTestSettings
in classCopyLinesFromOrdersTestData
- Create a new Attribute
-
getTestNumber
public String getTestNumber()
- Specified by:
getTestNumber
in classCopyLinesFromOrdersTestData
-
getTestDescription
public String getTestDescription()
- Specified by:
getTestDescription
in classCopyLinesFromOrdersTestData
-
isExecuteAsQAAdmin
public boolean isExecuteAsQAAdmin()
- Specified by:
isExecuteAsQAAdmin
in classCopyLinesFromOrdersTestData
-
-