Autodetect state
ready(1): Test has not been perfomed.
startTest(2): Start test
stopTest(3): Stop test (only supported for some types)
testSucceeded(4): Test succeeded and the result can be found
in Res1 and Res2.
testFailed(5): Test failed
testInProgress(6):Test is in progress. diagAutodetectDuration
contains the approximate duration in seconds
Typical state sequences after setting state to startTest(1)
->testInProgress(5)->testFailed(4)
->testInProgress(5)->testSucceeded(3)