Load another test plan at runtime?

I want to create a test step that loads a different test plan at runtime. The TreeView in PathWave should also display the new TestSteps.

  • Is this possible or why isn’t it possible?

I have a lot of use cases and urgently need this logic:

For example, when a new order is scanned (order ≠ previous order), I want to set up the new test plan and execute it directly, etc.

  • What’s the best way to implement this?
  • Do I need a nested structure of multiple sequences?

Hi @fauser,

Loading a new test plan as part of the test plan execution itself is not supported. For this kind of use case it is recommended to create a custom operator panel. You can check out an example here: GitHub - opentap/operator-panel: Operator UI Example Project.

You could also have a test plan with sub-sequences for each type of device, maybe using test plan reference and then skip parts of the plan conditionally, depending on the loaded device.

Hi @rolf_madsen,

I’m also looking for a solution to this, can you elaborate a bit how the Operator UI could be a solution?

The Test Plan Reference step would solve the issue if the Reference path property could be resolved at runtime ( a previous step to set it). As I know it works only if the path is set an steps loaded before the plan is running, could this be changed?

Thank you!