Telerik Forums
Testing Framework Forum
1 answer
138 views
I download and installed the last version of WebAii Automation Framework (Version: 2010.3 1421 ) in order to evaluate the tool. All the components I got after several tries, are samples code and a quick link to this forum. I cant see the WebUii test form to add into my Visual Studio C# project, not even when I added the reference manually, which by the way, are not being referenced automtically as described in the installation guide.

I had installed WebUi dev edition once, I performed a POC with the trial version a year ago, I uninstalled this expired trial after tried with WebAii but again, I only get the sample codes, no executable at all, just samples.

Thanks in advance!
Cody
Telerik team
 answered on 07 Apr 2011
3 answers
215 views
Hiya,

We have a listbox we're trying to automate in WebAii.
The ListBox is bound to a collection via its ItemsSource, and its items are templated to show an image and a checkbox. We want to be able to automate checking and unchecking the checkbox.

It looks like I'm unable to do this - I'm able to find the ListBox, but its Items collection contains an ItemCollection of strings.
listBox.Find.AllByType<ListBoxItem>();
returns an empty list.
The listbox's Children collection is empty.

Am I able to do what I'm trying to do?
I found the following link which hints that I'm unable to (but that post didn't say that they're using ItemTemplating): http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/silverlight-obtaining-listbox-items.aspx

If this isn't possible, will it be available in a future release?

Thanks,

Gary
Stoich
Telerik team
 answered on 30 Mar 2011
1 answer
86 views
Windows Server 2008 Enterprise, Visual Studio 2008, WebUI Test Studio Developer 2010_3_1421 Trial, InfoPath 2007, SharePoint 2007.

Downloaded the trial.  Watched the getting started video.  Recorded a simple test:

1) Navigate to the applicaiton page.
2) Enter a date, make a choice from a dropdown.

When I re-run the recording, the dropdown choice doesn't work.  That is, there is no dropdown choice.

Is there a known problem with InfoPath?

\cbf
Cody
Telerik team
 answered on 28 Mar 2011
1 answer
338 views
Hi
I opened jquery dialog modal confirmation (http://jqueryui.com/demos/dialog/#modal-confirmation). There are two buttons. But I can't click any of them. In my case it looks like that:
<body ...>
<form class="class1" ....>
<div class="class1-1" ....> //dialog title
<div class="class1-2" ...> //dialog content
<div class="class1-3" ....> //dialog buttons panel
<div class="class1-3-1" ...> //dialog buttons
<button type="button" jQuery1234="4"> Yes //yes button
<button type="button" jQuery2345="5"> No //no button
I tried:
HtmlDiv popup1 = myManager.ActiveBrowser.Find.ByAttributes<HtmlDiv>("class=class1");
HtmlControl buttons = popup1.Find.ByAttributes<HtmlControl>("class=class1-3-1");
HtmlButton button1 = buttons.Find.ByContent<HtmlButton>("No");
I also tried:
HtmlControl button = popup1.Find.ByNodeIndexPath<HtmlControl>("2/0/1");

My objects are not null. VS shows that button or button1 is {HtmlButton:<BUTTON jQuery2345="5">}. But button.Click() or button1.Click() does not work. There is even no error.

I also tried:
IList<HtmlInputButton> allbuttons = button.Find.jQuery().tag("button").button(); but in this case allbuttons is null.

Can you help me to click on it?




Anna
Top achievements
Rank 1
 answered on 28 Mar 2011
1 answer
129 views
Hello,
We are not able to capture  'Silverlight' rightclick context menu item using telerik.

We can bring this context menu by right clicking on any silverlight page.

See attachment for more details.

Thanks,
Prachi
Anthony
Telerik team
 answered on 25 Mar 2011
1 answer
127 views
Hi,
In my project, a test case contains lots of components. and all my components are parametic.  
My project requries one component inherits one sheet data of  parent.
But i found that a test case only can build one Excel sheet, it means that all components only can inherit one Excel sheet.
So whether one componet inherit one parent's sheet?
 If yes, how to carry it out?

Thanks
Best Regards
Stoich
Telerik team
 answered on 24 Mar 2011
3 answers
144 views
I want to find is there cell with searched content. From silverlight application I select table and put it to Element Explorer with name GrdRadgridview.
Then I try to find cell with
    <CodedStep("Find In DataGrid", RequiresSilverlight:=True)> _
    Public Sub FindInRow()
        Dim app As SilverlightApp = ActiveBrowser.SilverlightApps()(0)
        app.VisualTree.Refresh()
        Dim FindCell As DataGridCell = Pages.UIManagerCMXaml.SilverlightApp.GrdRadgridview.Find.ByExpression(New XamlFindExpression("TextContent=TEST")).[As](Of DataGridCell)()
    End Sub

but got message
The control type 'ArtOfTest.WebAii.Silverlight.UI.DataGridCell' does not match the xaml tag 'textblock'

even if there is cell with searched value.

Ivan
Stoich
Telerik team
 answered on 24 Mar 2011
0 answers
156 views
Hi,

I have three virtual machines with windows server 2003. First have Ie6,
second IE7 and the last one IE8 installed browser. All of them have Chrome,
Safari and FireFox.
I configured all browsers (particulary IE) with document from your website.


When I run simple test in all browsers, it only works in FF, safari and
chrome. In IE (in all version) I have only blank page.
I  disabled IE ESC in all machines, but it still doesn’t work.

In using Webaii framework 2010.3.1307.0 version 

My test code:
//...
//settings
Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true,
ProcessWindowStyle.Maximized); browser = Manager.Browsers[0]; browser.NavigateTo("http://www.google.com";);
browser.Close();


ag


I changed webaii version from 2010.3.1307 to 2010.3.1421 and now it's working on IE7 and IE8.
ag

Aga
Top achievements
Rank 1
 asked on 24 Mar 2011
7 answers
306 views
After every test I run with WebAii as soon as I close the browser or clean up the test I get the following exception :

---- UNHANDLED EXCEPTION ----<BR>Thread Name:   
RemotedAsyncCommandListener<BR>System.Threading.ThreadAbortException: Thread was   
being aborted.<BR>&nbsp;&nbsp; at   
ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListener()<BR>&nbsp;&nbsp;   
at System.Threading.ThreadHelper.ThreadStart_Context(Object   
state)<BR>&nbsp;&nbsp; at System.Threading.ExecutionContext.runTryCode(Object   
userData)<BR>&nbsp;&nbsp; at   
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode   
code, CleanupCode backoutCode, Object userData)<BR>&nbsp;&nbsp; at   
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,   
ContextCallback callback, Object state)<BR>&nbsp;&nbsp; at   
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,   
ContextCallback callback, Object state, Boolean ignoreSyncCtx)<BR>&nbsp;&nbsp;   
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,   
ContextCallback callback, Object state)<BR>&nbsp;&nbsp; at   
System.Threading.ThreadHelper.ThreadStart() 



I get this even though the test itself has passed.

I would like to hide this exception or at least not display in the console.writeline as it suggests the test has failed when it has not.

I have tried playing with various settings including lots of configurations like

 

 

Settings settings = GetSettings();

 

settings.EnableSilverlight =

 

true;

 

settings.CreateLogFile =

 

false;

 

Initialize(settings);

I have also tried catching the ThreadAbortException but it seems this is already being caught inside the WebAii internals and then the above log gets written each time.
Stoich
Telerik team
 answered on 22 Mar 2011
4 answers
200 views
Hello,

We are currently running into a issue using safari where we are unable to run more than a few test cases in one run.  This even happens with the Sample code that ships with WebAii. 

Here is what I did in the sample code.
  1. In app.confg change configuration\WebAii.Settings\defaultBrowser="Safari"
  2. Build
  3. Open Test List Editor
  4. Run the first 5 test cases

Here is the output from the run:
Passed QuickStarts_VSTS_CS.UsingAspNetDevSrv.UseAspNetDevServer 
 
Failed QuickStarts_VSTS_CS.AjaxSupport.WaitingForMultiplePageChanges Initialization method QuickStarts_VSTS_CS.AjaxSupport.MyTestInitialize threw exception. System.TimeoutException: System.TimeoutException: Wait for condition has timed out. 

Failed QuickStarts_VSTS_CS.TestRegions.AccessingTestRegions Assert.IsTrue failed.  

Failed QuickStarts_VSTS_CS.TestRegions.AccessingElementsUsingTestRegions Test method
QuickStarts_VSTS_CS.TestRegions.AccessingElementsUsingTestRegions threw exception:
... 

Failed QuickStarts_VSTS_CS.TestRegions.UsingFindParamAttributeWithTestRegions Test method QuickStarts_VSTS_CS.TestRegions.UsingFindParamAttributeWithTestRegions threw exception:
... 

Error QuickStarts_VSTS_CS.AjaxSupport.WaitingForSinglePageChange The agent process was stopped while the test was running. 


The first one always passes for me. After that however is seems the environment gets in a bad state and nothing will pass from that point onwards.

Is this a known issue with Safari? 
Does anyone know of any workarounds?

We are currently blocked by this and I need to find a workaround as soon as possible.

Thanks,
Chris

Chris
Top achievements
Rank 1
 answered on 10 Mar 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?