Telerik Forums
Testing Framework Forum
3 answers
251 views
I recently updated to Visual Studio 2013 and IE11 and now my Automated UI tests are no longer working...

Issue: NavigateTo no longer appears to be working.  The browser launches but the page simply stays on "Blank".

Any ideas on how to fix?

Code:

// Initialize the settings
Settings mySettings = new Settings();
 
// Set the default browser
mySettings.Web.DefaultBrowser = BrowserType.InternetExplorer;
 
// Create the manager object
Manager myManager = new Manager(mySettings);
 
// Start the manager
myManager.Start();
 
// Launch a new browser instance. [This will launch an IE instance given the setting above]
myManager.LaunchNewBrowser();
myManager.ActiveBrowser.WaitUntilReady();
 
// Navigate to a certain web page
myManager.ActiveBrowser.NavigateTo("http://www.thewebsite.com");
 
//Never actually loads the website above. )c:

   

Velin Koychev
Telerik team
 answered on 04 Dec 2013
3 answers
139 views
Hello.

How can I get all invisible elements with a spicified type?
There are few hundreds <DataGridRow> elements under scrollbar. and only 9 is visible.
Silverlight Spy and WebAii return only 9(if I found with "....Find.AllByType<DataGridRow>().Count).

Velin Koychev
Telerik team
 answered on 29 Nov 2013
15 answers
312 views
Hi,

I have a doubt.
I tried execute tests recorded in plugin of Telerik Test Studio for Visual Studio, 
My doubt is, it's possible execute tests that was record in Telerik Test Studio in MTM(Microsoft Test Manager)? And if i'ts possible you can send me link of documentation or an explanation how to do it?

best,

José Teles
Velin Koychev
Telerik team
 answered on 29 Nov 2013
6 answers
101 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
132 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
103 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
142 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
402 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
155 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
123 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
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?