Telerik Forums
Testing Framework Forum
4 answers
111 views
Hi Telerik support,

When I used telerik testing webAii on version 2010-3-1421 and siverlight application on version 2011-1-419, my testing framework worked well. It was possible to control the RadGridView, GridViewCell on my testing framework.

Since I changed the version of application siverlight on 2011-2-712 and version of WebAii on 2011-1-712, my access to components of testing framework (RadGridView, GridViewCell) hasn't worked.

I precised that in my siverlight application, I added <param name="EnableHtmlAccess" value="true" />
I inserted the reference Telerik.WebAii.Controls.Xaml on my testing framework as well.

I don't know why it doesn't work at all.

This is turning into a big problem for us, so I hope you can try to figure it out and provide a solution.
Thanks guys, I appreciate it.

Best regards,
Mathieu Estratat
Top achievements
Rank 1
 answered on 12 Sep 2011
8 answers
139 views
I was using Webaii version and used the datagrid to access the images by using the below (Code snippet)

 
objApplication = Browser.SilverlightApps().GetApp(0);
objApplication.Connect();

DataGrid 
objDataGrid =  objApplication.Find.ByName<DataGrid>("dataGrid");
objDataGrid.Rows[0].Cells[0].Find.ByName<RadioButton>().User.Click();

However when i try using the above one with the latest version (), I got warnings as the Rows are depericiated and use RowElements instead. But RowElements are not FrameworkElement type and hence i couldnt fetch the image/textbox/radio inside the Cell. It would be great if you can give a sample to fetch the above using the latest methods (upgraded).

Also if am continue using the above method (using rows), will this method be removed from the framework in later releases. Is there any harm using the depreciated methods in the latest framework if it is working fine in my cases.

Thanks in advance.
emma
Top achievements
Rank 1
 answered on 09 Sep 2011
3 answers
91 views

Hello,

I am working on programmatically automating tabstops in radgrid.Can you please give me some idea to accomplish the same.

In Real scenario, when the user clicks on right arrow, the grid cell focus should be moved to next cell, which is the usual scenario that we perform in an excel or any other grid pattern. The same functionality should  be automated with TestStudio. I have checked couple of links..but still need more information…

http://www.telerik.com.tw/help/winforms/tabstrip-radtabstrip-select-tab-programmatically.html

Thanks,
Abi

Cody
Telerik team
 answered on 08 Sep 2011
1 answer
80 views
Hi guys, 

Sometimes it's easier to find (And then write into) an input text field by the text description next to it. 
I've been using xpath for that ever since but tried to find a more elegant approach..
The following is a pretty common design..
<table>
<tbody>
<tr>
<td>Reason waived</td>
<td>
<input id="feeForm:reasonWaived" type="text" name="feeForm:reasonWaived"/>
</td>
<td/>
</tr>
</tbody>
</table>
Tried this. The first element in the array is without a doubt the input element. The thing is, I was not able to use that element in a SetText method for instance...Any ideas ? 
    Element txtNextTohtmlInputText = Manager.ActiveBrowser.Find.ByContent("Reason Waived");
    Element htmlInputTextParent = txtNextTohtmlInputText.GetNextSibling();
    htmlInputTextParent.GetChildren().First();//The InputText field.
Anthony
Telerik team
 answered on 07 Sep 2011
1 answer
59 views
Hi,
I'm trying to automate typing some text into Telerik Editor WYSIWYG (http://demos.telerik.com/aspnet-mvc/editor).
Can anyone give me advice how to enter text into <body> tags?
Thanks!
Cody
Telerik team
 answered on 06 Sep 2011
1 answer
76 views
I am testing a login process using a data binded Excel spreadsheet with an array of usernames. I have attached my data source and binded it. I have also set the data driven editor to $(column name) for the test step.

I performed EVERY step outlined in your Local Data Driven Test and am still getting the following error:

8/30/2011 2:08:41 PM' - Detected DataDriven Test. Starting data iterations.
'8/30/2011 2:08:41 PM' - [Iteration #1: (Login=cindy.thomas)]
Overall Result: Fail'8/30/2011 2:08:52 PM' - 'Fail' :
1. Set 'ContentPlaceHolder1UsernameTextBoxText' text to '' - DataDriven: [$(Login)]------------------------------------------------------------
Failure Information: ~~~~~~~~~~~~~~~Unable to locate element. Details: Attempting to find [Html] element using Find logic (Html): [id 'Exact' ctl00_ContentPlaceHolder1_UsernameTextBox] AND [tagname 'Exact' input]Unable to locate element. Search failed!

Why am I getting this error?

Cody
Telerik team
 answered on 31 Aug 2011
3 answers
86 views
Hello,
I wrote my code  using the art of test library and everything works fine in my local environment that can browse the internet....
My web site use a lot of external resources (javascript and images) and when I browse it locally with IE on the production server, I cannot access it due to security reasons...
The problem is when I run my Test on the Production server that cannot download images and javascript and raise me a clientTimeout Exception....
so I was wondering if there is a way to avoid waiting for browser events or how to say to the browser to skip all external resources...
any help would be appreciated.
Thanks Stelio
Cody
Telerik team
 answered on 30 Aug 2011
4 answers
177 views

Navigating to chrome  the browser hangs up and doesn't navigate to  url instead it is navigating to  http://localhost:4085/WebUI?1165246048
Surya
Top achievements
Rank 1
 answered on 29 Aug 2011
3 answers
108 views
Hi,

I'm trying to evalute the Telerik testing framework for silverlight automation.I'm running into a few issues.
Following is the sample code that I am using.
Settings settings = GetSettings();
settings.Web.DefaultBrowser = BrowserType.InternetExplorer;
settings.Web.EnableSilverlight = true;
 
Initialize(settings, new TestContextWriteLine(this.TestContext.WriteLine));
 
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo("http://localhost/TestSLAppTestPage.html");
ActiveBrowser.WaitUntilReady();
 
var slApp = ActiveBrowser.SilverlightApps()[0];
Assert.IsNotNull(slApp);
 
var button = slApp.FindName<Button>("button1");
Assert.IsTrue(button.Text.Equals("Click Me"));

 

When I run this test it passes but I am unable to debug it. When I put a breakpoint at ActiveBrowser.SilverlightApps line and try to evaluate the object returned by the method it gives an error saying that Function evaluation timed out. and Function evaluation disabled because a previous function timed out.

Also i see the following exception in the output.

Error: PipeCommunication.AsyncPipeRead() : EXCEPTION ("Pipe Null State: False")

Type: System.Threading.ThreadAbortException

Message: Thread was being aborted.

Call Stack:

at System.Threading.WaitHandle.WaitOneNative(SafeHandle waitableSafeHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)

at System.Threading.WaitHandle.InternalWaitOne(SafeHandle waitableSafeHandle, Int64 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)

at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext)

at System.Threading.WaitHandle.WaitOne()

at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.AsyncPipeRead(PipeStream pipe, Byte[] bytes, Int32 offset, Int32 count)

The program '[7604] QTAgent32.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).


I am using Testing framework version 2011.1.817 that is in beta. I also tried the 2011.1.712 version. I encountered similar issues.
Does the framework support XBAP automation?

Thanks.
Regards,
Arooj
Anthony
Telerik team
 answered on 29 Aug 2011
17 answers
363 views
I have been trying to get some unit tests (VS2010) to work that deal with confirm message boxes.  In short, I have two tests that use the MouseClick() function to click a button that brings up a message box in IE8.  I found code on-line regarding using the Manager.Current.DialogManager.AddDialog method.  In my first test I call an inactivate button and an activate button, both call the confirm and the test works.  In the second test, I call a delete button which calls a confirm message box, and this is where I am having issues.  If I run both tests individually, using VS2010, my code works.  If I run both tests together, the first test works (with the inactivate and activate buttons) but the second test (with the delete button) does not work.  The code errors out on the confirmDialog.WaitUntilHandled(); method.

Basic code I am using is as follows:

 

 

ConfirmDialog confirmDialog = ConfirmDialog.CreateConfirmDialog(Manager.Current.ActiveBrowser, DialogButton.OK);

 

confirmDialog.HandlerDelegate = new DialogHandlerDelegate(this.ConfirmHandleDialog);

Manager.Current.DialogMonitor.AddDialog(confirmDialog);

Manager.Current.DialogMonitor.Start();

 

// Click the button

this.Action.MouseClickItem(RSSControls.Applications.ApplicationsEditLoginPage.DeleteQuestion);

confirmDialog.WaitUntilHandled();

 

Manager.Current.DialogMonitor.RemoveDialog(confirmDialog);

Manager.Current.DialogMonitor.Stop();

 

 

private void ConfirmHandleDialog(IDialog dialog)

{

ArtOfTest.WebAii.Win32.Button b = new ArtOfTest.WebAii.Win32.Button(dialog.Window, "OK", false);

 b.Click();

dialog.HandleCount = 1;

 Manager.Current.DialogMonitor.RemoveDialog(dialog);

}

Am I doing something incorrect?  The tests work correctly when I run them individually but when I run them together the second test does not work.  The message box confirmation box pops up, but it never gets handled.  I have looked all over the internet and found several examples of how to use this feature, however I am still having problems.

Also, does this function work in IE7?  It appears to not work at all when I test my tests against an IE7 machine.

Cody
Telerik team
 answered on 26 Aug 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?