Telerik Forums
Test Studio Forum
1 answer
163 views
Hi

When I record with Telerik WebUI Test Studio for testers, I find when at the end of a recording (which is when a report is generated, a custom ssrs report) internet explorer is responsive at first, but when I enable the Automation Overlay Surface, it doesn't work and then after 5-10 seconds, IE crashes (Error: IE is not responding)..

My Setup:

WebUI Test Studio 2010.3 
Vista 64bit
IE 7.0.6002.18005

I have disabled all the add-ons in IE.

Testing:
I have tested the application (web based) which I am testing, end to end, without WebUI Test Studio recording and it works. If i do the same but with WebUI Test Studio Recording, I get the problem at the end... 

I have tried to go there manually and hook into the IE from Telerik, this doesn't work.
I have tried to play to a few clicks before the report generates and then pause the recording... still doesn't work
I have tried the above but left it recording.. Still doesn't work.

Thank you in advance.





Stoich
Telerik team
 answered on 15 Apr 2011
1 answer
117 views
Hi!
I'm recently new in Telerik and I started playing with the application today. I was trying to record a test through a web site that contains drop down menus in some pages. Telerik is showing me an error message while trying to select an option from the dropdown:
ExecuteCommand failed!
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeEvent',Target:'ElementId (tagName: 'select',occurrenceIndex: '4')',Data:'onchange--@@--{"canBubble":true,"cancelable":true,"type":"change"}',ClientId:'12c2f20f-7f70-47a9-894e-f361ab0b2170',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)

Can anyone help me with this?

Really thanks!!
Stoich
Telerik team
 answered on 14 Apr 2011
6 answers
145 views
Hi, 

can you please advice us on how to :
1. do test automation for script service postbacks?
2. introduce delay in between steps? i actually gave a delay of 500 mili seconds after a button click. but could not see the delay after the button click during execution of the test scripts.
3. automate steps for the pop up windows.

Thanks in advance.
Mithun
Top achievements
Rank 1
 answered on 14 Apr 2011
2 answers
146 views
Hi,

I'm using Telerik WebUI Test Studio 2010.1
I've recorded simple test and added a coded step.

On attempt to run the test I get the following compilation error:
c:\Users\userName\Documents\WebUI Test Studio Projects\TestProject1\New Test.aii.cs: Line 1: (CS0246) The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
c:\Users\userName\Documents\WebUI Test Studio Projects\TestProject1\New Test.aii.cs: Line 2: (CS0246) The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)

Test code is as follows:

"using Telerik.WebAii.Controls.Html;
using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;

using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;

namespace TestProject1
{

    //
    // You can add custom execution steps by simply
    // adding a void function and decorating it with the [CodedStep]
    // attribute to the test method.
    // Those steps will automatically show up in the test steps on save.
    //
    // The BaseWebAiiTest exposes all key objects that you can use
    // to access the current testcase context. [i.e. ActiveBrowser, Find ..etc]
    //
    // Data driven tests can use the Data[columnIndex] or Data["columnName"]
    // to access data for a specific data iteration.
    //
    // Example:
    //
    // [CodedStep("MyCustom Step Description")]
    // public void MyCustomStep()
    // {
    //        // Custom code goes here
    //      ActiveBrowser.NavigateTo("http://www.google.com");
    //
    //        // Or
    //        ActiveBrowser.NavigateTo(Data["url"]);
    // }
    //
        

    public class New_Test : BaseWebAiiTest
    {
        #region [ Dynamic Pages Reference ]

        private Pages _pages;

        /// <summary>
        /// Gets the Pages object that has references
        /// to all the elements, frames or regions
        /// in this project.
        /// </summary>
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }

        #endregion
        
        // Add your test methods here...
    
        [CodedStep(@"New Coded Step")]
        public void New_Test_CodedStep()
        {
            ActiveBrowser.Manager.AddNewBrowser();
            ActiveBrowser.NavigateTo("http://www.google.com/");
        }
    }
}

Could you, please, tell me what is wrong?
Eliza
Top achievements
Rank 1
 answered on 14 Apr 2011
18 answers
212 views
Hello,

Sometimes I get "Wait for condition has timed out" error in FF 3.6.8 on executing the following step:
RadPanelBarItem: 'Units' action -> 'Navigate' to 'javascript:SetUrl('Units/Parts/UnitsRibbon.aspx','Units/Parts/UnitsLeftPanel.aspx','Units/Parts/UnitsMainContent.aspx');'

I've set 'Wait on elements timeout"=25000 but it did not help.

Error text:
Failure Information:
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.InvokeScript(String script)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName, T defaultValue)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.CallMethod[T](String methodCall)
   at Telerik.WebAii.Controls.Html.RadPanelBarItem.get_NavigateUrl()
   at Telerik.WebAii.Controls.Html.RadPanelBarItem.get_ShouldNavigate()
   at Telerik.WebAii.Controls.Html.RadPanelBarItem.Navigate()
   at Telerik.WebAii.Design.Translators.Html.PanelBar.RadPanelBarItemActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()

This error is absent in IE.

Could you help me please to avoid the error?

Thank you in advance.
Cody
Telerik team
 answered on 13 Apr 2011
1 answer
70 views
Hi Team,
 
Im using webaii 1.1 and webaii design canvas 1.1 with NUnit for automation scripts execution.We have automated a customized CRM application.Currently our scripts do not run if we minimize our application,how can we add a feature so that our scripts can run in backend even if we disconnect from our VPN connections.

Please suggest.

Thanks

Regards
Dev
Cody
Telerik team
 answered on 13 Apr 2011
1 answer
136 views
Hi,

In our web abpplication, we have tree view , in whic user can select an item and  right click on it, browser will display the Context menu with some options, these context menu options allow the user to perfrom some more operations.


Ex: I will choose a file name from particualr page and then right click, it will display a context menu with Copy, delete and rename. Later if the user choose Copy option from the context menu will display another dialog with tree view of folders, where destination for the copy can be choosen.

These context menu actions are not getting recorded or identified by the Web UI test tool.

Is there a way to over come this problem

Regards,
Cheluvambike

Stoich
Telerik team
 answered on 13 Apr 2011
1 answer
66 views
Hi,

I would like to know, how to add the conditional statements in to our test and make them customizable?

Regards,
Cheluvambike
Anthony
Telerik team
 answered on 11 Apr 2011
3 answers
142 views
I'm testing some urls in my tests and sometimes I've got 
ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'09d3436d-e7e3-42aa-bd1a-1214bf54e2a8',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
   at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)

on 
browser.NavigateTo(url);

Testing page have flash elements and sometimes snippets. I turn off autoWaitUntilready setting.

I've checked browsers and system configuration. I'm using 2010.3.1421 webaii version and I'm testing on windows server 2003.
I run it in all browsers (IE7, IE8, safari and Chrome) and in all of them it's the same issue.
Stoich
Telerik team
 answered on 11 Apr 2011
1 answer
86 views
Hello all,

I have a generated RadGrid with four columns populated from a database on my aspx page.  I have a a button which when clicked, sets isItemInserted =true, and (intended) will populate the insert Text Boxes with some data gathered from the user( somewhere else on this page).

   I want to set the text for two of the insert text boxes in the code behind. So far, I have tried to get the columns from the radGrid, but cannot find the cells that add new record generates. Any help is appreciated.

Thanks,  
              George
Radoslav
Telerik team
 answered on 11 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?