Page 1 of 1

Comparing Numerical Values

PostPosted: Mon Dec 07, 2009 11:32 am
by softqa
How do you use eValid to coompare numerical values?

Re: Comparing Numerical Values

PostPosted: Tue Dec 29, 2009 2:29 am
by eValid
softqa wrote:How do you use eValid to compare numerical values?

As you may remember, everything that you see in the face of a browser window is a string of one kind or another, and a numerical value that you see on the screen is the chracter representation of that internal string.

In other words, web pages know about strings but not about numbers. Numeric values are our notion, not the web's.

eValid has extensive capabilty to compare strings, so if you know the string that you want to compare against then you can use existing capabilities in eValid to find out if the string you expect is equal to or is present in the string that is one the page.

For a string to have "value" it has to be interpreted in some way. For example, the string "3.14159" is just a 7-character string to a web page, but to you and me it is pi.

Something has to convert the string into a value if you want to compare values and the way to do this is with an eValid SystemCall (or SystemCallWait) that invokes some outside engine that interprets the string as a number. The command line interpreter can do this, to name just one of may kinds of such utilities.

To compare numeric values extracted from strings within a web page you probably would send the strings to an outside interpreter that will do the required comparison for you.

--The eValid Team