Telerik Forums
Testing Framework Forum
6 answers
85 views
I'm using Telerik Testing Framework (version: 2013.1.911.0) and I'm trying to use the Run Local Web Server feature. The MVC app I'm testing is using 4.0 so I set the localWebServer setting to "AspNetDevelopmentServer40". When I run my tests though I get an error in the browser:

Unrecognized attribute 'targetFramework'.

Then I look in my system tray and the development server is running version 2.0.50727.5459. This explains the error but localWebServer setting should be set correctly. I'm using Visual Studio 2012 to develop the application and tests (which are using the VSUnit template with all of the settings in an App.config).

Help would be greatly appreciated.
Cody
Telerik team
 answered on 27 Nov 2013
1 answer
101 views
I need to connect to a remote station through Citrix Metaframe to access a portal. However, when i use the record and play function, the metaframe window and elements are not captured by telerik. I there a possible solution to deal with that?
Ivaylo
Telerik team
 answered on 26 Nov 2013
1 answer
76 views
We are using the test framework to automate the Telerik backstage control and have had success while testing on Window 7 and windows 8 enterprise editions however now we are trying with 8.1 and we are finding that all tests are failing because when we find the vertical menu tab controls on the left by Automation ID, the code always find the next tab in the list.
Now when I debug and investigate the returned control properties it has the correct text of the tab that I need but when I tab.Highlight() of tab.User.Click(MouseClickType.LeftClick) it always goes for next tab.

I have even tried this below where "this" is the parent control, in our case the RadRibbonBackstage, and it still fails by clicking on the next tab in the list.
            var xPoint = tab.GetScreenRectangle().GetCenterPoint().X;
            var yPoint = tab.GetScreenRectangle().GetCenterPoint().Y;
            this.User.Click(MouseClickType.LeftClick, xPoint, yPoint, ArtOfTest.Common.OffsetReference.AbsoluteCenter);

Is Windows 8.1 supported. Is there some reason that windows 8.1 might react differently from other operating systems? Is there something you can think of i can try to find out why this might be happening?
I must admit that we currently have only 1 windows 8.1 physical machine to run these tests on at the moment until infracstucture give us a win 8.1 Hyper V template to test with.
Velin Koychev
Telerik team
 answered on 22 Nov 2013
3 answers
118 views

Hello,

Can I make my tests run second time if it was failed for the first? For example, I have some functionality (e.g. Reports generated by API) and sometimes it does not work well (We have developers license and only limit # of calls can be made in some period of time), because of that my tests failed. I need to rerun them once again to make it passed. The idea is next: if test failed, it should be rerun from the beginning and if it would failed second time it should be indicated that test actually failed. Can I do this in some way?

Daniel
Top achievements
Rank 2
 answered on 21 Nov 2013
1 answer
330 views
hi all,

i only install VS2012 and TTF (latest version), On my wpf application have some wpf elements have automationId or Id is empty. I used the inspect.exe tool from MS to catch it with its properties. However i really dont know how to my script can find these elements with some functions come from TTF, such as: ByName, By Text, ... or ByExpression. For ByExpression, i really dont know how to know exactly the XamlPath ?

I attached a illustrated image here (application window with wpf object focused and the inspect tool is listing out object's properties).

Could you please see in attached file and give me some your idea / solution to resolve this ?

Thank a lot !
Velin Koychev
Telerik team
 answered on 21 Nov 2013
5 answers
115 views
To get started, I just needed this app to do the following:

1. Open my web browser.
2. Load the webpage.
3. Enter the username value.
4. Enter the password value.
5. Submit the credentials.

Yet when it gets to step 3, it ignores the Username field and only recognizes the Password field.  After several frustrating minutes, I managed to jerryrig editing it to get the username field recognized and data entered, but a simple right-click in error on my part deleted the test I had working and there was no Undo to bring it back.  

How can I feel confidence in an app which doesn't recognize a basic two field logging in screen?

Has anyone else had this problem where only the Password field is recognized?  I can't blame the page because QTP, Selenium, and TestComplete all recognized both fields.
Steven
Top achievements
Rank 1
 answered on 20 Nov 2013
1 answer
105 views
I was just about to test drive this, on the first attempt I was trying to run the app, get the main window, but stopped right there. Here's the exception I got on accessing MainWindow:

   at ArtOfTest.Common.Win32.Connector.InjectCode(IntPtr handle, String assemblyAndClass, String pipename, String pid, Boolean waitForDocument)
   at ArtOfTest.WebAii.Wpf.WpfWindow.ConnectToWindow(IntPtr handle, String pipename, String pid)
   at ArtOfTest.WebAii.Wpf.WpfApplication.get_MainWindow()
   at ArtOfTest.WebAii.Core.Manager.LaunchNewApplication(ProcessStartInfo pinfo)
   at NServiceBus.Profiler.FunctionalTests.StudioTestBase.Can_show_shell_window() in c:\Projects\NSBProfiler\NServiceBus.Profiler.FunctionalTests\StudioTestBase.cs:line 31

And what I did was pretty standard:

[Test]
public void Can_show_shell_window()
{
    var appPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), ApplicationProcess);
    var processStartInfo = new ProcessStartInfo
    {
        FileName = appPath,
        UseShellExecute = false,
        CreateNoWindow = true,
        RedirectStandardOutput = true,
        RedirectStandardError = true,
    };
 
    var config = new Settings();
    var manager = new Manager(config);
 
    var app = manager.LaunchNewApplication(processStartInfo);
    var mainWindow = app.MainWindow;
 
    var barManager = mainWindow.Find.ByAutomationId("BarManager");
    Assert.IsNotNull(barManager);
}


The app displays a splash screen on startup, maybe that's why getting the main window fails? Whatever the reason, I didn't expect a NRE.

Velin Koychev
Telerik team
 answered on 20 Nov 2013
1 answer
112 views
Hi,

I've got error on VS. When I type "Wait.For", VS displays an error "Unknown method "For" of ArtOfTest.WebAii.Synchronization.Wait".

What should I do?
Velin Koychev
Telerik team
 answered on 20 Nov 2013
3 answers
171 views
In an Application developer has used "KendoUINumerictextbox" and triggering a JS to bind data to some other controls, Have attached the DOM of it.

I'm trying to automate this with Free version of Telerik Testing Framework

The namespace which i need to use is "Telerik.TestingFramework.Controls.KendoUI" to deal with this control. but this library is available in TestStudio which is licensed version, Is there alternative library in free version i.e. Telerik Testing Framework to Automate this?


Appreciate if sample code is shared to trigger JS or call OnChange event with KendoUINumerictextbox , have attached the DOM.

Thanks in Advance,
Naveen
Boyan Boev
Telerik team
 answered on 12 Nov 2013
1 answer
82 views
Hello, 

Could you please take a look on the following issue: Telerik Testing framework cannot work with ComboBox. On code:

Elements.ComboBox_Relation.ToggleDropDown();

Exception is thrown: 
Failure Information: 
~~~~~~~~~~~~~~~
Was not able to match a segment within the path. Expected:canvas , Found:FrameworkElement , Path:/popup:-1:7478741/canvas:0:199809/browserwindowpresenter:1:25639961/popupwindow:0:29433063/grid:0:41527260/contentcontrol:2:34025648/contentpresenter:0:13531482/grid:0:54674477/contentcontrol:1:61729402/contentpresenter:0:31325900/grid:0:13497647/scrollviewer:0:29690827/border:0:37736931/grid:0:41475694/scrollcontentpresenter:0:54369966/contentcontrol:0:4088064/contentpresenter:0:36792583/addpartieswizardview:0:62697791/grid:0:29689838/contentcontrol:0:48941135/contentpresenter:0:22660844/addpartiesselectionview:0:2621005/grid:0:2807653/gridview:3:7768501/border:0:35471519/grid:0:11397820/scrollviewerwithactionbutton:5:55129473/grid:0:22986004/scrollcontentpresenter:6:62206324/gridviewvirtualizingpanel:0:51627108/gridviewrow:0:63849983/border:0:11181736/selectivescrollinggrid:0:16155496/detailspresenter:9:51737965/border:0:57655996/border:0:49141917/contentpresenter:0:39624072/radrowdetailswithbuttons:0:21072335/stackpanel:0:57162270/contentpresenter:0:66741197/border:0:63799869/grid:0:43688924/watermarkedcombobox:7:6599579 
InnerException:
System.Exception: Was not able to match a segment within the path. Expected:canvas , Found:FrameworkElement , Path:/popup:-1:7478741/canvas:0:199809/browserwindowpresenter:1:25639961/popupwindow:0:29433063/grid:0:41527260/contentcontrol:2:34025648/contentpresenter:0:13531482/grid:0:54674477/contentcontrol:1:61729402/contentpresenter:0:31325900/grid:0:13497647/scrollviewer:0:29690827/border:0:37736931/grid:0:41475694/scrollcontentpresenter:0:54369966/contentcontrol:0:4088064/contentpresenter:0:36792583/addpartieswizardview:0:62697791/grid:0:29689838/contentcontrol:0:48941135/contentpresenter:0:22660844/addpartiesselectionview:0:2621005/grid:0:2807653/gridview:3:7768501/border:0:35471519/grid:0:11397820/scrollviewerwithactionbutton:5:55129473/grid:0:22986004/scrollcontentpresenter:6:62206324/gridviewvirtualizingpanel:0:51627108/gridviewrow:0:63849983/border:0:11181736/selectivescrollinggrid:0:16155496/detailspresenter:9:51737965/border:0:57655996/border:0:49141917/contentpresenter:0:39624072/radrowdetailswithbuttons:0:21072335/stackpanel:0:57162270/contentpresenter:0:66741197/border:0:63799869/grid:0:43688924/watermarkedcombobox:7:6599579 
   at ArtOfTest.WebAii.Silverlight.VisualFind.ByReference(AutomationReference reference, Boolean throwIfNotFound)
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.Refresh()
   at Telerik.WebAii.Controls.Xaml.RadComboBox.ToggleDropDown()
   at Telerik.WebAii.Design.Translators.Xaml.ComboBox.ComboToggleDropDownAction.Execute(IApplication appHost)
   at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
Mario
Telerik team
 answered on 01 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?