Difference between revisions of "QA/BVT"

From Apache OpenOffice Wiki
< QA
Jump to: navigation, search
Line 1: Line 1:
  
Framework
+
=How to run BVT=
 
+
How to run BVT
+
[[http://wiki.openoffice.org/wiki/QA/test_automation_guide]]
+
Run BVT test via Command
+
BVT report
+
 
+
 
+
BVT case description
+
 
+
How to dev new cases
+
  
 
Revision Platfrom Volunteer Status Task-id
 
Revision Platfrom Volunteer Status Task-id
Line 72: Line 62:
 
  Windows 64b: "''C:/Program Files (x86)/OpenOffice.org 3''"
 
  Windows 64b: "''C:/Program Files (x86)/OpenOffice.org 3''"
 
}}
 
}}
 +
 +
==Reference==
 +
[[http://wiki.openoffice.org/wiki/QA/test_automation_guide Test Automation Guide]]

Revision as of 09:22, 26 March 2013

How to run BVT

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

Reference

[Test Automation Guide]

Personal tools