TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vishal deshpande
NA
2
0
TFS-C# integration. Not able to update test result history
Jul 24 2014 10:00 AM
In TFS, we are able to update the test result through TFS API but not able to update the test result history in TFS
Code:
foreach (ITestCaseResult result in results)
{
if (result.TestCaseId == 15)
{
iterationResult = result.CreateIteration(1);
MessageBox.Show(iterationResult.ToString());
foreach (ITestStep testStep in result.GetTestCase().Actions)
{
ITestStepResult stepResult = iterationResult.CreateStepResult(testStep.Id);
stepResult.Outcome = TestOutcome.Passed;//you can assign different states here
iterationResult.Actions.Add(stepResult);
}
iterationResult.Outcome = TestOutcome.Passed;
result.Iterations.Add(iterationResult);
result.Outcome = TestOutcome.Passed;
string TCresult = result.Outcome.ToString();
if (TCresult == "Failed")
{
AddAttachment();
}
}
}
results.Save(true);
testRun.Save();
testRun.Refresh();
Reply
Answers (
0
)
In TFS we are not able to update Test result history-TFS API
upload text file to 5 ftp servers