Is there a "mixin" plugin or API for test automation results and PASS/FAIL logic? #9976
Replies: 3 comments 2 replies
-
I would not put that into an InvenTree plugin, especially if you are connecting to anything that does power over SCPI. We have been brainstorming a generalized workflow engine (that could be extended by external sensors/actuators) but due to lack of user/sponsor interest there has not been any concrete work on it #2817 |
Beta Was this translation helpful? Give feedback.
-
Most of the SCPI equipment these days as simply SCPI commands over serial or LAN, so no power issues. So with it being said that I should prefer running something external that operates on the API, is there still some way that I could write an easy (simple) integration with a link or button to kick off the process from the web UI area of tests/results? |
Beta Was this translation helpful? Give feedback.
-
I'll look into that, thanks! Also you maybe confusing SCPI with GPIB Ports. GPIB ports use SCPI commands, but now the industry uses the same SCPI command set and registers over USB, Serial, and LAN...same language...different interface. My Fluke multimeters use variants of it and I do have programmable DC load testers that use it as well (over USB or RS-232). All are devices that I need to use for verification and testing after assembly of stock. Scales don't use it...but still use serial ports, so they still have a need for a process gets kicked off in inventree that fetches the values and alters test results (PASS/FAIL). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm still trying to wrap my head around the basics of the system. But I think I'm getting there. Right now I'm looking into what my test or validation workflow is going to be and how that's going to be indicated in inventree. I'd rather not make code changes to the base source code I'd rather use some sort of plug-in or something I can keep in the data folders as I move them around docker instances.
In each of my ideas it comes down to something relatively straightforward:
Creating some form of a button or link that when clicked on the Inventree web UI for testing built items, executes a custom process/script/etc that actually begins the test routine. Let's say for example it's a simple as weighing a product or using SCPI commands to grab a measurement from a multimeter, let's say ohms, and take that value and put it into the system and then use logic in the inventree module to pass or fail the test result.
So in this case triggering a singular event that brings back a singular value for evaluation of pass/fail and recording in inventree for tests on the build/assembly.
I have no problem retrieving the digital value from a network device (I can write that kind of stuff easily), I just don't know how in the world I would integrate such a thing into your inventree system. Is there a test section that a mixin is supposed to Interface to that allows for the event to be triggered by inventree (via testing of the build) and the placement of the results in the correct test areas. Or is this something that you anticipate an entirely separate program utilizing the Python REST API for Inventree? And if that's so how would you trigger the separate program so that it starts interacting with the API from the inventree web UI?
Any ideas of how something like this should be correctly attached to the system and not just modded/hacked into it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions