Telerik Forums
Test Studio Forum
14 answers
474 views
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.
Cody
Telerik team
 answered on 11 Mar 2014
3 answers
81 views
Hello,

I am working on simplifying a number of tests for my employer; the old tests are large and cumbersome and our intention is to create small atomic tests.

I am curious how Telerik suggests to perform a test such as 'add user' without relying on a 'login' test to navigate to the desired page.

We do not wish to test more than one funtion per test, it seems to me that navigation, verification, or even login and verification tests used as your early steps make this test anything but atomic. 

thank you
Cody
Telerik team
 answered on 11 Mar 2014
1 answer
136 views
I've searched all over and I can't seem to find this basic functionality.  Where/how do I associate an automated test I created in Test Studio with a manual test that is already written in Microsoft Test Manager (MTM)?  I have existing CodedUI automation that runs on a nightly basis through TFS and I want to include the new TS automation in this same build.

Thanks,
Nick
Cody
Telerik team
 answered on 11 Mar 2014
7 answers
159 views
Hi experts,

I am facing one issue with the Telerik TestStudio. In test studio when I am navigating to "Test" tab and then to the select computer option and then trying to connect, its not getting connected to the server. As per the demo video, it's connected to the local machine. Similarly, I am getting the local PC name in the drop down but once selected, it is showing the following error message (check the attached image):

We could not connect to that computer at this time. It might be because:
  • The computer name is not correct
  • It is not accessible through your current network settings
  • The computer's load controller service is a different release version than this copy of Test Studio.

As I am trying to connect to the same machine (as shown in the drop down), so the name is correct and there should not be any network issues.

So, what could be an issue here? I did try to analyse about it but didn't find any solution. Please help me to understand about the issue and the steps to fix it. Waiting for your kind reply.
Boyan Boev
Telerik team
 answered on 11 Mar 2014
3 answers
224 views
I am trying to verify that a web element does not exist based on a database flag.  Based on the flag, a notification badge will display on-screen.  To verify that it displays when the DB flag = TRUE, I am using element.isvisible.  This will not work for verifiying when the DB flag = FALSE because the element is not created and cannot be found (so the test fails).  I am assuming (perhaps incorrectly) that I can somehow use some type of NOT EXISTS on the element.  How would this be done or is this even the best way to go about it?
Boyan Boev
Telerik team
 answered on 11 Mar 2014
6 answers
88 views
Hi,

I am using test studio(2012.2.1527).  And using TFS to store our test files.

Currently we have about 300 tests. But every time very very slow to open list of tests in "Test as Step".

Could you help for this issue?

It seemed a little quicker to load if disconnect with TFS.

Thanks

Seff
Top achievements
Rank 1
 answered on 11 Mar 2014
1 answer
57 views
Is it possible to set a global ReuseAppWindow setting?  If not, then can I do this by code each time it's needed?
Konstantin Petkov
Telerik team
 answered on 11 Mar 2014
1 answer
91 views
Hi,

I'm encountering a problem with trying to click a HtmlInputButton that is enabled/disabled by a Javascript function controlled by another checkbox.  Bascially my test first checks a checkbox, which uses some javascript which makes this button become enabled, and tries to click this button that was just enabled.  I put a inspect DOM step right after my check checkbox step and before my find&click step and this is what the element looks like as seen by telerik:

<input disabled="" class="ui-corner-all ui-button ui-widget ui-state-default ui-button-disabled ui-state-disabled" id="finish-page" role="button" aria-disabled="true" type="button" value="Finish Page">


What the page actually looks like when I inspect element using Firebug after the checkbox check event:

<input type="button" value="Finish Page" id="finish-page" class="ui-corner-all ui-button ui-widget ui-state-default" role="button" aria-disabled="false">


The coded step I'm trying to use to click this Element:

System.Threading.Thread.Sleep(4000); 
 
HtmlInputButton Finish_Page_Button = Find.ById<HtmlInputButton>("finish-page");
 
Finish_Page_Button.MouseClick();

It appears that 1)Telerik is incorrectly seeing the disabled attribute for this button and/or 2)Telerik ignores the MouseClick() event on disabled element.   Any guidance would be highly appreciated!

Thanks,
Daniel
            


Velin Koychev
Telerik team
 answered on 10 Mar 2014
1 answer
49 views
Can anyone share js to pass enter key value to a particular element without manual test step
Case: Running remote m/c
I have an element, required enter key where other elements will be enabled.
Normal Desktopcommand is failing for remote m/c


Thanks,
Gopal 
Velin Koychev
Telerik team
 answered on 07 Mar 2014
7 answers
109 views
Hi, Support

  When I try to write test result into the data source,  errors meet.

 I refer to the related section # 'Write Into Data Source' in user guide (http://docs.telerik.com/teststudio/user-guide/code-samples/general/writeintodatasource.aspx)

And my corresponding code part as following, nothing too much changed from the reference.
But errors meet.
From the reference above "Note: Ensure you Add an Assembly Reference to Microsoft.Office.Interop.Excel. You can download a version of that file on Microsoft's website that matches your version of MS Office."
Is it caused by the file?
 I did add this, but not sure if it's the correct version. I also launched the Microsoft's website, but not found the exact version for Excel 2010.
Can you provide the link to download?

Many thanks.

Errors

'2/27/2014 5:12:29 PM' - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
   at POC_Testing.WebTest..ctor()

My coded steps

Dim dataSourcePath As String = Me.ExecutionContext.DeploymentDirectory + "\Data\test data.xlsx"
Dim myPath As String = "C:\Users\cyang087\Desktop\test data.xlsx"
   
 Public Sub Find_Excel()
      
     If NOT (System.IO.File.Exists(myPath)) Then           
          System.IO.File.Copy(dataSourcePath, myPath)       
     End If
    
 End Sub


'''''others skipped

    
Dim excelApp As New Microsoft.Office.Interop.Excel.Application()
    
Dim workbook As Microsoft.Office.Interop.Excel.Workbook = excelApp.Workbooks.Open(myPath)

      Public Sub WebTest_CodedStep2()
           
 
            System.Threading.Thread.Sleep(1000)
            ActiveBrowser.RefreshDomTree()
              
            ' Write the test result in the 4th column in the data source excel

             If  (Assert.Equals(DesRedirectUrl, GetExtractedValue("redirectUrl").ToString())) then
            
      
                excelApp.Cells(Data.IterationIndex + 1, 3) = "Pass"
                'Log.WriteLine("pass")
                
             else
                excelApp.Cells(Data.IterationIndex + 1, 3) = "Fail"
                'Log.WriteLine("fail")
                
             End if
        
            excelApp.Visible = True
            excelApp.ActiveWorkbook.Save()
 
            workbook.Close(False, Type.Missing, Type.Missing)
            excelApp.Workbooks.Close()
            System.Runtime.InteropServices.Marshal.ReleaseComObject(workbook)
 
            excelApp.Quit()
            GC.Collect()
            System.Runtime.InteropServices.Marshal.ReleaseComObject(excelApp)
            
            
        End Sub

Boyan Boev
Telerik team
 answered on 06 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?