Python Forum

Full Version: Testing with Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hell all. I have few questions about developing an automating test for the real-time measuring device.
 The goal is to write a couple of test cases to test the system measurement and other parameters from two input sensors.

 The following are True: Linux OS... 
 I have researched the following Pytest, unittest ect. What could be a good python framework?

 Any suggestion will be okay to help steer me in the right direction ....
When it comes to testing with Python, Robot Framework is a good tool to know:
http://robotframework.org/

Although in your particular case, it might prove to have too much overhead. And depending on how you interact with sensors (what protocol?) it might require you to write extra Python code for interfacing hardware.
Thanks for the all the suggestions. However Question applied to a real time device testing.
example: a Barcode scanner, how do you test a bar code scanner using python?
If a serial device, I would test the connection first with putty.
Now you will know exactly what protocol is needed in the software.

Once you know that's working properly move on to code.
Try something simple, like sending a command to switch to code128 or 3 of 9
and see if you can read the return code (also try this with putty so you know what to expect for a return code).
Thanks... This is the way to go.