Telerik Forums
Test Studio Forum
1 answer
61 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
126 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
66 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
101 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
67 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
100 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
83 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
102 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
1 answer
80 views
Hi,

We have a new problem regarding switching between SSL modes on our test site.  Basically we have 3 modes we need to support:

Full SSL

All pages in our website will be HTTPS e.g. https://Login, https://Search, https://Book, https://Confirm

Partial SSL

Some pages in our website will be HTTPS e.g. https://Login, http://Search, https://Book, http://Confirm

No SSL

No pages in our website will be HTTPS e.g. http://Login, http://Search, http://Book, http://Confirm

When we first created our tests our test site was always in Partial SSL mode therefore the elements/pages in the element explorer were created in this way, however if we switch the modes on our test environment our tests stop working due to the fact that it never finds the page/elements as they have the wrong beginning part of the URL.

Does Test Studio provide a way to handle this?

Thanks
Shane
Konstantin Petkov
Telerik team
 answered on 03 Mar 2014
5 answers
35 views
Hi Team,

Recently I upgrade telerik from 2012.2 to 2013.2.1327, everything seems pretty good especially for cross browser to be much more stable. When I try to run test list, seems this function is unstable, because sometime it will show the compile error( and the error log is incomplete), then I restart Telerik and run expect with no error pop up, or give no response just the run icon is disabled and I can't see it's status because no test runner control popup when I run list, is there any configuration that I may miss?

Thanks in advance,

Fion
Ivaylo
Telerik team
 answered on 27 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?