This file contains 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
{ | |
"version": "1.0", | |
"name": "Runscope to Mock Service", | |
"description": "", | |
"steps": [ | |
{ | |
"step_type": "request", | |
"skipped": false, | |
"note": "Get Test Result from Runscope", | |
"headers": {}, |
This file contains 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": "Create EventN Service - Runscope to Google Chat", | |
"version": "1.0", | |
"exported_at": 1542227101, | |
"steps": [ | |
{ | |
"body": "{\"email\":\"{{email}}\",\"password\":\"{{password}}\"}", | |
"skipped": false, | |
"form": {}, | |
"url": "https://api.eventn.com/authentication", |
This file contains 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 rp = require('request-promise'); | |
function onPost(context, request) { | |
const {test_name, test_url, test_run_url, result, environment_name, region, region_name, requests, variables} = request.payload; | |
let my_test_name = test_name; |
This file contains 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
function triggerTests() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheets()[0]; | |
sheet.getRange(6, 2, 3, 10).clearContent(); | |
//get the Test Trigger ID | |
var testIdRange = sheet.getRange(1,2); | |
var testId = testIdRange.getValue(); | |
var url = 'https://api.runscope.com/radar/' + testId + '/batch'; |