Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build a test running multiple test groups concurrently, but showing I/O data of all test groups on the same webpage? #1080

Open
daviddengma opened this issue Jan 27, 2023 · 1 comment

Comments

@daviddengma
Copy link

We are building a manufacturing test station, which needs to run test groups over 4 modules at a time. Those 4 test groups share couple of instruments so they will need to take turn on those test cases; but other than that they have their own resources for remaining test cases. All the I/O data, like user input, prompts and logs, test results, of 4 test groups need to be displayed and refreshed on a single webpage. How does openhtf support such a use case? Any suggestions are highly appreciated.

@kehrazy
Copy link
Contributor

kehrazy commented May 16, 2023

well, similar functionality is already in the _MonitorThread class, however:

  • if we use any sort of input that requires human intervention, the whole program locks up. input blocks globally (does it?)

  • we should make a "ConcurrentGroup", which should (should it?) open up a whole bunch of threads...

if __name__ == "__main__":
    executor = htf.Test(
        htf.ConcurrentGroup(
            ...  # < a list of phases, just as a thread
        ),
        htf.ConcurrentThread(
            ...
        )
    )
    executor.execute()

So, the executor has a global threading.Event(). When all of the ConcurrentThreads stop -> kill the runner thread?

This way this API wouldn't break the existing APIs.

Although I wouldn't have any idea how does this mess up the GUI. I would imagine that the GUI would need some reimagination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants