Ranorex Recorder Throws an Exception when Validating Telerik

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
JohnWashburn
Posts: 54
Joined: Wed Jan 09, 2013 7:02 pm

Ranorex Recorder Throws an Exception when Validating Telerik

Post by JohnWashburn » Tue May 28, 2013 8:47 pm

Why does the Validater throw an exception when interacting with a Telerik Tree, but Spy does not?

Steps to reproduce
1) Start the Ranorex studio
2) Begin a recording
3) As part of the recording: start the application TelerikWhetstone.exe
4) Validate that the File menu item exists and is enabled
5) Click the panel tab named: Tree
6) Attempt to validate that the tree item Root01 exists and is enabled.

Ranorex studio throws the exception:

Error
Validation failed. The element might no longer be available.
OK

and the Telerik tree control and tool bar have both gone blank.

I have attached the Ranorex Studio solution and the Whetstone Telerik application under test by that solution.
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex Recorder Throws an Exception when Validating Telerik

Post by Support Team » Wed May 29, 2013 12:59 pm

Hello,

Thank you for your project.
Unfortunately, I couldn't start your application successfully (crash in module Kernelbase.dll).
Do I need a specific library to run your application?

Could you please try it with our current version (4.0.4)?
You could download it from here: http://www.ranorex.com/download/Ranorex-4.0.4.exe

Could you please post a 'Ranorex Snapshot' of your application in order to analyze this issue?
Please take a look at Creating Ranorex Snapshot Files in our User Guide.

Thank you in advance.

Regards,
Markus (T)

JohnWashburn
Posts: 54
Joined: Wed Jan 09, 2013 7:02 pm

Re: Ranorex Recorder Throws an Exception when Validating Telerik

Post by JohnWashburn » Fri Jun 07, 2013 3:00 pm

The whetstone application requires telerik controls to be installed. You can install a 30 day free trial here:
http://www.telerik.com/download-trial-file.aspx?pid=763

As you can see by the attached stack trace the exception being throw is within the Ranorex code.

Steps I used to reproduce this defect on a clean VM with Windows 7 32 bit in English
1) Download and install the free trial of the latest Telerik Rad controls found at: http://www.telerik.com/download-trial-file.aspx?pid=763
2) restart the VM for the installation
3) Downloaw and install the trial of the latest version of Ranorex (4.0.4) found at: http://www.ranorex.com/download.html
4) restart the VM for the installation
5) copy the Whetstone application to the VM
6) Start the Whetstone application
7) start Ranroex studio and continue the evaluation
8 ) Create a new test solution
9) Start recording as a Global recording
10) Validate the tool bar with the single tool named exit (exception is thrown)
11) Click on the panel named Tree
12) Validate the the tree node named Root2 (exception is thrown)
13) Click on the panel named ListControl and ListView
14) Validate the list item name Item04 (exception is thrown)

The same behavior is encountered if the VM has an operating systme of Windows 7 64-bit English.
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex Recorder Throws an Exception when Validating Telerik

Post by Support Team » Tue Jun 11, 2013 4:21 pm

Hello,

Thank you for your detailed steps.

I got a 'Ranorex Technology Limitation' warning when I try to track these items in your application.
Do you get such a warning?

Regards,
Markus (T)

JohnWashburn
Posts: 54
Joined: Wed Jan 09, 2013 7:02 pm

Re: Ranorex Recorder Throws an Exception when Validating Telerik

Post by JohnWashburn » Wed Jun 12, 2013 1:41 am

I get a pointless one regarding Firefox, but since this is not a web application I ignore it.

If I am not running the whetstone and the studio as admin I get a second warning.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex Recorder Throws an Exception when Validating Telerik

Post by Support Team » Thu Jun 13, 2013 1:07 pm

Hello,

We have analyzed your application.

Ranorex tries to get a containterType from the control.
If this couldn't be found, a handled exception is thrown in the debugger and can be ignored.
This is an expected behavior.

We have seen during validation of the 'Exit' button in the toolbar, the toolbar disappears.
After re-sizing the application form, the button appears again.
It seems to be a problem with the 'preferredSize' property of the following containers:
'radCommandBar1 Text' and 'radMenu1 Text'

Regards,
Markus (T)