Changing Ranorex Repository Programmatically
Posted: Wed Apr 04, 2018 10:12 am
Hi,
we are currently using Ranorex 8.0.1 on Windows 10.
We want to use Ranorex for testing our web application.
Unfortunately, the web elements in this web application do not have fix ids and in most cases the web elements do not have an id at all.
I could define five different control types. For each I have defined a sort of RanoreXPath template.
For example, we have following text field:
The corresponding template would be:
.//*//label[@innertext='Anrede']/../..//input
„Anrede“ is in this case the label of the text field. If we look at the example again in the Ranorex Repository, I would like to just record a test and after that run a reorganization program, that would change the RanoreXPath as previously defined.
Program logic:
Look at the name (f_Anrede). f_ would mean we have to use this template .//*//label[@innertext='x']/../..//input. Now we would change ‘x’ to Anrede.
The problem is currently, that Ranorex says in their Repository that you cannot change this file.
we are currently using Ranorex 8.0.1 on Windows 10.
We want to use Ranorex for testing our web application.
Unfortunately, the web elements in this web application do not have fix ids and in most cases the web elements do not have an id at all.
I could define five different control types. For each I have defined a sort of RanoreXPath template.
For example, we have following text field:
The corresponding template would be:
.//*//label[@innertext='Anrede']/../..//input
„Anrede“ is in this case the label of the text field. If we look at the example again in the Ranorex Repository, I would like to just record a test and after that run a reorganization program, that would change the RanoreXPath as previously defined.
Program logic:
Look at the name (f_Anrede). f_ would mean we have to use this template .//*//label[@innertext='x']/../..//input. Now we would change ‘x’ to Anrede.
The problem is currently, that Ranorex says in their Repository that you cannot change this file.
// This file was automatically generated by RANOREX. // DO NOT MODIFY THIS FILE! It is regenerated by the designer. // All your modifications will be lost!Is there a way to change the Ranorex Repository programmatically?