Custom operator GUI, display dialogs and input data into testplan

Dear forum users,

I too, have been (t)asked to build a custom GUI for running OpenTAP testplans. I’ve been researching OpenTAP for only a month now and ofcourse still have a lot to learn.

I have a functioning C# application that can execute testplans using the Async func. But for our tests we have to scan a QR code during the execution of a testplan, as well as displaying that prompt (and some other information). The use of the QR scanner is simple and is just the same as if the user would type a series of characters.

How can I best implement this feature? In another forum post the TUI is mentioned, however this seems a bit too complex for my use case.

Thanks in advance!

Hi @bob11 and welcome to the forum!

I suggest using the UserInput.Request call. It pops up a dialog, allowing the user to enter some values.

If you want something more fancy you can also intercept the call and provide your own UI for it. That is a bit more complicated though.

I suggest you start by checking the SDK Example mentioning user input.

Hi Rolf,

We’ve looked at using the UserInput.Request call, however this doesn’t fully encapsulate our use-case.
Our criteria have also changed a little bit, so we now are going to use a localhost tcp server for the communication between the running testplan and the UI. This way we also bypass any issues with prompts not being displayed correctly or the operator possibly ignoring that prompt.

Thanks for your reply anyway!