c# - How to add test cases to microsoft test manager through program -
i have set of test cases in excel file. need import microsoft test manager through c# program/or scripting languages. searched web of answers pointing towards using "test case migrator plus". using test case migrator import test cases excel tfs (team foundation server) , not mtm. need done through program. can use test case migrator using c# program? or there way add test cases mtm? thank help. also, have checked posts similar upload test cases excel microsoft test manager 2013 , me, failed in addressing problem.
you can use tfs api create test cases. here sample code blog post explains process.
itestcase testcasecore = testmanagementteamproject.testcases.create(); currenttestcase = new testcase(testcasecore, sourcetestcase.itestsuitebase, testplan); currenttestcase.itestcase.area = sourcetestcase.area; currenttestcase.itestcase.title = sourcetestcase.title; currenttestcase.itestcase.priority = (int)sourcetestcase.priority; currenttestcase.itestcase.actions.clear(); currenttestcase.itestcase.owner = testmanagementteamproject.tfsidentitystore.findbyteamfoundationid(sourcetestcase.teamfoundationid); currenttestcase.itestcase.flush(); currenttestcase.itestcase.save();
Comments
Post a Comment