Telerik Forums
Testing Framework Forum
2 answers
136 views
Hi All,
Does someone know what is this pages.g?
It seems it's generated automatically and saved in the telerik filesystem project.
I have right now 13 scripts which can be executed as well without error. Script 1 to script 13.
After, the script 14 and 15 can't be executed. I can copy all the content of the script 1 into the script 14 and it still doesn't work.
Here is the log
E:\MyProject\Pages.g.vb: Line 300: (BC30203) Identifier expected.
E:\MyProject\Pages.g.vb: Line 324: (BC30203) Identifier expected.
E:\MyProject\Pages.g.vb: Line 356: (BC30203) Identifier expected.
E:\MyProject\Pages.g.vb: Line 4113: (BC30203) Identifier expected.
E:\MyProject\Pages.g.vb: Line 4474: (BC30203) Identifier expected.
E:\MyProject\Pages.g.vb: Line 4811: (BC30203) Identifier expected.
To me, the log are not enough to analyze the issue.
I've attached the pages.g
Is there a way to clean a project?
I would appreciate if someone could help me to solve this issue.
Dobry Zranchev
Telerik team
 answered on 25 Jan 2013
2 answers
253 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
136 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
439 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
192 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
205 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
135 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
134 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
172 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.2K+ 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?