Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
EclipseLink/Development/ServerPlatform/NetweaverPlatform/Testing
Contents
Testing the NetWeaver Server Platform
Testing of the NetWeaver platform is done using the JPA server test suite.
Test Results Summary
NetWeaver Version | EclipseLink Version | Database | Weaving | Tests | Failures/Errors | Error Details | All Issues Addressed? |
---|---|---|---|---|---|---|---|
7.3 dev version (LKG 2010-02-17 ID 144) |
trunk (2.1 stream) (2010-02-17) |
MySQL 5.1.37 | a) disabled b) static |
1492 | 197 |
AdvancedServerTestSuite (1) [1] |
yes |
7.3 dev version (LKG 2010-02-17 ID 144) |
trunk (2.1 stream) (2010-02-17) |
Oracle 10.2.0.2.0 | a) disabled b) static |
1503 | 208 |
AdvancedServerTestSuite (1) [1] |
yes (without Oracle specific tests) |
7.2 SP2 | trunk (2.1 stream) (2010-02-17) |
Oracle 10.2.0.2.0 | a) disabled b) static |
1503 | 208 |
AdvancedServerTestSuite (1) [1] |
yes (without Oracle specific tests) |
Details on Failing Tests
- ↑ 1.0 1.1 1.2 AdvancedServerTestSuite.testSetRollbackOnly: bug 297558
- ↑ 2.0 2.1 2.2 CriteriaServerTestSuite: should not be executed as SAP NetWeaver supports only JPA 1.0, bug 298407
- ↑ 3.0 3.1 3.2 FAServerTestSuite.testSetRollbackOnly: bug 297558
- ↑ 4.0 4.1 StructConverterTestSuite: Oracle-specific tests, no efforts have been made so far to make them pass
- ↑ 5.0 5.1 TimeStampTZJUnitTestSuite: Oracle-specific tests, no efforts have been made so far to make them pass
Running the JPA tests on SAP NetWeaver AS Java
- Follow the instructions to run the JPA tests against application servers: EclipseLink/Development/Testing/JPA#Running_JPA_tests_against_Application_Servers_Using_Ant
- Copy test.properties to the <user_home> directory and edit the properties as described here (step 7.): EclipseLink/Development/Testing/JPA#Configuration
Additionally, set either one of the following properties to configure weaving:- server.weaving=false to disable weaving OR
- server.weaving=static to use static weaving
- Copy netweaver.properties to <user_home> and edit those properties that are marked as user dependent.
- Depending on the Java VM used for testing, increase the memory parameters for ant's VM using the ANT_OPTS environment variable. For example, using a HotSpot VM version 1.6, successful test runs could be produced with the following setting:
- ANT_OPTS=-Xmx512M -XX:MaxPermSize=128M
- Prepare the NetWeaver server for the JPA server tests
- Use the NetWeaver Administrator to deploy the JDBC driver of the database to use for testing. Use the name configured in property netweaver.datasource.driver.deployname in file <user_home>/netweaver.property. (TODO: Link to help portal)
- Apply patches
- Additional patches depending on the EclipseLink source level (see below)
- Make a full build of eclipselink: Go to the <trunk> directory, and execute 'ant'.
- Execute the tests:
- Call 'ant server-setup' to deploy the test data source and the EclipseLink library.
- Call 'ant server-test' to execute the server-test-lrg test suite on the application server.
- Call 'ant server-reset' to undeploy the test data source and the EclipseLink library.
- Call 'ant server-setup' to deploy the test data source and the EclipseLink library.
Additional Patches
The following patches have been applied depending on the EclipseLink source level:
- trunk (2010-02-17)
- bug 287167 - Server Platform for SAP NetWeaver 7.1 (as the platform was still in the incubator at that point in time)
- bug 303472 - Data source for JPA testing on NetWeaver server should use vendor_sql
- bug 303472 - Tests testSetRollbackOnly operate on left-over data
- Undo changes introduced by bug 295124, i.e. remove the comments in JarFileArchive.close.