PlanLoadException in OpenTap 9.24 with Unassigned Instruments

We have two versions of our software: one uses OpenTap version 9.13 and the other uses 9.24.

In our test plan, we have steps that use instruments. In OpenTap version 9.13, I can open the test plan even if the instrument is not available, allowing customers to open the test plan and reassign the instruments between testers.

However, in version 9.24, it throws a PlanLoadException if the instrument is not created or assigned, preventing me from opening the test plan. Is there any workaround for this?
I need to be able to open the test plan even if the instrument is unassigned or not created.

Question posted regarding : Ratheesh

1 Like

Hi @justin_c_i,

Have you developed a custom GUI around OpenTAP?

In 9.23, a UI pops up which asks the user to decide between continue and abort when a test plan with errors are loaded.
Unfortunately, it seems that if there is no handler for the event, it will just assume to abort loading the test plan. This sounds a bit like a breaking change, so theoretically we might need to fix it.

However, since this was added a while ago, I am not sure what the right approach would be.

What you can do is to create an IUserInputInterface instance, and added it with UserInput.SetInterface.

But this only applies if you are indeed creating your own user interface. Is that the case?