Ranorex Blog - Software Automation & Automated Testing Blog

Posted by gherget on Monday, July 27th, 2009

Use the Ranorex Recorder to execute recurring tasks and simplify your everyday life

Beside the powerful UI testing functionality of the Ranorex Recorder you can also use it to record and replay recurring tasks on your computer. These recordings can be started directly using keyboard shortcuts and without popping up the Ranorex Recorder Editor.

The Recorder will run the recording and save the Ranorex Report file to the directory where the recording file is located.

startrecording1 Read more »

Share/Save/Bookmark

Posted by cpreschern on Monday, July 13th, 2009

Resizing windows and dialogs with Ranorex

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.

int x=0;
int y=0;

// Find 'Notepad' application using RanoreXPath
Ranorex.Form form = "/form[@title='Untitled - Notepad']";
form.Activate();
x = form.ScreenRectangle.Width - 2;
y = form.ScreenRectangle.Height - 2; 

Report.Log(ReportLevel.Info,"",Mouse.CursorName);
Mouse.MoveTo(form,new Location(x,y));
Report.Log(ReportLevel.Info,"",Mouse.CursorName);

// Check if the application window allows it
// resize the form using the ‘CursorName’ property
if (Mouse.CursorName.Equals("SizeNWSE"))
{
	Mouse.ButtonDown(MouseButtons.Left);
	Mouse.MoveTo(form.ScreenRectangle.Right+30,form.ScreenRectangle.Bottom+30);
	Mouse.ButtonUp(MouseButtons.Left);
}

Share/Save/Bookmark

Posted by rkeele on Friday, March 13th, 2009

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 »

    Share/Save/Bookmark

Posted by mgissing on Friday, February 27th, 2009

A first look at Windows 7

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/Save/Bookmark

Posted by cpreschern on Friday, November 7th, 2008

Ranorex V2.0 - Working with the new core

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/Save/Bookmark

Posted by cpreschern on Wednesday, July 23rd, 2008

Data driven test automation with Excel

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/Save/Bookmark

Posted by ahoisl on Monday, July 14th, 2008

Transfering data to and from a .NET control

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/Save/Bookmark

Posted by cpreschern on Tuesday, June 10th, 2008

Ranorex automates Ranorex

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/Save/Bookmark

Posted by cpreschern on Thursday, April 10th, 2008

Global GUI map for automation with VS.NET

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/Save/Bookmark

Posted by ahoisl on Friday, April 4th, 2008

Web Automation with Python for .NET

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/Save/Bookmark