Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing with Python
#1
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 ....
Reply
#2
Here's something to look at: https://www.slideshare.net/YuvarajaRavi/...ing-python
Reply
#3
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.
Reply
#4
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?
Reply
#5
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).
Reply
#6
Thanks... This is the way to go.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Testing homemade encryption program in python LEJONKINGEN 1 3,321 Mar-04-2017, 04:09 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020