Esempio n. 1
0
    def test_01_variationProperty(self, quiet=0, run=run_all_test):
        if not run: return
        sequence_list = SequenceList()
        # Test setVariationPropertyDict and
        # getVariationPropertyDict without
        # resource on Amount.
        sequence_string = '\
              CreateAmount \
              CheckEmptyGetVariationPropertyDict \
              CheckEmptySetVariationPropertyDict \
              '

        sequence_list.addSequenceString(sequence_string)
        # Test setVariationPropertyDict and
        # getVariationPropertyDict
        sequence_string = '\
              CreateResource \
              CreateAmount \
              SetAmountResource \
              CheckGetVariationPropertyDict \
              SetVariationPropertyDict \
              CheckGetVariationPropertyDict \
              '

        sequence_list.addSequenceString(sequence_string)
        # Test setVariationPropertyDict with a wrong property
        sequence_string = '\
              CreateResource \
              CreateAmount \
              SetAmountResource \
              SetWrongVariationPropertyDict \
              '

        sequence_list.addSequenceString(sequence_string)
        # Test edit method on amount
        sequence_string = '\
              CreateResource \
              CreateAmount \
              SetAmountResource \
              CheckEdit \
              CheckGetVariationPropertyDict \
              '

        sequence_list.addSequenceString(sequence_string)
        sequence_list.play(self)
Esempio n. 2
0
 def test_06_checkBackupofOFSFolderWithSave(self, quiet=quiet, run=run_all_test):
   if not run: return
   if not quiet:
     message = 'Test Check Backup Of OFS Folder With Save'
     ZopeTestCase._print('\n%s ' % message)
     LOG('Testing... ', 0, message)
   sequence_list = SequenceList()
   sequence_string = '\
                      CheckTrashToolExists  \
                      CreateTrashBin \
                      AddFolder \
                      Tic \
                      BackupFolderObjectsWithSave \
                      Tic \
                      CheckFolderObjectBackup \
                      '
   sequence_list.addSequenceString(sequence_string)
   sequence_list.play(self, quiet=quiet)
Esempio n. 3
0
 def test_02_checkBackupWithoutSave(self, quiet=quiet, run=run_all_test):
   if not run: return
   if not quiet:
     message = 'Test Check Backup Without Save'
     ZopeTestCase._print('\n%s ' % message)
     LOG('Testing... ', 0, message)
   sequence_list = SequenceList()
   sequence_string = '\
                      CheckTrashToolExists  \
                      CreateTrashBin \
                      AddBaseCategory \
                      AddCategories \
                      Tic \
                      BackupObjectsWithoutSave \
                      CheckObjectNotBackup \
                      '
   sequence_list.addSequenceString(sequence_string)
   sequence_list.play(self, quiet=quiet)
 def testGetInventoryList(self):
   sequence_list = SequenceList()
   sequence_string = """
   DisableSimulationOnInternalPackingList
   SetTestDocumentTitleNode1
   AddNode
   SetTestDocumentTitleResource1
   AddResource
   SetTestDocumentTitleMovement1
   AddInternalPackingList
   ConfirmInternalPackingList
   Tic
   GetInventoryList
   CheckWithGetFromDocumentListAgainstInventoryList
   CheckWithGetTabularAgainstInventoryList
   """
   sequence_list.addSequenceString(sequence_string)
   sequence_list.play(self)
 def test_01_ERP5BankingAvailabeInventory(self, quiet=QUIET, run=RUN_ALL_TEST):
   """
   Define the sequence of step that will be play
   """
   if not run:
     return
   sequence_list = SequenceList()
   # define the sequence
   sequence_string = 'Tic CheckObjects Tic CheckAccountInitialInventory ' \
                     'CheckOpenCounterDateTwiceFail Tic ' \
                     'CheckNoRemainingOperations Tic ' \
                     'CreateCheckPayment Tic ' \
                     'CheckConsistency Tic ' \
                     'CreateMoneyDeposit ' \
                     'ValidateAnotherCheckPaymentWorks Tic ' \
                     'SendToCounter ' \
                     'MoneyDepositSendToValidation ' \
                     'MoneyDepositSendToCounter ' \
                     'stepValidateAnotherCheckPaymentFails Tic ' \
                     'CheckAccountConfirmedInventory ' \
                     'stepValidateAnotherCheckPaymentFailsAgain Tic ' \
                     'CheckRemainingOperations Tic ' \
                     'InputCashDetails Tic ' \
                     'MoneyDepositInputCashDetails Tic ' \
                     'DeliverMoneyDeposit Tic ' \
                     'ValidateAnotherCheckPaymentWorksAgain Tic ' \
                     'Pay PayAnotherCheckPaymentFails ' \
                     'Tic ' \
                     'CheckAccountFinalInventory ' \
                     'CheckBadStockBeforeClosingDate ' \
                     'ResetInventory Tic ' \
                     'SetInventoryInSortVault Tic ' \
                     'CheckBadStockBeforeClosingDate ' \
                     'ResetInventoryInSortVault Tic ' \
                     'CheckRightStockBeforeClosingDate ' \
                     'SetInventoryInVaultForeignCurrency Tic ' \
                     'CheckBadStockBeforeClosingDate ' \
                     'ResetInventoryInVaultForeignCurrency Tic ' \
                     'CheckRightStockBeforeClosingDate ' \
                     'Tic ' \
                     'CheckOpenCounterDateTwiceWithOtherDateFail Tic ' 
   sequence_list.addSequenceString(sequence_string)
   # play the sequence
   sequence_list.play(self)
Esempio n. 6
0
 def testInternalPackingList(self):
   sequence_list = SequenceList()
   sequence_str = """
     TestInternalPackingList_create
     Tic
     SelectInternalPackingList1
     ConfirmInternalPackingList
     Tic
     StartInternalPackingList
     Tic
     StopInternalPackingList
     Tic
     CallBuilder
     Tic
     CheckTwoAccountingTransactionGeneratedFromInternalPackingList
     TestInternalPackingList_checkAllAccountingTransaction
     """
   sequence_list.addSequenceString(sequence_str)
   sequence_list.play(self, quiet=0)
Esempio n. 7
0
 def testPurchasePackingList(self):
   sequence_list = SequenceList()
   sequence_str = """
     TestPurchasePackingList_create
     Tic
     SelectPurchasePackingList1
     ConfirmPurchasePackingList
     Tic
     StartPurchasePackingList
     Tic
     StopPurchasePackingList
     Tic
     CallBuilder
     Tic
     CheckThreeAccountingTransactionGeneratedFromPurchasePackingList
     TestPurchasePackingList_checkAllAccountingTransaction
     """
   sequence_list.addSequenceString(sequence_str)
   sequence_list.play(self, quiet=0)
Esempio n. 8
0
 def test_can_not_run_upgrade_without_solve_pre_upgrade(self):
     """Check that if there is something to solve in pre_upgrade is not possible
 run the upgrade"""
     sequence_list = SequenceList()
     sequence_string = """
   stepCreatePerson
   stepCreateScriptCheckPreUpgradeReferenceConsistency
   stepCreatePersonPropertySheet
   stepSetConstraintInPersonPortalType
   stepUninstallERP5Web
   stepTic
   stepActiveSensePreUpgradeAlarm
   stepTic
   stepRunUpgrader
   stepTic
   stepCheckSummaryForPreUpgradeRequired
 """
     sequence_list.addSequenceString(sequence_string)
     sequence_list.play(self)
Esempio n. 9
0
 def test_11_ChangeOrderQuantityAndAcceptOnPackingList(self, quiet=quiet, run=run_all_test):
   """
     Create order and add items, then Change the quantity
     on an order line, after that see if the packing list is
     divergent and then accept decision on the packing list
   """
   sequence_list = SequenceList()
   sequence_string = self.DEFAULT_ITEM_WITH_PACKING_LIST_SEQUENCE + '\
                     stepModifyOrderLinesQuantity \
                     stepTic \
                     stepCheckPackingListIsDiverged \
                     stepAcceptDecisionQuantity \
                     stepTic \
                     stepCheckPackingListIsNotDivergent \
                     stepCheckPackingListIsSolved \
                     stepCheckSimulationQuantityUpdated \
                     '
   sequence_list.addSequenceString(sequence_string)
   sequence_list.play(self, quiet=quiet)
Esempio n. 10
0
 def test_07_WithPackingListChangePackingListQuantityAndAccept(self, quiet=quiet, run=run_all_test):
   """
     Create order and add items, then Change the quantity
     on an delivery line, after that see if the packing list is
     divergent and then split and defer the packing list
   """
   sequence_list = SequenceList()
   sequence_string = self.DEFAULT_ITEM_WITH_PACKING_LIST_SEQUENCE + '\
                     stepDecreasePackingListLineQuantity \
                     stepCheckPackingListIsCalculating \
                     stepTic \
                     stepCheckPackingListIsDiverged \
                     stepSplitAndDeferPackingList \
                     stepTic \
                     stepCheckPackingListIsSolved \
                     stepCheckPackingListSplitted \
                     '
   sequence_list.addSequenceString(sequence_string)
   sequence_list.play(self, quiet=quiet)