Telerik Forums
Testing Framework Forum
1 answer
141 views
I am using RadGrid with Template Fields.

<Columns>
                <telerik:GridTemplateColumn Groupable="false" HeaderText="Assessors" AllowFiltering="false" DataField="SeniorManagerID" UniqueName="SeniorManagerID"
                    HeaderStyle-Width="10%" ItemStyle-Width="10%"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <%# Eval("SeniorManagerName")%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadAutoCompleteBox ID="racbSeniorManagers" DataSourceID="sqlAssessors"
                            EnableEmbeddedSkins="true" Skin="Metro"
                            EmptyMessage="Add Assessor" InputType="Token"
                            runat="server" Width="400" DropDownHeight="100" BackColor="White"
                            AllowCustomEntry="false" TextSettings-SelectionMode="Single"
                            DropDownWidth="400" DataTextField="SeniorManagerName" DataValueField="SeniorManagerID"
                            OnClientEntryRemoved="entryRemoved"
                            RenderMode="Lightweight">
                            <DropDownItemTemplate>
                                ----------Dropdown code
                            </DropDownItemTemplate>
                        </telerik:RadAutoCompleteBox>

                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

</Columns>


The code is

Protected Sub dgAssessors_BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs) Handles dgAssessors.BatchEditCommand
        Try
              Dim oldValue as integer = e.Commands(i).OldValues
              Dim newValue as integer = e.Commands(i).NewValues

Here I am able to get the Old Value and New Value of the autocomplete Textbox (Text Property) 
But I want the DataValueField value of telerik:RadAutoCompleteBox control inside the dgAssessors_BatchEditCommand event handler?




Cody
Telerik team
 answered on 24 Jun 2014
2 answers
266 views
I'm getting the following error when I attempt to run tests against Chrome, Firefox, or Safari. It does still work with IE. These tests worked prior to upgrading to 2014.2.618.

Test Name: TelerikChromeTest
Test FullName: Telerik.UnitTest1.TelerikChromeTest
Test Source: C:\Files\Visual Studio 2012\Projects\Telerik\Telerik\UnitTest1.vb : line 58
Test Outcome: Failed
Test Duration: 0:00:00.111429

Result Message:
Test method Telerik.UnitTest1.TelerikChromeTest threw exception: 
System.ArgumentNullException: Value cannot be null.
Parameter name: path1
Result StackTrace:
at System.IO.Path.Combine(String path1, String path2)
   at ArtOfTest.WebAii.Messaging.Process.HostsProxy.Start()
   at ArtOfTest.WebAii.Messaging.Process.HostsProxy.RegisterListener(MessageListener listener)
   at ArtOfTest.WebAii.Messaging.Process.ExecutionMediator.RegisterManager(Manager manager)
   at ArtOfTest.WebAii.BrowserSpecialized.Chrome.ChromeActions.LaunchNewBrowserInstance(Manager manager)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
   at Telerik.UnitTest1.TelerikChromeTest() in C:\Files\Visual Studio 2012\Projects\Telerik\Telerik\UnitTest1.vb:line 68

I was able to duplicate using this simple snippet of code:

<TestMethod()> Public Sub TelerikChromeTest()
        Dim Url As String = "http://msn.com"

        Dim s As New Settings
        s.Web.DefaultBrowser = BrowserType.Chrome

        Dim myManager = New Manager(s)

        myManager.Start()

        myManager.LaunchNewBrowser()

        myManager.ActiveBrowser.NavigateTo(Url)

        myManager.ActiveBrowser.Close()
        myManager.Dispose()
    End Sub

I appreciate any suggestions on resolving this issue.

Thank you.
Konstantin Petkov
Telerik team
 answered on 23 Jun 2014
1 answer
132 views
Hi there,

I recently upgraded to version 2014.2.x of the test framework and since then receiving lots of catastrophic errors while testing a Silverlight application. Downgrading back to the last 2013 version made it all work again. But that version doesn't work under Windows 2012.


Any idea what I should do?

Here are two of the exception messages:

Exception 1:

{"Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!\r\nInError set by the client. Client Error:\r\nSystem.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))\r\n   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)\r\n   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)\r\nBrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{\"Method\":null,\"Property\":null,\"Reference\":{\"ObjectName\":\"$root\",\"Path\":\"\\/popup:-1:12977784\\/modaldialog:0:49691197\\/grid:0:48464948\\/grid:1:33531353\\/border:2:33346726\\/grid:0:31685085\\/portal:0:16730309\\/grid:0:13897850\\/header:0:17885218\",\"Properties\":[]},\"Reference2\":null,\"Type\":15,\"Value\":null}',ClientId:'Client_43d5c44f-9127-444b-b121-340e06b43570',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))\r\n   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)\r\n   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')\r\nInnerException: none.\r\n\r\n   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)\r\n   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetVisibility(IAutomationPeer peer)\r\n   at ArtOfTest.WebAii.Silverlight.FrameworkElement.get_Visibility()\r\n   at ArtOfTest.WebAii.Silverlight.FrameworkElement.get_ComputedVisibility()\r\n   at ArtOfTest.WebAii.Silverlight.VisualWait.<ForVisible>b__0(Object obj)\r\n   at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)"}



Exception 2:
{"Visual tree refresh failed during redundant connect call"}



Inner exception

​{BrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{"Method":null,"Property":null,"Reference":null,"Reference2":null,"Type":12,"Value":null}',ClientId:'Client_6903c594-ae0c-4040-95e6-bf90333efdc3',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')}


Regards,
Daan Jonkers
Boyan Boev
Telerik team
 answered on 20 Jun 2014
3 answers
116 views
When I try and FrameworkElement.Capture() on 2 different machines i get different results. On 1 of them there is a shift (see shifted1 image) where as on my dev machine it is correct (see Correct1 image).

Screen resolution is the same which is what I thought could be the cause but i have tried all different resolutions with same result.

Please help!

Boyan Boev
Telerik team
 answered on 18 Jun 2014
3 answers
85 views
Chrome released version 35 over the weekend I believe. After doing so, it automatically disables the Telerik Testing Framework extension with no way to enable it.

Google says that in order to enable the extension, Telerik needs to migrate it to the Chrome Web store.

More information: Protecting Windows users from malicious extensions

Just in case anyone else had the misfortune of updating Chrome.
Konstantin Petkov
Telerik team
 answered on 16 Jun 2014
1 answer
109 views
Hi ,

I am trying to resize a chrome browser instance using Browser.ResizeContent() , but it doesn't seem to be working. Any idea why?

Thanks!
Boyan Boev
Telerik team
 answered on 16 Jun 2014
1 answer
102 views
I am writing some auto test codes to my Silverlight application. I am testing the "save as file" function. Before prompts the save as dialog, Browser (I am using IE) will prompts a "File download - security warning" dialog due to security concern. After I click the "ok" button, the save as dialog present and I can choose the location to save the file. How can Testing Framework deal with this security warning dialog? I have tried the GenericDialog, but I cannot simulate the action of clicking "ok" button so that the save as dialog never appears. Could anyone give me some hints to solve this problem? Thank you!
Ivaylo
Telerik team
 answered on 13 Jun 2014
4 answers
89 views
Hi, I'm evaluating the Testing Framework, and am looking for a specific feature I'm hoping can be supported.
I think I see that to grab a bitmap of the page, I would use Browser.Window.GetBitmap(), which is awesome.
However, I would like to do the same thing, but from a page that is rendered with HTML source that is provided, not navigated to.  For example, I take some existing HTML source, do some manipulation, give it to the Browser to render somehow, then grab Bitmap.  Hopefully in some straightforward manner leveraging the Testing Framework.

Will Testing Framework allow me to do this?  Or is there a better way?

Thanks!

Boyan Boev
Telerik team
 answered on 11 Jun 2014
3 answers
97 views
Hi,

the following code returns different results when running on IE11 and IE9:

String test = Find.ByXPath("//tr/td[contains(text(), 'Education')]").As<HtmlControl>().BaseElement.OuterMarkup;
Manager.Log.WriteLine("OuterMarkup is: " + test);

IE11 (and FireFox):
[Trace] : OuterMarkup is: <td scope="row">Education</td>

IE9:
[Trace] : OuterMarkup is: <TD scope=row>Education</TD>

So assert on OuterMarkup fails when running on different machines.
Page itself has "<td scope="row">Education</td>" value - test is a modified one from the test suite that comes together with the framework.

You can download this sample project here.
Latest framework version is used (2014.1.410.0).

Can you please comment on this issue ?
Ivaylo
Telerik team
 answered on 03 Jun 2014
3 answers
149 views
Hello,

Is there any way to do automated test for a mobile website whose content is created dynamically, depending on if site is running on desktop or mobile device? There is a JSP code that recognize device type that is based on browsers User-Agent (code is available on http://detectmobilebrowsers.com/ ). 

So basically, If I run test on Test Studio Express it will only run desktop version of the site because User-Agent is desktops one.
Is there any way to manually inject User-Agent string from a mobile device into Teleriks test scenario?

Best regards,
Michael
Ivaylo
Telerik team
 answered on 29 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?