Telerik Forums
Test Studio Forum
2 answers
104 views
I have following data grid with many rows in it which are like following
<tr class="ms-crm-List-Row" otype="9005" oid="{EF80BD25-B979-E111-8FE2-00155D282904}" statecode="Completed" operationtype="10">
<TD class=ms-crm-List-DataCell align=center><INPUT id=checkBox_{EF80BD25-B979-E111-8FE2-00155D282904} class=ms-crm-RowCheckBox title="Cell_1" tabIndex=0 value="" type=checkbox></TD>
<TD class=ms-crm-List-DataCell align=center><IMG alt="" src="/_imgs/ico_16_9005.gif?ver=1339846006"></TD>
<TD class=ms-crm-List-DataCell><NOBR title="Cell_2"><A id=gridBodyTable_primaryField_{EF80BD25-B979-E111-8FE2-00155D282904}_0 class=ms-crm-List-Link title="Cell_2" tabIndex=0 href="#" target=_self>Cell_2</A></NOBR></TD>
<TD class=ms-crm-List-DataCell><NOBR>
<LI style="DISPLAY: inline"><SPAN class=gridLui title=Cell_3 ondblclick=clearTimer() contentEditable=false onclick=handleGridClick() otype="2" oid="{0EF8471E-B979-E111-8FE2-00155D282904}"><IMG id=ico_16_2 class="ms-crm-ImageStrip-ico_16_2 ms-crm-Lookup-Item" alt="" src="/_imgs/imagestrips/transparent_spacer.gif">Cell_3</SPAN></NOBR></LI></TD>
<TD class=ms-crm-List-DataCell><NOBR>Cell_4</NOBR></TD>
<TD class=ms-crm-List-DataCell><NOBR><A style="CURSOR: hand" id=gridBodyTable_lookup_{EF80BD25-B979-E111-8FE2-00155D282904}_0 class=ms-crm-List-Link title="Cell_5" tabIndex=0 onclick=handleLookupAnchorClick() href="#" target=_self>
<LI style="DISPLAY: inline"><SPAN class=gridLui title="Cell_6" ondblclick=clearTimer() contentEditable=false onclick=handleGridClick() otype="8" oid="{36D460BF-1940-E111-A0D7-00155D282904}">Cell_6</SPAN></A></NOBR></LI></TD>
<TD class="ms-crm-List-DataCell ms-crm-NumbersAndDates"><NOBR>Cell_7</NOBR></TD>
<TD class="ms-crm-List-DataCell ms-crm-NumbersAndDates">Cell_8</NOBR></TD>
<TD class=ms-crm-List-DataCell> </TD>
To handle it I should click on cell with title "Cell2"(but this ID have all rows in table).
Rows differ each other by value in Cell_3.

Please suggest how I could define row with proper 'Cell_3' value and click call with Cell_2 value?
algot
Top achievements
Rank 1
 answered on 05 Apr 2012
2 answers
100 views
Hi

I have a datagrid/table where for each row (except the header) there are some hidden values, some showng info and a button.

What I'm wanting to do is loop through the rows and find in the first column the values in 2 hidden fields.  If hidden1 and hidden2 match datavalue1 and datavalue2 then I can find the correct rowindex and therefore find the correct button to click.

I can successfully loop through the rows of the table, but i'm not sure how to find the value of the hidden fields for EACH row as I loop through.

I can find it on the page using

Dim cpolicy As HtmlInputHidden = Pages.TravelInsuranceSalesSystem1.Get(Of HtmlInputHidden)("id=ctl00_ContentPlaceHolder1_TestGrid_ctl02_cpolicy")


but not for each cell as I'm unsure how to refer to a partial ID for a hidden field.

This is what I have so far, the htmlinputhidden is incorrect:

For Each r As HtmlTableRow In Pages.TravelInsuranceSalesSystem1.ContentPlaceHolder1TestGridTable.AllRows
               if r.RowIndex <> 0 then
       'ignore the header row
                   For Each c As HtmlTableCell In r.Cells
                        
                           if c.CellIndex = 0 then
                           'column 1 only
                                    
                               Dim cpolicy As HtmlInputHidden = c.Get(Of HtmlInputHidden)("id=~cpolicy")
                                
                               if cpolicy.Equals("TI") then
                                   Log.WriteLine("cpolicy:" & cpolicy.Value )
                               end if
                           end if
                   Next
               end if
           Next
Anthony
Telerik team
 answered on 04 Apr 2012
3 answers
647 views
Hi, 

Is it possible that I single step through my coded step?

thx

Anthony
Telerik team
 answered on 04 Apr 2012
8 answers
146 views
Hello

Is it possible to set up a databind using T-SQL where a filtering value will be from another dataset?

Eg
datasetA = login info
datasetB = product info

So, once logged in for each interation in datasetA, I need to be able to pass an ID value from datasetA to datasetB which is attached to a Test as Step.

I ultimately will need to loop through the tests for multiple logins and in turn for multiple products


Thanks for your help
Cheryl
Anthony
Telerik team
 answered on 04 Apr 2012
1 answer
108 views
Hi team,
i met an issue about cookie today. In my web application, there is a debug page("http://wwwqa.inventory.ford.com/debug/cookies.jsp") to add a cookie with name "dealerPooling" and value "true", if i add this cookie, then a proper page will display.
My version of  telerik test studio is 2011.2.1413.0

scenario 1:
     step1: turn to "http://wwwqa.showroom.ford.com/FDShowroom.jsp?makeTransition=inventory"
     step2: click on FIESTA image
     step3: input a zipcode(48033) to zipcode input textbox and click "SEARCH DEALER INVENTORY" button
     step4: A search dealer inventory page for this scenario1 will display

scenario 2:
     turn to a debug page "http://wwwqa.inventory.ford.com/debug/cookies.jsp" and add a cookie with name "dealerPooling" and value "true"
     repeat steps in scenario2, and we can see a different search dealer inventory page for this scenario2.

What i want to know is how to add cookie with code steps?
I have tried several ways to do that, but failed, only scenario1 page displayed when i execute scenario2 step, here is some code to be invoked before clicking "SEARCH DEALER INVENTORY"

1.
Public Sub SetCookie()
            Dim newCookie As New System.Net.Cookie()
            newCookie.Name = "dealerPooling"
            newCookie.Value = "true"
            newCookie.Domain = "http://wwwqa.inventory.ford.com"
            newCookie.Expires = DateTime.MaxValue
            ActiveBrowser.Cookies.SetCookie(newCookie)

End Sub

2.
Public Sub SetCookieWithDebugPage()
            ActiveBrowser.NavigateTo("http://wwwqa.inventory.ford.com/debug/cookies.jsp")
            
            Dim nameBox, valueBox As HtmlInputText
            Dim submitButton As HtmlInputSubmit
            
            nameBox = Find.ByAttributes(of HtmlInputText)("name=newName")
            valueBox = Find.ByAttributes(of HtmlInputText)("name=newValue")
            nameBox.Text = "dealerPooling"
            valueBox.Text = "true"
            submitButton = Find.ByAttributes(of HtmlInputSubmit)("name=addCookie")
            submitButton.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop)
            submitButton.Click
End Sub
Anthony
Telerik team
 answered on 03 Apr 2012
1 answer
75 views
Hi,

How to show debug log while running the test, as opposed to "view log" after the whole test is done?

thx
Anthony
Telerik team
 answered on 03 Apr 2012
3 answers
105 views
Hello

Is there a way, when using $(value) in the databinding property window for the verification step, to trim the value, eg $(value).trim or $(rtrim(citemtext))

Thanks
Anthony
Telerik team
 answered on 03 Apr 2012
3 answers
98 views
Hi,
In stand alone Test Studio I´m scheduling test runs with the scheduling service.  I have both a scheduling server and two execution servers running and registered.  Execution server 1 and scheduling server are on the same computer, execution server 2 is on another virtual computer logged on to the same domain.
When creating test to run on execution server 1, test runs as expected and show up in results.  When creating test to run on execution server 2, test will not run and disappears in Results when updated after the time the test was scheduled to run.  
The reason the test does not run is related to domain issues but why does it disappear?

cheers
Eyjolfur Bjarnason.
Ivaylo
Telerik team
 answered on 03 Apr 2012
1 answer
42 views
Hi, 

What's the syntax to use data columns from the data sources in coded step? 

Thanks

Anthony
Telerik team
 answered on 02 Apr 2012
1 answer
64 views
Hi,

I'm following the instruction at 

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/add-custom-step/test-as-step/create-test-as-step.aspx 
ie,
  1. Open an existing test and highlight one or more steps.
  2. Right click and select Create Test as Step.

However, I can't find the Create Test as Step  menu. 
IIRC, I was able to do that before. 

What's wrong? 
Thanks
Anthony
Telerik team
 answered on 02 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?