Telerik Forums
Test Studio Forum
2 answers
131 views

 

Hi Guys
in Silverlight application, I would like to use element value from previous screen (Screen 1) in the current screen (Screen 2) see the attachments. The element value from the screen 1 is highlighted in Red. The element in screen 2 highlighted in Red too, the display value of this element in screen 2 depending on the value of screen 1, the value of the element in screen 1 is between 1 - 3 for each value there will be different display value in screen 2. I have tried to make the element in screen 1 as a variable and use it in screen 2, I have add script step and use If..else statement in the scripted statement, but the problem the value of the variable in screen 1 (data driven) not recognised in screen 2.

If you have any idea or example for this situation please let me know 


Best Regards
Talal 

Talal
Top achievements
Rank 1
 answered on 08 Mar 2012
4 answers
149 views
I am evaluating Test Studio for purchase but I've run into a problem.  I am testing a web application running inside Sharepoint 2010.  The app makes extensive use of modal popups using the Sharepoint javascript library [SP.UI.ModalDialog.showModalDialog(dOpt);] which are actually contained in an iframe.

I can record the test fine, but on playback I get an error when I tray to select or valdiate an element on the popup:

Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)


How can I get around this?

Thanks:

William Fedders
Aptera
El_Topo
Top achievements
Rank 1
 answered on 07 Mar 2012
1 answer
44 views
Hi All,

We are testing a silverlight application. The recording is successful up until the user click on the login button. Therafter the application hangs in the tool. 

See attached snapshot.

Please advsise. No errors are generated.  

Regards
Lenore
Ivaylo
Telerik team
 answered on 06 Mar 2012
3 answers
95 views
When i save a manual test result by using "reset results" ("save results" i can not use since i do not now where the result is saved...), then open the test result file (in the result viewer), then doubleclick on an individual test case, i receive the following error.
(I am adding a screenshot to the test case while manual testing, but it seems there is no information stored on a test case level besides pass/fail)
Any help available?

Description:

Stopped working

Problem signature:

Problem Event Name: CLR20r3

Problem Signature 01: telerik.teststudio.resultsviewer

Problem Signature 02: 2011.2.1117.0

Problem Signature 03: 4ec4da3b

Problem Signature 04: ArtOfTest.WebAii.Design

Problem Signature 05: 2011.2.1117.0

Problem Signature 06: 4ec4dafe

Problem Signature 07: ff5

Problem Signature 08: 1f

Problem Signature 09: System.NullReferenceException

OS Version: 6.1.7601.2.1.0.272.7

Locale ID: 3079

Read our privacy statement online:

http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

 

 

If the online privacy statement is not available, please read our privacy statement offline:

 

C:\Windows\system32\en-US\erofflps.txt

 

 

Stoich
Telerik team
 answered on 05 Mar 2012
1 answer
117 views

Hi All,

At this stage the company has only one license. We would like to release the license used by a tester on his local machine.  

 

Please advise on how we action this on his installation?

 

Regards
Lenore

Ivaylo
Telerik team
 answered on 05 Mar 2012
2 answers
161 views
Hi,

Another question that will doubtless be easily answered by someone who knows what they're doing.

Scenario
I want my script to branch depending on the value I can retrieve from a databound Excel spreadsheet cell.

I know how to get the value from the cell using this VB in the Code Behind window, and I can set it as an extracted value available to the Test Studio script with the last line:

Dim row As Integer = 2
Dim column As Integer = 4           
Dim input As String = "C:\Users\edwardni\Documents\Test Studio Projects\Base\Data\BaseData.xlsx"           
Dim app As New Microsoft.Office.Interop.Excel.Application()
Dim inputBook As Microsoft.Office.Interop.Excel.Workbook = app.Workbooks.Open(input, 0, False, 3, "", "", False, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "", True, False, 0, True, False, False)
Dim inputSheet As Microsoft.Office.Interop.Excel.Worksheet = DirectCast((inputBook.Worksheets.Item("SetupAllRoles")), Microsoft.Office.Interop.Excel.Worksheet)
Dim selection As String = TryCast(DirectCast(inputSheet.Cells(row, column), Microsoft.Office.Interop.Excel.Range).Text, String)
SetExtractedValue("IsAdmin", selection)

Required Solution
What I want to do in the script is to have an IF... Else statement like this:

IF ($(IsAdmin) = "Y")
     <do some stuff>
ELSE
     <do some different stuff>

But I don't know how to build the above structure in the script itself.  There is nothing I need to record against so I have nothing to convert to a logical step.

All responses gratefully received,
Nigel Edwards, Transition Computing.
Nigel
Top achievements
Rank 2
 answered on 05 Mar 2012
6 answers
158 views
The recorder was taking up to 60 seconds to connect to browser pop up windows. I have just upgraded to the latest release and now the recorder will not connect to browser pop-ups, I timed it up to 200 seconds and it continued to show the connecting view, after clicking close on the connection it then crashes the browser session. The product is now unusable for a large part of my application and I will have to revert back to the previous version until it is resolved.

Thank you
Ivaylo
Telerik team
 answered on 02 Mar 2012
3 answers
204 views
Hi,

Anthony provided what looks like a nice solution to a problem I raised (http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/finding-and-clicking-dynamic-buttons.aspx), but when I try to implement it my script fails to run.  The log shows this error:

WaitForLogoutButtonAvailable.tstest.vb: Line 81: (BC30491) Expression does not produce a value.
This is the VB sub:

        Public Sub WaitForLogoutButtonAvailable_CodedStep()
            Dim found As Integer = 0
            Dim s As HtmlSpan = Find.ByExpression(Of HtmlSpan)("textcontent=~logout")
            While found = 0
                If (Assert.IsNotNull(s)) Then
                    'Stop looking
                    found = 1
                Else
                    'Wait for '250' msec.
                    System.Threading.Thread.Sleep(250)
                End If
            End While
        End Sub

I tried exchanging the statement:
     If (Assert.IsNotNull(s)) Then
for:
     If (Assert.IsNotNull(s) = true) Then
but I get the same result.  I also tried with various speechamrks, 1's and 0's.  I read the on-line documentation (http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/intermediate-topics/html-control-suite/html-asserts.aspx, and also http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/intermediate-topics/element-identification/findparam-objects.aspx) but the pages don't actually show me what is returned by the assert.

Where am I going wrong?

Thanks,
Nigel Edwards, Transition Computing

 
Nigel
Top achievements
Rank 2
 answered on 02 Mar 2012
1 answer
171 views

I have the following code that searches a table that can be indexed by pages.  What I do not know what is the return value of myTable.Find.ByContent when the search string is not matched.  Also what’s a slick way to do an index search in the pages till the string is found.  I want to mimic what a user would do in index.

Thanks,

John

Dim MySearchString as String
MySearchString = "Start All over III"
 
 
 
' Copy the table into a local variable to make it easier to work with
Dim myTable As HtmlTable = Pages.JointCommissionResources9.CphTracerPageRadMyOrgTracesTable
' Locate the row we want using text content (Enter the String to search by
Dim row As HtmlTableRow = myTable.Find.ByContent(Of HtmlTableCell)(MySearchString).Parent(Of HtmlTableRow)()
 
' Locate the delete icon (which is going to be just an anchor tag) located in the third column of the current row
'Dim link As HtmlAnchor = row.Cells(5).Find.ByExpression(Of HtmlAnchor)("uniquename=UrgbtnEditResponse")
'uniquename="UrgbtnNewResponse"
Dim link As HtmlAnchor = row.Cells(5).Find.ByExpression(Of HtmlAnchor)("uniquename=UrgbtnNewResponse")
'Dim link As HtmlAnchor = row.Cells(4).Find.ByExpression(Of HtmlAnchor)("value=Print/Preview")
' Now that we've found it, click the delete icon
link.Click()
 
HtmlTableCell Find By Search String
 
Dim MySearchString As String
Dim PageNumber As Integer
 
 
MySearchString = "this is a new tracer"
Log.WriteLine("Value: " & MySearchString)
Log.WriteLine("Pages: " & GetExtractedValue("x2StrongTag").ToString())
 
 
 
' Copy the table into a local variable to make it easier to work with
Dim myTable As HtmlTable = Pages.JointCommissionResources9.CphTracerPageRadMyOrgTracesTable
Log.WriteLine("Table when Nothing found: " & myTable.ToString)
 
' Locate the row we want using text content (Enter the String to search by
'Dim row As HtmlTableRow = myTable.Find.ByContent(Of HtmlTableCell)("Article B01").Parent(Of HtmlTableRow)()
 
 
 
Dim row As HtmlTableRow = myTable.Find.ByContent(Of HtmlTableCell)(MySearchString).Parent(Of HtmlTableRow)()
 
' Locate the delete icon (which is going to be just an anchor tag) located in the third column of the current row
'Dim link As HtmlAnchor = row.Cells(5).Find.ByExpression(Of HtmlAnchor)("uniquename=UrgbtnEditResponse")
'uniquename="UrgbtnNewResponse"
Dim link As HtmlAnchor = row.Cells(5).Find.ByExpression(Of HtmlAnchor)("uniquename=UrgbtnNewResponse")
'Dim link As HtmlAnchor = row.Cells(4).Find.ByExpression(Of HtmlAnchor)("value=Print/Preview")
' Now that we've found it, click the delete icon
link.Click()

Anthony
Telerik team
 answered on 01 Mar 2012
1 answer
69 views
I was wondering can I use Test studio to test other than User Interface layer? Like I want to test server layer and data access layer.
Thank you in advance
Ivaylo
Telerik team
 answered on 01 Mar 2012
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?