locked
Query on Test setting parameter Scripts - 'You can run scripts before or after your automated test run' RRS feed

  • Question

  • Hi

    I am executing codedui testcases using lab management.

    My Setup : 1 Controller, 2 test agents.

    Execution is kicked off using TFS build which used labmanagement template to kickoff execution.

    There is one parameter in MTM Test setting - Advanced ->Scripts (Scripts - 'You can run scripts before or after your automated test run')

    In this parameter, If I add any shellscript to restart machine, which machine will be restarted? (Build Agent, Test controller machine or Test Agent machine)?

    I dont want to restart build agent or test controller machine bymistake.

    Command I am using to restart machine is:

    powershell.exe -executionpolicy bypass Restart-Computer –force

    Regards,

    User232482

    Thursday, May 26, 2016 12:27 PM

Answers

  • Hi User232482,

    Thanks for your post.

    >>In this parameter, If I add any shellscript to restart machine, which machine will be restarted? (Build Agent, Test controller machine or Test Agent machine)?

    Scripts to be run on the test machine before and after starting automated tests.

    So per my understanding. This script will be ran in the Test Agent machine.

    Best Regards,

    Lake Xiao

    • Proposed as answer by lake Xiao Monday, May 30, 2016 12:49 AM
    • Marked as answer by User232482 Monday, May 30, 2016 2:06 PM
    Friday, May 27, 2016 2:54 AM

All replies

  • Hi User232482,

    Thanks for your post.

    >>In this parameter, If I add any shellscript to restart machine, which machine will be restarted? (Build Agent, Test controller machine or Test Agent machine)?

    Scripts to be run on the test machine before and after starting automated tests.

    So per my understanding. This script will be ran in the Test Agent machine.

    Best Regards,

    Lake Xiao

    • Proposed as answer by lake Xiao Monday, May 30, 2016 12:49 AM
    • Marked as answer by User232482 Monday, May 30, 2016 2:06 PM
    Friday, May 27, 2016 2:54 AM
  • Thanks
    Friday, May 27, 2016 9:51 AM