Telerik Forums
Testing Framework Forum
5 answers
86 views

Hello,

I would to know if WebAII will support this toolkit as it is a place where the Silverlight Team at Microsoft shares new components.

At the moment, when I want to reference a NumericUpDown like: 

Dim Nud As NumericUpDown = appMain.Find.ByName(Of NumericUpDown)("NumericUpDownExecutionTimeOut")
 I obtain: Type argument 'System.Windows.Forms.NumericUpDown' does not inherit from or implement the constraint type 'ArtOfTest.WebAii.Silverlight.FrameworkElement'. 

Regards.

Konstantin Petkov
Telerik team
 answered on 02 May 2011
1 answer
102 views
HI,

In vb . net code am geting root panel expression as below and passed as parameter to HtmlFindExpression as below.


Dim expidMain As New HtmlFindExpression("style =MARGIN:1em", "id=divMain", "Tagname=DIV")

I need to know Is this correct way of  finding expression.

I also need to find all table header expression inside root panel and am trying with below line of code

   Dim simpleGridHeader As IList(Of HtmlControl) = app.find.byexpression(expidMain).Find.Allbyexpression("style=BACKGROUND-IMAGE:url(awc.axd?r=headerBackground.gif&d=ExpandableSectionControl&v=7153590);BACKGROUND-REPEAT:repeat-y;CURSOR:default", "id=?_headerDiv", "class=ExpandableHeader", "Tagname=DIV")

but i get exception here as Object variable or With block variable not set.

Kindly assist ASAP.

Stoich
Telerik team
 answered on 01 May 2011
2 answers
97 views
Hi,

I'm using Telerik.WebAii.Framework.2010.3.1607.msi

Using FF3.0.6

My SL Objects will be loaded after user was logged in successfully.

My code:
Init()
Utilities.GlobalObject.SETTINGS.EnableSilverlight = true;
            Utilities.GlobalObject.SETTINGS.SilverlightConnectTimeout = 60000;
            Utilities.GlobalObject.SETTINGS.ExecuteCommandTimeout = 60000;


            Utilities.GlobalObject.MANAGER = new Manager(Utilities.GlobalObject.SETTINGS);
            Utilities.GlobalObject.MANAGER.Start();
            Utilities.GlobalObject.MANAGER.LaunchNewBrowser();
            Utilities.GlobalObject.MANAGER.ActiveBrowser.Window.Maximize();
            Utilities.GlobalObject.MANAGER.ActiveBrowser.NavigateTo(Utilities.GlobalRunning.SERVER_URL);
            Utilities.GlobalObject.MANAGER.ActiveBrowser.WaitUntilReady();
-------------
Login()
            FATInput.Tradition.TypeTextFieldBYID("Login1_UserName", Utilities.GlobalRunning.SERVER_USER);
            FATInput.Tradition.TypePasswordBYID("Login1_Password", Utilities.GlobalRunning.SERVER_PASSWORD);
            FATInput.Tradition.ClickButtonBYID("Login1_LoginButton");
            Utilities.GlobalObject.MANAGER.ActiveBrowser.WaitUntilReady();
            System.Threading.Thread.Sleep(Utilities.GlobalConfig.INT_WAIT_TIMEOUT_MILISECOND);


            Utilities.GlobalObject.SILVERLIGHTAPP = Utilities.GlobalObject.MANAGER.ActiveBrowser.SilverlightApps()[0];
-----------------

Found exception at Utilities.GlobalObject.SILVERLIGHTAPP = Utilities.GlobalObject.MANAGER.ActiveBrowser.SilverlightApps()[0];

---------- Detail exception
"System.TimeoutException: Timeout trying to connect to Silverlight App.\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightApp.WaitUntilExtensionCreated(String extensionCall)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()\r\n   at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)\r\n   at FATWelcomePage.WelcomePage.loginSuccess() in D:\\FAT_WebAii\\FATWelcomePage\\WelcomePage.cs:line 39\r\n   at FATWelcomePage.FAT.run(String strSelectedAction) in D:\\FAT_WebAii\\FATWelcomePage\\FAT.cs:line 19\r\n   at FATTestRunner.TestRunner.run(TestSuite tsItem) in D:\\FAT_WebAii\\FATTestRunner\\TestRunner.cs:line 84"

----------

Please help me if there is any way/solutions to fix this issue. It works fine in IE8,9 (32bit).

Seems that the proxy was set on and then the web AUT can not be loaded.
San
Top achievements
Rank 1
 answered on 29 Apr 2011
1 answer
127 views
Hey all,

I'm using TFS in conjunction with the free version of WebAii and .NET 4 to automate my WebAii tests, and I've run into a problem where when the test fails, I have no real way of seeing why the test fails, other then some debugging code I write.  I want to be able to display the image of the failed browser screen somewhere.  Ideally, I'd love to be able to add it to the debug trace, or some other type of output, but I don't think that's possible.  Can anyone suggest a way for me to be able to display the image I capture after a failed test, so when I look at the test result I immediately know why it failed?

Or even suggest some best practices in debugging why the test fails via some sort of output displayed in the test result.  I just want it completely simplified, so when ANYONE looks at the test results, they immediately know why it failed.

Thanks
Stoich
Telerik team
 answered on 28 Apr 2011
1 answer
146 views
Hi,

I was trying out the framework to see if it could fix an issue I'm having with an Ext GWT application I'm trying to automate. Development has decided to use double click events on a lot of the elements and no framework has been able to handle them effectively. I can't seem to find a DoubleClick method on the HtmlControl class. Is there a way to double click using WebAii?
Cody
Telerik team
 answered on 26 Apr 2011
3 answers
218 views
Hi,

I am using the sample of WebAii Framework, specifically the "SilverlightHealthcareSample.cs", In Visual Studio 2010 Premium Edition, in Windows 7 (64bit). The script fails just as it starts with the errors bellow. Can you please take a look and see what I am doing wrong?
I have also installed the WebUI Test Studio QA and Developer edition.

I have also tried adding the line 'Manager.Settings.SilverlightConnectTimeout = 10000;' but still the same results.

I have the following browsers installed, chrome v10, IE v9, firefox v3.6, safari v5.0.4.

In Safari and Chrome (fails before the browser opens)
[9:50 AM] - Using: ArtOfTest.Common, Version=2010.3.1421.0, Culture=neutral, PublicKeyToken=14a0200bfcbb7b62
[9:50 AM] - OS: Microsoft Windows NT 6.1.7601 Service Pack 1
[9:50 AM] - Unable to open key HKLM\SOFTWARE\Telerik
'2011-04-14 9:50:48.097 AM' - [Trace] : Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()
Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()

In Internet explorer (fails after the browser opens, but it does not try to navigate to the webpage)
[10:14 AM] - Using: ArtOfTest.Common, Version=2010.3.1421.0, Culture=neutral, PublicKeyToken=14a0200bfcbb7b62
[10:14 AM] - OS: Microsoft Windows NT 6.1.7601 Service Pack 1
[10:14 AM] - Locating ArtOfTest.Connector.dll
[10:14 AM] - Unable to open key HKLM\SOFTWARE\Telerik
Automate a complex Silverlight application: System.ApplicationException : Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
----> System.NullReferenceException : Object reference not set to an instance of an object.
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
at QuickStarts_NUnit_CS.SilverlightHealthcareSample.HealthCareDemo() in SilverlightHealthcareSample.cs: line 91
--NullReferenceException
at ArtOfTest.Common.Win32.WindowManager.Attach(ref IntPtr handle, Boolean findTabWindow, Boolean loadClr, ref IntPtr hookId)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)

In Firefox (fails after the browser opens, and it tries to navigate to the site, getting a 'The proxy server is refusing connections' in the browser)
[10:14 AM] - Using: ArtOfTest.Common, Version=2010.3.1421.0, Culture=neutral, PublicKeyToken=14a0200bfcbb7b62
[10:14 AM] - OS: Microsoft Windows NT 6.1.7601 Service Pack 1
[10:14 AM] - Unable to open key HKLM\SOFTWARE\Telerik
'2011-04-14 10:14:56.934 AM' - [Trace] : Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()
Exception caught in AOTHttpProxy.Start:
System.InvalidOperationException: Missing WebAii framework registry key 'HKLM\Software\Telerik\WebUITestStudio'
at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()
Automate a complex Silverlight application: System.ArgumentException : Index '0' is invalid. List contains only '0' apps
at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
at QuickStarts_NUnit_CS.SilverlightHealthcareSample.HealthCareDemo() in SilverlightHealthcareSample.cs: line 100
System.Threading.ThreadAbortException: Thread was being aborted.
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListener()
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart() 

Best Regards
Cody
Telerik team
 answered on 25 Apr 2011
5 answers
87 views
Hi,
I need to test the value of a RadNumericUpDown.
When I try to get the property from my element (a ArtOfTest.WebAii.Silverlight.FrameworkElement encapsulating a RadNumericUpDown) using the following code: 
AutomationProperty property = new AutomationProperty(prop, typeof(double?));
element.GetProperty(property).ToString();

It does not found the property (I get a Null Pointer Exception). 
What is wrong and can you help me please? 

Thanks,
Mathieu
Cody
Telerik team
 answered on 21 Apr 2011
2 answers
93 views
One of the links I need to functionally test opens an Excel document. Since this is not a browser window, is there any way to continue testing with WebAii so I can compare what's in that window with what my webpage says I should expect?
Ron Rudman
Top achievements
Rank 1
 answered on 18 Apr 2011
0 answers
114 views
Hello

I had recorded a test case with RadWindow, I could Record selecting dropdown menu, typing text in text area, and clicking buttons but When I execute same test case on the, build System (integration Server environment).
My test case getting Aborted on appering the RadWindow, no action is performed just waiting for long time and aborting all the test cases.

I recorded same test case on the Build system also but still I am not abel to run.

can you please help me to handle the this in  .aii testcases.

Ravi
ravi
Top achievements
Rank 1
 asked on 18 Apr 2011
5 answers
102 views
I cannot submit a bug because I'm not a license holder, so I post here.

Steps:
1. Install Firefox 4

2. Install WebAii internal build 1607

3. Create file c:\1.html with the following contents:
    <div id="div1"></div>

4. Run the following NUnit test fixture
[TestFixture]
public class Fixture1 {
    [Test]
    public void Test1() {
        var m = new Manager(false);
        m.Start();
        m.LaunchNewBrowser(BrowserType.FireFox);
        var b = m.ActiveBrowser;
        b.NavigateTo("c:/1.html");
        var value = b.Find.ById<HtmlControl>("div1").ScrollTop;
    }
}

Results:

ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: TypeError: document.getElementsByTagName("div")[0] is undefined

Works fine with other browsers.
Alexey Ivanov
Top achievements
Rank 1
 answered on 18 Apr 2011
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?