Wednesday, July 24, 2013

Test Executives - part 3


I started writing about test executive software last month, and then a couple weeks ago I wrote about off the shelf software.  Now I want to write about my experiences with "rolling your own" test executive.

I've worked with homegrown test executives at two different companies.  At the first company the test executive evolved out of a couple of different programs for testing different features of the same product.  In the second company, I worked with a test executive that had been written several years before I started. I'll address each one in a separate paragraph.

The executive I wrote myself was somewhat rudimentary.  For the products we were manufacturing, there were six distinct tests you could perform.  Each of those tests had from about 3 to 20 different numerical parameters that could be adjusted.  This just screamed out for scripting, so that's what I did.  The end result had the configurability I needed, and it was often used by test technicians, but it was missing several other features of an off the shelf system test executive:

  • It was only usable within the Labview framework I had written.  For example, it couldn't interface with any modules written in C++  without a lot of extra coding.
  • There was no programmatic logic in the scripting.  The scripts consisted entirely of what tests to perform under what conditions - no if-then or optional looping allowed.
  • Some reporting tools existed, but mostly in simple formats (saving CSV files or bitmaps of graphs).
  • It was written with testing a specific product, and had to be overhauled to test some other type of product.


The other test executive was written in .NET and made use of Measurement Studio for certain graphical presentations.  The scripting tools had quite a bit of programmatic control, and the reporting tools were more extensive.  But there were different problems.

  • Because it had been designed as a reconfigurable tool, it was horribly complicated to use.  We didn't let technicians near it without a lot of training.
  • It was only usable within the .NET framework and didn't play well with other modules.
  • It was written with testing a specific product, and had to be overhauled to test some other type of product.


That's a brief synopsis of the two in-house test executives.  So, what is the point I'm trying to make?  I'm not really saying that you should run out and buy a copy of Test Stand.  It's certainly a nice piece of software, but it's expensive and may be overkill for what you need.  I guess the lesson I've learned is that if you get to the point were you want to develop something for yourself to reuse over and over, learn from how the OTS software does it.  Specifically:

  1. Don't make it overly complicated
  2. Make it generic enough to use for different tasks
  3. Use programmable logic in the scripting
  4. Have plenty of reporting tools




Epilogue:
I watched a webinar from JKI a month ago that discussed some nice ideas for developing test executives.  I really liked the suggestion of using Python as a scripting tool for Labview programs.  I even downloaded a Python book and started reading through it.  Neat.




2 comments:

kejava said...

As a long time LV developer, I really enjoy your blog posts. Have you ever considered using Python and Qt as an alternative to both LabVIEW and TestStand?

Unknown said...

Sorry for the delay in responding. The short answer is no. The long answer is in three parts. First, I'm not familiar with Qt (although I looked it up a little while ago). Second, I'm somewhat familiar with Python. However, my one experience with python in a test environment (debugging someone else's application) left a horrible taste in my mouth. And three, I have so much previous history with LV that it seems wasteful to switch to something else. Aside from my own personal library of previously-solved problems, there is a huge repository of pre-written tools for hardware interface, GUI interactions, etc. Why reinvent the wheel?