Libero Test Plan

From AdempiereWiki

Jump to: navigation, search

Libero Test Plan

Overview

Libero implements alot of complex functionality. I am a strong advocate of extreme programming type methedologies and writing lots of unit and functional tests is vital to confirming functionality. It is especially important to have good working unit and functional tests for complex functionality when changes are made to Libero to confirm that the changes did not break important functionality. That is the goal of this Libero Test Plan.

Testing Approach

One of the most important parts of doing unit/functional tests is the ability to know the state of the application your testing both before and after the test. To achieve this goal I am going to assume that a new client/company has been created from the initial datbase dump. As a result the AD_Client_ID would be 1000000 etc... and this would be known by the unit/functional tests. All new records should be removed after the suite of tests is run.

Highlevel Objects that need to be setup for Testing Libero

The minimum objects that need to be created to test all aspects of Libero are:

  1.  Business Partner Customer
  2.  Business Partner Supplier
  3.  Create a Product that is purchased from the Business Partner Supplier created in step 2
  4.  Create a Product that is manufactured
  4.5.  Create a High Level manufactured Product
  5.  Create a BOM associated with a high level product that depends on the manufactured product and the purchased product
  6.  Create a manufacturing resource type
  7.  Create a manufacturing resource of type plant
  8.  Create a manufacturing resource of type production line
  9.  Create a manufacturing resource of type workcenter
  10.  Create a manufacturing resource of type workstation
  11.  Create a manufacturing workflow that uses the defined manufacturing resource in steps 7 - 10 to create the product defined in step 4
  12.  Create a product planning object that links the workflow created in step 11 and BOM created in step 5
  13.  Verify the products created in steps 3 and 4
  14.  Verify the BOM created in step 5
  15.  Validate the manufacturing workflow created in step 11
  16.  Create a sales order with a single order line of the product defined in step 5

Lowlevel Objects that need to be setup for Testing Libero

I will now provide a more detailed specification of the minimum objects that need to be created to test all aspects of Libero.

Lowlevel Object Definitions

#NameDescriptionAttributesJava ObjectNotes
1Test Business Partner CustomerA test business customer that can purchase the highlevel productName: Test Business Partner Customer
MLocation, MBPLocation, MBPGroup, MBPartner None
2Test Business Partner SupplierA test business supplier that can supply the purchased productName: Test Business Partner Supplier
MLocation, MBPLocation, MBPGroup, MBPartner None
3Test Purchased ProductA test purchased productName: Test Purchased Product
MProductNone
4Test Manufactured ProductA test manufactured productName: Test Manufactured Product
MProductNone
4.5Test Manufactured High Level ProductA test manufactured High Level productName: Test Manufactured HL Product
MProductNone
5Test Manufactured BOMA test manufactured BOMName: Test Manufactured Product
X_PP_Product_BOM, X_PP_Product_BOMLineNone
6Test Manufacturing Resource TypeA test manufacturing resource typeName: Test Manufacturing Resource Type X_S_ResourceType, org.eevolution.model.X_S_ResourceNone
7Test Manufacturing Resource PlantA test manufacturing resource PlantName: Test Manufacturing Resource Plant org.eevolution.model.X_S_ResourceNone
8Test Manufacturing Resource LineA test manufacturing resource lineName: Test Manufacturing Resource line org.eevolution.model.X_S_ResourceNone
9Test Manufacturing Resource WorkcenterA test manufacturing resource workcenterName: Test Manufacturing Resource workcenter org.eevolution.model.X_S_ResourceNone
10Test Manufacturing Resource WorkstationA test manufacturing resource workstationName: Test Manufacturing Resource workstation org.eevolution.model.X_S_ResourceNone
11Test Manufacturing Worflow RouteA test manufacturing workflow routeName: Test Manufacturing Workflow Route MWorkflow, MWFNode, MWFNodeNext, X_PP_WF_Node_ProductNone
12Test Manufactured HL Product PlanningA test product planning objectName: Test Manufactured HL Product Planning MPPProductPlanningNone
16Test Sales OrderA test sales orderName: Test Sales Order MDiscountSchema, MDiscountSchemaLine, MPriceList, MPriceListVersion, MProductPrice, X_C_Order, X_C_OrderLineNone

Unit/Functional Tests

#GivenStepsNotesExpected Result
1All minimum objects setup for testing Libero FunctionalityRun the CalculateLowLevel processThe calculate low level process calculates and registers the lowest level of a product inside any BOM. It is used in the MRP calculations and should be executed when you enter a new BOMThe lowlevels of the products defined are: TBD
2All minimum objects setup for testing Libero FunctionalityRun the CalculateLowLevel process. Then run the Create Record MRP ProcessThe create record mrp process deletes all records of MRP and generate them again. The create record mrp process also recreates the demand, approved, and open orders for a productTBD
3All minimum objects setup for testing Libero FunctionalityRun the CalculateLowLevel process. Then run the Create Record MRP Process. Then run the regenerate material plan. Then run the capacity plan calculation process with forward schedulingThe capacity plan calculation process adjusts the manufacturing order scheduled start time and scheduled end time TBD
Personal tools