Telerik Forums
Testing Framework Forum
5 answers
124 views
Hi 

I am currently researching into using MTM or Test Studio right now for our team. We already used the Telerik DevCraft tools and have done for some time, we work in Visual Studio and create both desktop and web based applications.

I have some general questions:

1. Are you still able to create Test Cases in TFS and/or requirements and then from within Test Studio use these Test requirements, Test Cases or Query on Priority levels of User Stories to create Test Suites like you can in MTM?

2. When logging a bug can you still utilise the TFS bug logging features in the same way MTM does through TFS?

3. When logging a bug does Test Studio capture in images all the steps performed up to the point the bug occurred?

4. Can you still perform analysis on Tests results the same way that MTM does?

5. Can you step up tests and link them to specific builds within a project in TFS?

6. Does Test Manager connect in the same way to Visual Studio so that you connect to a Project in TFS then create a Test Plan and under this create Test Suites and Test Cases?

7. Can you dock the Test Studio to the left or right of the screen when performing tests on an application or in a web browser.

8. The main video focuses quite a bit on Web based testing, I assume you can test on desktop based applications with the same facilities and power as the web based applications?

Sorry for the large number of questions. I can see from some of the videos and tutorials and documentation that Test Studio is very capable and goes beyond MTM in many ways but these are some of things I wanted more of a specific answer on.

Many thanks for your help

Rob


Cody
Telerik team
 answered on 26 Jun 2014
1 answer
335 views
Hi ,

I am using testing framework 2013.2.1327.0. The framework is really good is really and it has really helped me a lot but currently I am facing few issues:

1. I have designed the script using MSTest. When I execute the tests using vstest.console.exe from developers command prompt. Sometimes when tests fails, the execution stops and tests does not get executed. I have faced this issues quite a lot of time . I am unable figure out the root cause. If would be really helpful if you could provide me any workaround for this.

2. Framework is unable to identify the authentication window for chrome 33. how could i fix this issue.
Ivaylo
Telerik team
 answered on 26 Jun 2014
1 answer
154 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
287 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
144 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
128 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
110 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
126 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
106 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
105 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?