i want to send an email alert to the user when a test execution result is pass or fail or any other status when it is executed on test manager. i know test manager can not do it yet the TFS can, i have tried various combination of queries to set an alert for the same. I want to do it for an automated test case. the build i'll create will not be changing much as i am up to testing of services. only test cases will be executed on the same build and results are to be displayed.
Sending out email alert when a test case is pass or fail
5.2k Views Asked by Varun Bajpai At
1
There are 1 best solutions below
Related Questions in TFS
- Missing Header (Feature Title and Toolbar) on some Feature Work Items in TFS Web Access
- Upgrading separate Project Collection Database to new TFS Version
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- The merge tool is not showing when call Workspace.ResolveConflict method in TFS 2012
- HowTo: change a project's status from `Invalid` to `Valid`?
- TFS 2013 Object reference not set to an instance of an object in Team Explorer
- Release Management for Visual Studio 2013 - Release Exception
- Visual studio 2013 team project has been deleted
- TFS version control does not show conflicts
- include typescript file in output result build with TFS
- Team Foundation 2012 not recognising changes in vb6 app
- WebDeploy from TFS using Build Definitions to IIS site containing files changed by users
- Team Foundation plugin for Android Studio
- TFS 2013 with Octopus Deploy, Email Template - Resolved Bugs/User Stories
- What is the best branching strategy in TFS to share code between multiple team projects?
Related Questions in MICROSOFT-TEST-MANAGER
- CodedUI - Can build-deploy-test workflow close IE browser instance on test agent machine?
- How to run scheduled Coded UI Tests on Virtual Machine without having a RDP connection
- Run Automation UI Testing through Selenium and Coded UI Without Build from TFS
- Pass parameter to testsettings setup script
- MTM has a test agent in "Ready" status, but can't connect
- How to run MTM tests on multiple product builds?
- TFS Requirement-based suite displayed in MTM as a Test Suite or Web Access Test Suite --are they configurable SharePoint List?
- Unit Test Adapter threw exception: Method not found
- Integration between Enterprise Architect (EA) and Microsoft Test Manager (MTM)
- Hiding the test result overview charts
- Sending out email alert when a test case is pass or fail
- Attach Current Build to Test
- Uploaded test cases on TFS are not visible in Test Manager
- Linking Test cases in test manager
- TFS test cases - get most recent run outcome
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you start automated tests manually from MTM there is no way to create an alert (or at least no standard way).
The reason is that the Test Case does not change if you run the test. A new Test Case Result is created instead which is related to the Test Case.
Since this Test Case Result is not a Work Item you can not create a query for e-mail alert.
If it is about failed test runs the workaround could be to create a Bug for each failed test run and assign these bugs to particular people who have been set up TFS alerts for new bugs assigned to them.
Another possibility would be to access Test Case Result using TFS API and implement sending e-mail yourself. But this is not the solution you are looking for, I suppose.
But you will definitely be better off using it this way:
See How to: Create a Build-Deploy-Test Workflow for a Standard Environment for more details.
That means you can use this build definition for starting tests only (no build, no deployment if you don't need them).
This build will be successful if tests are successful and will fail if tests fail.
Added: Check Received build notifications for more details on how to do this.
That is the way it's intended to be used, basically.