PlaybackSettings.SearchTimeout and Playback.PlaybackSettings.WaitForReadyTimeout not working properly.

Hi
In our project we recently started to facing controls issue while finding and our initial setup in ClassInitialize as follows:
 Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.Disabled;
            Playback.PlaybackSettings.DelayBetweenActions = 200;
After investigating the failures we found that there are some delays (1 or 2 seconds) in the application side.
So we have modified the 'ClassInitialize' as follows:
Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.UIThreadOnly;
            Playback.PlaybackSettings.DelayBetweenActions = 500;
            Playback.PlaybackSettings.SearchTimeout = 5000;
            Playback.PlaybackSettings.WaitForReadyTimeout = 5000;
            ConfigurationManager.AppSettings["WebWaitForReadyLevel"] = "3";
But still issue of finding controls are occuring. 
Please note that we are using commandline execution of MSTEST in VS2012.
Can any one helping us to overcome this issue.
Thanks,
J. Sasisekar
Thanks & Regards, Sasisekar J

Hi 
Please find more info as below.
The script is breaking continuously here and there. Not consistently in a single place. 
A sample control failure error message as below.
Test method XJT.SystemTest.XJT_SystemTest.XJT_Prerequisite_InXSM_Part6 threw exception: 
Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException: Cannot perform 'SetProperty of Text with value "XJT_STAccount02201531912536PM"' on the control. Additional Details: 
TechnologyName:  'Web'
ControlType:  'Edit'
TagName:  'INPUT'
Id:  'Cb217e738_C99728481_SearchTextBox'
Name:  'Cb217e738$C99728481$SearchTextBox'
 ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Error stack:
Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.SetFocus()
Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded)
Microsoft.VisualStudio.TestTools.UITesting.TechnologyElementPropertyProvider.SetValueAsEditBox(UITestControl uiControl, String value, Boolean isEncoded, Boolean useCopyPaste)
Microsoft.VisualStudio.TestTools.UITesting.HtmlPropertyProvider.SetPropertyValue(UITestControl uiControl, String propertyName, Object value)
Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.SetPropertyValueWrapper(UITestControl uiControl, String propertyName, Object value)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, Object parameterValue, UITestControl uiControl)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyPrivate(String propertyName, Object value)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass14.<SetProperty>b__13()
Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlEdit.set_Text(String value)
Xerox.Automation.Common.Input.HtmlEditExtensions.PerfectSetTextImplementation(HtmlEdit htmlEdit, String text) in c:\!TFS2\XGS-SDI\Automated Testing\Functional Automation\Common\AutomationCommon\Input\Extensions\HtmlEditExtensions.cs: line 80
Xerox.Automation.Common.Input.HtmlEditExtensions.PerfectSetText(HtmlEdit htmlEdit, String text) in c:\!TFS2\XGS-SDI\Automated Testing\Functional Automation\Common\AutomationCommon\Input\Extensions\HtmlEditExtensions.cs: line 48
AutomationCommon.AutoHTMLSolution.perfecttext(HtmlEdit element, String text) in c:\!TFS2\XGS-SDI\Automated Testing\Functional Automation\Common\AutomationCommon\AutomationCommon.cs: line 1344
XSM.UIMaps.UIMap_OperationCenterAdministrationPageClasses.UIMap_OperationCenterAdministrationPage.Account_Name_Exists() in c:\!TFS2\XGS-SDI\Automated Testing\XSM\Mainline\Automation\Functional_Automation\Solution\UIMaps\UIMap_OperationCenterAdministrationPage.cs:
line 18964
XSM.UIMaps.UIMap_OperationCenterAdministrationPageClasses.UIMap_OperationCenterAdministrationPage.OpCenterAdmin_Accounts_Copy(String SourceAccount, String NewAccount) in c:\!TFS2\XGS-SDI\Automated Testing\XSM\Mainline\Automation\Functional_Automation\Solution\UIMaps\UIMap_OperationCenterAdministrationPage.cs:
line 20350
XJT.SystemTest.XJT_SystemTest.XJT_Prerequisite_InXSM_Part6() in c:\!TFS2\XGS-SDI\Automated Testing\XJT\Automation\Solution\SystemTest\XJT_SystemTest.cs: line 249
BUT, this control will work in the next iteration or in the debug mode.
So we assumed / understand by analyzing video files (generated with .TRX) that there are some delays in application. After that only we tried to implement the above mentioned changes in 'ClassInitialize'.
Browser mode: IE 10 (compat view), document mode: IE5 quirks.
Commandline : MSTest of VS2012.
Thanks & Regards, Sasisekar J

Similar Messages

  • TS5376 I'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.

    'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.  I have even done a repair to see if that works and it has not.  Has anyone else found a new way to get it working?

    Try Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    I'm going to assume that since you deleted your hard drive and all its files, you had a backup, yes? If the backup has an OS (bootable clone), then you can boot into it by holding down the option key when you start up you iMac and choose the backup drive. Then use Carbon Copy Cloner or Super Duper to copy the files back to your iMac.

  • I bought creative suite cs6 design standard student and teacher edition and the download did not work properly - files appear incomplete/ or damaged - none of the program items work at all. File size for installation seems very small for a product of this

    I bought creative suite cs6 standard student and teacher edition and the download did not work properly - files appear incomplete/ or damaged. File size seems very small for a product of this size. Can you assist with download issue or provision of software ?

    Lalalaladog where did you download CS6 from?  I would recommend downloading the installation files for Creative Suite 6 Design Standard at Download CS6 products

  • Hp envoy m6 sound card, simmple pass applicatio​n and support assistant is not working properly

    i have hp envoy m61204tx.
    after upudate using hp support assistant sound card is not working properly also when i run hp simple pass or hp support assistant only start window appears then it hides nothing happend next.
    please guide me what is the problem and how to solve it.
    any help will me much appriciated.
    Thanks.

    @alki,
    I understand that sound has quit working after support assistant ran a few updates.  
    Press Windows Key + X and select device manager.  The sound card should be listed in the sound section.  What status is displayed for the sound card?
    What is the status of the mute key on the notebook?  Does it have an amber light?
    What happens if you try to install this driver?
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • HT4623 I did the latest update to my i pad 2 and now Safari does not work properly . I get messages that the java script needs to be turned on which I did. How do I get this all back after this update?

    I did the latest update to my I pad 2 and lost Safari . I was instructed to switch the Java script on which I did but Safari is still not working properly . how do I get everything back after this software update.

    Try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • Display has white and grey lines and blocks crisscrossing it and touch functions are not working properly on half the screen.

    I dropped my iPhone 5S and it landed flat on it's face (it was in a protective case).  Since then my touch screen display is not working properly. I have white and grey lines and/or blocks crisscrossing the screen both horizontally and vertically.  Screen responds to touch in odd random ways, but rarely does what I am trying to do.  Can't call or receive calls because can't dial or answer phone via swipe. Can't text or read incoming texts. All functions seem to be working except that I can't access them because the touch screen is acting up. If I move the phone around it randomly accesses different apps or functions, but I have no control over them once the appear on the screen.  Touching screen just causes phone to randomly choose something else to open.  What have I damaged?

    Shanegang77 wrote:
    What have I damaged?
    We cannot possibly tell. Obviously some hardware inside. Take it in to an Apple Store. They will offer you the opportunity to swap the phone for $269 in the US. Prices vary by country.

  • Maximize/minimize and close buttons do not work properly

    Suddenly the buttons at the top right are not working properly. There is no change in appearance when hovering the mouse over it. This does not occur immediately after I open firefox but shortly afterwards. I noticed by accident that if I open the options box and close it again these buttons will work for a while. It also applies to dialogue boxes that open up as well. I did not add any plugins, but I do believe there was a recent update for firefox installed. Thanks

    Thanks, however I am on release 18.0. I am not quite sure yet but I think the problem may have solved itself. Since I first posted if happened a few times but nothing over the past couple of hours so perhaps the issue resolved itself. I'll repost if it does. Thanks again

  • Satellite L40 - Sleed and stand-by does not work properly

    I have a Satellite L40 notebook and it worked properly until now. I turn it on and after that I put it on the sleep mode (stand-by mode); when I want to use my system, so to get it back to the normal mode (I press the turn on/off button to get out of the sleep mode), the Windows Vista 32-bit restarts - it doesn't get back to the moment that I left it before the sleep mode.
    Therefore, Windows Vista 32-bit restarts and the "Windows has been turned off incorrectly" screen appears instead of returning to the system configuration that I left it before the sleep/stand-by mode.
    What can I do to fix this problem and make the sleep mode work properly?

    Hi!
    In your case I would make a BIOS update. You can search for updates on the Toshiba website
    http://eu.computers.toshiba-europe.com
    You should also look in the power mangment. There you configure what happened when you close the display, press the power button and so far.
    I have found a really good thread about this:
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?messageID=141529&#141529
    Bye

  • Web service proxy and data control are not working properly

    Hi,
    I am working on jDeveloper 11.1.1.6
    I have a SOA web service which requires 3 inputs and return with a set of data.
    When I tried testing that web service in soapUI it is working perfect. But when I have created a web service proxy in my application and trying to test it from class (*******_ptClient) main method everytime it is replying with the output null
    Also When I am requesting from the main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side.
    After that I have created web service data control and tested in that case also it is not showing any result.
    What could be the problem ?
    Please help.
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Shay Shmeltzer,
    Thanks for the reply.
    I tried in HTTP Analyzer in JDeveloper and there also it is not working. My concern is :-
    There are many other web services deployed on the same SOA server in same partition and they are working fine in HTTP analyzer and I am able to create and use the web service proxy as well. So as per my understanding there is nothing like network issues between SOA server and jDeveloper.
    1 more thing When I am creating the proxy for this web service and requesting from the proxy's main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side. The problem is jDeveloper is not able to get back that response which SOA is returning.
    Please Help.
    -- NavinK

  • Ipod touch 5th generation overheating and now sound is not working properly

    Got an ipod touch 5th gen a few days ago and it has been working well for the first few days, then last night it came up with an 'overheat' message and turned itself off.  I was surprised as it wasn't working particularly hard when it overheated, just plugged into a speaker system playing an audiobook.  After cooling down and recharging the battery, I was able to turn the ipod back on again, but realised this morning when I tried to watch a video on it that there was no sound coming from the internal speaker.  Also when headphones are plugged in the sound is really crackly.  (the level of crackle changes when you change the volume - it is most crackly in the middle of the volume range and clearer when it is louder).  Before it overheated, it had none of these issues.  Also, it now seems to take longer to charge the battery, and the battery doesn't seem to hold it's charge as long.  Is there anything I can do at home to fix these issues (as we live in a remote area)?

    Try the following but I thing your iPod is defective
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:       
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    Make an appointment at the Genius Bar of an Apple store if it still does not work OK
    Apple Retail Store - Genius Bar

  • ITunes Copy to library and Keep organised settings not working properly.

    Hi - I use an external disk array for my library and have always had the preferences for "Copy files to itunes Media folder when adding to library" & "Keep itunes Media folder organised" since I started using iTunes. 99% of the time this works fine. However, I've noticed in the last six months, I need to check it after each import or download to ensure it works.. For example, I have a series pass for a tv show, and episodes 1-15 were in the default path, not my media location, but 16-18 were. I put this down to a glitch, but now have the reverse for a second show, where most of the shows are in my media location but 3 odd episodes are saved to the default path location. Similarly, my music purchases this week have all gone to the default path instead of the path set in the preferences.
    I have also found that recent CD imports have random tracks saved to default location..and seemingly ALL podcasts are not being saved in the right place - they ALL go to default path..
    Clearly not something that is consistent but also not what I want to happen.
    Any ideas?
    Thanks
    Grant

    Hello:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    That resets the iPad.  If that does not work, I am afraid it has been damaged by the "water dip." 
    Barry

  • Ipad dipped in water and sleep/wake button not working properly?

    My son dipped my ipad 2 in the water bucket for like half a second the ipad,before this ipad was out of battery and was off! i quickly took it out dried all the excess water and even used a blow dryer to dry it,after a quick dry i tried to swtich it on and everything is working okay till now except the wake/sleep button,its not locking the screen or not switching off the ipad. it did turned it on but its not locking the screen or turning off the ipad!
    when i tried reseting it from the general menu in settings it turned off and then the apple logo kept on coming for like 5 seconds and then going away this keeps on happening till i dont keep a hold off the sleep/wake button to switch it on or till the ipad runs out of battery,then if i hold the wake/sleep button to turns it.
    One more problem im facing as soon as the ipad turned.it gives me power off option everytime then iv to cancel it to use my ipad.
    so the main question is my sleep and wake button is turning on my device but not working while its on,what would be the problem and whats the solution?
    p.s. i was tensed about it so i quickly turned it on to check whether its working,i know i shouldnt had turned it on :/
    currently my ipad is off and iv put it under a fan to dry,thinking this might might help but im feeling it wont now its too late:(

    Hello:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    That resets the iPad.  If that does not work, I am afraid it has been damaged by the "water dip." 
    Barry

  • My copy and paste functions are not working properly since iOS 8 update

    Ever since I updated to iOS 8 on my iPhone 4s the copy and paste function isn't working. It'll work the first time but any time I copy something else it pastes the first thing I copy. The only fix I've found is rebooting the phone but that is a pain to do every time I want to copy something and should be very unnecessary. I updated to 8.0.2 but that didn't fix it.

    Have you tried rebooting?

  • I have reset Firefox, followed all the various instructions for ALL the faults and it is STILL not working properly !

    Various problems :
    Firefox crashing, missing toolbar, bookmarks disappeared (reset and now they won't work at all) , cannot set homepage again (despite following all instructions), shockwave flash constantly unresponsive (again, all instructions followed and no change), Firefox especially slow in facebook, sound volume keeps switching itself off.
    I have gone through each problem with all the suggested "fixes" AND reset Firefox, but it is worse now than before !
    Just about had enough.

    If you have submitted crash reports then please post the IDs of one or more recent crash reports that have a "bp-" prefix:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website, or open the crash reports page via "Help > Troubleshooting Information".
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter
    You can check for problems with current Flash plugin versions and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    *http://kb.mozillazine.org/Flash#Troubleshooting

Maybe you are looking for

  • 3rd gen nano. Lock click wheel volume control but NOT track control???

    My title basically says it all. I have a 3rd gen Nano that I want to use solely for a car and it won't be removed. Problem? The track control has to be done on the iPod itself as the car stereo won't do it, but the volume can be controlled by the car

  • Multiple PO creation from sales order

    Hi All, After saving the sales order, PR and PO get created automatically. But if the sales order containing multiple items, multiple POs (n items into n number of POs) getting created whereas supposed to be one PO. Could you help me in this? Thanks

  • How to find out changes in order in APO

    Hi, I have with me order number. I want to know what changes are done in APO in particular time period through which transactions. I mean I want to see changes particular order in particular time period. I tried with /SAPAPO/C3 But in 24 hours period

  • A problem about saving the picture control'image in a child VI.

    i want to use 'export image' method to get a picture control'image,so ,i have a child VI to use method 'export image',and a main VI to using the child VI,but when i run the main VI,there is no image is saved on the disk ,but if i open the child VI'fr

  • Issues with new G7-2022US

    Just bought a G7-2022US yesterday. First thing I tried was creating my recovery DVDs. I've tried three different brands including HP's own and the burned DVDs will not verify so the process stops. I have firmware HH03 for the SN-208BB drive. Is that