This page shows the status of all the test cases present in the OpenI project.
Testing Framework being used for the core classes: TestNG
All the test packages and classes are placed in the test folder in the project.
To run all the test cases at once, just need to run the test suite---openi-testsuite.xml. Some of the test classes refer to a test directory name "testAccount" under the user's project directory. The sample test directory "testAccount" is included in the sample openi-projects zip file which is available in the openi source distribution. openi-testsuite.xml
<?xml version="1.0" encoding="UTF-8"?>
<suite name="openi_2_0" verbose="2" >
<test name="Domain tests" annotations="JDK">
<packages>
<package name="org.openi.analysis" />
<package name="org.openi.application" />
<package name="org.openi.dashboard" />
<package name="org.openi.jdbc.impl" />
<package name="org.openi.listpull" />
<package name="org.openi.olap.util.tester" />
<package name="org.openi.project" />
<package name="org.openi.project.cms" />
<package name="org.openi.purge" />
<package name="org.openi.security" />
<package name="org.openi.users.impl" />
<package name="org.openi.util" />
<pacakge name="org.openi.xmla" />
</packages>
</test>
</suite>
So, whenever new test packages are developed, need to include lines specifying the packages in this testng suite configuration file.
The CruiseControl configured in the openi demo server is now capable of compiling and running the test cases present in the project automatically. It triggers the ant target defined in the build.xml file that runs the test cases after it builds and deploys the new project build.
CruiseControl also collects the reports generated by testng to display the test results in its own format.
Here is the url to access the web page that shows the test results in each build, provided that a ssh tunnel has already been created that forwards the requests coming to local port 8091 to 8090 of demo server.
http://localhost:8091/cruisecontrol/buildresults/openi2-beta?tab=testResults
Or
http://localhost:8091/dashboard/tab/build/detail/openi2-beta
|