Unit tests for scripts
Test scenarios
Creating a unit test



Test result verification parameters


Figure 5.


Defining application data for unit tests

If the script contains errors, the test will fail and the error will be logged in the console under the editor. The message will contain the reason and the location of the error.
Figure 8.
Script services
We can verify the output of script services in several ways. They are divided into numeric comparison and text comparison:



Script services
We can verify the output of script services in several ways. They are divided into numeric comparison and text comparison:

returned from the script is not equal to the text value


Last updated
Was this helpful?
