SmokeTest

From Apache OpenOffice Wiki
Revision as of 10:14, 24 February 2012 by Lilinyi (Talk | contribs)

Jump to: navigation, search

Overview

OO.o has a beautiful built-in smoke-test application for running some basic sanity checks on a build to ensure that nothing wildly wrong crept in between releases. These tests run quite quickly, since they only do simple document creation / load / save tasks.

How to use

The smoke test is run by building module smoketestoo_native. It should be built as the last step of each complete build. Build smoketestoo_native module with the following steps: source LinuxX86Env.Set.sh cd smoketestoo_native build

Test points

  • Remove old installation(Optional)
  • Install OpenOffice
  • Document creation(Document types include Writer, Calc, Impress, Draw, Base, Math, HTML, Chart)
  • Object creation
  • Document save
  • Document open
  • Remove installation(Optional)

Code

The operations on documents and objects are executed by Macros wrote in the smoketestdoc.sxw document. Other test points are run by smoketest.cxx. Macros are organized by StarBasic language. The sample file smoketestdoc.sxw is generated by zip some file in smoketestdoc module while build smoketestdoc module. It is located in <sourcecode>/main/smoketestdoc/unxmacxi/pro/misc/zip/.

The basic code is:


TODO: Provide basic code of smoke test module.

Personal tools