paulie
10 years agoOccasional Contributor
Grid value may not exist in xpath assertion
I've an xpath match assertion where I check that the expected result is equal to the sum of some values from a Grid datasource e.g.
However, some of the values in the datasource may be left blank. Is there a regular expression or some other way that I get it to ignore the blank values without having to use a groovy script. I could explicitly see the values to 0 in the Grid but if there was a neater solution it'd be great.
Thanks.
${DataSource#Billed1} + ${DataSource#Billed2}
However, some of the values in the datasource may be left blank. Is there a regular expression or some other way that I get it to ignore the blank values without having to use a groovy script. I could explicitly see the values to 0 in the Grid but if there was a neater solution it'd be great.
Thanks.