Posts

Showing posts from May, 2017

MTM and Coded UI Test Context parameters

The test context parameters related to tfs/tcm ( test case management) are available only if the tests are executed in the context of tfs server. This essentially means that the parameters are available only when the run is initiated from MTM and are not available when the run is initiated from VS The full list of test context parameters are            "__Tfs_TestRunId__"             "__Tfs_TestPlanId__"             "__Tfs_TestCaseId__"             "__Tfs_TestResultId__"             "__Tfs_TestIterationId__"             "__Tfs_TestConfigurationId__"             "__Tfs_TestConfigurationName...

How to get parameters from microsoft test manager to Coded UI

How to get parameters from Microsoft test manager (TestPlan/TestCase)  to Coded UI To get "parameter"  directly from a  testcases.in Coded UI. [TestCategory("CodedUITest"), DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "Server_Path;TestPlanName", "TestCaseID",DataAccessMethod.Sequential), TestMethod] Public void CodedUITest {   //Do test Stuff   String parameter = TestContext.DataRow["parameter"]; } Source : - how-to-get-parameters-from-microsoft-test-manager-to-coded-ui