Telerik Forums
Testing Framework Forum
6 answers
172 views
We inject a tinyMCE editor with jQuery into an iframe, and we can run tests against this without problems in FF and IE with ActiveBrowser.WaitForFrame(FrameInfo), myFrame.Actions.SetText(), etc.

However, the Telerik Testing Framework DOM never refreshes in Chrome. We've tried Thread.Sleep(), RefreshDomTree(), etc., but nothing helps. We're running on the latest build from December 29th (yesterday), but the problem is also seen in the latest official release.

This is the second major roadblock I've encountered in two days to help us move to Telerik from Selenium. I sure hope you guys can help out!

Kind regards,
Saxo Bank A/S 

Claus Topholt
Cody
Telerik team
 answered on 09 Jan 2012
2 answers
108 views
Hi,
  I am getting problem in launching browser now.


Kappy
Top achievements
Rank 1
 answered on 09 Jan 2012
5 answers
92 views
If we set UnexpectedDialogAction.HandleAndFailTest in our settings and trigger an alert, such as:

ActiveBrowser.NavigateTo("http://www.w3schools.com/JS/tryit.asp?filename=tryjs_alert");
ActiveBrowser.Frames["view"].RefreshDomTree();
ActiveBrowser.Frames["view"].Find.ByExpression<HtmlInputButton>("value=Show alert box", "tagname=input").Click();

Then the popup (which I assume is considered an unexpected dialog) is automatically handled, but the test passes. Same behavior seen in IE and FF, using Telerik Testing Framework build from December 29 2011.

Is this correct behavior? We'd really like unexpected alerts to fail our tests.

Kind regards
Saxo Bank A/S

Claus Topholt
Anthony
Telerik team
 answered on 05 Jan 2012
1 answer
101 views
Hi
I am facing one Problem in Executing Silverlight Tests using Telerik Framework
My Application Launches with Username and Password
When i click on Login Button , Silverlight Application Opens

I Created Orderd Test and Running Two Methods 

public void Login()

public void NavigateToTransfer()



But My Test Method Fails and Throws Exception

System.NullReferenceException was unhandled by user code
  Message=Object reference not set to an instance of an object.
  Source=ArtOfTest.WebAii
  StackTrace:
       at ArtOfTest.WebAii.Silverlight.SilverlightAppFinder.SilverlightApps(Browser browser)
       at SilverlightAutomation.SilverlightUnitTests.NavigateToTransfer() in C:\Users\nitinahu\documents\visual studio 2010\Projects\SilverlightAutomation\SilverlightAutomation\SilverlightUnitTests.cs:line 196
  InnerException:

How to Handle this kinf of Exception
Plamen
Telerik team
 answered on 05 Jan 2012
2 answers
201 views
When Testing Framework tests run, we see a very limited tracelog in C:\WebAiiLog\, but it more or less only contains annotations (because we enabled logging of that).

But where is the rest? For instance, the HttpProxy has a "VerboseHttpProxy" property that is supposed to generate "lots of tracing output". Where are those logs? How can they be enabled?

This apparently isn't the answer:http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/knowledge-base/best-practices/generate-application-log.aspx

..since the reg keys mentioned there do not exist for the Testing Framework, and adding them manually doesn't make a difference.

Kind regards
Saxo Bank A/S

Claus Topholt
Claus
Top achievements
Rank 1
 answered on 05 Jan 2012
8 answers
251 views
This works fine in IE but not FireFox:

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/html/verify-dialog-text.aspx 

I've tried both the official release and today's build (December 29 2011). We really need this to work for our tests to be meaningful.

Kind regards,
Saxo Bank A/S

Claus Topholt
Cody
Telerik team
 answered on 04 Jan 2012
1 answer
75 views
Hi,

Below WebAii code works in IE but not in Firefox and chrome.This code is used to wait for the new child window to connect from the existing parent window by comparing the URL passed as the parameter:

Manager.WaitForNewBrowserConnect(addItemWindowurl, true, 30000);

Please suggest us the alternative to resolve this problem in Firefox and Chrome.

Thanks and Regards,
Hemashree
Anthony
Telerik team
 answered on 28 Dec 2011
6 answers
133 views
Hi,
I am trying execute more than one test on the same class but a problem appear when I try execute these tests(right click on class and run tests)
The strange thing is that when I am executing those test one by one i don't any problem.
Cody
Telerik team
 answered on 27 Dec 2011
7 answers
161 views
Hi,

I am using Webaii 2010.3.1421.0. Current I am running into a issue handling windows dialogue alerts in fire fox browser. I have the script developed using the IE 8 browser and it's working fine. I am trying to execute the same scripts against different browser's like fire fox, Safari and chrome.

When I executed the script on Firefox and Safari, script does handle the windows dialogue's and fails.
Attached is the screen shot for windows dialogue.
Code to handle the windows dialogue

  var altDlg = new TMSConfirmDialog(ActiveBrowser, DialogButton.OK, ExpectedDialogButtons.Two);
            Manager.DialogMonitor.AddDialog(altDlg);
            Manager.DialogMonitor.Start();
            PfmPageManager.HistoryPage.Elements.HistoryDataGrid.GoToDetailPage("&nbsp;", "Version", "Revert", versionNumber);
            string dialogMessage = altDlg.DialogMessage;

Any suggestions will be appreciated.
Thanks in advance
Mahendra
Plamen
Telerik team
 answered on 27 Dec 2011
2 answers
60 views
Hi telerik team,

I try to get All Items in a Checked List Box in Silverlight but telerik only get the Visible Item, if I want to get the others item, i have to scroll down and get the list again. I wonder are there any way to get full list?
This is how I get it
ListBox chkListCategories = grid.Find.ByName<ListBox>("chkListCategories");
GlobalObject.SILVERLIGHTAPP.VisualTree.Refresh();
IList<TextBlock> textlist = chkListCategories.Find.AllByType<TextBlock>();

Thank you
Tuan
Top achievements
Rank 1
 answered on 23 Dec 2011
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?