&&assertFailureCount: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| <span class="f_Para">Returns a count of the number of times that the result of an assert command is a...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
| <span class="f_Para">Build 50</span>
| <span class="f_Para">Build 50</span>
|}
|}
[[Category:Debugger Functions]]

Latest revision as of 21:28, 24 August 2022

Action:

Returns a count of the number of times that the result of an assert command is a Failure (since the beginning of the execution of the macro that contains the assert).

Syntax:

&&assertFailureCount 

The "assert" functions (also including &&assertSuccessCount and &&assertStatus) are particularly useful if you are using the assert command to automate your code testing, letting you keep track of the successes and failures of the assertions.

To clear the count at any time (other than by default when the Client is started/restarted or when a new macro is invoked), you can use the resetAssertCounts command.

Introduced: Build 50