Smoke test
Contents |
Setup
Main
- http://builds.openbravo.com/job/erp_devel_main-oracle-smoke-test/
- http://builds.openbravo.com/job/erp_devel_main-pgsql-smoke-test/
2.40
- http://builds.openbravo.com/job/erp_stable_2.40-oracle-smoke-test/
- http://builds.openbravo.com/job/erp_stable_2.40-pgsql-smoke-test/
2.3x
- http://builds.openbravo.com/job/erp_stable_2.3x-oracle-smoke-test/
- http://builds.openbravo.com/job/erp_stable_2.3x-pgsql-smoke-test/
Initial setup
- hg clone <erp_version_repo_path> <WORKSPACE>
- install.source
- hg clone <testscript_version_repo_path> <WORKSPACE/smoke_test>
- edit config/OpenbravoERPTest.properties
Nightly Setup
- Enable Run Xvnc during build
- Publish JUnit test result report
- Do pre sanity check
- cd /srv/hudson_setup/scripts/
- hg pull -u
- /srv/hudson_setup/scripts/pre_smoke_sanity openbravo_main_oracle_smoke $DISPLAY
- Do full/complete build
- install.source -Dbuild.maxmemory=1024M deploy
- Trigger smoke test
- cd $WORKSPACE/smoke_test
- hg pull -u
- mkdir -p $WORKSPACE/screenshot/$BUILD_NUMBER
- /srv/hudson_setup/scripts/mid_smoke_screenshot $DISPLAY $WORKSPACE/screenshot/$BUILD_NUMBER >/tmp/screenshot.log &
- DISPLAY=$DISPLAY ant test.integration.smoke
Measures on failure
2.3x
- On AssertionFailedError
- vacuumdb -f -z -v -h localhost -U openbravo23xpgsqlsmoketest openbravo23xpgsqlsmoketest -p 5433
- On Nullpointer Exception
- add testfiles to the path specified in config/OpenbravoERPTest.properties
common Failures
- On ERROR: Option with label 'Euro' not found
ant create.database -Dapply.on.create=true
This error is due to incomplete database, like on target update.database should have all the currecy typs loaded to database, which was not proper. To avoid this execute create.database