Telerik Forums
Testing Framework Forum
1 answer
86 views
Hi

Is there a way to launch Firefox tests using separate Firefox profile (similar to -firefoxProfileTemplate switch in Selenium RC)?
Having to save my session and close Firefox before running Firefox-specific tests is quite annoying...

Thanks,
Missing User
 answered on 16 Apr 2010
2 answers
225 views
Hi Guys,

Added app.config (Same content shown on your site) to my solution (I'm using the Nunit template) and got the following error when running the test: 

VTMS.TestCase_Login.LoginBase:
System.Configuration.ConfigurationErrorsException : An error occurred creating the configuration section handler for WebAii.Settings: Could not load file or assembly 'ArtOfTest.WebAii, Version=2.0.2.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified. (C:\C# Projects\VTMS\VTMS\bin\Release\VTMS.dll.config line 4)
  ----> System.IO.FileNotFoundException : Could not load file or assembly 'ArtOfTest.WebAii, Version=2.0.2.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified.

Is there something I need to change in the config file itself or something is wrong with the section handler ? 
Ta, 
Seth. 

SD
Top achievements
Rank 1
 answered on 16 Apr 2010
4 answers
159 views
Hi guys.

I installed WebAii 2.0 and got an issue: my code for WebAii 1.1 which used Browser.Frames["frameName"] doesn't work anymore. It returns NULL and supposed to return Browser object.
This is very interesting because Browser.Frames.ContainsKey("frameName") returns TRUE.

Any ideas?

Thanks for your help!
Anton Litunenko
Top achievements
Rank 1
 answered on 15 Apr 2010
1 answer
98 views

Hi,

Could you please help me to resolve following problem: on the launch of IE8, i'm receiving a popup from browser saying Could Not Load Assembly (please see attachment for full copy).

This popup prevents my script to run.

Thanks in advance!

Olek

Missing User
 answered on 14 Apr 2010
1 answer
96 views
I found some posts from 2007 saying you don't support multithreading, but I wanted to get some newer information. Something I probably should have researched before writing all the code, but oh well.

I created a seperate thread, which receives a SilverlightApp parameter. It continually checks for changes on a UI element. Once this thread starts, I lose the ability to interact with the SilverlightApp in my main thread. Is there some way to have both threads sharing access to the SilverlightApp?
Missing User
 answered on 14 Apr 2010
3 answers
259 views
Hi,

Before merging with Telerik I was able to download WebAii as a separate free framework (dll) and use it in my projects. Is anything going to be changed? If yes, what is the impact to existing WebAii users?

Thank you in advance,
Dmitriy
Lin
Telerik team
 answered on 14 Apr 2010
1 answer
140 views
Hi,

I got one issue on using WebAii 2.0 for testing Silverlight.
Test case do: 
 * Lauch browser
 * Find the silverlight in page and the stackpanel
So I do this :
C #
//Locate the stack panel : ok 
StackPanel stack = app.FindName<StackPanel>("MyStackPanel"); 
  
//simulate a Right click on the stackPanel : ok (the RadContextMenu appears) 
stack.User.Click(MouseClickType.RightClick); 
 
RadContextMenu menu = app.Find.ByType<RadContextMenu>();
// And I caught an TimeOut Exception 

xaml : 

<telerik:RadContextMenu.ContextMenu> 
   <telerik:RadContextMenu name="" > 
    ... 
   </telerik:RadContextMenu> 
</telerik:RadContextMenu.ContextMenu> 

When I remove the line : <telerik:RadContextMenu.ContextMenu>, I didn't catch the timeout exception but I want to use that line...  
So Why this doesn't work ? I tried to give a name to the Radcontextmenu (and use app.Find.ByName<RadContextMenu>("menu")  instead of app.Find.ByType<RadContextMenu>()), to refresh the visual tree too, but I have the same problem.. 

Regards,

Thanks

Konstantin Petkov
Telerik team
 answered on 08 Apr 2010
2 answers
388 views
I downloaded the latest version of WebAii from the official site of ArtOfTest, and installed it for testing. it failed when i running following code:
            // Initialize the settings you want used.
            Settings mySettings = new Settings(BrowserType.InternetExplorer, @"d:\log\");

            // Create the manager object
            Manager myManager = new Manager(mySettings);

            // Start the manager
            myManager.Start();

            // Launch a new browser instance. [This will launch an IE instance given the setting above]
            myManager.LaunchNewBrowser(BrowserType.InternetExplorer, true);

            // Navigate to a certain web page
            myManager.ActiveBrowser.NavigateTo("http://www.google.com");

            // Perform your automation actions.
            Element mybtn = myManager.ActiveBrowser.Find.ByTagIndex("input", 3);
            myManager.ActiveBrowser.Actions.Click(mybtn);

            // Shut-down the manager and do all clean-up
            myManager.Dispose();
it thrown a 'System.TimeoutException' at method LaunchBrowser(). I googled web for the solution as follow:
1. Check your security policy regarding Named Pipes
2. Disable any Internet Explorer plug-ins

but all of this didn't work for me. it just open a blank IE, but never navigate to the target URL. 
My environment information as follow:
OS: Windows Vista Ultimate X86
IE: IE 8.0
WebAii Version: 2.0.9.0

Any ideas?

Regards,
Sevolution
Kangle Yu
Top achievements
Rank 1
 answered on 06 Apr 2010
4 answers
132 views
Does WebAii support Silverlight 4.0?  I know it supports Silverlight 3.0, but wasn't sure if it currently worked with Silverlight 4.0?  If not, when will WebAii be compatiable with Silverlight 4.0?

thank you.
Missing User
 answered on 05 Apr 2010
2 answers
167 views

I got one issue on using WebAii 2.0 for testing Silverlight.

Environment: WIn7 x86 + VS 2010 RC. Silverlgiht 3.0 was build in VS2010 too.

Test case do :
  Launch browser
  Find the Silverlgiht in page and find its combobox inside, then select the combobox item.
  After combobox item was select, the product Silverlgith will grab new items to a listbox and filled the listbox.

All above steps work fine. And after the listbox items were filled, I can get find list box control, but from listbox control, I cannot find the listboxitem which were dynamic created!

 

 

 

ListBox listbox = app.FindName<ListBox>("lboxMetaDimensions");

 

IList

 

 

<ListBoxItem> listBoxItems = listbox.Find.AllByType<ListBoxItem>();

The listBoxItems == null.

I try to look into the all children items in all deepth levels recursively, and the result shows it does not contain listboxitem at all. Actually, when I use other Silverlight tool to inspect the v-tree, I can see the listboxitem.

Is any step I need to do after combox selection done and new item were filled in order to get new listboxitem?

Thanks.

 

Rocky Fan
Top achievements
Rank 1
 answered on 11 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?