Skip to main content

A TIBCO Fulfilment Provisioning test helper

Project description


Release Status Build Status


class TerminateGponLinkTest(fptest.FpTest):
    def test_workorders(self):
        expected_workorders = [('LST-ONTDETAIL', 'WOS_Completed'), ('DEL-ONT', 'WOS_Completed')]
        actual_workorders = [(, wo.status) for wo in self.cart_order_tracing.outgoing_workorders]
        self.assertListEqual(expected_workorders, actual_workorders)

    def request(self):
        return """
           <!-- Snipped for brevity -->

fptest.FpTest extends unittest.TestCase and overrides the setUp method to post the contents of request() to FP. It then parses ../runtime/FPNode/cartOrderTracing.00000.log into a format where it is much easier to pull information out of the trace file.

You can then write tests in Python that are expressive and repeatable. I am using nosetests and the --with-xunit flag to output a file of test results that Jenkins is post-processing!


pip install fptest


The following file structure is assumed:

|-- IntegrationTests
`-- runtime
    `-- FPNode

The directory structure is important as FpTest will look in ../runtime/FPNode for the cartOrderTracing log file.


There are two samples in the /samples directory of this project. These are tests that I am successfully running against my instance of FP.

Documentation to come

  • Explanation of setting up cartridge simulators to pass / fail depending on input values
  • Explanation of raw_params and params in the work order
  • Explanation of self.fp_url and self.fp_node_dir
  • Explanation of Trace and WorkOrder
  • Order id and

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fptest, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size fptest-0.1.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page