locked
Running CUIT OrderedTests using TFS 2013 Default build template RRS feed

  • Question

  • I am configuring build definitions with TFS2013 default build template (TfvcTemplate.12.xaml). 
    I want to be able to run my CUIT ordered tests from this build definition but I could not find how to do it.
    I am aware that we can specify dll path but it would not ensure that the tests inside a given dll would run in the required order. 
    I am wondering if there is a way to specify my ordered tests in build definitions. 

    Any help is highly appreciated.

    Wednesday, December 30, 2015 11:37 AM

Answers

  • Hi Abhilash,  

    Thanks for your post.

    To run Code UI test using TFS 2013 Build, you should configure your TFS Build Server un as Interactive Process, refer to the Run your build server in interactive mode in this document: https://msdn.microsoft.com/en-us/library/ms181712(v=vs.120).aspx.

    Then you need create the Ordered Test for your Code UI test project in your solution, and ensure you can manually run your Code UI test as order correctly. https://msdn.microsoft.com/en-us/library/ms182630(v=vs.90).aspx

    Then configure your TFS 2013 build definition to run the .orderedtest during Build: in build definition>>Process>>Automated tests>> open Add/Edit Test Run dialog>>in Test assembly file specification textbox, change **\*test*.dll; **\*test*.appx to **\*test*.orderedtest; **\*test*.appx, the save your build definition.  After this edited, your build definition will run your *test*.orderedtest file during TFS Build, like your manually run this *test*.orderedtest file using VS 2013.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, December 31, 2015 3:24 AM
    Moderator