This project has retired. For details please refer to its Attic page.
Apache Chemistry - TestSuiteDescription
     
   
 

Introduction

The Test Suite tests some of the basic CMIS functionality. This will be used to validate this client library against a wide variety of CMIS compliant repositories.

Details

This Test Suite tests the following functionality:

  • Getting the Type information of an object
  • Creating a folder
  • Creating a document
  • Listing the files and folders in a folder
  • Getting the contents of a created document
  • Moving a Document
  • Deleting a document

The user must provide the following information:

  • The URL of the server
  • The Authentication credentials
  • The name of an existing folder
  • The name of a new folder that will be created as part of the tests
  • A flag that tells how much debug information to print out

Currently the test suite does not have an "expects" capability allowing it the validate the test results. That will be added as one of the TODOs.

Running the Test Suite

php -f cmis_test_suite.php url_to_cmis_compliant_repository username password existing_folder new_folder_name debug_flag

  • url_to_cmis_compliant_repository : The URL For the ATOM-PUB/REST binding of a CMIS compliant repository
  • username : username
  • password : password
  • existing_folder : An existing folder in the repository. A folder will be created in this folder to contain any documents created as part of this test
  • new_folder_name
  • debug_flag : if non-blank and non-zero, extra debug information will be printed

Currently the output is a bit of a fire hose. This will be cleaned up.