The problem I'm having is with all of the validation steps

Ask general questions here.
Posts: 1
Joined: Fri Jan 18, 2019 5:06 am

The problem I'm having is with all of the validation steps

Post by Lylyhannah » Fri Jan 18, 2019 5:17 am

We are using Ranorex to validate a bunch of values in cells in reports on one of our web products. We validate the value in each cell in a validation step in a recording as you would expect. This product just implemented support for multiple languages and we are being asked to make the automation run in each of these languages. Most of the repo items work fine, because they are looking at other attributes besides "innertext".

The problem I'm having is with all of the validation steps, the format for currency is different. For example $49.24 is $49,24 in French, notice the comma instead of a decimal place between the dollars and sense. I know that I could variabalize all of these values then pass in the value I want for each cell from a data-source, but there are thousands of cells that we are validating on.

I was just curious if anyone has a better suggestion for how to validate these values, without creating thousands of variables, or having to implement a user code method on every validation step. I'm thinking a simple solution like putting a wildcard where the decimal place is or something along those lines. From what I've read, and tried so far, I couldn't find a way to make that work.

Thank you

User avatar
Ranorex Guru
Ranorex Guru
Posts: 4421
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: The problem I'm having is with all of the validation steps

Post by odklizec » Mon Jan 21, 2019 8:57 am


In my opinion, you will have to use regex validation or some kind of user code, which will convert the reference value to actual regional format (before actual validation). Unfortunately, without seeing your project and ref. data structure, it's hard to say how exactly you should implement desired changes. Could you please post your project or, at very least, a small sample project?

BTW, you mentioned you are validating each cell in web table. Are you doing it via simple recording or are you using user code and reference table snapshot?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration