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
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
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
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
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 StringMySearchString = "Start All over III"' Copy the table into a local variable to make it easier to work withDim myTable As HtmlTable = Pages.JointCommissionResources9.CphTracerPageRadMyOrgTracesTable' Locate the row we want using text content (Enter the String to search byDim 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 iconlink.Click()HtmlTableCell Find By Search StringDim MySearchString As StringDim PageNumber As IntegerMySearchString = "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 withDim myTable As HtmlTable = Pages.JointCommissionResources9.CphTracerPageRadMyOrgTracesTableLog.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 iconlink.Click()