Arithmetic Operations - Sofy Support Docs: No-Code Automation Testing Platform Help

Arithmetic Operations

The Arithmetic Expression feature in Sofy allows you to perform mathematical operations within test cases and assert the results dynamically. This functionality is designed for scenarios where numeric values on screen (such as counters, points, balances, or quantities) must be validated after user actions like increment/decrement or multiplication.

Supported operations:

Creating an Arithmetic Expression

  1. Add Step → Arithmetic Expression (During Recording)

    • While recording a test, click on Add Step

    • Choose Arithmetic Expression from the options

  2. Build Your Expression

    • Select variables or input numeric values to build your expression
    • Use Add Expression to insert numeric variables, text and operators(+, -, ×, /, (, )).
    • The Expression Preview updates live.
    • You may undo the expression or clear the full expression to start fresh.
  3. Evaluate Expression

    • Click Evaluate to calculate the result.
    • Save the result as a new variable (Integer or Float).
    • Specify precision (default 2 decimals, configurable up to 8).

Editing an existing arithmetic expression

In the Test Result view:

Error Handling

Best Practices

✅ With this feature, Sofy now allows Set Text, Variable Comparisons, and Assertions for dynamic arithmetic operations across customer scenarios, ensuring accuracy in numeric validations such as balances, counters, and totals.