Comparing Numerical Values

How to use eValid to support regression testing.

Comparing Numerical Values

Postby softqa » Mon Dec 07, 2009 11:32 am

How do you use eValid to coompare numerical values?
Posts: 10
Joined: Thu Aug 20, 2009 8:52 am

Re: Comparing Numerical Values

Postby eValid » Tue Dec 29, 2009 2:29 am

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
Posts: 2091
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA

Return to Regression Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons