Telerik Forums
Testing Framework Forum
1 answer
83 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
210 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
123 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
172 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
88 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
112 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
58 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
155 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
1 answer
162 views
Hi,

There is a button on a dailog form in my application.  Tool is regconising the button through code, Iam ablte create an element instance but it is throwing error when click event is called. Pls advise what is wrong

below is the error displayed in exception

ExecuteCommand failed!
InError set by the client. Client Error:
System.ArgumentException: Tag collection is either empty or has less elements than the element occurrence requested. RequestedIndex: '3', ElementLength: '1'
   at ArtOfTest.InternetExplorer.IECommandProcessor.FindElement(ElementIdMessage id)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'Click',Target:'ElementId (tagName: 'button',occurrenceIndex: '3')',Data:'',ClientId:'Client_ae6b05e1-a3ca-49fe-a64d-c829bbbe3b52',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'System.ArgumentException: Tag collection is either empty or has less elements than the element occurrence requested. RequestedIndex: '3', ElementLength: '1'
   at ArtOfTest.InternetExplorer.IECommandProcessor.FindElement(ElementIdMessage id)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

Here i am attaching the screen shot of the Exception. below is the button code in that form.

<BUTTON style=\"WIDTH: 80px\" id=cmdCancel class=pagebutton onclick=Page.CloseDialog(); fpId=\"3485\" nodis="False">Cancel</BUTTON> .

I tried it by recording but no actions recored on it.

Thanks

Ravi






Cody
Telerik team
 answered on 23 Sep 2010
1 answer
84 views
Hi
when i automate OOB application (Record / Replay) , the OOB application will can't find silverlight plug-in...
 Then running applications Again ,it also can't find silverlight plug-in...
I must uninstall the silverlight OOB application and  reinstall....
er...... why?
webAii version: WebAii 2010.2 0830


Regards,
li fang.
.
Jasper
Telerik team
 answered on 22 Sep 2010
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?