Coded UI test running Powershell vs Coded UI test running TFS build

  • Thread starter Thread starter LEE KAH WAI
  • Start date Start date
L

LEE KAH WAI

Guest
Hi,

I've created a Coded UI test that runs on VS2017. It works if I launch VS2017 as an administrator.

ie. I'm able to launch and perform the mouse.click() operations.


I wanted to create nightly builds for these Coded UI tests. I've created a build in TFS which eventually launches the following command

"vstest.console.exe C:\agent\xxxxxxxx\test.dll"

The tests are executed but failed due to launch certain programs or failed the mouse.click() operations.


However, if I use Powershell as administrative mode and keyed in the same command. I'm able to run the test

Continue reading...
 
Back
Top