How to get a list of function names from a library? (Introspection)

Find and share HowTos to various installations / configurations!
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)

Post by 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. :)

With regards,
Frank

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: How to get a list of function names from a library? (Introspection)

Post by RudiKreiner »

I vaguely remembered seeing a similar question here earlier and went looking for it.
Here it is
https://portal.etm.at/index.php?option= ... =5121#5183
together with the answer.

flindecke
Posts:69
Joined: Wed Jun 24, 2015 1:54 pm

Re: How to get a list of function names from a library? (Introspection)

Post by 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)

3 posts • Page 1 of 1