Skip to content
This repository was archived by the owner on Jul 19, 2018. It is now read-only.

Testing

rushimg edited this page Jun 12, 2012 · 1 revision

Test files are provided along with the litleSdkPython module in order to aide in development and ensure proper use of the SDK.

SetUp

To begin, run setUpConfig.py in the litleSdkPythonTest folder. The script will prompt the user for a username, password, merchantId which can be set to anything when testing against sandbox and a proxy if required by your system to talk to Litle. This file will create a file named testConfig.py which contains the configuration data for all the tests. This file can be edited to suite your testing needs.

Unit Tests

Unit tests test individual functions within the SDK. They can be run individually or all together with testAllUnitTests.py

Functional Tests

Functional tests test transactions and error conditions using SDK. They can be run individually or all together with testAllFunctionalTests.py

Certification Tests

Certification tests are the set of test required by Litle in order to move into production. They contain a wide variety of use cases. They can be run individually or all together with testAllCertificationTests.py

All tests can be run together by running the TestAll.py file in the all folder.

Clone this wiki locally