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
* `node_modules` adds a lot of files to check-in. You may replace them with a single distribution file
498
+
* `node_modules` Adds a lot of files to checkin. You may replace them with a single distribution file
497
499
498
500
image::node_modules.png[]
499
501
500
502
* If `node_modules` is ignored on your git repo, you can force-add to check in using the command `git add -all -f <path>/node_modules`
501
503
====
502
504
503
-
CAUTION: The recommendation is not to add too much code in <<Pre-req and Post-res scripts>>, as it is not intuitive to troubleshoot. Use it for simple operations like set environment variables and use Post-Hooks JVM code for any non-trivial operations.
505
+
CAUTION: The recommendation is not to add too much code in <<Pre-req and Post-res scripts>>, as they not intuitive to troubleshoot through debugging. Use it for simple operations like set environment variables and use <<#_pre_step_and_post_step_hooks,Pre-Step /Post-Step Hooks>> for any non-trivial operations, which are intuitive to debug.
504
506
505
507
[#_mutable_environment]
506
508
=== Mutable Environment
507
509
508
510
* Environment is the only mutable-shared state across step executions, which can be used for data passing between the consumer and the library.
509
-
* 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-/Post-Hooks>> (using the reference `rundown.mutableEnv`) during execution.
511
+
* 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.
510
512
511
513
==== Read Mutable Environment as Postman Environment JSON format
512
514
513
515
You may want to troubleshoot manually with Postman using the Mutable environment built during the ReṼoman execution.
514
516
`rundown.mutableEnv.postmanEnvJSONFormat()` converts the mutable environment into a Postman JSON format,
515
-
so you can copy and import that conveniently into Postman.
517
+
so you can copy and import that environment conveniently into Postman.
518
+
519
+
TIP: You do NOT need to save the copied Postman environment JSON from the debugger into file.
520
+
You can paste (kbd:[Ctrl+v]) directly in the Postman environment window
0 commit comments