Page 1 of 1

How to trim the data coming from a spread sheet

Posted: Sun Jan 10, 2016 1:23 am
by tsahoo
Hi,

I am using Ranorex out-of-box functionality for data driven testing (using Data Source/Data Binding options). So far it's working fine and didn't find any problem..

But recently business team started using the ranorex script for loading data. There are many instances where the script is failing because the data has additional space. Is there a way I can trim the data before entering into application field.

Thanks in advance.

Re: How to trim the data coming from a spread sheet

Posted: Mon Jan 11, 2016 2:29 pm
by krstcs
You will have to do it in usercode: myString.trim();