This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Copy a Postman Environment to a different workspace | |
| # Create a new Postman API Key for your user https://go.postman.co/settings/me/api-keys and add this to the API_KEY variable | |
| # Usage: ./copy_environment.sh <environment_id> <workspace_id> | |
| set -euo pipefail | |
| API_KEY="POSTMAN_API_KEY" | |
| BASE_URL="https://api.getpostman.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Copy a Postman Collection to a different workspace | |
| # Create a new Postman API Key for your user https://go.postman.co/settings/me/api-keys and add this to the API_KEY variable | |
| # Usage: ./copy_collection.sh <collection_id> <workspace_id> | |
| set -euo pipefail | |
| API_KEY="POSTMAN_API_KEY" | |
| BASE_URL="https://api.getpostman.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Automated API tests using Postman CLI | |
| run-name: The Collection run was started by ${{ github.actor }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| collection-uid: | |
| required: true | |
| type: string | |
| description: 'The Collection UID for the run' | |
| iterations: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Create a random string length between the speficied min / max values | |
| * @param {Number} minValue - The min value of the string length | |
| * @param {Number} maxValue - The max value of the string length | |
| */ | |
| const randomString = function (minValue, maxValue, dataSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz') { | |
| const lodash = require('lodash'); | |
| if (!minValue) { | |
| minValue = 10; | |
| maxValue = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let myPDFData = { | |
| contract: Buffer.from(pm.response.json().contract, 'base64'), | |
| reference: pm.response.json().reference | |
| } | |
| let template = ` | |
| <script src="https://unpkg.com/jspdf@latest/dist/jspdf.min.js"></script> | |
| <button onclick="savePDF()">Save To PDF</button> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "naughtyValue": "" | |
| }, | |
| { | |
| "naughtyValue": "undefined" | |
| }, | |
| { | |
| "naughtyValue": "undef" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>My Awesome Template</title> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> | |
| <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="table-responsive"> | |
| <table class="table table-striped table-bordered"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cursor": { | |
| "position": 0, | |
| "iteration": 0, | |
| "length": 1, | |
| "cycles": 1, | |
| "empty": false, | |
| "eof": false, | |
| "bof": true, | |
| "cr": false, |
NewerOlder