Skip to content

Commit 7e73f79

Browse files
committed
Fix formatting in sandbox documentation
1 parent 739418f commit 7e73f79

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: 06_api_testing_and_collection_runner/sandbox.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ The Postman Sandbox is a JavaScript execution environment that is available to y
33
### Commonly used libraries and utilities
44

55
* [Lodash][0]: JS utility library
6-
* [jQuery][1] Deprecated: Cross-platform JavaScript library. This will be removed in future versions of the sandbox.
7-
* [BackboneJS][2] Deprecated: Provides simple models, views, and collections. This will be removed in future versions of the sandbox.
6+
* [jQuery][1] **Deprecated**: Cross-platform JavaScript library. This will be removed in future versions of the sandbox.
7+
* [BackboneJS][2] **Deprecated**: Provides simple models, views, and collections. This will be removed in future versions of the sandbox.
88
* [SugarJS][3]: Extends native JS objects with useful methods
99
* [tv4 JSON schema validator][4]: Validates JSON objects against v4 of the json-schema draft
1010
* [CryptoJS][5]: standard and secure cryptographic algorithms. Supported algorithms: AES, DES, EvpKDF, HMAC-MD5, HMAC-SHA1/3/256/512, MD5, PBKDF2, Rabbit, SHA1/3/224/256/512, TripleDES
1111
* `xml2Json(xmlString)`: This function behaves the same in Newman and Postman
12-
* `xmlToJson(xmlString)` Deprecated: This function does NOT behave the same in Newman and Postman
12+
* `xmlToJson(xmlString)` **Deprecated**: This function does NOT behave the same in Newman and Postman
1313
* `postman.getResponseHeader(headerName)` Test-only: returns the response header with name "headerName", if it exists. Returns null if no such header exists.
1414
Note: According to W3C specifications, header names are case-insensitive.
1515
This method takes care of this. `postman.getResponseHeader("Content-type")` and `postman.getResponseHeader("content-Type")` will return the same value.
@@ -51,17 +51,17 @@ Note: Variables will NOT be resolved in the request object. The request object i
5151
* `headers {object}` - this is a dictionary of headers for the request (request.headers\["key"\]=="value")
5252
* `method {string}` - GET/POST/PUT etc.
5353
* `url {string}` - the url for the request.
54-
* `responseHeaders {object}` Test-only Deprecated: This is a map of the response headers. This is case-sensitive, and should not be used. Check the `postman.getResponseHeader()` method listed above.
55-
* `responseBody {string}` Test-only: A string containing the raw response body text. You can use this as an input to JSON.parse, or xml2Json.
56-
* `responseTime {number}` Test-only: The response time in milliseconds
57-
* `responseCode {object}` Test-only: Contains three properties:
54+
* `responseHeaders {object}` **Deprecated**, **Test-only**: This is a map of the response headers. This is case-sensitive, and should not be used. Check the `postman.getResponseHeader()` method listed above.
55+
* `responseBody {string}` **Test-only**: A string containing the raw response body text. You can use this as an input to JSON.parse, or xml2Json.
56+
* `responseTime {number}` **Test-only**: The response time in milliseconds
57+
* `responseCode {object}` **Test-only**: Contains three properties:
5858
* `code {number}`: The response code (200 for OK, 404 for Not Found etc)
5959
* `name {string}`: The status code text
6060
* `detail {string}`: An explanation of the response code
61-
* `tests {object}` Test-only: This object is for you to populate. Postman will treat each property of this object as a boolean test.
61+
* `tests {object}` **Test-only**: This object is for you to populate. Postman will treat each property of this object as a boolean test.
6262
* `iteration {number}`: Only available in the Collection Runner and Newman. Represents the current test run index. Starts from 0\.
6363

64-
Test-only: This object is only available in the test script section. Using this in a pre-request script will throw an error.
64+
**Test-only**: This object is only available in the test script section. Using this in a pre-request script will throw an error.
6565

6666
### Data files
6767

@@ -80,4 +80,4 @@ check out the [examples page][9].
8080
[6]: https://www.getpostman.com/docs/capture#interceptor
8181
[7]: http://blog.getpostman.com/index.php/2014/11/28/using-the-interceptor-to-read-and-write-cookies/
8282
[8]: http://blog.getpostman.com/index.php/2014/10/28/using-csv-and-json-files-in-the-postman-collection-runner/
83-
[9]: https://www.getpostman.com/docs/jetpacks_examples
83+
[9]: https://www.getpostman.com/docs/jetpacks_examples

0 commit comments

Comments
 (0)