apamapysys

How can I use PySys to test an Apama correlator


I know that I can use PySys to test my application, I've written a run.py file with my execute and verify but when I run it nothing seems to happen. I tried adding an init function and printing from there just to see if my test class was being instantiated but I got no output. Am I missing something?

I use pyhton run.py to execute it.


Solution

  • The problem is in the way you're trying to run the test. The run.py file just defines the execute and verify actions; it never calls them. What you need to do is:

    1. Navigate to your test directory in an Apama command prompt
    2. Execute pysys run

    You can also execute this from a higher directory, and it will execute all tests in that tree (it's recursive by default). Use pysys -h for help.