Greetings.
I have a test framework written in C# that handles test execution,
logging, reporting, etc., and some tests for some of our hardware that
are written in Python. Ideally, I'm wanting to call Setup(), Run() and
TearDown() methods defined in Python scripts, passing them an instance
of the object I have that handles logging as a parameter (or defining it
globally from the perspective of the loaded script). Whilst I can find
methods that load entire Python scripts and call them from .NET, I can't
seem to find anything in the documentation or defined publicly in
Python.Runtime.dll. Is this doable? Is this documented?
Thanks,
Chris Meredith
Test Engineer, North American Embedded Professional Services
Email: christopher.meredith(a)nuance.com