[TIP] Functional test framework library for python
tottinge at gmail.com
Wed May 10 11:30:08 PDT 2017
On Fri, May 5, 2017 at 8:44 AM Matthew Harelick <mharelick at fastmail.fm>
> I am sending inputs and validating messages that are received. I am
> creating the libraries that are connecting to message streams for the
> system under test. I need a test control and reporting framework
> hopefully written in python.
First off, I would always rather write just about anything in Python too.
So, a test would be something like:
1) Set context for a message (maybe db, file sys, etc?)
2) Send a message
3) Do a set of checks on the result
4) put the context back to normal
It seems like one would write a few of these tests in python using whatever
library you have for the messaging, and then extract the common code from
the tests. After four or five, you should have all the framework you need
(if you're pretty diligent about refactoring).
I've done this for writing tests of stored procedures and microservices,
though a lot of that testing is faster if done in the native app's
micro-testing (unit test) framework.
Are these tests to run in the background (so performance isn't so
important) or on the developer's station (in which case, you want ALL tests
running in a handful of seconds)?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python