[ad_1]
I do know how run coded ui tests using a windows .bat file. It's relatively straight forward. You download MS Test Agent here and just use the relevant link for VS 2017 or VS 2015. In your coded ui project, select Build -> Batch Build. Copy the dll and make a .bat file that references your coded ui dll.
.Bat file:
C:
cd codedui
set mstestPath="C:Program Files (x86)Microsoft Visual Studio2017TestAgentCommon7IDE"
%mstestpath%mstest /testcontainer:SynTQCodedUITesting.dll
For reference, the steps are covered in better detail here.
My question is this: How do I run just 1 test using my .bat file? The problem is that using the approach described, all of my tests run. Of course I have hundreds of small tests (each test typically clicks 1 button or does 1 small thing). I don;t want to run all those small tests, I want to 1 and only 1 ordered test. How do I achieve this? Many thanks in advance.
[ad_2]
لینک منبع