testcpp autotest:support next, back and restart test via console
Merge pull request #5424 from heliclei/console-autotest

testcpp autotest:support next, back and restart test via console