Difference between revisions of "QA/BVT"

From Apache OpenOffice Wiki
< QA
Jump to: navigation, search
(Run testing)
Line 53: Line 53:
 
run -Dopenoffice.home="/Applications/OpenOffice.org.app/Contents" -tc bvt.gui.BasicFunctionTest
 
run -Dopenoffice.home="/Applications/OpenOffice.org.app/Contents" -tc bvt.gui.BasicFunctionTest
 
</source>
 
</source>
 
 
''' Where to get the testing result? '''
 
''' Where to get the testing result? '''
  
Line 63: Line 62:
 
  result.html: Test result in XML.
 
  result.html: Test result in XML.
 
  screenshot/: Screenshot pictures when test assert is failed.
 
  screenshot/: Screenshot pictures when test assert is failed.
 +
 +
FAQ:
 +
 +
{{Template:Documentation/Note| '''What is openoffice.home?'''<br />
 +
The default installation directory of Apache OpenOffice:<br/>
 +
Mac OS X: "''/Applications/OpenOffice.org.app/Contents"''<br />
 +
Linux: "''/opt/openoffice.org3''"<br />
 +
Windows: "''C:/Program Files/OpenOffice.org 3''"<br />
 +
Windows 64b: "''C:/Program Files (x86)/OpenOffice.org 3''"
 +
}}

Revision as of 08:20, 26 March 2013

Framework

How to run BVT [[1]] Run BVT test via Command BVT report


BVT case description

How to dev new cases

Revision Platfrom Volunteer Status Task-id


Getting the source code

Anyone can checkout source code from our Subversion repository. Run the following command.

svn co https://svn.apache.org/repos/asf/openoffice/trunk/test/ test

If you are not familiar with Subversion, see our Subversion Basics for more information.

Getting started with command line

Prerequisites

Run testing

As a developer, how to run testing against an OpenOffice built by me?
It's easy for developers to run testing after building OpenOffice. One thing you need to do is to make sure you run the commands in the build environment. The script will automatically install your build and then start testing. e.g.

cd main
source MacOSXX86Env.Set.sh
cd ../test && ant

As a normal user, how to run testing against an installed OpenOffice?
Firstly compile the project with the command under test module.

ant -Dopenoffice.home="OpenOffice installation directory" compile

Then start testing with the command "run". e.g. Run all test classes under package bvt

run -Dopenoffice.home="/Applications/OpenOffice.org.app/Contents" -tp bvt

e.g. Run the given test classes

run -Dopenoffice.home="/Applications/OpenOffice.org.app/Contents" -tc bvt.gui.BasicFunctionTest

Where to get the testing result?

By default, the testing output is stored in "test/testspace/output***". Open "test/testspace/output/result.html" in your browser to see the testing report.
File:Test automation report.png

Special stuff in the output directory.

result.xml: Test result in HTML. 
result.html: Test result in XML.
screenshot/: Screenshot pictures when test assert is failed.

FAQ:

Template:Documentation/Note

Personal tools