4658 | 4/11/2012 10:38:52 AM | Information | The TestList run prepartion failed and execution cannot continue! Error message: Object reference not set to an instance of an object. StackTrace: at ArtOfTest.WebAii.Design.ProjectModel.Test.NeedToCompile() at Telerik.TestStudio.Scheduling.WindowsService.ExecutionEngineRunner.ExecuteList(TestList list, Project project, Settings settings, String binaryFolder, String projectPath, String resultName) at Telerik.TestStudio.Scheduling.WindowsService.ExecutionEngineRunner.StartRun(Object runArg) |
All of my previously working FireFox based tests are now failing about 25% of the time with the following error. The only solution I have found is to add a 2 second delay before each action and setting the steps to 'FireFox' only. Even this doesn't always work.
Suggestions?
Overall Result: Fail
------------------------------------------------------------
'3/23/2012 3:20:06 PM' - Using .Net Runtime version: '4.0.30319.239' for tests execution.
'3/23/2012 3:20:06 PM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'3/23/2012 3:20:09 PM' - Using 'FireFox' version '11.0' as default browser.
'3/23/2012 3:20:27 PM' - 'Fail' : 1. Execute test 'FireFox & IE - Login - Nav to Main'
>>> Test-as-Step 'Fragments\FireFox & IE - Login - Nav to Main.tstest' log starts:
Overall Result: Fail
------------------------------------------------------------
'3/23/2012 3:20:09 PM' - Using 'FireFox' version '11.0' as default browser.
'3/23/2012 3:20:10 PM' - 'Pass' : 1. Navigate to : '/'
'3/23/2012 3:20:11 PM' - 'Pass' : 2. Click 'LoginToPBISLink'
'3/23/2012 3:20:13 PM' - 'Pass' : 3. Click 'CoordinatorTab'
'3/23/2012 3:20:18 PM' - 'Pass' : 4. Enter text 'X' in 'UserNameField'
'3/23/2012 3:20:20 PM' - 'Pass' : 5. Keyboard (KeyPress) - Tab (1 times) on 'PasswordField'
'3/23/2012 3:20:23 PM' - 'Pass' : 6. Enter text '123456' in 'PasswordField'
'3/23/2012 3:20:24 PM' - 'Pass' : 7. Click 'OtherBlueLoginButton'
'3/23/2012 3:20:26 PM' - 'Pass' : 8. Wait for '2000' msec.
'3/23/2012 3:20:27 PM' - 'Fail' : 9. Verify element 'WhiteLoginButton' 'is' visible.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'edfba8f1-05b9-49db-b989-af663bd68d67',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.')
InnerException: none.
Couldn't access frameId in BuildFramenfo; skipping frame
Hearbeat state not found
Attempted to use a disconnected port object
Overall Result: Fail
------------------------------------------------------------
'7/4/2012 5:20:06 AM' - Using .Net Runtime version: '4.0.30319.17626' for tests execution.
'7/4/2012 5:20:06 AM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'7/4/2012 5:20:08 AM' - Using 'Chrome' version '20.0.1132.47' as default browser.
'7/4/2012 5:20:11 AM' - 'Pass' : 1. Navigate to : 'http://examples1.ext.net/'
'7/4/2012 5:20:12 AM' - 'Pass' : 2. Click 'ButtonsSpan'
'7/4/2012 5:20:13 AM' - 'Pass' : 3. Verify 'InnerText' 'Exact' 'Basic' on 'BasicSpan'
'7/4/2012 5:20:14 AM' - 'Pass' : 4. Click 'BasicSpan'
'7/4/2012 5:20:15 AM' - 'Pass' : 5. Click 'LinkButtonSpan'
'7/4/2012 5:20:16 AM' - 'Pass' : 6. Click 'HomeSpan'
'7/4/2012 5:20:20 AM' - 'Pass' : 7. Click 'LinkButtonSpan0'
Element was found by backup search only! We recommend editing the element to correct the primary find expression.
Primary Find Expression: id=ext-gen289,|,tagIndex=span:1
Element was found by backup search: xpath=/html[1]/body[1]/div[3]/div[1]/div[1]/ul[1]/li[2]/a[2]/em[1]/span[1]/span[1]
'7/4/2012 5:20:21 AM' - 'Pass' : 8. Click 'ImageButtonSpan'
'7/4/2012 5:20:24 AM' - 'Pass' : 9. Verify 'InnerText' 'Exact' 'LinkButton' on 'LinkButtonSpan'
Element was found by backup search only! We recommend editing the element to correct the primary find expression.
Primary Find Expression: id=ext-gen286,|,tagIndex=span:3
Element was found by backup search: xpath=/html[1]/body[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[2]/ul[1]/div[1]/li[4]/ul[1]/li[1]/ul[1]/li[2]/div[1]/a[1]/span[1]
'7/4/2012 5:21:06 AM' - 'Fail' : 10. Click 'SimpleH2Tag'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'eabbcda0-23da-4bc0-bfff-b824745b815c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'2',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
---> System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Core.FramesCollection.EnsureDomLoaded(Browser browser)
at ArtOfTest.WebAii.Core.FramesCollection.get_Item(FrameInfo frameInfo)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'eabbcda0-23da-4bc0-bfff-b824745b815c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'2',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
---> System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Core.FramesCollection.EnsureDomLoaded(Browser browser)
at ArtOfTest.WebAii.Core.FramesCollection.get_Item(FrameInfo frameInfo)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout, Boolean& byBackupSearch)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'7/4/2012 5:21:06 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'7/4/2012 5:21:06 AM' - Overall Result: Fail
'7/4/2012 5:21:06 AM' - Duration: [0 min: 58 sec: 75 msec]
------------------------------------------------------------
'7/4/2012 5:21:47 AM' - Test completed!