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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -