I am designing a custom UI, and I hope to update the TestStep data into the UI table in real time during the execution of TestPlan. After the execution of TestPlan, I detect that the ChildTestSteps property has changed. Does any interface notify UI when the TestStep property is changed during the execution of TestPlan?
HI @ian11,
Due to the multi-threaded nature of OpenTAP, we don’t recommend using the IPropertyChanged interface for notifying when something in the test plan changes, especially due to running the test plan.
In this kind of situation we recommend that you use a result listener to listen for TestStep/TestPlan completed events. You will need to dispatch the event into your GUI thread, since the event will be fired from a result listener thread.
You can just throw the result listener into the list you are already giving to TestPlan.Execute:
Thank you very much. By this method, this function has worked very well.
1 Like