&&assertStatus: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| <span class="f_Para">Returns a string that contains a summary of the counts of assert command results...") |
No edit summary |
||
Line 14: | Line 14: | ||
<span class="f_Para">To report the function result, you may want to use the [[Echo command|echo]] command, as shown in the following [[MacroTrace command|macro trace output]]: </span> | <span class="f_Para">To report the function result, you may want to use the [[Echo command|echo]] command, as shown in the following [[MacroTrace command|macro trace output]]: </span> | ||
<span class="f_CodeExample">>>>macroTrace: macroTrace on</span><br /> | <p class="syntax"><span class="f_CodeExample">>>>macroTrace: macroTrace on</span><br /> | ||
<span class="f_CodeExample">>>>macroTrace: echo &&assertStatus </span><br /> | <span class="f_CodeExample">>>>macroTrace: echo &&assertStatus </span><br /> | ||
<span class="f_CodeExample">Macro message: Assert Summary: Failed: 0, Succeeded: 17 </span> | <span class="f_CodeExample">Macro message: Assert Summary: Failed: 0, Succeeded: 17 </span></p> | ||
|- | |- | ||
| '''Introduced:''' | | '''Introduced:''' |
Revision as of 17:34, 19 July 2022
Action: |
Returns a string that contains a summary of the counts of assert command results (since the beginning of the execution of the macro that contains the assert). Syntax: &&assertStatus The "assert" functions (also including &&assertSuccessCount and &&assertFailureCount) 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 report the function result, you may want to use the echo command, as shown in the following macro trace output: >>>macroTrace: macroTrace on |
Introduced: | Build 50 |