Telerik Forums
Testing Framework Forum
6 answers
173 views
Hi,

I am currently trying to use WebAii to automate some of the test cases in our application. Our application contains a lot of Popup, so being able to provide automation on the Popups is crucial to our test framework.

The problem right now is that after creating a Popup using new Popup() and invoking Telerik.WebUI.PopupTracker.Track(popup) in our class, and invoking RefreshVisualTrees() in my unit test method, the number of items in the Popups collection of the Silverlight app is still at 0. Any insight?

A developer told me that our Popups are wrapped inside our own class. Would that be an issue?

Regards,
Edmond Chan
Cody
Telerik team
 answered on 23 Jul 2010
2 answers
128 views
Hi,

I am using WebAii 2.0 for automating Silverlight 3 application.

I have a datagrid in which i have binded  an ObservableCollection of Student objects.
So in my test can i get the ItemsSource from the datagrid and manipulate by any means in my test case.

<data:DataGrid Name="StudentGrid" ItemsSource="{Binding StudentList}" >
 </data:DataGrid>


Thanks
Kiran
Kiran
Top achievements
Rank 2
 answered on 23 Jul 2010
3 answers
149 views
Hi Guys,

I'm trying to retrieve some txt from a web page. The text may change from time to time as it 
indicates a stat etc. so fetching is based on the element's location in the page.  

Does Webaii has a method equivalent to GetText()? I'm used to 'fetch' text using xpath using expressions like
String txt = GetText(xpath); etc. 
I've been trying to use <HtmlTableRow> and <HtmlTable> with no success.

For example, I need to retrieve the Task id value (Which currently is 1081 but may change the next run).

Ta. 
<tr> 
<td rowspan="1"  colspan="1" >Status</td> 
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
</tr> 
<tr> 
<td rowspan="1"  colspan="1" >Task id</td> 
<td rowspan="1"  colspan="1" > 
<span style="font-weight: bold;" >1081</span> 
</td> 
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
</tr> 
<tr> 
<td rowspan="1"  colspan="1" >Task Assigned to</td> 
<td rowspan="1"  colspan="1" > 
<span style="font-weight: bold;" >Tester01</span> 
</td> 
<td rowspan="1"  colspan="1" ></td
<td rowspan="1"  colspan="1" ></td
</tr> 
<tr> 
<td rowspan="1"  colspan="1" >Task Due by</td> 
<td rowspan="1"  colspan="1" > 
<span style="font-weight: bold;" >02/07/2010</span> 
</td> 
</tr> 
 

 

Cody
Telerik team
 answered on 22 Jul 2010
11 answers
110 views
Hello,
I suspect a problem with migrating from WebAii 1.1 to WebAii 2.0.
One of our tests is like this: button should be clicked, then it causes an alert to popup.
After that alert is analyzed and closed.

But after clicking the button the alert is immediately closed without any opportunity to check it up.

The code:
Settings mySettings = new Settings(BrowserType.InternetExplorer, @"c:\log\");
             
Manager myManager = new Manager(mySettings);
myManager.Start();
myManager.LaunchNewBrowser();
myManager.ActiveBrowser.NavigateTo("file:///d:/test.html");
 
Element mybtn = myManager.ActiveBrowser.Find.ByName("press_me");
myManager.Desktop.Mouse.Click(MouseClickType.LeftClick, mybtn.GetRectangle()); //after that the dialog window must appear, but it closes immediately
 
myManager.Dispose();
and the HTML file:
<html>
<head>
<title>Click test.</title>
</head>
<body>
<input type="button" name="press_me" value="press_me" onclick="alert('Hello world!');"/>
</body>
</html>

I have the latest version of WebAii framework (2010.2 713). All the other ways of clicking (eg element.Click()) produce the same output.

Regards,
Yaroslav
kovyar
Top achievements
Rank 1
 answered on 22 Jul 2010
7 answers
175 views
Hi,

I am unable to run the scripts in QuickStarts_VSTs_VB project. when i am running any method it is throwing error. below is the error in result file

Initialization method QuickStarts_VSTS_VB.BrowserActions.MyTestInitialize threw exception. System.Configuration.ConfigurationErrorsException:  System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for WebAii.Settings: Could not load file or assembly 'ArtOfTest.WebAii, Version=2.1.0.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified

Pls suggest me what is wrong

thanks

Ravi
ravi
Top achievements
Rank 1
 answered on 22 Jul 2010
3 answers
114 views
Can I use the WebAii framework without using the installer.
Ideally I'd just like to be able to reference the binaries.
Cody
Telerik team
 answered on 21 Jul 2010
1 answer
128 views
Is there any API we can use to get the  message display on the messagebox.eg:when user log in to the system the usernam is null,click the log in button ,the warnning message like "please input username".
Kiran
Top achievements
Rank 2
 answered on 21 Jul 2010
3 answers
119 views
Hey,

I am not able to get the controls on a Dialog whihc is invoked on clicking on Button from SL web application.
I am able to open and close the dialog with the below code but when i try to find the control using Find method of ActiveBrowser it gives exception. Can anyone please help me on how I can get access to the controls inside this IEDialog. I am also not able to get access to RadEditorControl.

 

 

 

app.Find.ByName<ToggleButton>("LocationPickerButton").User.Click(); 
        // ** Special IE Code. Given that IE Dialog is an IE specific feature. 
        if (ActiveBrowser.BrowserType == BrowserType.InternetExplorer) 
        
            InternetExplorerActions ieActions = (InternetExplorerActions)ActiveBrowser.Actions; 
            // Connect the dialog 
            ieActions.ConnectIEDialog("Select Location", 300);                 
            ActiveBrowser.Find.ByName<HtmlButton>("Find").Click();
            ActiveBrowser.Close();

Missing User
 answered on 19 Jul 2010
1 answer
96 views
Is there any way to make the web app that is launched by my tests use a specific web.config or NHibernate.config file.  I'd like the app to use an in memory database like my other unit tests do, so I'd like it to use the config files in my test project, but it clearly is not.

Thanks.
Cody
Telerik team
 answered on 19 Jul 2010
2 answers
114 views
Hi,

I have just downloaded and installed the 2010 Q2 version of WebUI Test Studio QA Edition evaluation. After installation, I found the WebAii Testing Framework 2010.1 folder at C:\Program Files (x86)\Telerik, but it only contains a Samples folder - and I am not able to locate the assemblies of the Framework. Am I missing something there?

Also, my other question is, is the WebAii Testing Framework in the 2010 Q2 version the same as the 2010 Q1 version? I ask this question because I am wondering if there are any changes to the PopUp tracker, whether I still need to code my partial class to link with the tracker in order to detect the visual tree of the PopUps or not.

Regards,
Edmond Chan
Edmond
Top achievements
Rank 1
 answered on 16 Jul 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?