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
Copy file name to clipboardExpand all lines: README.adoc
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -545,21 +545,20 @@ See in Action:
545
545
546
546
If an exception is thrown during the procedure of any step,
547
547
the <<Step Procedure>> *fails fast for that step*.
548
-
However, the execution of next *steps won't halt by default*.
548
+
However, the execution of _next steps won't halt by default_.
549
549
You can configure this behavior to *fail-fast* using the below Configuration options:
550
550
551
551
* `haltOnAnyFailure` — This defaults to `false`. If set to `true`, the execution of steps fails-fast when it encounters a failure. This also halts if there is an HTTP error response
552
552
* `haltOnFailureOfTypeExcept` — You may configure to Fail-fast only for a specific Failure type by providing an `ExeType`. Along with it, you may provide a `PostTxnStepPick` which is used to check if a Step can be ignored for that specific failure type or halt the execution of next steps
553
553
554
-
These Configuration options, as their names suggest,
554
+
The below Configuration options, as their names suggest,
555
555
let you conditionally run or skip steps in a chain of steps from the template, without the need to change the template.
556
556
557
557
* `runOnlySteps`, `skipSteps` — These accept a `predicate` of type `ExeStepPick`, which is invoked passing the current `Step` instance to decide whether to execute or skip a step.
558
558
559
-
TIP: There are some `ExeStepPick` predicates
559
+
TIP: Before writing a custom predicate, checkout these OOTB `ExeStepPick` predicates
560
560
bundled with ReṼoman under link:{sourcedir}/com/salesforce/revoman/input/config/StepPick.kt[`ExeStepPick.PickUtils`]
561
-
e.g `withName`,
562
-
`inFolder` etc. You can write a custom predicate of your own too.
561
+
e.g `withName`, `inFolder` etc.
563
562
564
563
==== Compose Modular Executions
565
564
@@ -681,6 +680,8 @@ CAUTION: The recommendation is not to add too much code in <<Pre-req and Post-re
681
680
682
681
* Environment is the only mutable-shared state across step executions, which can be used for data passing between the consumer and the library.
683
682
* This can be mutated (set key-value pairs) through <<Pre-req and Post-res scripts>> (using `pm.environment.set()`) and <<#_pre_step_and_post_step_hooks,Pre-Step /Post-Step Hooks>> (using the reference `rundown.mutableEnv`) during execution.
683
+
* Mutable Environment is `Map<String, Object>` (in Java) or `Map<String, Any?>` (in Kotlin). If you store a POJO as the value, it gets serialized to JSON when used to replace a `{{variable-key}}` placeholder. While fetching a POJO value from `mutableEnv` in JVM code, you may use `mutableEnv.get()` to get the value as a POJO, or `mutableEnv.getAsString()` to read it as a serialized JSON string.
684
+
* While serializing/deserializing, the <<#_type_safety_with_flexible_json_pojo_marshallingserialization_and_unmarshallingdeserialization,customer adapters configured>> via `Kick` config shall be used. You may supply more adapters if needed via `Kick` config.
684
685
685
686
==== Read Mutable Environment as Postman Environment JSON format
686
687
@@ -763,7 +764,10 @@ to how your server responds or your network speed.
763
764
The future looks bright with multiple impactful features in the pipeline:
764
765
765
766
* API metrics and Analytics
766
-
* *It's built with extensibility* in mind. It can easily be extended to support other template formats, such as Kaiju templates used for availability testing.
767
+
* Support other template formats
768
+
** For developers, the IntelliJ HTTP Client offers a built-in plugin that enables HTTP calls directly within the IDE. Supporting this format eliminates the need to switch environments, allowing for seamless manual testing and automation without ever exiting the IDE.
769
+
** Support formats like Cucumber to take input data and assert output data.
770
+
** Support formats for other popular tools, such as ThunderClient, Insomnia, etc
0 commit comments