Using Ranorex 1.5 And 2.X Together in the Same Project
Download Sample Project (11KB)
Requirements:
- Ranorex 1.5 and 2.x installed on same machine.
- .NET 3.5 if you are using Ranorex Studio. Read more »
Download Sample Project (11KB)
Requirements:
With the new version of windows on the horizon, we had a first look at how Ranorex performs in the new environment. As it turns out, it works quite well. In the following, I want to point out a few interesting differences I found between Vista and Windows 7.
The first stop is the new taskbar. Running programs are now represented with large icons instead of a labeled small icon. Although it feels very different, it is exactly the same from an automation point of view as in XP or Vista. Tasks are still represented as child items (or buttons) of a toolbar:
Based on the current online available preview version of Ranorex V2.0 following blog post describes how to do test automation based on the new Ranorex elements and RanoreXPath.
Download Infragistics Ultragrid Sample (5KB)
The test automation code requires a running DynamicStyling application provided through the Infragistics NetAdvantage demo kit.
Ranorex V2.0 comes with a totally redesigned core automation library. Based on the new possibilities of the core, the features of Ranorex tools like Ranorex Recorder have grown extremely to provide a more comfortable way of UI test automation. But not only the Ranorex tool set benefits from the new core library as following example shows. Read more »
Download Ranorex Studio Excel Sample for Ranorex 2.0 (15KB)
Microsoft Excel is often used to store and manage test cases and test data. Why? Because Excel is a widespread tool. Nearly every Windows based machine has installed Microsoft Office. Read more »
Whenever you want to retrieve data from a .NET control using Ranorex, the data needs to be marshalled across process boundaries. In the Control class Ranorex provides methods - like the GetPropertyValue, SetPropertyValue, InvokeMethod, and InvokeRemotely - that handle the cross process marshalling of data for you. However, to be transferable, the data (parameters and return objects) need to be serializable. All the primitive data types of the .NET framework (int, double, string) and many complex types are serializable, but what if the data you want is not?
Read more »
Does Ranorex test their own products with Ranorex?
Yes, they do, as following sample describes. The Ranorex WebSpy tool is one of the user interfaces provided by the Automation Framework for analyzing web applications.
Read more »
Writing test code based on RanoreXPath is not a big challenge. In fact, it’s always the same procedure. First, find the element within a web page. After that, automate it (click, set value,…). Two simple steps. Nevertheless, the bigger your test code the more structured and well designed it should be.
Read more »
Unlike the traditional Ranorex API, the new Web Automation API is natively provided only for .NET languages. However, there are two easy ways how you can still use Python with Ranorex Web Automation.
Automating 3rd party controls can be a hard work. If the control does not support standard mechanisms like windows messages or active accessibility, it cannot be automated without adding some code to the application under test. But how does this trick work?
Using .NET, it’s very simple. You create a new class in the application under test, which inherits from the control class you want to automate and add some properties or methods you need for automation. Be sure that you instantiate the new class in the form designer instead of the old one.
The new version of Ranorex (V1.4 or higher) allows you to get/set properties and call methods of objects from a test application. This technique can be used with all kinds of 3rd party or custom .NET controls. Read more »
GUI automation always depends on the type of used controls and technologies within applications. An increasing use of 3rd party controls in applications also makes GUI automation more and more addicted to identification information provided by the 3rd party control. In most cases providers of 3rd party controls support enough information to get a control’s elements identified and automated. Nevertheless, there are sometimes more complex ways required to simulate user actions. That type of test automation code is not that “readable” as we would like to have.
Ranorex V1.4 supports accessing properties and methods of .NET derived controls. Following “Design for Testability” sample explains the way of making testing more comfortable. By using the 3rd party UltraTree control from Infragistics the example describes how to access user defined methods for test automation. Read more »