How to bind resource file and variables

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 1
Joined: Fri Sep 27, 2013 2:08 pm

How to bind resource file and variables

Post by manish_teri » Fri Sep 27, 2013 3:03 pm

Hi Guys ,

I want to create tests for different languages so I am using 2 ways to do it

1. I have edited the RxPath in a way that it uses unique identifiers which don't change if the
Language/OS changes, which are language independent.

2. For some HTML/UI elements we can can not add unique identifiers so I have added variables for them
For instance: instead of /button[@text='&Close'] i have used /button[@text='$close'].

Problem is here:

I want to use Resource file (.resx) to put localized string and fill variables ( $close) with Resource file string.
Please give me a way to assign Resource file data into variable.
i.e $close = GeneralResource.CloseString

Here I don't want to use variables with Excel sheet.


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

Re: How to bind resource file and variables

Post by Support Team » Mon Sep 30, 2013 4:55 pm


Unfortunately, we don't provide a way to use a resource file (.resx) as a data source using our data connector.
Would it be an option for you to use a .csv file to store your values?

You could write a custom XML Parser to get values from your resource file and store them into your variables.

Markus (T)