Telerik Forums
Test Studio Forum
3 answers
227 views
Hello,
I am using a RadGridView in my WPF application. The RadGridView is filled dynamically, so there might be a different amount of rows every time the test runs. The columns can be reordered.
The test needs to check a specific cell that is identified by its column header and a value in another cell of that row.

Example RadGridView data:
Name        | City        | Workload in hours
-------------------------------------------
Foo Bar        | LA        | 45
John Doe    | NY        | 20

Now I would like to check the values for "Workload in hours" with a data driven test.
Example data source for the data driven test:

Name        | Workload in hours
-------------------------------
John Doe    | 20        

I can't say for sure in what row "John Doe" is since there might be more or less rows in the table. I also can't say if the column is always the third because it might be in another order.
But I do know that I need:

"cell
in COLUMN 'Workdload in hours'
in ROW where COLUMN 'Name' is <data driven value 'John Doe'>"

I would like to check if the value inside of that cell matches the data source or do further testing with the row or cell (for example: right click on that cell to edit the person's data in another view).
Since I use both Telerik control and Telerik Test Studio there should be a way to achieve this without the need to code every step in the RadGridView.

For the solution it would be okay if I...
...add a function to the grid (in the WPF solution) that is called by Telerik Test Studio to get the needed cell for further testing.
...create a "Test As Step" that returns the cell AND that can be reused for different tests.
...use a test step element that takes parameters (data driven) and returns a cell.

It would NOT be okay to write a new "Coded Step" for every interaction with a RadGridView because there are lots of RadGridViews.
Elena
Telerik team
 answered on 01 Feb 2018
5 answers
70 views

The first congrats for really great job on product. Awesome. Love it. Its great tool for developers and QA.

One thing constantly pops up in between developers and QA how to reproduce error for specific platform as its required new setup (Azure or Amazon storage).
Would it possible to add new step (Http Request, Verification and ect)? The step would be just text notes and would use Telerik Edit control with minimal features.
Essentially its readme block, where all information stored for devs and QA. It would be great help, as wiki pages or word docs quick getting out of sync and hard to maintain. Keeping everything together big bonus for development as requirements changes quickly in agile land.

If the text nodes could store images as base64 what would be great.

Sincerely J.B

Elena
Telerik team
 answered on 22 Jan 2018
7 answers
271 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
111 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
450 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
306 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
156 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
132 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
124 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?