Telerik Forums
Testing Framework Forum
1 answer
132 views
Hello.

I use WebAii to test my Site that uses Silverlight.
I have a developing machine and a testing machine that I connect using Remote Desktop.

As far as I understood WebAii raises an exception when I run my test with remote desktop window minimized(I start the test and minimize remote desktop window for a couple of minutes - screen save is not active).
My Silverlight application has a TabControl that raises an exception (when Remote Desktop is minimized). The raised exception has the following message: "Unable to find the tab item container. For custom TabControl temlpate please override the .TabItemContainer property.". 

If I run my test with remote desktop opened everything run OK.

The exception is related with minimized Remote Desktop window? Or it is just coincidence?

Many thanks,

Carlos Marcão
Konstantin Petkov
Telerik team
 answered on 22 Sep 2010
1 answer
137 views

Hi,
There is table in a page, It has more that 1 rows. rows are displayed in TBody tag. but the Tbody, TR and TD's are not closed.
I have written code to retrieve table rows count , once have the rowcount i can select specific row from the row count. but when I try to retrieve row count, the row count is given as 1 and the value in the last TD from last Tbody is retrieved always.

My page has below code for table

<table width="100%" class="datatable' id="detailtable" >
<tbody>
<tr>
<td>
<td>
<td>
<td>
<tbody>
<tr>
<td>
<td>
<td>
<td>
<tbody>
<tr>
<td>
<td>
<td>
<td>
</table>


Nikolai
Telerik team
 answered on 21 Sep 2010
2 answers
70 views
help!!!!

when  the silverlight applications  under  tomcat or WebLogic (Except IIS) ,It will

"Unable to connect to silverlight applications , silverlight recording wiill not function"

..........
what's wrong???
li
Top achievements
Rank 1
 answered on 19 Sep 2010
4 answers
112 views
Hi,
I have this odd problem.  When I use TypeText with to type "football" it is not typing the second "o" and second "l".  It is quite odd.  I also had the problem with "Tennis".

Is this a known issue?  Thanks.
Cody
Telerik team
 answered on 17 Sep 2010
5 answers
292 views
Hi

I've been trying to run a simple test using NUnit:

[Test]
public void SimpleTest()
{
    Manager.LaunchNewBrowser();
    ActiveBrowser.WaitUntilReady();
    ActiveBrowser.Window.Maximize();
    ActiveBrowser.NavigateTo(MyServerUrl);
 
    var headerItems = new HeaderItems(MySilverlightApp);
    headerItems.ReportsNavigationButton.User.Click();
}

On the last line I'm getting following error: unable to load ArtOfTest.Connector.dll

My configuration is: Windows 7, IE8, VisualStudio 2010, WebUI Test Studio (trial) 2010.2.830.0.
I could successfully run similar tests on Windows XP.

My observation is that the WebUI installer didn't add keys to the registry HKLM\Software (i.a. containing a path to the WebUI installation). I updated the keys using example from machine with Windows XP, but it didn't help.

thank you in advance
kind regards
Mark

---
Detailsed error message:
...
[16:34] - Unable to load ArtOfTest.Connector.dll
[16:34] - Exception Details:
[16:34] - ------------------
[16:34] - System.ArgumentNullException: Wartość nie może być zerowa.
Nazwa parametru: ptr
   w System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t)
   w ArtOfTest.Common.Win32.WindowManager..cctor()
 
System.NullReferenceException : Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
w IFin24App.WebAii.ApplicationElements.HeaderItems.get_ReportsNavigationButton() w HeaderItems.cs: line 53
...
Mark
Top achievements
Rank 1
 answered on 16 Sep 2010
4 answers
158 views
Here is sample test:
[Test]
        public void GoogleTest()
        {
            ActiveBrowser.NavigateTo("http://www.google.com");
            ActiveBrowser.WaitUntilReady();
             
            HtmlInputText queryBox = Find.ByName<HtmlInputText>("q");
            Desktop.Mouse.Click(MouseClickType.LeftClick, queryBox.GetRectangle());
            Desktop.KeyBoard.TypeText("sample", 1000);
             
            Actions.Click(Find.ById("btnG"));
        }

By watching its execution you'll notice that Google autosuggest is not visible during TypeText execution.
When typing manually autosuggest appears immediately.

Why TypeText works differently? How to force opening autosuggest?

Wit
Top achievements
Rank 1
 answered on 14 Sep 2010
1 answer
384 views

My company recently acquired Telerik controls, and now we want to automate our tests.

1. I wanted to know which tools may I use to automate my tests (tools that support Telerik controls).

2. We now own QTP but I as we tried to automate with it, we had a lot of recognition problems.
does QTP support  your (Telerik) controls?

3. I download WebAii but I didn't understand how I am supposed to add WebAii add-in to visual studio

4. How  does WebAii work? by recording , writing code, or both?
 
5. How do I recognize objects in WebAii ?


Cody
Telerik team
 answered on 13 Sep 2010
1 answer
113 views
Is there any official support for the Silverlight toolkit?

Is there any planned (or an opensource project trying to achieve this)?

I wanted to test a page that uses the autocomplete textbox from the silverlight toolkit. What would be involved to use this?

Many Thanks,

John
Cody
Telerik team
 answered on 13 Sep 2010
9 answers
161 views
Hi all,

in our tests we must sometimes check if some text is bold.
For this purpose we use code like following:

Settings mySettings = new Settings(BrowserType.InternetExplorer, @"c:\log\");
mySettings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
 
Manager myManager = new Manager(mySettings);
myManager.Start();
myManager.LaunchNewBrowser();
myManager.ActiveBrowser.NavigateTo("http://vkontakte.ru/login.php");
 
//That's the "Login" button.
Element link;
link = myManager.ActiveBrowser.Find.ByXPath("//td/*/*/*/*/a[1]");
HtmlControl lnk = new HtmlControl(link);
 
String weight = lnk.GetComputedStyleValue("fontWeight");
String style = lnk.GetComputedStyleValue("fontStyle");
String size = lnk.GetComputedStyleValue("fontSize");
 
 
Console.WriteLine(myManager.ActiveBrowser.BrowserType);
Console.WriteLine("Size: {0}", size);
Console.WriteLine("Weight: {0}", weight);
Console.WriteLine("Style: {0}", style);
myManager.Dispose();

Well, in Firefox everything looks fine and the output is like that:
FireFox
Size: 11px
Weight: 400
Style: normal

But in IE the output looks a bit strange:
InternetExplorer
Size: 11px
Weight:
Style: normal

So, we can get all the information about the font but its weight.
What is even better, that:
1) our tests MUST work in IE7
2) checking font-weight is a must-have point in lots of tests.

Thus we need any way to check whether the text is bold or not.

Looking forward for any useful ideas.

Thanks,
Yaroslav


Nikolai
Telerik team
 answered on 10 Sep 2010
7 answers
131 views
I am coming across a weird situation, just wondering if anybody else has seen it, or if I'm doing something terribly wrong.

My pointer is on the 'Next >>' button but the highlight and nub are far away. The nub is so far I can't click it without moving my pointer which then takes the highlight out of focus.
Cody
Telerik team
 answered on 08 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?