Test Authoring and Execution Framework(TAEF)

1. Download ”windows driver kit 10” for windows 10 (I can’t download it in the office)
2. run cmd and cd %programfiles%\Windows Kits\8.0\Testing\Runtimes\TAEF\
3 Te.exe D:\Run\MyTests.dll  (the dll build from unit test project)

you can add parameter to test some function 
Te.exe D:\Run\MyTests.dll /name: UnitTestProject1.UnitTest1.TestMethod1(namespace name+class name+function name )
Or Te.exe D:\Run\MyTests.dll /name: UnitTestProject1*

Wex.logger
Add using Wex.Logger.Interop.dll in the project(%programfiles%\Windows Kits\8.0\Testing\Runtimes\TAEF\)
Log.Comment(logMessage);
Log.Warning(logMessage);
Log.Error(logMessage);
Log.Result(TestResult.Passed, message);

posted @ 2017-03-28 00:00  PhilXu  阅读(122)  评论(0编辑  收藏  举报