Telerik Forums
Testing Framework Forum
3 answers
122 views
Hello.

I use ArtOfTest.WebAii.Silverlight.UI.TabControl and it works fine almost all times but randomly I get the following error:

Test method AutomatedTests.SystemTests.BuildVerificationTests.SupervisorTestCases.HomePagesInsertTwoPages threw exception:  System.ArgumentException: Unable to find the tab item container. For custom TabControl temlpate please override the .TabItemContainer property..

Is it something that I'm doing wrong? 

I've got the reference to control in the following way:

//_homePagesControl it's a container
TabControl _tabControl = _homePagesControl.Find.ByName<TabControl>(TAB_CONTROL_NAME);
_tabControl.Wait.ForExists(3000); //I don't know the timeout unit... Reference documentation has no information about that... I guess it's milliseconds

Many thanks,

Carlos Marcão
Konstantin Petkov
Telerik team
 answered on 25 Aug 2010
1 answer
125 views
Hello Guys!

For now we are using your updated internal builds.
I'm wondering when are you going to release WebAii 2.0 as end product.

Thanks a lot,
Alena
Nikolai
Telerik team
 answered on 25 Aug 2010
3 answers
108 views
I tried both VS Express 2008 & 2010. While opening solution from QuickStarts_NUnit_CS folder I get error:
"The project file
XXX
can not be opened.

The project type is not supported by this installation"

What am I doing wrong?
Nikolai
Telerik team
 answered on 24 Aug 2010
1 answer
111 views
Hi, all,

I have to test our system in case of erroneous user actions (i.e. the user tries to do smth he has no privileges for).
In such cases our application refuses to do what the user wants to and notifies him about error via JS alert window.

One of my tasks is to check if the caption/text/buttons are correct in this dialog, so, for example, I am to check that there is only OK button on the notification and the notification is like it should be.

The problem is that under IE I've managed to do this pretty fine using the AlertDialog.Window property and its child windows. Sad but fact, under FF these modal windows have no children, so it is impossible to check the message.

So, now you understand the trouble I encountered.
Would be really good if someone could help me.

Thanks a lot,
Yaroslav
Konstantin Petkov
Telerik team
 answered on 24 Aug 2010
3 answers
206 views

From Telerik demo-page (http://demos.telerik.com/aspnet-ajax/window/examples/radopen/defaultcs.aspx) I copied the following code (basically two buttons, one opening the browser´s popup, the other opening a RadWindow-popup):

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow
                    id="RadWindow1"
                    runat="server"
                    showcontentduringload="false"
                    width="400px"
                    height="400px"
                    title="Telerik RadWindow"
                    behaviors="Default">
                </telerik:RadWindow>
            </Windows>
            </telerik:RadWindowManager>
            <table style="width: 100%;">
                <tr>
                    <td id="DecoratedControlsContainer">

                        <script type="text/javascript">
                        //<![CDATA[
                            function openRadWin() {
                                radopen("http://www.telerik.com", "RadWindow1");
                            }

                            function openPopUp() {
                                window.open("http://www.telerik.com", "WindowPopup", "width=400px, height=400px, resizable");
                            }
                       
                        //]]>                                                                       
                        </script>
                        <button style="width: 150px; margin-bottom: 3px;"
                            onclick="openRadWin(); return false;" id="openrad">open RadWindow</button><br style="clear:both" /><br style="clear:both" />
                     </td>
                    <td style="width: 50px;">
                        &nbsp;</td>
                    <td style="vertical-align: top; border-left: 1px solid #cccccc; padding-left: 40px;">
                        <button style="width: 170px; margin-bottom: 3px;"
                            onclick="openPopUp(); return false;" id="openpopup">open browser's popup</button><br style="clear:both" /><br style="clear:both" />
                     </td>
                </tr>
            </table>
   
Then i created two webaii-tests:

      [TestMethod]
        public void OpenPopup()
        {
            Manager.LaunchNewBrowser(BrowserType.InternetExplorer);

            ActiveBrowser.NavigateTo("http://localhost:38518");

            Manager.SetNewBrowserTracking(true);
            Find.ById<HtmlButton>("openpopup").Click();
            Manager.WaitForNewBrowserConnect("http://www.telerik.com", true, 10000);
            Manager.SetNewBrowserTracking(false);
            Assert.AreEqual(2, Manager.Browsers.Count);
        }

        [TestMethod]
        public void OpenRad()
        {
            Manager.LaunchNewBrowser(BrowserType.InternetExplorer);

            ActiveBrowser.NavigateTo("http://localhost:38518");

            Manager.SetNewBrowserTracking(true);
            Find.ById<HtmlButton>("openrad").Click();
            Manager.WaitForNewBrowserConnect("http://www.telerik.com", true, 10000);
            Manager.SetNewBrowserTracking(false);
            Assert.AreEqual(2, Manager.Browsers.Count);

        }
Only the test OpenPopup passes.
The test OpenRad throws exception due to WaitforNewBrowserConnect times out.

Grateful for any help because I really need to be able to test RadWindow-popups.

//Erik Lindahl

Petio Petkov
Telerik team
 answered on 23 Aug 2010
8 answers
169 views

I have problem during running recorded test in WebUi Test Studio QA Edition. When I running previously recorded test after executing few steps i get following message: "Are you sure you want to navigate away from this page? Leaving or refreshing this page can result in date loss. Press OK to continue, or Cancel to stay on the current page."
This message doesn't appear during recording test, but always appears after running tests. Does somebody know how to avoid appearing of this message? This message appears when user reload current page or want to close tab or browser, but I didn't do any of these two actions during recording test.

Thanks in advance...

Tony

Konstantin Petkov
Telerik team
 answered on 23 Aug 2010
2 answers
97 views
Hello,
I just downloaded WebUI Test Studio and try tu create a first test using the Quick Start Guide. On first chapter "Creating and Running Your First Test" I managed to get to step 3 "Click on the “WebAii Test” type and select OK.". Step 4 says "Your new empty test should open automatically.", but nothing happened and VS 2010 freezed. I had to kill it using task manager. I tried a second time but with no success. New test had been added to test project, but when trying to open it via solution explorer, it also cause freezing VS.
I'm using VS 2010 Ultimate version 10.0.30319.1, .NET 4.0.30319 and the latest public version of WebUI test studio (downloaded today).

Had anyone else experienced similar behavior?

Thank you
Tomas Celeda
Tomáš Čeleda
Top achievements
Rank 2
 answered on 20 Aug 2010
3 answers
135 views
Hi there!

I'm trying to use the control ArtOfTest.WebAii.Silverlight.UI.TabControl and everything (At least what I used) working perfectly except property Content. I expected to find a reference to the control that is beeing displayed by selected tab but I only found an object with type string (at least I invoked the GetType over this property and I received System.String).

My reference to TabControl is ok because I'm able to check wich TabItems are available.
If Content property is not working well, let me know if you have an workaround (I have framework version 2010.2.806.0 and Silverlight 3.0).

Thanks in advance,

Carlos Marcão
Konstantin Petkov
Telerik team
 answered on 19 Aug 2010
2 answers
273 views
Hi, 

I've been trying to use System.Windows.Forms using .NET 3.5 SP1 VSE 08' and Webaii Nunit setup and found out I don't have aval.
Is this an assembly I need to add to the IDE ? 
I want to be able to use the SendKeys class for  SendKeys.Send("{ENTER}"); Any idea guys ? Ta.
SD
Top achievements
Rank 1
 answered on 19 Aug 2010
1 answer
95 views
Hi, 

I've got the following html control:
<td class="dr-dscr-button rich-datascr-button" onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page': 'fastforward'});">»</td>

On some occasions, I've got 2 of those 'guys' (">>") on the screen but usually I need to click the one that resides on the button of the page. 
For some reason the following was not helpful and returns count of 0 as if the control was not found.  

var forward = (from b in Manager.ActiveBrowser.Find.AllControls<HtmlControl>() where b.ToString().Contains("»") select b);
                 
Console.WriteLine(forward.Count().ToString());
This works in case there's one control on the screen but it's easier to have all controls in a list to be managed...
HtmlControl forward = Manager.ActiveBrowser.Find.ByXPath<HtmlControl>("//tr/td[text()=\"»\"]");

Any ideas ?

Ta.

SD
Top achievements
Rank 1
 answered on 18 Aug 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?