Attach Current Build to Test

前端 未结 1 1345
粉色の甜心
粉色の甜心 2021-01-27 08:22

I\'m playing around with Microsoft Test Manager 2013 (though it appears it is just MTM2012) to try and get a better understanding of test cases and test suites as I want to use

相关标签:
1条回答
  • 2021-01-27 08:58

    When running manual tests from MTM you will not see the build you are using in Test Runner.

    But if you complete the test and set the test outcome you will be able to check which build you've ran the test against.

    Just double-click on the test or select "View Results" to display test results:

    enter image description here

    This column is not visible by default. You will have to right-click on the column row and select the column "Buld number" to be displayed.

    You will also be able to see the build number in "Analyse Test Runs" area:

    enter image description here



    The things are slightly different if you are running automated test.
    Consider following approach:

    1. Automate your Test Cases
      See How to: Associate an Automated Test with a Test Case for details.
    2. Create a Build Definition building your application under test AND assemblies containing your tests.
      I strongly recommend build application you want to test and test assemblies using in the same Build Definition. (You will see why a little bit later).
    3. Run this build definition and deploy the latest version of the application to the environment where you want run the tests.
      This is very important to understand: if you run automated tests the tests assemblies only would be deployed automatically to the environment.
      It's your job to deploy the right version of the application you are going to test.
    4. Now you can run tests from MTM.
      You can do it the way described by @AndrewClear in the comment to this answer: "choose "Run with Options" when you're beginning a test run" and select the latest build.
      Now test assemblies containing tests which are using to automate Test Cases will be deployed automatically to the test environment and the tests will be executed.
      That is the point you should recognize why is it so important to build application and tests with a single Build Definition: since the build number you've just selected when starting the tests will be stored along with the test results on TFS you will later know what version of you application you were testing (assuming you deployed the right version, of course).

    You could go a little bit further if you want even more automation (This is the way I'm currently running automated tests)
    Use Deploy-Build-Test template (this is a good place to start reading about Setting Up Automated Build-Deploy-Test Workflows).
    Using this approach you will be able to automate deployment of the application you want to test.

    0 讨论(0)
提交回复
热议问题