Although Functionize is a no code solution to test automation, we do support a significant amount of custom code in many areas in order to do more advanced or custom tests.
Examples for when you might use Custom Code:
- Verifying that the correct number of blog entries appear on the page
- Verifying all ads got loaded from the correct website
- Verifying the order in which certain information is presented to the user
If you are using an asynchronous function such as making an API call or map, for example, you will need to make a callback to Functionize when the call is complete. You can do this with functionizeAsyncCallback.
Similar to a Custom Code Action, a user can override an Action's Pass/Fail state with Outcome Override. For example, you could write custom JS code to loop through all cells of a table evaluating the contents to find a specific value. The Action will pass or fail based on the conditions specified.
Outcome Override is available via the Action Settings on the Test Detail page or Slider View.
Also see Customizing Tests Using Selectors for additional information on Selector Overrides.