Releases‎ > ‎OpenI 2.0‎ > ‎

Automated Test Status


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.



Test Packages Test Classes Current Status Remarks
org.openi.analysis AnalysisTest.java Pass
ChangeLogTest.java Pass
DatsourceTest.java Pass

LogEntryTest.java Pass
org.openi.application ApplicationTest.java Pass  
org.openi.dashboard DashboardItemTest.java Pass
DashboardTes.java Pass
org.openi.jdbc.impl SqlProviderMicrosoftTest.java Pass
SqlProviderMySqlTest.java Pass
SqlProviderPostgreeSql.java Pass
org.openi.jms MockObjectMessage.java N/A this is not a separate test, this is a mock object used in other test cases
org.openi.listpull ListPullQueryDefTest.java Pass
ListQueryMessageTest.java Pass
ListPullQueryMessageListenerTest.java Pass
ParameterTest.java Pass
org.openi.olap.util.tester AnalysisTestMessage.java Pass
AnalysisTestResultDetailTest.java Pass
AnalysisTestResultTest.java Pass
TestResultExporterTest.java Pass
org.openi.project JdbcDatasourceTest.java Pass
ModuleTest.java Pass
ProjectContextTest.java Pass
ProjectTest.java Pass
org.openi.project.cms ContentItemTest.java Pass
ProjectContentServiceTest.java Pass
org.openi.project.purge PurgeFilesMessageListenerTest.java Pass
org.openi.security LogoutFilterTest.java Pass
org.openi.testCommons ContextPath.java N/A this is not a separate test
org.openi.users.impl JdbcUserServiceImplTest.java Pass
org.openi.util FileItemTest.java Pass
FileUtilsTest.java Pass
FolderTest.java Pass
NameValueTest.java Pass
NameValueTypeTest.java Pass
ProjectDirectory.java N/A this is not a separate test
UtilTest.java Pass
org.openi.xmla XmlaConnectorTest.java Pass



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


Comments