Telerik Forums
Testing Framework Forum
7 answers
118 views
In the latest version download dialog processing seems to be broken even in older browsers :(

Run this piece of code in IE8: 
[TestFixture]
public class Class1
{
 
    [Test]
    public void A() {
        new Manager(false).Start();
 
        var m = Manager.Current;           
        m.LaunchNewBrowser(BrowserType.InternetExplorer);
 
        var b = m.ActiveBrowser;
 
        var h = new DownloadDialogsHandler(b, DialogButton.SAVE, "C:\\PQZHoldings.csv", m.Desktop);
 
        HtmlAnchor a = b.Find.ByExpression<HtmlAnchor>("id=ctl00_MainPageLeft_MainPageContent_ExportHoldings1_LinkButton1", "tagname=a");
        a.Click(false);
        h.WaitUntilHandled(10000);                       
    }
}

File download prompt appears and then closes. In 10 seconds I get a timeout error.
I still have to use the old ArtOfTest 2.0 release...



Alexey Ivanov
Top achievements
Rank 1
 answered on 20 May 2011
1 answer
96 views
Hello!

On one of my machines I got this exception when ran tests in Firefox.
I analyzed this method using Reflector and understood that you search FF installations in the registry.

For some reason under HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\ I had two keys: 3.6.13 and 3.6.17.
I fixed the problem by manually deleting 3.6.13 key. 

I suggest you to add more sanity checks when analyzing keys!
Anthony
Telerik team
 answered on 19 May 2011
1 answer
161 views
Hello,

I'm having an issue where the ActiveBrowser.Capture() feature is returning an Image where the Content window of the Browser is Black. (The Browser Navigation URL and Tool bars are visible)

Here is the Code I'm using:
 
var bitMap = ActiveBrowser.Capture();
var fileName = TestContext.TestName + "_" + DateTime.Now.ToString("MM_dd_yyyy_HH_mm_ss_ffff");
fileName = Path.ChangeExtension(Path.Combine(directory.FullName, fileName), ".jpeg");
bitMap.Save(fileName, ImageFormat.Jpeg);

I've attached what one of the Results looks like.

These Scripts are running on Window 7 VM's.
Stoich
Telerik team
 answered on 19 May 2011
4 answers
153 views
Hey all,

I have a third party app that I am currently working on that will run a few of our basic WebAii tests.  I have a button that when a user clicks, it should stop the execution of the tests being run.  This sort-of works, but I want to know if there is a way to stop any current execution of any webaii calls? 

What I do currently is call manager.Dispose() and that will close my browser, causing the test to fail.  I don't like this approach, and would rather be able to say manager.StopCurrentTest() (or something like that)then handle the tests being aborted, then call my manager.Dispose().

Is there any hack to do this?

Thanks!

Cody
Telerik team
 answered on 18 May 2011
1 answer
161 views
Hi,

I have just installed Telerik Testing Framework 2011.1.502 and when I opened the Extensions tab in the Tools / Add-ons of Firefox, I get the extension reported as in the attached screenshot (refers to 2010.3 client).

Is this expected?

Thanks,
Nikolai
Telerik team
 answered on 18 May 2011
6 answers
173 views
hi,

i already did Test Iterated.

Now im trying to create test that login to the system (once ), and repeat few steps several times (different data each iteration).
How can i group the second part of the test?


thx,
Maayan.
Barbara
Top achievements
Rank 1
 answered on 16 May 2011
2 answers
144 views
Hi,

I am attempting to iterate through the TreeListItems property of the RadTreeListView and running into time out issues.  I am running the following code:

foreach(RadTreeListViewItem item in treeListView.TreeListItems)
{
        ... do some work on item ....
}

The test will generate the following error:  "Wait for condition timed out" while attempting to retrieve the TreeListItems property.

When I run the test in the debugger I will get this error:  "Function evaluation timed out" when hovering over the property.

Any helpful hints.

Joel
Yordanka
Telerik team
 answered on 11 May 2011
9 answers
130 views
This issue occurs sometimes (unstable).
Please check the attached screenshot.
It shows that repeated "tt" were printed as "t".

I can guess that the source of the problem is that the framework "types" too fast.
it can be fixed by holding half-a-second pause between identical characters.
But in this case I cannot use conveniences of the DownloadDialogsMonitor class....
Alexey Ivanov
Top achievements
Rank 1
 answered on 10 May 2011
3 answers
156 views
I am using Visual Studio Mstest to execute the Silverlight test cases with WebAii Testing Framework.

The test cases work well for single-thread execution, which means executing test cases one by one. And the "Mouse.Click" method can simulate mouse behaviors in browser perfectly.

But if I execute multiple test cases in parallel, in this situation multiple browsers will be started for each test case at same time. Then only the first activated browser can accept the Mouse.Click behavior, other test cases all failed due to browser can't receive the mouse click behavior - they are all behind the top activated browser.

My question is, is there any solution can handle the test cases execution in parallel, so that different browsers can accept corresponding mouse/keyboard behaviors.

Thanks in advance for your help.
Cody
Telerik team
 answered on 06 May 2011
1 answer
109 views
Hi,

The release notes for the most recent release of the framework are empty:

http://www.telerik.com/versionnotes.aspx?id=2453

Regards,

Dan
Konstantin Petkov
Telerik team
 answered on 05 May 2011
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?