Difference between revisions of "Test Refactor"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Target)
(Target)
Line 20: Line 20:
 
The reusable code for testing. Not include any test case.
 
The reusable code for testing. Not include any test case.
 
*qadevoo
 
*qadevoo
UNO API / Complex test cases should be written in the module. Refactor the old test code to JUnit 4. It depends on testcommon.  
+
Refactor the old test code to JUnit 4. It depends on testcommon.  
 
*testscript
 
*testscript
 
GUI test cases should be written in the module. JUnit 4 style. It depends on testcommon.
 
GUI test cases should be written in the module. JUnit 4 style. It depends on testcommon.

Revision as of 03:15, 25 June 2012

Current Status

Currently, there are many modules for testing. Note, the mentioned testing here requires a running OpenOffice instances. That means OpenOffice must be installed before testing. It's not the unit test at the code level. The summary is here.

  • test

Includes reusable code for UNO API test.

  • testgraphical

Test tool to test documents by it's graphical representation.

  • testautomation

All test scripts for the old VCL Testtool. Nobody maintains it now.

  • smoketestdoc

It's used to generate the test documents required by smoke test.

  • smoketestoo_native

A small test suite to verify if the basic functions of OpenOffice.org work.

  • qadevOOo

UNO API test, complex test.

Target

The target is to reduce module count and organize the testing code clearer. Suggest to keep only 3 directories for testing.

  • testcommon

The reusable code for testing. Not include any test case.

  • qadevoo

Refactor the old test code to JUnit 4. It depends on testcommon.

  • testscript

GUI test cases should be written in the module. JUnit 4 style. It depends on testcommon.

Next Step

In order not to break build, suggest to create the three new modules firstly. Then migrate the legacy code into the new structure steps by steps. When it works stably, we can remove all the old modules.

Final Result

  • test

Replaced by testcommon

  • testgraphical

Re-implement it as JUnit4 testcase in testscript.

  • testautomation

Removed.

  • smoketestdoc

Move it into testscript.

  • smoketestoo_native

Re-implement it as JUnit4 testcase in testscript.

  • qadevOOo

Keep it.

Personal tools