visual studio 2013 - Windows command prompt not launching on executing batch file TFS (after build event) -
i integrating automated robot framework selenium test tfs server. on changes on tfs build, should trigger these suite.
i have created sample script , batch file execute scripts(test.bat). batch working fine manually.
now have integrated tfs using invoke process entity of https://msdn.microsoft.com/en-us/library/dd647551.aspx , https://msdn.microsoft.com/en-us/library/dd647551.aspx#code_proj_references.
i observed batch file executed code change reflected in tfs, console not displayed. log files shows required browser not opened execute tests..
robot test suite:
*** settings *** library selenium2library *** test cases *** login open browser http://www.facebook.com gc input text email xxxx input text pass xxxx click element loginbutton the batch file:
echo hello d: cd d:\guru_testing\facebook_login start pybot d:\guru_testing\facebook_login the error message:
keyword 'capture page screenshot' not run on failure: no browser open so test running failed because windows prompt , browser not launching.
i using tfs 2013 server.
any on highly appreciated. thanks
the build agent running in session 0 , never able interact desktop.
you have 2 options:
- configure build agent run interactively or
- use test agent again configured run interactively
if have small team , control build infrastructure, first option quick , simple. second option allows more complex configuration , may run on multi-server qa environment.
Comments
Post a Comment