LexBuild

Integration Test

Introduction

After the lexBuild system is developed, WebLexBuild is integrated with JavaDb, GSpell, scripts, etc. for an integration test. The integration test is to test the latest software with the latest data.

  • Software: The system in testing site
  • Data: The latest data from the deployed site

Procedures to Load data

  • Copy latest database files:
    • from: ${BACKUP_DIR}/Routine.lexBuild/LexBuild/20XX/MM_DD_YY
    • to: ${LB_DIR}/data.swap-machine-name/DbTables/Tables/
  • Remove suffix of Time stamp
    • shell> cd ${LB_DIR}/Tools/LoadDb
    • Shell> removeSuffix all ${LB_DIR}/data.swap-machine-name/DbTables/Tables MM_DD_YY_hh:mm
  • Delete data from Db tables (must run in the swap machine with correct db1.cfg)
    • shell> ${LB_DIR}/Tools/LoadDb/DbScript
    • 1
    • 1
    • 6 (drop tables)
    • 12 (all tables)
  • Create Db tables (must run in the swap machine with correct db1.cfg)
    • shell> ${LB_DIR}/Tools/LoadDb/DbScript
    • 1
    • 1
    • 1 (Create tables)
    • 12 (all tables)
  • Load data to Db tables (must run in the swap machine with correct db1.cfg)
    • shell> ${LB_DIR}/Tools/LoadDb/DbScript
    • 1
    • 1
    • 2 (Load tables)
    • 12 (all tables)

After data is loaded, this simulated integration system should be identical to the public deployed system. Start the next test (unit test).