setStatus function
void
setStatus(
- String status
)
Implementation
void setStatus(String status) {
String _currentTest = getCurrentTest();
String _currentStatus = getStatus();
// ignore: avoid_print
print('====================Changing status for current task ' + _currentTest + ' => ' + status + ' ====================');
testStatus[_currentTest] = status;
if (status == 'ERROR') {
if (_currentStatus != 'EXCEPTION') {
testStatus[_currentTest] = 'ERROR';
}
} else if (status == 'EXCEPTION') {
testStatus[_currentTest] = 'EXCEPTION';
} else {
testStatus[_currentTest] = status;
}
}