How to test numbers with comma separator? [message #792732] |
Tue, 07 February 2012 05:48  |
Eclipse User |
|
|
|
Hi!
I need to test whether numbers in table's column are sorted or not. I used first ub_tbl_storeValuesWithCellSpec, which stored values of my column successfully.
Then I try to use ub_app_checkNumericValues with values: ${value_1} greater or equal than ${value_2}, but I receive Invalid Parameter Value error. As I understand, it is because of the numbers have comma separation. How can I overcome this?
45,002.8
12,957.099999
10,619.3
7,059.8
5,611.3
3,758
3,754.2
1,243.1
The other my trouble is: how can I test a cell in a table, which contains icon+text? Only text should be tested.
Maryna
|
|
|
|
|
Re: How to test numbers with comma separator? [message #795255 is a reply to message #792867] |
Fri, 10 February 2012 03:57  |
Eclipse User |
|
|
|
Hi,
If you save the values in the table before sorting, then you can do checks e.g. that the last cell after sorting contains the value that was in the first cell before sorting etc. Then you could use the check string values.
In terms of the renderer, you can add support for custom renderers as long as the renderer implements either getText() or getTestableText().
If you don't have a getText() method, then we recommend using the getTestableText() option to avoid conflicts.
As of Juno for the Eclipse for Testers, and the upcoming standalone release of Jubula 1.2, there will be an adaptable mechanism for renderer support.
Hope this helps,
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.03467 seconds