I want to use a custome GUI to Run Testplans, that I make in the Editor. I have a custom Avalonia GUI. I can run example Testplans, and even Testplans, containing my own plugins that I have written in C#, from this GUI. I also can run any Testplan including Python ones, in the Community Editor, which I’m using to make the Testplans. But for some reason I can’t run TestPlans containing Python TestSteps, throught the .Net API. I get an error like this:
“XML Line 4: Unable to locate type ‘PythonExamples.BasicFunctionality.BasicFunctionality’. Are you missing a plugin?\nXML Line 4: Unable to deserialize test step.\nXML Line 19: Unable to locate type ‘PythonExamples.BasicFunctionality.BasicFunctionality’. Are you missing a plugin?\nXML Line 19: Unable to deserialize test step.”
So it looks like the .NET API can’t recognize Python-based plugins, even though they work perfectly in the Editor. Is there some setting that I’m missing? Or is it simply not supported to run Python TestSteps through the .NET API?
A bit more about my goal, and my setup:
I want to make a multiplatform GUI (Win/Linux) for testing. I have made a few teststeps, duts, and instruments already, both in C# and Python. Every python package I need is globaly installed on the PC, not in a VE as well as Python. Using OpenTap 9.29. with the new Community Editor.
Smaller extra question:
When loading a Testplan using the .NET API, I also get issues if the Testplan XML contains <Package.Dependencies> section like this:
<Package.Dependencies>
<Package Name="OpenTAP" Version="^9.29.1+335b2cbe" />
<Package Name="PythonExamples" Version="^3.1.0+73e66d85" />
</Package.Dependencies>
It’s automaticly generating if I make TestPlans throught the Editor. If I comment it out, everything loads fine — but it feels unnecessary. Is there a recommended way to handle package dependencies in custom runners?