Using Spreadsheet Formulas
This section describes how to take advantage of working in a spreadsheet editor while creating a test sequence
Last updated
This section describes how to take advantage of working in a spreadsheet editor while creating a test sequence
Last updated
Since the creation of test sequences in FunTEST is in a spreadsheet editor you can take advantage of using regular spreadsheet formulas to enhance the test sequence capabilities
Most common use case is to use spreadsheet formulas to create pass and fail criteria
The example below uses the following formula to verify if the result is within specified limits
You can create any custom pass/fail criteria by using spreadsheet formulas.
Always structure your formulas so if step passes display 0 and otherwise display 1
The pass/fail criteria you can create are only limited by spreadsheet formula capabilities
Often times the raw result from the measurement step is not in the desired format. We can use spreadsheet formulas to convert return value to our desired format in the result cell
The example below uses the following formula to take absolute value from the return value
You can also use spreadsheet formulas to create conditions for step execution.
For example, you can make step execution dependent on the result of the previous step by using a formula in the exec column.
Below you can see that by using formula
we can make 3 test steps only executed when the DUT is not present (return value = 0). If the return value is 1 steps are skipped and the sequence keeps executing
The same way you can change the exec column values with spreadsheet formulas, you can do the same for command's parameters.
For example, based on all the results from a test sequence, I want to display a message to the operator with the result i.e. Pass or Fail.
Here is how you can implement it using the following formula in the #status parameter cell at the end of the test sequence:
If all the results pass the sum is 0 and the panel color is green otherwise it's red. The rest of the formula are default parameters for #status command