Ranorex Blog - Software Automation & Automated Testing Blog

Ranorex Blog

Resizing windows and dialogs with Ranorex

Posted by cpreschern on Monday, July 13th, 2009

In cases of .NET forms it’s possible to set the size value of an application form directly using the Ranorex invoke mechanism. But if you’d like to change the size of forms which are not of type .NET WinForms you need to simulate mouse move actions to point it exactly to the lower right corner. The following short code snippet describes how to resize all kind of windows by simulating mouse actions with Ranorex.

UPDATE: With Ranorex 2.2.0 two new actions were introduced for the Form adapter that facilitate resizing and moving forms. The Form.Resize and Form.Move methods provide a common way to achieve what the below code snippet does, regardless of the technology a form is implemented in.
Read more »

Share

Using Ranorex 1.5 And 2.X Together in the Same Project

Posted by rkeele on Friday, March 13th, 2009

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 »
Share

A first look at Windows 7

Posted by mgissing on Friday, February 27th, 2009

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:

toolbar1 Read more »

Share

Ranorex V2.0 – Working with the new core

Posted by cpreschern on Friday, November 7th, 2008

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 »

Share

Data driven test automation with Excel

Posted by cpreschern on Wednesday, July 23rd, 2008

Download Ranorex

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 »

Share

Transfering data to and from a .NET control

Posted by ahoisl on Monday, July 14th, 2008

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 »

Share

Ranorex automates Ranorex

Posted by cpreschern on Tuesday, June 10th, 2008

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 »

Share

Global GUI map for automation with VS.NET

Posted by cpreschern on Thursday, April 10th, 2008

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 »

Share

Web Automation with Python for .NET

Posted by ahoisl on Friday, April 4th, 2008

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.

Read more »

Share

Making 3rd party controls fit for automation

Posted by jherget on Saturday, March 1st, 2008

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 »

Share