Skip to content

Instantly share code, notes, and snippets.

@alanphil
alanphil / login_test.scala
Created August 16, 2016 14:04
Gatling login example and showing how to pull out the HTTP authorization header into a variable
package test
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
class LoginTest extends Simulation {
# A simple example of calling the VCO 5.1 REST API using Ruby. This example uses the HTTParty Gem
# to POST some XML to the new RESTful API. There are two examples (more coming) which are:
# getWorkflow(id) - This will return a workflow with a given workflow ID, HTTParty will allow you to access the response
# using the syntax response["inputParameters"] for example.
# executeWorkflow(id, inputxml) - This will allow you to execute a Workflow via the API. I was unable to get a workflow
# to execute using a hash input, so i opted for the ugly xml string option. I think this might be to do with the namespace
# I will hopefully have this as a simple hash very soon but for now it accepts the raw xml as a string.
@alanphil
alanphil / 0_reuse_code.js
Created October 14, 2013 14:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console