Telerik Forums
Test Studio Forum
2 answers
92 views
I am having a problem getting the value of a field on a databound grid.

Here is the situation:
I have a Formview, that contains a Datagrid, that has a databound control.  I need to be able to get the value of that column so I can determine whether to do an insert or an update to a table.

Here is the definition of the Formview:
       <asp:FormView ID="FormView1" runat="server" DataSourceID="odsHeader" DefaultMode="Edit"
            Width="100%" DataKeyNames="SUBMITTAL_ID">

Here is the definition of the Grid:
      <rad:RadGrid ID="rgContactsDisplay" runat="server" AutoGenerateColumns="False" Skin="ABL_Std" GridLines="Both"
              DataSourceID="odsContacts" AllowMultiRowSelection="true"  Height="170px">
              <MasterTableView>
                     <Columns>
                          <rad:GridTemplateColumn UniqueName="grdCheckbox">
                                 <ItemTemplate>
                                       <asp:CheckBox ID= "chkContacts" runat="server" />
                          </rad:GridTemplateColumn>                                                                       </ItemTemplate>                                                                                                                                                                                                       
                          <rad:GridBoundColumn DataField="COMPANY_TYPE" UniqueName="company_Type" Visible="True" HeaderText="Company Type"
                                 <HeaderStyle Width="130px" />
                                        <ItemStyle Width="140px" />
                           </rad:GridBoundColumn>
                           <rad:GridBoundColumn DataField="COMPANY" HeaderText="Company" UniqueName="company" Visible="True"
                                  <HeaderStyle Width="140px" />
                                         <ItemStyle Width="140px" />
                           </rad:GridBoundColumn>
                           <rad:GridBoundColumn DataField="COMPANY_CONTACT_DATA" HeaderText="Contact" UniqueName="company_contact_data" Visible="True">
                                 <HeaderStyle Width="130px" />
                                      <ItemStyle Width="140px" />
                           </rad:GridBoundColumn>
                        <rad:GridBoundColumn DataField="CONTACTS_SOURCE" UniqueName="contacts_source" Visible="False" />
                        <rad:GridBoundColumn DataField="DOCUMENT_COMPANY_ID" UniqueName="document_company_id" Visible="False" />
          </Columns>

Here is what I have so far:
Dim grdContacts As RadGrid = CType(FormView1.FindControl("rgContactsDisplay"), RadGrid) //THIS LINE DOES GIVE ME A GRID OBJ
Dim grdSource As GridDataItem = CType(grdContacts.MasterTableView.FindControl("contacts_source"), GridDataItem)
//THIS LINE COMES UP WITH GRDSOURCE = NOTHING

What I need to be able to do is check the "contacts_source" field for a value so I can determine how to process.

Obviously I'm doing something wrong with the definition for grdSource, can anyone tell me what I need to do?

Many thanks in advance.

Rich
Anthony
Telerik team
 answered on 24 Jul 2012
8 answers
108 views

I have an out of browser Silverlight application.  When I open the application (from desktop) by double clicking, it runs fine.  In Test Studio, the Out of Browser application opens just fine when I need to record a test.  The problem occurs when I run the test.  Test Studio opens the application.  Everything looks good.  However, I receive a strange error message.  The error message states, “An error occurred while trying to make a request to URI ‘https://127.0.01/MyServiceSL/SomethingService.svc’.  This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services.  …”   The inner exception looks like the following:

{System.Security.SecurityException ---> System.Security.SecurityException: Security error.

   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)

   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)

   at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)

 

Do you have any idea what is wrong?  How do I get Test Studio to run this test and logon to this application?

Cody
Telerik team
 answered on 24 Jul 2012
3 answers
84 views
Hi,

Is it possible to test webservices (or api testing) using the webaii framework? If it is can you please point me to an example please?

Cheers,
Souvika
Anthony
Telerik team
 answered on 23 Jul 2012
1 answer
74 views
Hello

I am having an issue with the ArtOfTest.Runner.exe when a test is run, and succeeds or fails, occasionaly (maybe 2/5 times) the runner will just hang infinitely after the results have been generated. How can we ensure that the runner.exe closes after its finished everytime?

Thanks
Jon
Ivaylo
Telerik team
 answered on 23 Jul 2012
0 answers
119 views
Hi,

I was in the situation where i could not effectively evaluate the trial version.  But now it is the time for really putting efforts on the automation tool for silvelright application.  Is there any possibility to get a trail extended  for trial version?

Any help on this is greatly appreciated

Thanks,
Teja
Teja
Top achievements
Rank 1
 asked on 21 Jul 2012
1 answer
105 views
Hi, 

Is there any way to have a Infinite loop in Web Test?
Would a zero in here do?
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/logical-steps/loop.aspx 

thanks

Anthony
Telerik team
 answered on 20 Jul 2012
7 answers
65 views
I installed Test Studio 2011.1 and created a test studio project in Visual Studio 2008. First of all it created a Reference to ArtOfTest.Common which doesn't exist. Second The WebTest1.tstest or any .tstest will not open. It throws an error "The operation could not be completed" Am I missing something from the install?
Anthony
Telerik team
 answered on 20 Jul 2012
9 answers
124 views

I have two automated tests that run against a SL Out of Browser application.  Both these tests are running correctly.  The problem occurs when I add both tests to a test list.   In (Test List) Edit Settings (for the Browser Option), I select Silverlight Out of Browser.  When I select Run List, it looks like Test Studio is about to run my tests.  But, the OOB Silverlight application never opens.  Then, Test Studio is on the Results tab with the timeline on the screen.  How do I get my automated scripts to run in the Test List?  

Sometimes I see Internet Explorer open.  And then it closes.

Stoich
Telerik team
 answered on 20 Jul 2012
6 answers
126 views
Suppose you use a test list to execute a set of scripts where some, but not all of the scripts have dependency on previous scripts succeeding.  You don't want to halt execution on the first failure, but you also don't want to execute a dependent test just to show a failure.  Any suggestions on how to best handle this case?
David
Top achievements
Rank 1
 answered on 19 Jul 2012
1 answer
115 views
Hello,
I just recorded a test including a step with a drop down box. While recording, there were no problems. But as i tried to run the test in order to submit the bug, an error occured and the client was not able to choose the item of the dropdown box. By now, the problem occured several times, bot in Internet Explorer as well in a programm (.exe).
I have already tried to put a break between the steps, but it didn't solve the problem as well.

Here's one Log:
 

Overall Result: Fail

------------------------------------------------------------

'16.07.2012 15:36:42' - Using .Net Runtime version: '4.0.30319.269' for tests execution.

'16.07.2012 15:36:42' - Starting execution....

------------------------------------------------------------

------------------------------------------------------------

'16.07.2012 15:36:47' - Using 'C:\Program Files (x86)\WEBfactory 2010\Smart Editor\WFSmartEditor.exe' application.

'16.07.2012 15:36:48' - 'Pass' : 1. LeftClick on IsOpenIndicatorBorder

'16.07.2012 15:36:49' - 'Pass' : 2. radmenuitem: 'QSSEProjekt1' click action.

'16.07.2012 15:37:29' - 'Pass' : 3. LeftClick on LogbookTextblock

'16.07.2012 15:37:31' - 'Pass' : 4. LeftClick on ExpanderButtonPath

'16.07.2012 15:37:44' - 'Fail' : 5. radcombobox: drop down 'Open' action.

------------------------------------------------------------

Failure Information:

~~~~~~~~~~~~~~~

Unable to locate element. Details: Attempting to find [Wpf] element using

Find logic

(Wpf): [name 'Exact' PART_RootPanel] AND [XamlTag 'Exact' grid][XamlPath 'Exact' /scrollcontentpresenter[name=PART_ScrollContentPresenter]/gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]/gridviewgrouprow[0]/grid[name=PART_GroupExpanderGrid]/border[name=Content]/stackpanel[0]/gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]/gridviewrow[automationid=Row_-1]/border[0]/selectivescrollinggrid[name=grid]/datacellspresenter[name=PART_DataCellsPresenter]/grid[0]/itemspresenter[0]/gridviewcellspanel[0]/gridviewcell[1]/grid[0]/contentpresenter[name=PART_ContentPresenter]/contentcontrol[0]/contentpresenter[0]/fontstretcheditorview[0]/radcombobox[name=uxEditor]]

Unable to locate element. Search failed!

------------------------------------------------------------

'16.07.2012 15:37:44' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

------------------------------------------------------------

'16.07.2012 15:37:44' - Overall Result: Fail

'16.07.2012 15:37:44' - Duration: [0 min: 56 sec: 328 msec]

------------------------------------------------------------

'16.07.2012 15:37:45' - Test completed!

------------------------------------------------------------------------------------------------------------------

Moreover I got another small problem. If I want to try to record critical errors (xxx.exe) I'm not able to do so, because Telerik prevents the programme from a crash. Is there any possibility to cause the crash in order to record it or not ?

Regards,
Carsten


------------------------------------------------------------------------------------------------------------------Moreover I got another small problem. If I want to try to record critical errors (xxx.exe) I'm not able to do so, because Telerik prevents the programme from a crash. Is there any possibility to cause the crash in order to record it or not ?Regards,Carsten
Stoich
Telerik team
 answered on 19 Jul 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?