Release 2.x‎ > ‎Development‎ > ‎

Test Plan

Release Candidate Testing


Version 2.1 Testing Progress

 Target Maven Comamnd (from OPENPTK_HOME)
Embedded Db mvn install -P server,srvc-derby
MySQL Db mvn install -P server,srvc-mysql
Oracle Db mvn install -P server,srvc-oracledb
JNDI mvn install -P server,srvc-jndi
UnboundId mvn install -P server,srvc-unboundid
Oracle 11g mvn install -P server,srvc-oim11g


   Embedded Db  MySQL Db   Oracle Db  JNDI  UnboundId  Oracle 11g
 Tester  ALL  SF  SF  TS  TS  DH
Client API
Unit Tests
dh
sf sf ts
ts
dh
 cURL (RESTful) ts, dh, sf
ts, sf sf  ts ts
dh
 CLI
ts, dh, sf
ts, sf sf ts
ts
dh
 UML ts, dh, sf
ts, sf sf ts
ts
dh
 IdentityCentral ts, dh, sf
ts, sf sf (no register) ts (no register)
ts (no register)
dh (no register, create,  update)

When tested, place initials in box.  If any issues were found, enter those details in Jira ticket OPENPTK-332.


Version 2.0 Testing Results

   Embedded Db  MySQL Db  Oracle Db  JNDI  UnboundId  Oracle 11g
 API Unit Tests sf
dh
ts
sf
dh
ts
sf
dh
sf
dh
ts
dh
ts
sf
dh
 cURL (RESTful) ts (curlTest.sh)
dh (curlTest.sh)
ts (curlTest.sh)
dh (curlTest.sh)
dh (curlTest.sh)
sf (curlTest.sh)
ts (curlTest.sh)
dh (curlTest.sh) 
ts (curlTest.sh)
dh (curlTest.sh)
dh (curlTest.sh)
sf (manual)
 CLI
ts (cliTest.sh)
dh
sf
ts (cliTest.sh)
dh (cliTest.sh)
sf
dh (cliTest.sh)
sf
ts (cliTest.sh)
dh (cliTest.sh)
sf
ts (cliTest.sh)
dh (cliTest.sh)
dh (cliTest.sh)
sf
 UML dh*
ts
sf
dh
ts
sf
dh
sf
ts
dh
sf
ts
dh
dh
sf
 IdentityCentral dh
ts
sf
dh
ts
sf
dh
sf
ts
dh
sf
ts
dh
dh
sf

When tested, place initials in box.  If any issues were found, enter those details in Jira ticket OPENPTK-310.

For each client / backend the minimum tests will include:
  • CREATE
  • UPDATE
  • DELETE
  • READ
  • SEARCH
  • PASSWORD CHANGE
  • PASSWORD RESET (not implemented in CLI)
  • FORGOT PASSWORD (not implemented in CLI)

API Unit Tests:


cURL:

A testing script has been added to the openptk/branches directory called testing.  In that directory, you will find a curlTest.sh which will execute Unix curl against several CONTEXTS being implemented by an OpenPTK Server.  To test, simply follow these instructions.

  1. Startup OpenPTK Server
  2. Change directory to your openptk/branches/testing
  3. run curlTest.sh
  4. Observe results

Please see NOTE under the CLI testing on how to change your testing against different CONTEXTS.

Example output from this test script:

$ ./curlTest.sh
Project OpenPTK CURL Testing Script (curlTest.sh)
=================================================
This script will use Unix curl to hit a
running server and backend services test
against expected output from several of the
OpenPTK Operations.

    CONTEXTS Tested = Employees-Embed-JDBC Employees-MySQL-JDBC Employees-UnboundID-LDAP Employees-OpenDS-JNDI
     OpenPTK Server = http://localhost:8080/openptk-server


  Testing Employees-Embed-JDBC...
  PASS - CREATE
  PASS - READ
  PASS - SEARCH
  PASS - UPDATE
  PASS - CHANGE_PASSWORD
  PASS - RESET_PASSWORD
  PASS - SET_FORGOT_PW
  PASS - FORGOT_PASSWORD_1
  PASS - FORGOT_PASSWORD_2
  PASS - FORGOT_PASSWORD_3
  PASS - DELETE
  Testing Employees-MySQL-JDBC...
  PASS - CREATE
  PASS - READ
  PASS - SEARCH
  PASS - UPDATE
  PASS - CHANGE_PASSWORD
  PASS - RESET_PASSWORD
  PASS - SET_FORGOT_PW
  PASS - FORGOT_PASSWORD_1
  PASS - FORGOT_PASSWORD_2
  PASS - FORGOT_PASSWORD_3
  PASS - DELETE
  Testing Employees-UnboundID-LDAP...
  PASS - CREATE
  PASS - READ
  PASS - SEARCH
  PASS - UPDATE
  PASS - CHANGE_PASSWORD
  PASS - RESET_PASSWORD
  PASS - SET_FORGOT_PW
  PASS - FORGOT_PASSWORD_1
  PASS - FORGOT_PASSWORD_2
  PASS - FORGOT_PASSWORD_3
  PASS - DELETE
  Testing Employees-OpenDS-JNDI...
  PASS - CREATE
  PASS - READ
  PASS - SEARCH
  PASS - UPDATE
  PASS - CHANGE_PASSWORD
  PASS - RESET_PASSWORD
  PASS - SET_FORGOT_PW
  PASS - FORGOT_PASSWORD_1
  PASS - FORGOT_PASSWORD_2
  PASS - FORGOT_PASSWORD_3
  PASS - DELETE
Test Results
============
  PASSED = 44 / 44
  FAILED = 0 / 44

  Final Result: PASS

CLI:

A testing script has been added to the openptk/branches directory called testing.  In that directory, you will find a cliTest.sh which will execute the OpenPTK CLI against several CONTEXTS being implemented by an OpenPTK Server.  To test, simply follow these instructions.

  1. Startup OpenPTK Server
  2. Change directory to your openptk/branches/testing
  3. Set your CLI_HOME to be the home location of the OpenPTK CLI build or unziped distribution
  4. run cliTest.sh
  5. Observe results

NOTE: This will default tests agains the following CONTEXTS:

  • Employees-Embed-JDBC
  • Employees-MySQL-JDBC
  • Employees-UnboundID-LDAP
  • Employees-OpenDS-JNDI

If you would rather run against a different set of backends, just set the environment variable CONTEXTS to the list of backends before you run the cliTest.sh:

# This will only test the Employees-Embed-JDBC service
$ export CONTEXTS="Employees-Embed-JDBC"

Example output from this test script:

$ ./cliTest.sh
Project OpenPTK CLI Testing Script (cliTest.sh)
===============================================
This script will use the OpenPTK CLI to hit a
running server and backend services test
against expected output from several of the
OpenPTK Operations.

           CLI_HOME = /Users/tls/projects/svn/openptk/build/package/Apps/CLI/openptk-cli-2.0.0
    CONTEXTS Tested = Employees-Embed-JDBC Employees-MySQL-JDBC Employees-UnboundID-LDAP Employees-OpenDS-JNDI
     OpenPTK Server = http://localhost:8080/openptk-server


Running Tests
=============
  Testing Employees-Embed-JDBC...
  Testing Employees-MySQL-JDBC...
  Testing Employees-UnboundID-LDAP...
  Testing Employees-OpenDS-JNDI...
Checking Results
================
  PASS - Employees-Embed-JDBC
  PASS - Employees-MySQL-JDBC
  PASS - Employees-UnboundID-LDAP
  PASS - Employees-OpenDS-JNDI
Test Results
============
  PASSED = 4 / 4
  FAILED = 0 / 4

  Final Result: PASS




UML:

In addition to the minimum tests, registration should be tested in this interface for at least 1 backend (Employees-Embed-JDBC). 

IdentityCentral:


In addition to the minimum tests, registration should be tested in this interface 1 backend (Employees-Embed-JDBC).