Coded UI playback fails

I have a web-application with  2 custom drop down lists, first one populates the second one, when recording i can select a value  from the first one and the second gets populated successfully but during playback the test fails, because the second
ddl doesn't get populated   

Hello,
I think, it is because while you playback your script, the second dropdown is not yet ready.
you can have playback settings configured for this test method.
There are several methods which can help you to check readiness of UI control like WaitForControlReady.
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.uitesting.uitestcontrol.waitforcontrolready.aspx
Below link is for more information about PlaybackSettings class.
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.uitesting.playbacksettings.aspx
Hope, this will help you out. Feel free to write me in case of query.
If this post answers your question, please click Mark As Answer. If this post is helpful please click
Mark as Helpful.

Similar Messages

  • Playback Failed - Action Not Supported On Disabled Control Exception

    I tried to add a coded UI test for my log-in page and Playback failed by giving this error,
    Test method BugTrackerNew._2_Login.CodedUITestMethod1 threw exception:
    Microsoft.VisualStudio.TestTools.UITest.Extension.ActionNotSupportedOnDisabledControlException: Cannot perform 'SetProperty of Text with value "Manuli"' on the disabled or read-only control. Additional Details:
    TechnologyName:  'MSAA'
    Name:  'Read 192.168.20.100'
    ControlType:  'Edit'
    Please tell me a method to run this test.

    Login.cs
    using System;
    using System.Collections.Generic;
    using System.Text.RegularExpressions;
    using System.Windows.Input;
    using System.Windows.Forms;
    using System.Drawing;
    using Microsoft.VisualStudio.TestTools.UITesting;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Microsoft.VisualStudio.TestTools.UITest.Extension;
    using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard;
    namespace BugTrackerNew
        /// <summary>
        /// Summary description for _2_Login
        /// </summary>
        [CodedUITest]
        public class _2_Login
            public _2_Login()
            [TestMethod]
            public void CodedUITestMethod1()
                this.UIMap.EnterUsername();
                this.UIMap.EnterPassword();
                this.UIMap.ClickOK();
            #region Additional test attributes
            // You can use the following additional attributes as you write your tests:
            ////Use TestInitialize to run code before running each test
            //[TestInitialize()]
            //public void MyTestInitialize()
            //    // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
            //    // For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463
            ////Use TestCleanup to run code after each test has run
            //[TestCleanup()]
            //public void MyTestCleanup()
            //    // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
            //    // For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463
            #endregion
            /// <summary>
            ///Gets or sets the test context which provides
            ///information about and functionality for the current test run.
            ///</summary>
            public TestContext TestContext
                get
                    return testContextInstance;
                set
                    testContextInstance = value;
            private TestContext testContextInstance;
            public UIMap UIMap
                get
                    if ((this.map == null))
                        this.map = new UIMap();
                    return this.map;
            private UIMap map;
    EnterUsername
     public void EnterUsername()
                #region Variable Declarations
                WinEdit uIItemEdit = this.UIMozillaFirefoxStartPWindow.UIHttp1921682010090logDocument1.UIItemEdit;
                #endregion
                //uIItemEdit.Text = "Manuli";
                // Type 'Manuli' in text box numbered 3 in 'http://192.168.20.100:90/login.aspx?ReturnUrl=%2fD...' document
                uIItemEdit.Text = this.EnterUsernameParams.UIItemEditText;
    EnterPassword
    public void EnterPassword()
                #region Variable Declarations
                WinEdit uIItemEdit = this.UIMozillaFirefoxStartPWindow.UIHttp1921682010090logDocument1.UIItemEdit;
                #endregion
                // Click text box numbered 3 in 'http://192.168.20.100:90/login.aspx?ReturnUrl=%2fD...' document
                Mouse.Click(uIItemEdit, new Point(19, 12));
                // Type '********' in text box numbered 3 in 'http://192.168.20.100:90/login.aspx?ReturnUrl=%2fD...' document
                Keyboard.SendKeys(uIItemEdit, this.EnterPasswordParams.UIItemEditSendKeys, true);
    ClickOK
     public void ClickOK()
                #region Variable Declarations
                WinButton uIOKButton = this.UIMozillaFirefoxStartPWindow.UIHttp1921682010090logDocument1.UIOKButton;
                #endregion
                // Click 'Ok' button
                Mouse.Click(uIOKButton, new Point(37, 5));
    Please help

  • Coded UI test fails to close browser due to window title

    Hi.  I am using Visual Studio 2012.
    At the end of my test, I wish to close the browser (IE), but I am having issues because my application version is displayed in the Tab of the browser and this changes with every build.  When the test runs, the application cannot find the window because
    of the Title.  Is there a way to ignore the title and close the browser?
    The message in the stack trace is: Unable to find Windows Internet Explorer window with "my app version - Internet Explorer' in the title. -->Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNot FoundException: The playback failed to
    find the control with the given search properties. Additional Details:
    TechnologyName: 'MSAA;
    ControlType: 'Window'
    Name: 'myapp 1.0.12344.0 - Internet Explorer'

    Hi A Tester,
    Since the coded UI tests use the search properties to find a control/window, so the real issue is that it couldn't find the control when your search property is dynamic. So one possible way, you could use other unique property as the search property.
    About how coded UI test find a control:
    http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspx
    A similar thread, reference:
    https://social.msdn.microsoft.com/Forums/en-US/a6263ca3-dc6b-461d-ae14-350fe5a1a817/unable-to-find-windows-internet-explorer-window-with-http?forum=vsautotest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • BUG: Playback Fails When Loading A Random Video - Firmware 1.2

    I've been looking all over on where to post a bug, and for a fix for this bug I found. Not many seem to be having this problem (I assume not many are trying to randomly play a video from a video playlist)
    BUG: Playback Fails When Loading A Random Video
    iPod FIRMWARE: 1.2
    PROBLEM (1): When pressing "Play" on a video playlist or on 'Music Videos' while the iPod is set to Random->Song, the iPod displays a white playback screen, displays song 0 of 0, empty duration bar and a duration time of 0:00/-0:00.
    PROBLEM (2): After successful playing a seleted video within a video playlist or music video list, the iPod attempts to play a randomly choosen video (HDD clicks abnormally) but times-out and returns the user to the Playlist selection screen.
    iPod MODEL: 60GB Video - Black [Bought in NOV 05]
    If anyone knows how to report a bug, or anyone else having this problem (Try it on you iPod, post your results!) let me know!

    I've been looking all over on where to post a bug...If anyone knows how to report a bug let me know!
    If you want to post a bug report for Apple to see, then this wouldn't be the place to post it (Apple employees rarely look on these forums; all other regular posters on here are just users that like to help others).
    To tell Apple about this, select "Bug Report" under "Feedback Type" on their Feedback form for iPods here -> iPod Feedback
    I hope this helps you,
    -Kylene
    If any post helps or solves your issue, please mark it that way accordingly. Thank you for helping the boards!

  • DynamicStreamingResource and Error: Playback failed with certain media

    I'm running into an issue with a DynamicStreamingResource wherein, with certain media, I receive a Playback failed error after about 20 seconds of playback. The error does not appear with these assets, which play back perfectly:
    _dynamicStreamingResource = new DynamicStreamingResource("rtmp://cp67126.edgefcs.net/ondemand");
    _dynamicStreamingResource.streamItems = Vector.<DynamicStreamingItem>(
    [ new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_ 768x428_24.0fps_408kbps.mp4", 408, 768, 428)
    , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_ 768x428_24.0fps_608kbps.mp4", 608, 768, 428)
    , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_ 1024x522_24.0fps_908kbps.mp4", 908, 1024, 522)
    , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_ 1024x522_24.0fps_1308kbps.mp4", 1308, 1024, 522)
    , new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_ 1280x720_24.0fps_1708kbps.mp4", 1708, 1280, 720)
    However this set of assets do not work:
    _dynamicStreamingResource = new DynamicStreamingResource("rtmp://flashstream.adobe.com/ondemand");
    _dynamicStreamingResource.streamItems = Vector.<DynamicStreamingItem>(
    [   new DynamicStreamingItem("mp4:flash/m/mv1/acom/connectnow/flvs/acom014_854x480.flv", 408, 854, 480)
    , new DynamicStreamingItem("mp4:flash/m/mv2/acom/connectnow/flvs/acom014_854x480.flv", 608, 854, 480)
    , new DynamicStreamingItem("mp4:flash/m/mv3/acom/connectnow/flvs/acom014_854x480.flv", 908, 854, 480)
    I've confirmed that each asset individually plays as desired, which they do.
    Additionally, I have noticed that the buffer grows at an awkward rate - it jumps to about 10 seconds, stutters back and forth between 15 and 20, then stalls, and eventually jumps to 40 seconds, at which point the playhead, around 20 seconds, stalls and I receive the Playback failed error. This happens 100% of the time.
    Any thoughts as to why the second set is problematic?
    Thanks!

    I'm getting "NetStream.Play.StreamNotFound" when I try to play your first stream so I'm not able to investigate this. Here are some things to look at:
    The bitrate you give to DynamicStreamingItem is very important. It must be accurate with regard to the encode. The switching rules use this value to throttle the connection between client and server to keep the buffer from growing too large. Make sure your encodes are CBR and not VBR (variable bitrate). Make sure all encodes have the same keyframe interval. Make sure you set your buffer to 8 seconds initially to get this working. You can adjust if you wish.
    Also, turn logging on and start digging through the logs. Determine which stream playback is failing on. The next thing I would try is put the bitrate in the stream name and put them in the same location on the server rather than different paths for each bitrate.
    Thanks,
    - charles

  • "playback failed" for all podcasts using ios7

    I just updated to IOS 7 and when I try to play a podcast that I am subscribed to, I get "playback failed" for all podcasts. The odd thing is that if I am connected via wifi, it seems to work fine. If wifi is not there, I get that error.
    I cannot seem to find a setting anywhere that gets around this.
    Help!

    See:
    iOS: Troubleshooting applications purchased from the App Store
    Restore from backup. See:
    iOS: How to back up              
    Restore to factory settings/new iPod

  • "playback failed" on one ov the videos, what should I do?

    "playback failed" on one of the ItunesU videos, what should I do? It's a lecture. I tried to delete it, doesn't work.

    https://discussions.apple.com/message/23228694#23228694

  • Playback failed error itunes u

    "Error - Playback failed".   I get this error on my iPhone 4s  in iTunes u. The phone software is up to date and I have deleted and reinstalled the iTunes app. The courses are listed on my phone, but they will not playback.  I have connectivity to the Internet and can reach the Apple Store.  These same courses will play back on my old iPod.
    I have read the discussions, but there seems to be no answer.

    Hi 19lynn47,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    - Judy

  • "playback failed" error when streaming

    Hello all, I converted a .mpg file to .3gp file and upload that file on a Darwin Streaming Server. I can connect to the .3gp file using QuickTime, but when I try to view the file by a Sony Ericsson s710 phone I have this error: "playback failed". Can any one help me with this issue? Thank you so much!

    Hi 19lynn47,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    - Judy

  • Adobe encoder adobe player "Playback Failed..."

    hi,
    downloaded AFMLE a week or so ago.
    i have a logitech web-cam that i use for skype, etc.
    thought I'd give it a try.
    recorded some audio & video thru the web-cam
    AFMLE create an FLV file; tried to open it in Adobe Media Player (1.6)
    and I get the error: "Playback Failed... there was an error... some errors
    can be fixed by clicking the back button, blah, blah, blah..."
    the file format is "f4v" ... I can't open it with Adobe Flash CS3.
    if anyone has a clue what's up, please drop me a line!

    Before playing F4v files created by FMLE in adobe media player or CS3, you need to process them using F4v post processor tool - https://www.adobe.com/cfusion/entitlement/index.cfm?e=fms35
    Whereas, Flv files should play directly without any processing.

  • Re: ITunes U    In attempting to go to lecture #@, I receive this message: Error   Playback Failed"  What is my next step?

    Re: ITunes U
    In attempting to go to lecture #@, I receive this message: Error   Playback Failed"  What is my next step?

    See if this topic contains a solution for your problem: How do I fix Windows permission problems with Flash Player?

  • HT5100 ITunes U: "Error Playback Failed"  What is my next step to download lecture #2?

    ITunes U: "Error Playback Failed"  What is my next step to download lecture #2?

    Hi JoAnnR,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful with troubleshooting your iTunes connection:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Best,
    Jeremy

  • I went to IO 7 and Getting Error "Playback Failed" on every podcast

    I was able to listen to podcast when I first updated.  It now fails with Error "Playback Failed" on every podcast.  I also see that the facebook app is never updating.  I powered off the Iphone 4 and powered on.  I did the same on my IMAC and try resyncing.  I still get the same error.

    The problem is in the Yahoo mail server farm. Their mail servers are terrible. Give it time. It will eventually straighten itself out. In the mean time, create an account a gmail account, outlook.com account, etc. and consider switching.

  • Error: playback failed message deletes my podcasts!

    I am getting tired of this.  I have an iPhone 4S, updated to the most recent software.  Every so often when I open the podcasts app, it will randomly give me an "Error: Playback Failed" message and delete nearly all of my downloaded podcasts.  This is especially aggravating when it deletes podcast episodes that are only available for a limited time (ex. This American Life).  This has been happening for months now.  WHY HASN'T SOMEONE AT APPLE FIXED THIS ISSUE?

    Hi JoAnnR,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful with troubleshooting your iTunes connection:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Best,
    Jeremy

  • Playback failed in the podcast app?

    I recently submited my podcast, got it approved, but when I try to play it in the Podcast app on my devices iPhone/iPad it says... Playback Failed.
    Does it take a certain period of time before it is completely functional across all platforms?
    https://itunes.apple.com/us/podcast/zulu-time/id672134957
    Thanks.

    Your feed is at http://seanzulu.com/zulutime?format=rss
    It can be subscribed to OK in iTunes, and in the Store on a Mac it plays your episode (after a very long pause).
    I'm not in a postition to test it on an iOS device. However the server appears not to handle 'byte range requests' as required by iPhones (where only a part of the file is requested at a time rather than the whole thing) and this can cause playback problems. If that is the case thenI'm afraid that's something you can only solve by hosting on another server (though the fact that your podcast was accepted would suggest that it's OK - if it didn't support this you would get an error message and a rejection).
    Another point, though it probably isn't the cause of the problem: your file name has spaces in it. Spaces are not allowed in a URL. The feed has handled this correctly by substituting the code %20, so it shouldn't actually be an issue, but it's something you should avoid.

Maybe you are looking for

  • Import error on Oracle Database Express 10.2.0.1.0

    Hi, I try to import data from oracle V10.01.02 running on SUSE10 Linux to oracle 10g (10.1.0.2.0) running on Windows Server 2003. I am able to import the big part from my ata, but not all data. The begin of my log file is: Connected to: Oracle Databa

  • I can't download Firefox from Chrome or IE

    I have been trying to download Firefox for a few days now, going back and forth from Chrome and IE. I don't want to use Chrome anymore. When I try to download it from IE it will get to a certain point and tell me that the download has been interrupte

  • Ease in/ease out motion panning keyframes

    this seems to be very difficult to accomplish. does anyone have a method to do this sucessfully take photo and pan it from left to right, or up and down, it starts at slow and smooth gets moving (not too fast) and slows down to a beautiful stop at en

  • Taglibs in oc4j

    Hello, I'm trying to build a small webapplication in JSP that is showing a table in a browser. I'm using a tag from the Business Components Data Tags library. So in the JSP-page I have: <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %> <jbo:Appli

  • Calculator: removing scientific notation in results?

    This seems like it must be a bug or a corrupted app, but I'd just like to confirm: with the calculator in "basic" mode, dividing two numbers which only have one significant digit returns a result like so: 1/3000 = 0.000333 (the setting for decimal pl