Skip to main content



      Home
Home » Archived » Jubula » Check for difference between two values(Float- Integer - Deviation)
Check for difference between two values [message #1698382] Mon, 15 June 2015 04:38 Go to next message
Eclipse UserFriend
Dear fellow Jubula-users Razz

I have to test two programs in parallel, in first i set number 1.000 (float) and check the output.

However output program shows it with some deviation 1.032 (number after comma might vary )

In fact it is right value, but how to set it in Jubula, so the test doesnt fail?

how to generally deal in Jubula with deviation recognition?

Output program can have deviation show up tp +/- 0.05

Thanks in Advance
Re: Check for difference between two values [message #1698583 is a reply to message #1698382] Tue, 16 June 2015 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

have you tried to use wildcards to deal with the deviation?
Regards
Oliver
Re: Check for difference between two values [message #1700467 is a reply to message #1698583] Thu, 02 July 2015 14:22 Go to previous message
Eclipse UserFriend
The mathematical functions come in handy here:
1. Store Value: variable name INPUT, value <input value>
2. Store Value: variable name OUTPUT, value <output value>
3. Store Value: Variable name DEV, value "?mult(0.05,$INPUT)"
4. Store Value: variable name DIFF, value "?sub($OUTPUT,$INPUT)"
5. Check Numeric Values: value1 "$DIFF", operator "less or equal than", value2 "$DEV"
5. Check Numeric Values: value1 "$DIFF", operator "greater or equal than", value2 "?mult($DEV,-1.0)"
Previous Topic:7009: Test Execution Error with tutorial examples
Next Topic:how to pass test or stored variables to an external script in Jubula
Goto Forum:
  


Current Time: Mon Jul 14 05:29:00 EDT 2025

Powered by FUDForum. Page generated in 0.25745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top