02-09-2017 04:56 AM
Hi,
I have a custom report processing plugin, which generates test reports. Currently it generates reports file even if user terminates test. I want to skip report generation in "Model Plugin - UUT Done" if main test sequence is terminating. I tried to use GetStates method but it seems that I am using it with improper reference, becouse it always returns "normal" state.
Any idea how to check if test is terminated from model plugin?
02-09-2017 05:12 AM
OK I figured out that plugin has parameter called UUTStatus which I can use. But still it would be nice to know how to get reference for the main test sequence 🙂
02-10-2017 11:51 AM
I'm not sure, whether you can get directly reference to Main Sequence, but I beleive, that all needed parameters you can anyway get via test report plugin Parameters of Model Plugin - UUT Done callback. Just put there breakpoint, and check during run-time what parameters you can get...
By the way, what information you need for your plugin, from executed test sequence?
02-13-2017 04:07 AM
I needed information on whether the test was terminated or not.
In this particular case, you were right (kind of) - I could get this information from socket status.