JanJorgensen / StepBro

Automation framework for .net
MIT License
3 stars 0 forks source link

SerialTestConnection AsyncLog sometimes spits data out right as it is opened before anything is sent to it #291

Closed MolaeMaceria closed 4 months ago

MolaeMaceria commented 4 months ago

This is the case of the SerialTestConnection has been opened before and has been given data consistently and then without closing it we start a new test where we start by opening it.

This is at least the case we have seen, it may happen in other cases as well.

The preferred behaviour would be that after a test or when a test case starts, any asynclog is flushed and does not appear in the log. This may be up to the test designer instead of StepBro, however for now it is given as a issue here.

MolaeMaceria commented 4 months ago

After having looked around for a bit, I believe it is better to leave this to the script writer, i.e. let them close and open the SerialTestConnection manually, so we do not fiddle with active objects between test cases, as the script writer may want to use them between test cases. Therefore this issue is closed.