Telerik Forums
Testing Framework Forum
6 answers
209 views
I have problem with launching browser on Windows 7 and Visual Studio 2010. I have installed WebUi Developer Edition on my machine, but when I started recording always appears error message "Failed to launch the browser". I think that settings in IE 8 is not problem, because I made all necessary settings for IE8. Please see attached file.
Missing User
 answered on 17 Jun 2010
1 answer
115 views
Hi,
I am using Telerik Web UI Test Studio of Version - 2009.3.1424

10 days back, my scripts ran fine. Today when I tried to open the scripts, they got opened by default in 'XML Editor'. I then right-clicked on the Tests and chose 'Open With' feature. There I noticed that 'WebAii Test Editor' is not even listed.

The list that I see is -

XML Editor (Default)
XML Editor with Encoding
Source Code (Text) Editor
Source Code (Text) Editor with Encoding
HTML Editor
HTML Editor with Encoding
Binary Editor
Resource Editor

Any reason why this is happening? Is this a configuration issue? Why did this automatically happen? How can this be fixed?

Regards
Kshitij
Missing User
 answered on 16 Jun 2010
1 answer
86 views
I have trouble with launching browser in WebUI Developer edition and VS 2010 on Windows 7 X64, so, I uninstalled WebUI Developer edition and installed WebUI QA edition. I have problem with windows autorisation, recorder do not record URL and do record username and password in the login form when I typing it. (Internet Explorer login box is empty) I supose that should be add some custom step something like this...ActiveBrowser.NavigateTo("https://applicationname/Default.aspx");
Please help
Missing User
 answered on 14 Jun 2010
4 answers
405 views
When I try to SetText() in tinyMCE editror,  WebAii haven't found a frame that contains body with text.
I use code:
Browser ie = manager.ActiveBrowser;
Browser fr = ie.Frames.ById("content_ifr");


But fr = NULL after that.
How to set the text into body in this frame?
And next one question: how I can to allocate the <body>?  I guess this code is wrong, but I can't check it (can't found a frame):
Element fr_body = fr.Find.ByTagIndex("body", 0);
fr.Actions.SetText(fr_body, "text");

Sergey
Top achievements
Rank 1
 answered on 14 Jun 2010
1 answer
149 views
We are looking to use WebAii for performance testing.

Part of the requirement is to send multiple objects to a ui using a function in Javascript.

However repeated calls using code below is only sending a maximum of 15 requests per second, which is too slow to be helpful for performance testing.

WebAii code
            for (int x = 1; x <= 100; x++)
            {
               Actions.InvokeScript(string.Format("test('{0} ')", x));
            }

calls this :
function test(sendValue) {
            if (Plugin == null) {
                Plugin = document.getElementById("SilverlightControl");
            }
            Plugin.Content.MainPage.UpdateText(sendValue);
        }



In comparison we can run the same loop in raw JavaScript and send 100's of messages per second to Silverlight.

comparison JavaScript code
            for (i = 1; i <= 100; i++) {
                test(i + " ");
            }

Is the WebAii test being speed restricted?
Cody
Telerik team
 answered on 11 Jun 2010
7 answers
131 views
Hello!

I am new in Web.Aii
I need to learn to test Silverlight applications.


E.g., I want to click on some square at http://www.brightstarr.com/US/Pages/default.aspx

I use such code:
Manager.ActiveBrowser.NavigateTo("http://www.brightstarr.com/US/Pages/default.aspx");
            Manager.ActiveBrowser.WaitUntilReady();
            System.Threading.Thread.Sleep(6000);
            SilverlightApp app = Manager.ActiveBrowser.SilverlightApps().First();
            app.FindName<Button>("autoUpgrade").User.Click();
            
But it does not work. web.Aii just can't find element to click.
Can anybody halp me and tell what to do?

Code of the square in HTML code:
<object height="100%" width="100%" type="application/x-silverlight-2" data="data:application/x-silverlight,">
<param value="../../../Documents/Silverlight/WebAnimationsusa.xap" name="source" id="ctl00_ctl22_g_57f12b59_9d07_49b9_8715_ce29bec40605_ctl00_src"/>
<param value="onSilverlightError" name="onerror"/>
<param value="white" name="background"/>
<param value="3.0.40818.0" name="minRuntimeVersion"/>
<param value="true" name="autoUpgrade"/>
<param value="true" name="windowless"/>
<a style="text-decoration: none;" href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40818.0">
    
<img value="http://go.microsoft.com/fwlink/?LinkId=108181" style="border-style: none;" 
alt="Get Microsoft Silverlight" id="ctl00_ctl22_g_57f12b59_9d07_49b9_8715_ce29bec40605_ctl00_img" src="http://go.microsoft.com/fwlink/?LinkId=108181"/>

</a>
</object>
Missing User
 answered on 11 Jun 2010
1 answer
68 views
Hi guys,

I recently upgraded from WebAii 2.0.4 (old beta version) to the latest build, and noticed that the component seems to be writing a lot more messages to the default Trace output.

I'd like to put a filter on that output, so my own trace messages don't get swamped in the output. Does the WebAii component use a TraceSource I can filter on?

Thanks for any info.

-JP
Cody
Telerik team
 answered on 09 Jun 2010
3 answers
115 views
GetCookies seems to work for any URL except http://localhost. I only tried this in IE8.

Please file a bug for investigation and if you know of any workarounds, that would be helpful.
Missing User
 answered on 07 Jun 2010
2 answers
317 views
Hi Guys,

I've got a situation in which I have 6 radio buttons arranged in pairs and each pair has an identical name.
In each pair, one radio button is a 'No' and the other 'Yes'. Only 'Yes' or 'No' can be checked in any give time. 

Running the following didn't help as I'm missing something to help distinguishing between the Yes and No radios in each pair...

    var radios = Find.AllControls<HtmlInputRadioButton>();
                foreach (HtmlInputRadioButton rb in radios)
                {
                    rb.Check(true, true);
                }

<tbody> 
<tr> 
<td> 
<label> 
<input type="radio" value="true" name="assessmentForm:generalVerified"/> 
Yes 
</label> 
</td> 
<td> 
<label> 
<input type="radio" value="false" name="assessmentForm:generalVerified"/> 
No 
</label> 
</td> 
</tr> 
</tbody> 

Ta,
SD.
Missing User
 answered on 04 Jun 2010
3 answers
161 views
Hi Guys,

Lets say you have a bunch of tests in a test suite but you want 
only 2 to run while the browser recycle is enabled. 

How do you actually do it? I understand you need to override the recycleBrowser to be true but should 
that declaration resides in both tests ? Only in the first one ? 

Ta, 
SD.


Missing User
 answered on 01 Jun 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?