c# - Why the test outcome sometimes stays 'in progress' when I have saved 'passed'? -
here part of code giving me headache:
testoutcome outcome = testoutcome.passed; run.addtestpoint(point, null); run.save(); itestcaseresult result = run.queryresults()[0]; result.outcome = outcome; result.save(); point.state = testpointstate.completed; point.save();
sometimes saves outcome 'passed', 'in progress'. 50/50, more or less. ideas?
edit: looks doing toggle between 'in progress' , 'passed'. strange.
problem solved!
if ever encounter this, please add :
result.state = testresultstate.completed;
before save result.
Comments
Post a Comment