Menu

MathExpressionTestStep

DTobe

Math Expression Test Step

This new test step allows evaluation of arbitrary mathematical expressions using the JEP library.
The expression may contain SoapUI property expansions.
Operators and functions can be added via buttons. Functions will be added with a template showing the number of parameters (e.g. "sqrt(_a)" for one) or with ellipsis indicating any number (e.g. "sum(...)" which calculates the sum of all arguments).
The formatted result of the expression can be accessed by other test steps via the property "exprResult".
If an error occurs parsing or evaluating the expression the test step fails and the result is not set.

Further information on the supported operators functions can be found in the linked JEP documentation. Do note that it is the documentation of the commercial version 3 and above of JEP, which seems to have additional functions over the OS version included in this project. Obviously, this means that not all functions listed there are supported.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.