This is a migrated thread and some comments may be shown as answers.

ExecuteCommand Failed

14 Answers 255 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 12 Feb 2014, 02:39 PM
Hello,
I've been having an issue lately with running my tests.  A simple link walkthrough (just testing all the main menu links) seems to fail once it starts clicking on links with this error:

ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_ec029db2-58f2-48d9-9472-75d877e9c0b3',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.IO.IOException: Pipe is broken.
   at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   at System.IO.Pipes.PipeStream.WaitForPipeDrain()
   at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)

Just wanting to know what's causing this.  As recreating the step seems to work so its definitely finding the link.

14 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 17 Feb 2014, 04:24 PM
Hello Andrew,

This error "System.IO.IOException: Pipe is broken." indicates that the communication link between Test Studio and the browser broke, for example the browser was closed in the middle of running tests, or a popup window was unexpectedly closed.

Does this problem always happen? If so can you recreate the problem, then go to Step Failure Details, find and click Export and send us the .zip file that generates? That will give us useful information to help diagnose what's causing this problem. A copy of the failing test, pointing out the failing test may help as well.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Andrew
Top achievements
Rank 1
answered on 18 Feb 2014, 01:52 PM
0
Cody
Telerik team
answered on 18 Feb 2014, 09:19 PM
Hi Andrew,

Thank you for the file. Please tell me what is happening in the browser when the step Click 'PublishCasesLink' executes. Is it possible that the browser is being closed by JavaScript and a new browser window is opening, sort of like a redirect to a new server is happening? If Yes, then this error is expected behavior. Test Studio is not expecting the browser to close, is actively trying to communicate with it as it is being closed and it results in this error. Is the next test step (step 6) a Connect to Popup step?

If Yes to both questions above, I'd like you to try turning on SimulateRealClick for step 5. Then Test Studio will move the mouse and click on the link, but won't try to communicate with the browser.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nick
Top achievements
Rank 1
answered on 03 Mar 2014, 04:43 PM
hi im having the same problem. may i know if this was resolved? if so what was the solution. thanks.
0
Cody
Telerik team
answered on 06 Mar 2014, 07:22 PM
Hi Niccolo,

We never heard back from Andrew, so we don't know what happened after my last response.

To assist you I need the same information (export of the Step Failure Details as I got from Andrew) and the same question to you: What is happening in the browser when the problem step fails?

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nick
Top achievements
Rank 1
answered on 07 Mar 2014, 10:26 AM
Hi Cody,

basically its a click step with a save button to submit a form. I've already ticked on the simulate real click but it still wouldn't push through.
0
Nick
Top achievements
Rank 1
answered on 07 Mar 2014, 10:27 AM
sorry i forgot to attach the logfile.
0
Cody
Telerik team
answered on 07 Mar 2014, 07:04 PM
Hello Niccolo,

We can tell from the stack trace it was trying to do a RefreshDomTree at the time it failed. Also we can see it was a timeout waiting for Test Studio IE plug-in to perform the command. Most likely the browser got stuck in some sort of busy state.

To overcome this I want you to try checking SimulateRealClick as shown in the attached screen shot. This stops the test step from trying to do a RefreshDomTree.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nick
Top achievements
Rank 1
answered on 09 Mar 2014, 11:31 PM
hi cody,

i have already checked on the simulate real click but unfortunately the step is still failing.
0
Cody
Telerik team
answered on 11 Mar 2014, 04:08 PM
Hello Niccolo,

Since that did not work as expected, we need a way to repro the problem on our machines so that we can investigate and determine the root cause. Is there someway we can get direct access to the application? If this information is too sensitive to put into this public forum, you can open a private support ticket which only you and support can see.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nick
Top achievements
Rank 1
answered on 11 Mar 2014, 04:25 PM
Hi Cody,

I can send the video of the process in the private support ticket if that's ok. 

Can you please provide the link to the private support?
0
Cody
Telerik team
answered on 11 Mar 2014, 06:29 PM
Hello Niccolo,

1) Watching it happen in a video will not allow us to troubleshoot the problem and determine the root cause.
2) You create your own support tickets after logging in to your Telerik.com account - see attached screen shot.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nick
Top achievements
Rank 1
answered on 11 Mar 2014, 06:41 PM
Hello Cody,

as much as i want to share to you the application, we are under legal agreement that no third party is allowed to access it, the least that i can provide is the video of where the error occurs. am not sure if that would solve anything but if there's another way to determine the error other than accessing the application please let me know and ill do what i can to provide you with all the necessary details.
0
Cody
Telerik team
answered on 11 Mar 2014, 07:59 PM
Hi Niccolo,

Our next best option is to capture a Fiddler trace of the application running normally in a browser. We can use that to simulate your web server and often we can reproduce problems enough that we can determine the root cause and the solution. Before starting the trace, please check both "Decrypt HTTPS" and "Store Binaries" so that the capture is complete. Also clear the browsers cache before starting as well so that the capture contains all web server traffic (it won't capture cached traffic).

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Cody
Telerik team
Andrew
Top achievements
Rank 1
Nick
Top achievements
Rank 1
Share this question
or