You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both, the [folder level](#folder-level-functions) and the [primary test functions](#primary-test-functions) already call the trace function to log the start and/or end of the operation, but if you want to add your own trace messages, you can do it via following function:
627
627
628
-
* `utils.trace.log(pm, message, level)
628
+
*`utils.trace.log(pm, message, level)`
629
629
630
630
The `utils.trace.log` function takes the trace message and the log level values. It will compare the log level to the level initialized via one of the `utils.trace.set` functions (or the default) and if the specified level is the same or lower than the trace message will be logged; otherwise, it will be suppressed.
631
631
@@ -651,7 +651,7 @@ Builds the name of the test to be used in primary test functions or elsewhere. T
651
651
652
652
#### Prototype
653
653
```JavaScript
654
-
name(pm, name, suffix)
654
+
utils.name(pm, name, suffix)
655
655
```
656
656
#### Parameters
657
657
*`name`:
@@ -673,7 +673,7 @@ Pauses script execution for the specified number of seconds or milliseconds.
673
673
674
674
#### Prototype
675
675
```JavaScript
676
-
wait(pm, timeout, seconds =true)
676
+
utils.wait(pm, timeout, seconds =true)
677
677
```
678
678
679
679
#### Parameters
@@ -694,7 +694,7 @@ Stops test execution.
694
694
695
695
#### Prototype
696
696
```JavaScript
697
-
stop(pm, timeout, seconds =true)
697
+
utils.stop(pm, timeout, seconds =true)
698
698
```
699
699
700
700
#### Example
@@ -708,7 +708,7 @@ Skips test execution to the specified test.
0 commit comments