Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:38 Go to next message
Sanan Panahli is currently offline Sanan PanahliFriend
Messages: 5
Registered: June 2015
Junior Member
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 14:08 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 18:22 Go to previous message
David Hickernell is currently offline David HickernellFriend
Messages: 85
Registered: October 2012
Member
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 Mar 04 09:56:01 GMT 2024

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

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

Back to the top