Jump to: navigation, search

Difference between revisions of "EclipseLink/Development/Testing/foundation"

Line 1: Line 1:
== Under Construction ==
 
 
 
== Running the Legacy LRG ==  
 
== Running the Legacy LRG ==  
  
Line 13: Line 11:
 
## JPA
 
## JPA
 
### eclipselink.jpa.core
 
### eclipselink.jpa.core
### eclipselink.
+
### eclipselink.jpa.test
 
## Oracle Extensions
 
## Oracle Extensions
 +
### eclipselink.extension.oracle
 +
### eclipselink.extension.oracle.test
 +
### jars required to compile eclipselink.extension.oracle - aqapi.jar, sdoapi.jar, dms.jar, xdb.jar, xml.jar, xmlparserv2.jar
 +
## Java
 +
### a JAVA_TOOLS_LIB variable that points to the tools jar in your java installation
 +
## Generated classes
 +
# Run the the "Testing Browser" run target
 +
# Input you DB login information.  You can do this by selecting a value from the "Quick Login" drop box and then then edit the form on the right side of the GUI with any inforamtion that is different from what is already populated
 +
# Run either the SRGTestModel or the LRGTestModel listed on the right side of the GUI by selecting it and then clicking the "Run Test" button.

Revision as of 16:37, 6 September 2007

Running the Legacy LRG

Early in its existance, this product was tested with an in-house testing framework. A large number of tests are still available through this test framework. Testing is gradually being migrated to frameworks such as JUnit, but the GUI tool available in the legacy framework is still quite useful for testing. The code for this test framework is stored in the eclipselink.core.test project. Here is how to run it:

  1. Create a Java Application run target on the eclipselink.core.test project - I'll call it Testing Browser
  2. Use org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame as the main class
  3. Add "-Xmx256m" as a VM argument
  4. Add the following to the classpath: (note these are listed by category and you may be able to run subsets of the tests without certain categories)
    1. JDBC
      1. your JDBC driver of choice
    2. JPA
      1. eclipselink.jpa.core
      2. eclipselink.jpa.test
    3. Oracle Extensions
      1. eclipselink.extension.oracle
      2. eclipselink.extension.oracle.test
      3. jars required to compile eclipselink.extension.oracle - aqapi.jar, sdoapi.jar, dms.jar, xdb.jar, xml.jar, xmlparserv2.jar
    4. Java
      1. a JAVA_TOOLS_LIB variable that points to the tools jar in your java installation
    5. Generated classes
  5. Run the the "Testing Browser" run target
  6. Input you DB login information. You can do this by selecting a value from the "Quick Login" drop box and then then edit the form on the right side of the GUI with any inforamtion that is different from what is already populated
  7. Run either the SRGTestModel or the LRGTestModel listed on the right side of the GUI by selecting it and then clicking the "Run Test" button.