This is a migrated thread and some comments may be shown as answers.

Trouble testing with a RadMenu

10 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dennis Minard
Top achievements
Rank 2
Dennis Minard asked on 05 Jun 2010, 12:22 AM
I'm doing a straight function test on a page with a RadMenu with 3 list items.  During the test, clicking on the menu and selecting a list item (or hovering over the menu and selecting an item once it opens) records a step in the test, but when I execute the test, this step fails.  The error I receive is: RadMenuItem: item 'Help' action -> 'Navigate' to 'Support.aspx'   "Unhandled exception thrown during automation step execution".  According to the exception log, it thinks the menu is hidden (see exception log below).  I increased the timeout from 5000 to 50000 with no effect.

Exception Log:
ArtOfTest.Common.Design.Exceptions.ExecutionException: Unhandled exception thrown during automation step execution ---> System.InvalidOperationException: Cannot perform an action on the item while hidden. Please make sure it is visible first!
   at Telerik.WebAii.Controls.Html.RadMenuItem.Navigate(Boolean ensureShouldNavigate)
   at Telerik.WebAii.Design.Translators.Html.Menu.MenuItemActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
   --- End of inner exception stack trace ---

10 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 07 Jun 2010, 08:20 AM
Hi Dennis,

Thank you for contacting us.

Automating RadMenu you need to make sure the test contains the right actions recorded like hovering over and item then click it's child. I have attached an image to point you to the hover over action in the element menu. Once you record such action the test will open the menu item so that the next click item action can pass.

Please let us know if you need further assistance.

Kind regards,
Konstantin Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jason
Top achievements
Rank 1
answered on 10 Mar 2011, 05:20 PM
Konstantin,
I have used the example code from the Telerik RadMenu customization example.
I am to the point where the RadMenu opens on the Hover action and I LeftClick a RadMenu Item nothing happens.

Any suggestions or pointers on what I am doing wrong?
0
Jason
Top achievements
Rank 1
answered on 10 Mar 2011, 05:23 PM
OK maybe I should have waited 5 minutes.
All I had to do was add an x:name to each of my menu elements.
0
Sagar
Top achievements
Rank 1
answered on 03 Jul 2013, 10:34 AM
Hi All,

I am also facing the same issue. It is showing the failure reason as 'Cannot perform an action on the item while hidden. Please make sure it is visible first!' while record and play on 'RadMenuItem'.
Note: Wait property is increased upto 10000, sitll not working. :(

Please suggest how to resolve this.
See the attachment.
0
Sagar
Top achievements
Rank 1
answered on 03 Jul 2013, 10:46 AM
Got the Solution,

ignore earlier post..thnx
0
Boyan Boev
Telerik team
answered on 03 Jul 2013, 11:32 AM
Hi Sagar,

Glad yo hear you've found a solution.

Should you have any additional questions please do not hesitate to ask us. 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Zeeshan
Top achievements
Rank 1
answered on 14 Jul 2013, 10:16 AM
This testing can be do in 2010 version
0
Boyan Boev
Telerik team
answered on 16 Jul 2013, 01:07 PM
Hi Zeeshan,

Thank you for sharing your knowledge with us.

Let us know if you need further assistance.

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Karl Wilkens
Top achievements
Rank 1
answered on 29 Aug 2013, 12:08 PM
Hi,

I am using the latest Test Studio in trial mode to evaluate it. Our project is 100% Telerik interface and I am running into immediate issues just getting Radmenu navigation options to execute properly per earlier comments in this thread, which state - figured it out - but never share.

We are binding to a RadMenu as follows

  RadMenu1.DataSource = dt

            RadMenu1.DataTextField = "Screen Title"

            RadMenu1.DataValueField = "ScreenPkey"

            RadMenu1.DataFieldID = "ScreenPkey"         

            RadMenu1.DataFieldParentID = "ParentScreenID"

            RadMenu1.DataNavigateUrlField = "FileName"

            RadMenu1.DataBind()


What do we need to do in order to record a menu click. Thanks.
0
Rodney
Telerik team
answered on 03 Sep 2013, 05:15 PM
Hello Karl,

You need to use the hover-over highlighting feature to properly record RadMenu navigation. Here is a short video of what it looks like to enable hover-over highlighting and choose the hover mouse action.

Here is the mouse hover feature explained in our documentation.

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/knowledge-base/test-automation/invoke-mouse-hover.aspx

Regards,
Rodney
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Dennis Minard
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
Jason
Top achievements
Rank 1
Sagar
Top achievements
Rank 1
Boyan Boev
Telerik team
Zeeshan
Top achievements
Rank 1
Karl Wilkens
Top achievements
Rank 1
Rodney
Telerik team
Share this question
or