Telerik Forums
Test Studio Forum
7 answers
259 views
Is there a way to generate random text to enter in a test step? I saw a similar thread where one could enter random numbers.
Elena
Telerik team
 answered on 22 Jan 2018
1 answer
1.0K+ views

Hi,

I am testing a WCF Service using Test Studio, the service(POST) accepts only JSON body.

I have selected boy format as raw and type as JSON, but I am getting the following error

The incoming message has an unexpected message format 'Raw'

 

Please help

 

Nikolay Petrov
Telerik team
 answered on 18 Jan 2018
1 answer
107 views

I’m testing a webpage that enforces agreeing to the site's Terms and Conditions before proceeding on.  This page uses AngularJS to implement a form where the user must scroll to the bottom before the “I agree” button gets enabled.  The only way to access the bottom of the T&C text (enabling the button) is via scrollbar.

See attached file for details

 

Nikolay Petrov
Telerik team
 answered on 18 Jan 2018
8 answers
440 views

Hi,

 

Can anyone help me how I can retrieve a label text or dropdown list selected text and save it on excel file using vb code.

 

I tried from calling the element but still nothing.

 

<CodedStep("Store Data in Excel")> _
        Public Sub Transfers_Between_CodedStep()
            Dim dataSourcePath As String = Me.ExecutionContext.DeploymentDirectory + "\Data\domainResults.xlsx" 'this method is calling a link from an excel file and pass it on url path to load it
            Dim myPath As String = "C:\Users\Charitos\Documents\TransferInputs.xlsx"
            

If Not System.IO.File.Exists(myPath) Then
    System.IO.File.Copy(dataSourcePath, myPath)
End If

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


System.Threading.Thread.Sleep(1000)
ActiveBrowser.RefreshDomTree()



    excelApp.Cells(Data.IterationIndex + 2, 1) = Pages.AlHilalEbankingSolution1.TransactionSpan.AssertContent()   //This is where I want to call the element or some other way from the webpage that is still open to retrieve the text and store it on excel.




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

    End Class

Elena
Telerik team
 answered on 11 Jan 2018
1 answer
293 views

Hi, I'm using Telerik in a page which call multiple libraries, the time for response is between 30 seconds and 3 minutes. When this libraries pass the 1m to response, Telerik show message the error like this:

 

System.TimeoutException: Wait for condition has timed out
  at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
  at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
  at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
  at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
  at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
  at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
  at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri, Boolean useDecodedUrl)
  at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri, Boolean useDecodedUrl)
  at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url, Boolean useDecodedUrl)

 

Can I configure a maximum timeout to waited for the load complete of the page? 

The navigation of my page is dynamic, sometime to URL (ActivateBrowser.NavigateTo(...)) and sometime do it click in elements, for this reason I need a change global and not only how parameter by each redirect

Thanks

Nikolay Petrov
Telerik team
 answered on 11 Jan 2018
3 answers
152 views
Hi,

i met some obstacle when using local data.

If i bind the local data to a test, then this test will be execute iteratively serveral times according to the length of the param local data.

Is that possable to use a certain data member (specified by index) of the local data array, non iterative.
Elena
Telerik team
 answered on 11 Jan 2018
11 answers
128 views
Why does the Server Time column on my performance test result window always shows 0.000 sec?
Elena
Telerik team
 answered on 11 Jan 2018
1 answer
122 views

Hi, 

 

I have a input element of ( Type ="Search " , tagname ="Input" ) . Let me name this element as X.

When I try to type some text in the element X, it fails with the message as "Invalid input type ''search" for this control. Control was expecting "text"

Earlier , this step was Passed.. It suddenly fails today.. Not sure, what is changed..?

Could you help me to fix this...

 

Regards, 

Nithya A.

Nikolay Petrov
Telerik team
 answered on 10 Jan 2018
17 answers
596 views
Hello,

Having a custom Kendo drop down list, I was wondering if the following things can be checked (and how):
1. The number of elements in it
2. Check if the elements are in a pre-established order (for example, if they are sorted alphabetically)
3. Check the position of an element in the list (for example, having the values "first", "second", "third", check that the value "second" is always on position 2 in the list)
4. Would it be possible to get a video example of how to check that for one click, the drop down list is expanded and on another click it is collapsed? (on a standard Kendo drop down control)

Thank you,
Corina


Nikolay Petrov
Telerik team
 answered on 10 Jan 2018
3 answers
94 views

I've been having some strange issues with Test Studio, which manifests itself as my tests not working as they should be..

 

If I run a set of commands using the "Tests" Tab and then executing a test manually, I will get passes all throughout. However, when I add them into a test list to run consecutively, I get the complete opposite. These tests will fail or succeed, and it really seems quite random. I don't understand why this is the case because they work perfectly outside of test lists.

Elena
Telerik team
 answered on 08 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?