Telerik Forums
Testing Framework Forum
2 answers
224 views
Hi,

Is there a way (somenthing like WaitForNewBrowserConnect) to switch to a new tab?
I´m working on a test where the new Browser opens in a new tab, and I can´t manage to work with it. When I run WaitForNewBrowserConnect I get a TimeoutException.

Kind regards
Silvio
Silvio
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
109 views
Hi all,

I've recorded a test case and when i clicked in a button, here is the telerik code generated:
Applications.MyAppexe.Bob_McLean_1162013.SuperbillTextblock.User.Click(xx.xxx.xxx)
SuperbillTextblock is the name of my button
I wonder why the WPF Telerik recorder has recorded the date of the day "1162013" (16th January 2013). It doesn't make any sense.
Therefore, when I try to play back my script another day, it doesn't work.
How can we make a dynamic variable with the date of the current day?

Something like:
Date currentDate = new Date(xxxx);
Applications.MyAppexe.Bob_McLean_{currentDate}.SuperbillTextblock.User.Click(xx.xxx.xxx)


I don't know the exact syntax but I'm sure it's possible to do it.
Don't hesitate to tell me if you have a better idea to solve my issue.

Thanks in advance for your help.
Tom
Top achievements
Rank 1
 answered on 24 Jan 2013
9 answers
406 views
Hi All,
Our web application uses a lot of Highcharts elements.
We try to automate some simple scenarios with Highcharts, but no luck there.
Typical scenario:
- Perform click on specified bar column on the chart. Chart sample can be found here:
http://www.highcharts.com/demo/bar-basic

After some investigation we found that we need perform click operation on some <rect /> DOM element which represent needed bar column.
But unfortunately neither native Telerik Click() method (we get this <rect /> element as HtmlControl), no pure MouseClick (which emulate mouse move/click) does not work here.

We really stack at this point, and can't figure out how such simple operation can be done within Telerik Test Framework functionality.
We use next hardware:
OS: Win 7 x32/64
Browser: Firefox 16.0.2
TTF: 2012.2.1002

Any ideas how it can be done ?

Thanks in advance!
Plamen
Telerik team
 answered on 23 Jan 2013
5 answers
162 views
Hi There

I am trying to run Silverlight tests that are run automatically run on the TFS build server. I am getting the following test failure exception:

Error Message:
Test method WDAdminServerUI.UnitTests2.AddNewUserBasicUnitTest.AddNewUserBasic threw exception:
System.NullReferenceException: Object reference not set to an instance of an object.

Error Stack Trace:
ArtOfTest.WebAii.Core.Manager.SetupDialogMonitoring()
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
WDAdminServerUI.UnitTests2.AddNewUserBasicUnitTest.AddNewUserBasic() in c:\Builds\1\WandDisplayAdminUI\WandDisplayAdminUIDevBuild\Sources\WDAdminServerUI.UnitTests2\AddNewUserBasicUnitTest.cs: line 191

Line 191:
Manager.LaunchNewBrowser();


So it would seem that the Manager is null.



Can you please tell me what could be causing this?


Nick





Cody
Telerik team
 answered on 22 Jan 2013
6 answers
172 views
Hello Telerik Team,
I create a test method:
[Timeout(900000), TestMethod]
        public void CheckRadGridViewRowsCountTest()
        {
            //Manager.LaunchNewBrowser();
            Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true);
 
            ActiveBrowser.AutoWaitUntilReady = true;
            ActiveBrowser.Window.SetActive();
            ActiveBrowser.Window.SetFocus();
            ActiveBrowser.Window.Maximize();
 
            ActiveBrowser.NavigateTo(@"http://demos.telerik.com/silverlight/#GridView/Sorting");
 
            // Get an instance of the running Silverlight Application.
            app = ActiveBrowser.SilverlightApps()[0];
 
            ActiveBrowser.RefreshDomTree();
            // Get an instance of the running Silverlight Application.
            app = ActiveBrowser.SilverlightApps()[0];
            app.VisualTree.Find.Strategy = FindStrategy.AlwaysWaitForElementsVisible;
            app.VisualTree.Find.WaitOnElementsTimeout = timeout;
 
            RadGridView radGridView1 = app.VisualTree.Find.ByAutomationId<RadGridView>("RadGridView1");
            var rowsCount = radGridView1.Rows.Count;
        }

When .I start this test, the value of "rowsCount" is 19, but really in radGridView1 we have > 50 rows, so why is this difference?

Thank you in advance!
Andrei
Top achievements
Rank 2
 answered on 22 Jan 2013
3 answers
96 views
Hi,
I have issue during download file under Chrome  23.0.1271.97 and using TTF 122.12.4.0. I got message "This site is attempting to download multiple files..." which block downloading process.
Could you help please?
Thanks.
Cody
Telerik team
 answered on 21 Jan 2013
5 answers
94 views
Hello Telerik,

I have faced with an issue when the order of HeaderCells in RadGridView differs from the order of the Cells in the Rows. Because of this issue I can't get the value from the particular cell in the row by the index of the column with the specific text. I use the following algorithm to identify the cell:
1. I go through all HeaderCells in radGridView.HeaderRow and search for the header cell with the particular text;
2. Once I have identified the header cell, I remember the column index, and then go through all radGridView.Rows and compare the cell with the index to the expected value.

And here is an issue. The column index is 2, but the value in the Rows is stored in the cell with index 1. I can't make head or tail of this issue. One month ago everything worked perfectly.

How is this possible?

Kind Regards,
Stanislav Hordiyenko
Plamen
Telerik team
 answered on 18 Jan 2013
1 answer
159 views
Hi,

I'm currently doing it this way:

            KendoTreeView treeView = myManager.ActiveBrowser.Find.ByXPath<KendoTreeView>("//div[@data-role='treeview']");

            IList<KendoTreeNode> listNodes = treeView.AllNodes;

            int elem = 1;

            //System.Diagnostics.Debug.Print(listNodes.ElementAt(elem).ChildNodesCount.ToString());

            listNodes.ElementAt(elem).

            listNodes.ElementAt(elem).ScrollToVisible();

            listNodes.ElementAt(elem).DragTo(new Point(500, 720));

But it's not working correctly. The mouse starts from the center of the treeview, and all elements whose text does not have the length of at least half the horizontal size of the treeview, are not being selected. Is there a better way to do it?
Plamen
Telerik team
 answered on 18 Jan 2013
2 answers
1.0K+ views
Hi!

Some tests seem to fail in debug mode. Following message is shown:

NonComVisibleBaseClass was detected
Message: A QueryInterface call was made requesting the class interface of COM visible managed class 'MS.Internal.AutomationProxies.WindowsEditBox'. However since this class derives from non COM visible class 'MS.Internal.AutomationProxies.ProxyHwnd', the QueryInterface call will fail. This is done to prevent the non COM visible base class from being constrained by the COM versioning rules.


I don´t see any connection between the failing tests. The only constant is this message shown in debug mode.
Does somebody know this issue?

Kind regards
Silvio
Top achievements
Rank 1
 answered on 17 Jan 2013
2 answers
132 views
Hi,
I am trying to automate an sharepoint web application using telerik testing framework. I was succesful in most of the identificcation and user actions except below problem.

The site has Menu > Sub menu where the 'sign in as different user' option is available.
When the page initially loads only the menu item will be displayed, only after clicking this menu, the sub menu will be dislayed in the page.
(I am sure this is not ajax)

I am able to identify the sub menu (by ActiveBrowser.RefreshDomTree()) after clicking the menu but when trying to click on the sub menu it fails.
HtmlAnchor SLnk = Find.ById<HtmlAnchor>("zz5_Menu");
           SLnk.MouseHover(5,5);
           SLnk.MouseClick(MouseClickType.LeftClick);
               
           ActiveBrowser.RefreshDomTree();
           var dUser = Find.ByAttributes<HtmlControl>("description=Login With a different account.", "text=Sign in as Different User");
                    
 
           Console.WriteLine(dUser.IsEnabled + "  " + dUser.IsVisible());
           dUser.MouseClick();

The IsEnabled returns "true" and IsVisible returns "false".
Even after successfully identifying the sub menu control (dUser), any mouse actions are not working on the control.

I also tried:

dUser.MouseHover();

dUser.ScrollToVisible();

before clicking the sub menu.
(attached the sub menu html code taken in firebug)
Please help.

Thanks in advance.

 

Giri
Top achievements
Rank 1
 answered on 16 Jan 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?