locked
Coded UI test case not working on another machine RRS feed

  • Question

  • I am getting an error when running a test case built on one machine and run on another.

    'Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException' occurred in Microsoft.VisualStudio.TestTools.UITesting.dll but was not handled in user code

    Additional information: The playback failed to find the control with the given search properties.

    The playback failed to find the control with the given search properties. Additional Details: 
    TechnologyName:  'MSAA'
    Name:  'Internet Explorer'
    ControlType:  'MenuButton'

    The test case is a very simple one.

    It clicks on IE in task bar and opens a new tab .

    This recording is working on one machine.

    The code is checked in TFS.

    When I tried to run the same test on another machine, it failed.

    IE is pinned to task bar on that server also. 


    • Edited by Lax91 Wednesday, April 13, 2016 12:06 PM
    Wednesday, April 13, 2016 12:05 PM

Answers

  • Hi Lax91,

    Thanks for your post.

    >>Additional information: The playback failed to find the control with the given search properties.

    From the error message you offered. The cause of the error message is that the search property is not correct which lead it can't find the control using this search property.

    Please makre sure your test code is ok, you can validate it via the following ways

    1. Run your test in the mahince A directly and check whether it gives the same error message.

    2. Or you could copy your test project to the machine B and run it on mahcine B.

    If the problem is in your test code itself, please change another search property then try it again.

    If your test code is correct. I think the problem is more related to the TFS build and check-in. Please double check the check-in steps and make sure all related files were checked in.

    Best Regards,

    Lake Xiao

    • Proposed as answer by lake Xiao Thursday, April 21, 2016 8:27 AM
    • Marked as answer by lake Xiao Friday, April 22, 2016 1:19 AM
    Thursday, April 14, 2016 1:56 AM