Telerik Forums
Testing Framework Forum
1 answer
162 views
Browser: IE9 (configured as instructions Telerik)

IDE: Visual Studio 2010

At the beginning of the test must be a login on site.
However, after running the test - page opens and closes almost immediately. 
The result - error "Wait for condition has timeout" 

After resetting the browser and set as instructions - Telerik can not find one of the items on the "id". Re-running the test - an error "Wait for condition has timeout"

Tell me, please, how to solve the problem?

P.S. Translated by Google Translate
Plamen
Telerik team
 answered on 30 Jan 2013
5 answers
223 views
Hello.
I have issue when handle Confirm Dialog.
When i want to cancel dialog, WebAii clicks twice on it.
After second click on cancel button tests want to continue to navigate and throw exception:
        • ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
          InError set by the client. Client Error:
          System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (Exception from HRESULT: 0x800700AA)
          at ArtOfTest.ShDocVw.WebBrowserClass.Navigate2(Object& URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
          BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'http://localhost:9090/webstudio-test/',ClientId:'Client_425a0a71-af92-4778-bb1d-6e20c2a3960c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (Exception from HRESULT: 0x800700AA)
          at ArtOfTest.ShDocVw.WebBrowserClass.Navigate2(Object& URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
          InnerException: none.

    I have a simple code which work perfect in Firefox but fail in IE9.

var dialog = ConfirmDialog.CreateConfirmDialog(ActiveBrowser, DialogButton.OK);
            Manager.DialogMonitor.AddDialog(dialog);
            Manager.DialogMonitor.Start();
            Find.ByAttributes<HtmlAnchor>("title=Remove Table").Click();
            dialog.WaitUntilHandled();
            Manager.DialogMonitor.Stop();
Plamen
Telerik team
 answered on 25 Jan 2013
2 answers
148 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
278 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
153 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
482 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
215 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
239 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
155 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
153 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?