Microsoft Test Manager - Test Automation - testing

I have written a bunch of automated test scripts using visual studio 2013, and have categorized those in the hierarchy of Test Plan & Test suite using Microsoft Test Manager.
When I am executing a test suite, I am getting proper result whether a test case has failed or passed.
I can select a failed test case and create a bug in TFS project collection.
Is there any way which will automatically create the bugs for each failed test case instead of the tester creating the bug manually?

I'm afraid you need to create bug manually. In TFS, there is no event associated with test run failed, so you can't determine when test run failed.

Related

Run tests in TestCafé Studio via command

How can I execute a test via command in a way that the test run is shown with all its results in TestCafé Studio afterwards?
I'm using:
npx testcafe [browser] [TestCafe file]
The test is executed but the results are only visible in the console. Is there a way to fully integrate it in TestCafé Studio?
BTW: Why isn't there a tag for [testcafestudio] – the product is not that new ;-)
EDIT: I'll take a little further out: We would like to switch from TestCafé to TestCafé Studio to increase the number of people who can maintain and create individual tests in QA. Some tasks could then also be handled by employees with somewhat lower HTML skills. In addition, we would like to keep the connections we are used to, so that the tests are still triggered at certain times or manually via a Jenkins pipeline (Jenkins-->VIX-->CMD-->TestCafé Studio). Depending on the configuration of the respective test run, different branches would be used for the TestCafé Studio project via Git. The test results are read, parsed, and written to a database after the test run is complete. In addition, I would like to see the atomatically triggered calls available in TestCafé Studio, as it is very convenient to navigate directly to the failed tests.
Is it not yet possible to start tests in TestCafé Studio via CMD?
TestCafe Studio stores reports in its own format while TestCafe stores reports in various different formats that are inconsistent with the IDE format.
You can run tests in the TestCafe Studio itself. Are you running your tests in CI? If so, what CI are you using and why does not its reporting system meet your requirements? If not, could you please clarify why you are required to run tests outside the TestCafe Studio IDE?

Azure devops selenium testplan

I have created a test plan for 10 test cases. I have automated 5 test cases in visual studios 2019. I need to run the automated testcase from testplan, as that i have to execute the remaining manual testcase and failed automation tests manually in the testplan after the run overs.
We can run all tests in Azure DevOps.The only Failed test cases can be re-run using the Azure DevOps VS test task.
If you want to provide a test plan, you can use "Test filter criteria" option in the VS test task

How to configure MTM with TFS?

I have several test cases in TFS. I would like to run those test cases using MTM(Microsoft test manager) automatically and update the test results. How to connect or configure MTM with TFS so that I can automate all the test cases.
Connecting TFS from MTM is easy, just enter the TFS name or URL and choose your team project:
Details of Automate a test case in Microsoft Test Manager, check: https://msdn.microsoft.com/en-us/library/dd380741(v=vs.120).aspx
If you use TFS 2015.2 and later versions, then it's not needed to use MTM, you can use new build system and Run Functional Tests task to executing automated tests, check: https://blogs.msdn.microsoft.com/visualstudioalm/2016/03/31/executing-automated-tests-in-build-vnext-using-test-plan-test-suites/

How to run automated test cases through MTM 2015

I am trying to execute automated test cases (codedui) from Microsoft Test Manager 2015. I have executed by triggering tfs bui. But my requirement is to run through MTM 2015.
So far I have done the following:
Created an environment in lab - MTM
Created XAML Build definition
If you just want to run code ui test through MTM, seems not related to XAML build.
What you need to do is importing the test methods to TFS as test case and then which can be added to MTM through tcm testcase /import
Such as creating test suites which are tied to the CodedUI tests, and use these sub-selections of tests to complete a test run that validates a specific change made to the system.
More detail steps please refer this tutorial: How to manage and run CodedUI tests using Microsoft Test Manager

Run CodedUI from MTM 2013

I want to run a codedUI test case using MTM 2013
Here is what I already have so far:
I have codedUI test cases to test my web application.
The solution of these test cases has got nothing to do with my web application.
Now I have few test cases written in MTM 2013 (initially for manual execution). Later I had plan to automate these Test Cases Using codedUI and associate these automated Test cases to MTM test cases so that I don't have to open VSTS to run my automated test cases. Also this may serve the purpose that any other tester can also execute them using MTM.
Here is all I have done so far:
Installed and configured "Test Controller" in my TFS server.
Installed "Test Agent" on the machine I want to execute the automated test cases.
Created Physical Lab Environment successfully in MTM.
Associated the codedUI automation with test cases in MTM.
Now when I go to play test case in MTM, it gives me an error "Cannot create automated test run. A build associated with the active test plan is required to submit an automated test run."
Can you please help me with this. This is the first time I am using MTM test cases to associate codedUI automated test cases.
You need to assign a build to your test plan that contains your Coded UI tests. Otherwise, how does it know which version of your tests to run, and which version of your coded is being tested?
MSDN: http://msdn.microsoft.com/en-us/library/dd490760(v=vs.100).aspx
Check the answers to following SO questions, they may help you to understand how it is working:
Couldn't run my test using Microsoft Test Manager
Attach Current Build to Test