Telerik Forums
Test Studio Forum
1 answer
84 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
122 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
64 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
141 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
3 answers
74 views
Hi guys

I'm working with some restul pages, the problem I'm running into is how to tell test studio that it should ignore ids. For example if I have a users page and /users/1 is returns a detailed users page with the contents of user id 1, but if I I'm working with a dozen users then I'm going to get pages in my test studio project for /users/1 through 12.

Is there a way to get test studio handle this so I have use the same elements for each /users/<id> page? 
Boyan Boev
Telerik team
 answered on 06 Mar 2014
2 answers
115 views
Hi guys

I was wondering if anyone could help, I was wondering if they were any training material / videos, of using Test Studio in a recording / coding approach. I know about  the recording  side of test studio but I would like to have the following approach to our testing.

Point One :- Quickly recording
Point Two :- Convert to Script
Point Three :- Build Libraries where common functionality, i.e. Logging in can be called from a script.

Any help would be great as I know that I would not be the only one looking for this information

Thanks

Chris
Christopher
Top achievements
Rank 1
 answered on 06 Mar 2014
3 answers
75 views
Hi,

When recording a test I cannot seem to get the recorder to see click events on the following code. Neither the textbox or the Cascadingdropdown are recognized. Im guessing the issue is the UpdatePanel?

Any ideas?

Cheers
Jeremy

 <asp:UpdatePanel ID="patternFilterUpdate" runat="server">
        <ContentTemplate>
            <Asp:textBox id="txtPatternName" runat="server" width="180" CSSClass="txtInput"  />
              <ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server"
                TargetControlID="txtPatternName"
                PopupControlID="pnlpatternfiltering"
                Position="Bottom"/>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:panel runat="server" id="pnlpatternfiltering" CssClass="absolute">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
        <ajaxToolkit:CascadingDropDown 
        EnableViewState="true"
        ID="CDDPattern"
        runat="server"
        TargetControlID="sbxorebody" 
        LoadingText="--Loading --"
        Category="Orebody" 
        PromptText="Select " 
        ServicePath="~/Services/PatternFilterService.asmx"
        ServiceMethod="GetOrebodies"
        ShowIgnore="False" />
Konstantin Petkov
Telerik team
 answered on 04 Mar 2014
1 answer
107 views
Hi

I have a requirement to test my web application on Safari in Mac. Is it possible to do that with Test studio.

Thanks in advance,
Meher
Faten
Telerik team
 answered on 04 Mar 2014
3 answers
88 views
I have been banging my head against this wall for a few weeks now so its time to ask the masses. 

Scenario
Test List that contains 6 Tests
Test List is run on local machine end to end with no issues.  
Same Test List is then run on execution machine through a scheduled test and it Fails.

How is it that it can pass locally but fail remotely?  Is it possible that edits to the individual test do not get updated within the Test List, even when I change the find logic it fails.  This is preventing us from being able to run tests nightly because we cannot execute a clean run on anything other than the local machine. 
Velin Koychev
Telerik team
 answered on 03 Mar 2014
2 answers
108 views
Support,

Please describe "PopupWaitTimeout" behavior on Model Popups (http://docs.telerik.com/teststudio/user-guide/dialogs-and-popups/modal-popups.aspx)?

In my scenario, popup window has been waiting until completion of prescribed wait time.

In detail, I put it wait time to connect popup window is 5 mins, but popup page is loading within 2-3 mins only. The issue here, it is waiting complete 5mins then checking other items. I’m expecting that once popup page loading completes it should check other items no need to wait maximum wait time (my case it should not wait 5 mins).

Finally overall result pass, but taking much time for small tests as well.

Screenshot attached (issue highlighted in RED color) .

Thanks,

Madhu
Velin Koychev
Telerik team
 answered on 03 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?