Database or data type problem.
Read this.
http://www.velocityreviews.com/forums/t303022-java-float-problem.html
Meng, Lily wrote:
Sorry!
I meant 15.12--->15.119999885559082
"I input 12.15, which is less than 12 digits.
Why does webtest return an actual value of 15.119999885559082?
While mannualy testing, the input field is saved and shows the correct
value of 12.15"
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Meng, Lily
Sent: Thursday, May 15, 2008 1:59 PM
To: George Policello; [email protected]
Subject: RE: [Webtest] Inputbox value is not verified correctly in webtest
Hi George,
I input 12.15, which is less than 12 digits.
Why does webtest return an actual value of 15.119999885559082?
While mannualy testing, the input field is saved and shows the correct
value of 12.15
-----Original Message-----
From: George Policello [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 15, 2008 1:21 PM
To: [email protected]; Meng, Lily
Subject: RE: [Webtest] Inputbox value is not verified correctly in webtest
Quick guess. The maximum length of the field is set to 12 the number is
considerably longer.
George
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Meng, Lily
Sent: Thursday, May 15, 2008 10:22 AM
To: [email protected]
Subject: [Webtest] Inputbox value is not verified correctly in webtest
Hi,
I'm webtesting an "inputfield" with a decimal number. I store the
original value, edit it, and verify the value I input, then give the
original value
back to the inputfield. When I verify the value that's inputed, webtest
gives the following error. When I edited the input field manually in
the UI application, it saves the the correct value. The view source
shows the correct value as well. Any suggestions on where's wrong?
Message
Wrong contents found in input field: HtmlTextInput[<input
id="missedSlaCost" name="missedSlaCost" type="text"
value="15.119999885559082" size="12" maxlength="12">]
Location
C:\WebTestHead\tests\testCase.xml (line: 26)
Details
expected value 15.12
actual value 15.119999885559082
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
begin:vcard
fn:Francois Martel
n:Martel;Francois
org:Medrium Canada;DEV
adr:;;400 Boul. Jean-Lesage suite 036 Hall Ouest;Quebec;QC;G1K 8W1;Canada
email;internet:[EMAIL PROTECTED]
title:Specialist Quality Assurance
tel;work:(418) 525-2230
tel;fax:(418) 525-2226
url:http://www.medrium.com
version:2.1
end:vcard