Automation engine is unable to playback the test because it is not able to interact with the desktop : Unsing VS2012 on Remote Desktop, Window not Minimized

Hi
I am running these tests using VS2012 on a remote desktop. The session is alive when I try to run it. The Window is not minimized.
The tests run fine on my own machine. The VM has test agent and controller installed on it, but I am not using them right now to run the tests. Do you know what setting on my machine might casue this issue ?
Stack trace:
Test Outcome: Failed
Test Duration: 0:00:00.6287248
Result Message: Error calling Initialization method for test class <TestClassName> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Automation engine is unable to playback the test because it is not able to interact with the
desktop.  This could happen if the computer running the test is locked or it’s remote session window is minimized.
Result StackTrace: 
at Microsoft.VisualStudio.TestTools.UITesting.UITestLogGenerator.ExceptionRecorder(Exception exception, Boolean rethrow)
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.ThrowIfScreenLockedOrRemoteSessionMinimized()
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize()
   at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestExtensionExecution.BeforeTestInitialize(Object sender, BeforeTestInitializeEventArgs e)
   at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecution.RaiseBeforeTestInitialize(BeforeTestInitializeEventArgs args)
   at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.RunInitializeMethod()

Hello,
Thank you for your post.
“The VM has test agent and controller installed on it, but I am not using them right now to run the tests.”
In this case, how do you run the Coded UI test on the VM? You start the Coded UI test from your own machine and then open the remote desktop session to make the test run on VM?
If yes, I am afraid that you can’t do like that. You need to use the test controller and the agent in order to run the test on the remote desktop. Or you create the app and do coded UI test against it on the VM completely.
If I have misunderstood anything, please feel free to let me know.
Best regards,
Amanda Zhu [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Similar Messages

  • My ipod won't sync any of the music i downloaded and says that iTunes can't backup the Ipod because a session couldn't be started with the Ipod how do i fix this

    My ipod won't sync any thing in my iTunes library it always stop as soon as it starts backingup the Ipod a message appears that says iTunes cannot backup the Ipod "my Ipod" because a session couldn't be started withthe Ipod how do i fix this problem?
    This is exactly what the message says: iTunes could not back up the iPod "austins ipod" because a session could not be started with the iPod.

    Try connecting your ipod to another computer and sync only 1 file or song just for isolation purpose only to see if it'll sync.
    If still not syncing, then porbably you may have a bad iOS installed in iPod which is hard to see if it has a problem because you said nothing's wrong with iPod. I just saying is, it MIGHT have a bad iOS.
    If you are unable to do a restore, put your ipod in DFU mode, then connect to iTunes and iTunes will detect your ipod in restore mode. Press shift key (PC keyboard) then click the restore button on iTunes. I hope you have your copy of IPSW file for restoration purposes.

  • FDQM - Not able to login with the admin user

    Hi,
    I am not able to login to FDQM web browser using the admin user. I am facing the error as below;
    Error: Error retreiving security agent header.
    Detail: InnerException1: Access to the path 'D:\Oracle\Middleware\EPMSystem11R1\logs\fdm\Common\' is denied.
    I tried checking the Load Balance Configuration settings, where i found the Shared services Test connection was failing. But i am able to login to Shared services with admin user.
    Can any one please help me. It is most critical and your replies are most welcome & appreciated.
    Thanks
    Damodhar

    When was the last time you were able to login and what has changed since that time?
    Has someone changed access privileges to that specific location => Access to the path 'D:\Oracle\Middleware\EPMSystem11R1\logs\fdm\Common\'?
    Thank you,
    Todd Rebner

  • I am not able to connect with the App Store on my Macbook pro.  Software is up to date (10.7.4)

    When I attempt to connect to the App Store, I receive this

    The fact that they were preinstalled is why they are supposed to appear in the Purchased pane, in a temporary area labeled Purchases, for you to accept. Not doing so soon after you got the Mac has messed this process up.
    To get things back on track properly try these steps;
    Updating Pre-installed iLife apps -
    1 - Log out and quit iTunes and the Mac App Store (MAS)
    2 - Go to System Prefs/Users & Groups/~user/Password and enter the Apple ID connected to your iTunes/Mac App Store account. Close Sys Prefs
    3 - Delete /Mac HD/Library/Caches/com.apple.appstore/adoption.plist
    4 - Reboot your Mac
    5 - Open Mac App Store
    6 - Go to the Purchased pane and Accept the three iLife apps. Enter iTunes/MAS username/password if prompted.

  • Not able to scroll with the down and up key

    I have to hold down the mouse to scroll up and down

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing].
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works

  • I cannot update my Keynote to v.6 on the AppStore, because it asks me to log in with the Apple ID I used to buy it.

    The problem is, I bought the whole iWork suite a long time ago, before the AppStore was launched, so I did not use an Apple ID. I could upgrade previous versions just fine, but I can not any more. I hope I do not ned to repurchase them ....

    I responded to your here >  https://discussions.apple.com/thread/4420415?tstart=0
    Please do not start duplicate topics...  thanks!

  • I wish to know whether the new NVidia Quadro K2200 graphic card is compatible with the Mercury Playback Engine.  Thanks

    Hi.  I wish to know whether the new NVidia Quadro K2200 and K4200 are compatible with the Mercury Playback Engine in Adobe Premiere Pro CS6.  My old graphic card NVidia Quadro FX580 is not listed and not effective apparently because Mercury Playback Engine is effective as from 1Gb RAM. I use a HP workstation and AVCHD (AVCCAM) and DSLR full HD.  Thanks.
    Message was edited by: Brittany Mauriss
    Deleted private user information (email address)

    It is compatible, but why anyone would want such a weak and slow card at a premium price is beyond me. See Tweakers Page - What video card to use? and GeForce GTX980 vs Quadro k4200 (2200) #2.

  • I get an error message saying "system overload, the audio engine was not able to process all the required data in time (10011)

    i get an error message saying "system overload, the audio engine was not able to process all the required data in time (10011)

    The thing is, that error message has been appearing when playing/recording a track that was running perfectly a few minutes ago and nothing has changed!
    That can mean, that your project is too ambitious for your Mac. Are you using many complicated automations on that track?
    4GB memory is not much, when doing audio processing. GarageBand will need all memory it can get, or will be forced to continually swap pages to your disk, to free RAM, and that can cause this error.
    When this error occurs, it is best to restart the computer. This will free your RAM. Close all other applications that are competing for memory, i.e. other multimedia applications, and Safari.
    Also, make sure, that you have plenty of free disk space. Don't let the free disk space drop below 20G.
    Where is your project located? On an external drive or your internal drive? If it is on an external drive, connect this drive directly, not daisy-chained, or move the project to your internal drive.
    I got up to eat, came back and tried to continue but GarageBand shuts down and displays that message every time I try to run the song. I've also recently run songs with several more tracks than this one and they worked perfectly. Any tips?
    Are your other projects, that worked perfectly, still working?

  • Installed iTunes on my laptop Windows 7 64 bit and I now have the following problems 1) iTunes volume won't adjust with the laptop volume control, only within iTunes, 2) playback doesn't work unless I click play twice and 3) the iTunes Store won't open

    Installed iTunes on my laptop Windows 7 64 bit and I now have the following problems 1) iTunes volume won't adjust with the laptop volume control, only within iTunes, 2) playback doesn't work unless I click play twice and 3) the iTunes Store won't open

    Installed iTunes on my laptop Windows 7 64 bit and I now have the following problems 1) iTunes volume won't adjust with the laptop volume control, only within iTunes, 2) playback doesn't work unless I click play twice and 3) the iTunes Store won't open

  • Hello I am not able to published to the web using an FTP the test has a negative response  I do not know what is required in Directory/path Protocol and port

    Hello I am not able to published to the web using an FTP the test has a negative response  I do not know what is required in Directory/path Protocol and port

    If you use FTP then ftp is the protocol and 21 is the port.
    Your webhoster will tell you what path to use.
    You probably can read it in the FAQ/Help/Support pages where you host your website.
    All difficult words are explained in manuals, dictionaries or wikis.

  • Import the test results and doors links back to doors with NI Requirement Gateway

    Hi together,
    I will try to explain my problem:
    We are using TestStand, DOORS and the NI Requirement Gateway.
    We created a test specification in DOORS, TestStand used the DOORS IDs to connect the TestSteps in Teststand with the requirements in DOORS.
    TestStand runs the test and creates XML-results, the NIRG is able to import these XML-results back to DOORS and creates a new(!!!) DOORS module, parallel to the said test spec.
    This module contains some attributes like the single test steps, the results (pass,fail, whatever, ...) but now I am missing a relationship between the DOORS test specification and these results of the XML file or better, the XML-import in the new DOORS Module.
    We want to manage our test results only(!) in DOORS so it should be possible to link(!) automatically the results of the XML to the DOORS TestSpec cause we are able to transfer the DOORS-IDs or other attributes (i.e.. The "un"unique NI ID#") too!
    in ASCII-art:
    DOORS_TestSpec -> NI_TestStand -> NI_Result -> DOORS_Result  <--------- with LINKS to the DOORS_TestSpec!!!!!!!!!
    Next Step is the DOORS Analyze Tool but we need the links to follow them and to show us the results.
    Would be nice to know if somebody else knows the problem or perhaps someone has an other solution. Thanks for your time!
    Greet

    Regarding your statement "We will generate a chunk of XML-Results, so we are not able to link all the requirements by hand", are you concerned about having to update the path to the XML files each time you run the test?  In this case, I would recommend creating a directory to store only the most recent report (the report path can be modified in the TestStand report options), and set the XML report project in Requirements Gateway to point to this directory.  In your TestStand sequence, you could call code which moves the previous report file into a backup location so that only the newest file is in the specified directory.  THis would prevent you from needing to modify the Requirements Gateway project to access the latest report; reanalyzing would reload the project with the new file.  The traceability information will therefore always be up to date, and you can see that the DOORS requirements are being covered by the test results.
    I agree that there is not really a good solution for importing the XML reports into DOORS, but I think you can acheive the result you are looking for using the report files directly.
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • Hello everyone...I got my very first macbook pro just today and i have a problem deleting the "test" user account. if i can't delete it, the system won't let me turn off the system. I don't know what to do! HELP!!!!

    hello everyone...I got my very first macbook pro just today and i have a problem deleting the "test" user account. if i can't delete it, the system won't let me turn off the system. I don't know what to do! HELP!!!!

    Have you created another admin user? Go to system preferences click users and click the + to add a user; if you haven't already. Once you have another admin user other then the "test" user make sure you're signed out of the test user account. Sign in with the alternate ADMIN USER that you just created or had created already and go back to SYSTEM PREFERENCES and click the same USERS icon near the bottom. Now select the TEST user and click the - sign. This should prompt you if your sure you want to delete the user account. And your done.
    New User created and Test User deleted... I hope this helps.

  • I am having issues deactivating my version of CS4. I receive an error message stating unable to connect or that my firewall or proxy settings are interfering with the process. I do not want to uninstall until i can deactivate as i wish to use a copy on an

    am having issues deactivating my version of CS4. I receive an error message stating unable to connect or that my firewall or proxy settings are interfering with the process. I do not want to uninstall until i can deactivate as i wish to use a copy on another laptop

    Hi K8tym,
    Please refer to below article.
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Thanks

  • I m not able to connect for the wifi  which i have used earlier ,i m getting an error as unable to join the network how to resolve this please help me

    i m not able to connect for the wifi  which i have used earlier ,i m getting an error as unable to join the network how to resolve this please help me

    We were able to log in this morning and all is working. You should be able to log in at any point today. Please let us know if you are having any other difficulties.

  • Today I purchased an ATT mifi liberate hotspot to use with my early 2011 MBP,   the iPad Air I also purchased today. I've been testing out all the settings on the hotspot, but can't seem to get results with the GPS switch. GPS just spins, searches, doesn'

    Today I purchased an ATT mifi liberate hotspot to use with my early 2011 MBP, along with the iPad Air (128GB, WiFionlyI also purchased today. I've been testing out all the settings on the hotspot, but can't seem to get results with the GPS switch. GPS just spins, searches, doesn'. I can access the hotspots settings in Safari on the laptop and still the problem persisits. I did install some new GPS drivers recommended by AT&T, that doesn't seemed to have work. Could it be that there is a port wrong somewhere? Can anybody make heads or tails of this? Any assistance is gratefully appreciated...

    Today I purchased an ATT mifi liberate hotspot to use with my early 2011 MBP, along with the iPad Air (128GB, WiFionlyI also purchased today. I've been testing out all the settings on the hotspot, but can't seem to get results with the GPS switch. GPS just spins, searches, doesn'. I can access the hotspots settings in Safari on the laptop and still the problem persisits. I did install some new GPS drivers recommended by AT&T, that doesn't seemed to have work. Could it be that there is a port wrong somewhere? Can anybody make heads or tails of this? Any assistance is gratefully appreciated...

Maybe you are looking for