mardi 25 août 2015

Why the test outcome sometimes stays 'in progress' when I have saved 'passed'?

Here is a part of the code which is giving me a headache:

TestOutcome outcome = TestOutcome.Passed;
run.AddTestPoint(point, null);
run.Save();
var results = run.QueryResults();
ITestCaseResult result = run.QueryResults()[0];
result.Outcome = outcome;
result.Save();
point.State = TestPointState.Completed;
point.Save();

Sometimes it saves the outcome as 'passed', but sometimes as 'in progress'. It is 50/50, more or less. Any ideas?

Aucun commentaire:

Enregistrer un commentaire