Telerik Forums
Testing Framework Forum
1 answer
146 views
Hi.

I am using WebAii to automate the testing of a Silverlight web app.

I have a RadGridView; in this grid there are 10 cells, but only 6 cells are visible to the client due to the size of the columns.  You need to use the scroll-bar to view the remaining 4 cells.

With WebAii, I can only find the 6 cells that are in the visual tree, and since Telerik grids use cell recycling, WebAii is not aware that there are another 4 cells in the grid.

How can I access these remaining 4 cells?

Cody
Telerik team
 answered on 12 Oct 2010
1 answer
113 views
Hi, 
I'm currently running my tests using FF 3.0.19 and Nunit. 
Should I upgrade to the current FF version, would that have any effect on the already installed Webaii 2.0 ? 

In addition, do you guys know of a way to handle FF crashes ? When FF goes down I'm getting the attached message. 
I was wondering if there's a way to catch those exception. 

Ta. 
Cody
Telerik team
 answered on 12 Oct 2010
1 answer
110 views
Hi,

We upgraded the Telerik Ultimate edition Last Friday. We are exploring the UI Test Framework with the trial version Till that time everything is working fine. When i try to create a new project after purchasing the licence and try to record, it is not opening  the browser, display the error attached in this screen shot. Pls reply back asap.

Thanks & Regards
Cody
Telerik team
 answered on 12 Oct 2010
18 answers
256 views
HI all,

I'd like to share an interesting (I hope so) problem.
When downloading files in IE 7, we have three dialog windows: download confirmation, save file dialog and the window after download.
There are corresponding dialogs in WebAii framework: IEDownloadDialog, SaveAsDialog and IEDownloadCompleteDialog.

So, we use them to handle the downloading process in the way as described below.
string fname = "c:\download.doc";
 
IEDownloadDialog iedownload = new IEDownloadDialog(
   Browser,
   DialogButton.SAVE,
   Manager.Desktop);
 
  Manager.DialogMonitor.AddDialog(iedownload);
 
  SaveAsDialog saveas = new SaveAsDialog(
   Browser,
   DialogButton.SAVE,
   fname,
   Manager.Desktop);
 
  Manager.DialogMonitor.AddDialog(saveas);
 
  IEDownloadCompleteDialog iedownloadComplete = new IEDownloadCompleteDialog(
   Browser,
   DialogButton.CLOSE,
   Manager.Desktop);
 
  Manager.DialogMonitor.AddDialog(iedownloadComplete);
  Manager.DialogMonitor.Start();
 
  downloadExcelLink.MouseClick(MouseClickType.LeftClick);
 
  Thread.Sleep(15000);   
  Manager.DialogMonitor.Stop();

But there is one problem: as far as I understand, for some small period of time the close button on the last dialog is disabled (I have no idea why, really). So the dialog handler clicks it when the button is inactive and nothing happens.
I didn't encounter this problem while using WebAii 1.1, it started to appear only after migration to WebAii 2.0.

Looking forward for hearing any ideas.

Thanks, 
Yaroslav

Cody
Telerik team
 answered on 12 Oct 2010
1 answer
151 views
Hi,

We are using extensive telerik grid functionality. Is there any generic telerik grid functionalities with in a sequence available for ready testing supported by your testing tools. We are using almost all the functionalities in the telerik grid. For example in the below mentioned url, we need to key in the data in the search filter, automatically it need to narrow down the search, What is the steps to achieve this using your testing tools. We cant able to test that scenario and also we need to change the pagination, what are the steps do i need to follow to test the pagination. Pls send me some working example to achieve this. The below mentioned URL is our application reference.

http://test.aptisys.com/UOMSetup.aspx

Thanks & Regards
Nikolai
Telerik team
 answered on 12 Oct 2010
3 answers
203 views
Hi all,

I'd like to get some information about a dialog window when I close it, so I try to use code like that:
public void Test1()
{
    Settings settings = new Settings(BrowserType.InternetExplorer, @"d:\log\");
    settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
    Manager manager = new Manager(settings);
    manager.Start();
    manager.LaunchNewBrowser();
 
    manager.ActiveBrowser.NavigateTo("http://aspspider.ws/kovyar/confirm.htm");
 
    Element confButton = manager.ActiveBrowser.Find.ById("confirmbutton");
 
    manager.DialogMonitor.AddDialog(new GenericDialog(manager.ActiveBrowser, "Explorer", true, 1));
    manager.DialogMonitor.Dialogs[0].HandlerDelegate = delegate(IDialog dialog)
    {
        Trace.WriteLine(dialog.Window.Caption);
        Trace.WriteLine(dialog.Window.AllChildren[0].Caption);
        Trace.WriteLine(dialog.Window.AllChildren[1].Caption);
        Trace.WriteLine(dialog.Window.AllChildren[2].Caption);
        Trace.WriteLine(dialog.Window.AllChildren[3].Caption);
        Manager.Current.Desktop.Mouse.Click(MouseClickType.LeftClick, dialog.Window.AllChildren[1].Location);
    };
    manager.DialogMonitor.Start();
    (new HtmlControl(confButton)).Click();
 
    Thread.Sleep(5000);
    manager.DialogMonitor.Stop();
    manager.Dispose();
}

The idea of writing this stuff is here: see "Creating custom dialog handlers" section.
Still it doesn't work at all. The button is pressed, the dialog appears and I collect all the required information (see trace after run).
But the "Cancel" button isn't clicked while the code is very the same as given at the Artoftes site.

OS: WinXP, browser: IE7.

Thanks in advance for any ideas,
Yaroslav





Cody
Telerik team
 answered on 06 Oct 2010
1 answer
106 views
Hi ,


I am new to WebAii automation framework can any body tell how to do data driven testing.

Please note that i am not using WebUi.

Regards
Kumar
Cody
Telerik team
 answered on 29 Sep 2010
1 answer
133 views
Can I use multi-threading programming with webaii to open multiple browser at the same time?
Cody
Telerik team
 answered on 28 Sep 2010
2 answers
74 views
I have successfully tested a basic silverlight page but when I tried to test a page that was polling a service it seemed as if no break point was being hit after attaching to the silverlight instance on the page (if I set the breakpoint to the following line nothing would happen and it would eventually time out). Is this a known issue?

Thanks,

John
Cody
Telerik team
 answered on 24 Sep 2010
4 answers
187 views

I am trying to launch browser using below code, I wan to use same Manager for all my scripts. when run the below code a blanck browser is opened and after few seconds, sytem throws error at line 2 saying that "wait for conditation has timed out " 

error discription error stack is

[System.TimeoutException] {"Wait for condition has timed out"} System.TimeoutException

below is my code snippet


public

 

static Boolean StartBrowser(){

 

 

try

 

{

 

 

Global.ObjManager = new Manager(false);

 

 

 

Global.ObjManager.LaunchNewBrowser(BrowserType.InternetExplorer, true);

 

 

 

 

//Manager.LaunchNewBrowser();

 

 

Global.ObjManager.ActiveBrowser.NavigateTo(Global.strUrl);

 

 

// Set the short-cuts to the main automation objects.

 

 

Global.ObjBrowser = Global.ObjManager.ActiveBrowser;

 

 

Global.ObjFind = Global.ObjBrowser.Find;

 

 

 

return true;

 

}

 

catch (System.Exception excep)

 

{

 

Console.Write(excep.Message);

 

}

 

return true;

 

}

Nikolai
Telerik team
 answered on 24 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?