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
| const PostmanLocalMockServer = require('@jordanwalsh23/postman-local-mock-server'); | |
| const fs = require("fs"); | |
| const PORT = process.env.PORT || 3002; | |
| //Create the collection object. | |
| let collection = JSON.parse(fs.readFileSync('./collection.json', 'utf8')); | |
| //Create a new server | |
| let server = new PostmanLocalMockServer(PORT, collection); |
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
| //Set the Test Case ID | |
| pm.collectionVariables.set("testCaseId", pm.execution.location[pm.execution.location.length - 2]); | |
| failTest = (_pm, testFailedException) => { | |
| let testCaseId = _pm.collectionVariables.get("testCaseId") | |
| let results = JSON.parse(_pm.collectionVariables.get("results") || "{}"); | |
| console.log("Checking Test: ", testCaseId); | |
| console.log("Got Results", results) |
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
| { | |
| "val" : 1 | |
| } |
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
| // ==UserScript== | |
| // @name Postman Workspace Description Margin Fix | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Fix margin issue on documentation pages. | |
| // @author Jordan Walsh | |
| // @match https://*.postman.co/* | |
| // @match https://*.postman.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=postman.co | |
| // @grant none |
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
| image: postman/newman | |
| pipelines: | |
| default: | |
| - step: | |
| script: | |
| - newman --version | |
| - npm install -g newman-reporter-html | |
| - newman run ./postman/collections/<collection_name>.json -e ./postman/environments/<environment_name>.json --reporters cli,html --reporter-html-export report.html | |
| artifacts: |
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
| {} |
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
| // ==UserScript== | |
| // @name Trello-Horizontal-Plugin | |
| // @namespace http://www.heyshmu.com/ | |
| // @version 0.1 | |
| // @description Converts Trello to a horizontal view | |
| // @author Jordan Walsh (info@heyshmu.com) | |
| // @match https://trello.com/* | |
| // @grant GM_addStyle | |
| // ==/UserScript== |
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
| /** | |
| * Developers Guide to Lending in Xero | |
| * Author: Jordan Walsh | |
| * Date: 4 May 2017 | |
| * Description: | |
| * This script creates the necessary components to write back a loan into Xero. | |
| * | |
| * This should only be run on a Demo company and NEVER used in a live environment. | |
| * | |
| * This code is made available at your own risk. |
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
| //Dependencies | |
| const fs = require('fs') | |
| //Attach the loan agreement to the Contact | |
| let loanContract = { | |
| FileName: "loanContract.pdf", | |
| MimeType: "application/pdf" | |
| } | |
| let filePath = "/path/to/some/loanContract.pdf" |
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 invoiceTemplate = { | |
| Type: 'ACCPAY', | |
| Status: 'AUTHORISED', | |
| Contact: { | |
| ContactID: contactID | |
| }, | |
| LineItems: [], | |
| Reference: `LOAN Loan Id ${loanID}/` | |
| } |
NewerOlder