Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
3 posts
• Page 1 of 1
flindecke
Posts:69
Joined: Wed Jun 24, 2015 1:54 pm
How to get a list of function names from a library? (Introspection)
Postby flindecke »
We are currently using the CTRL OA Unit test api for testing some central software components.
Currently WinCC OA does not provide a test runner, where we can see a list of all defined tests, their test suite etc.
My question is: Is there an API to get a list of known public (user defined) CTRL functions in the current CTRL interpreter context?
In such a case it might be not very complicated to write a test runner and it would help ourselfs a lot.
Re: How to get a list of function names from a library? (Introspection)
Postby flindecke »
Thanks a lot for the hint. I will give it a try.
With regards,
Frank
Update
Solution hint works like a charm. Now i can write test functions in libraries and running them by conventional names, without knowing them.
Next step is to have a fully blown test runner (later in the year)