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
#!/usr/bin/env ruby | |
require File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), | |
'external/built/share/service_testing/bp_service_runner') | |
require 'uri' | |
require 'test/unit' | |
require 'open-uri' | |
require 'rubygems' |
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
# A little ruby library which can allow client code to programattically drive service runner. | |
# Great for unit tests! | |
# if we're talkin' ruby 1.9, we'll use built in json, otherwise use | |
# the pure ruby library sittin' here | |
$:.push(File.dirname(__FILE__)) | |
begin | |
require 'json' | |
rescue LoadError | |
require "json/json.rb" |
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
#!/usr/bin/env ruby | |
require File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), | |
'external/dist/share/service_testing/bp_service_runner.rb') | |
require 'uri' | |
require 'test/unit' | |
require 'open-uri' | |
class TestPStore < Test::Unit::TestCase | |
def setup |
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
# A little ruby library which can allow client code to programattically drive service runner. | |
# Great for unit tests! | |
# if we're talkin' ruby 1.9, we'll use built in json, otherwise use | |
# the pure ruby library sittin' here | |
$:.push(File.dirname(__FILE__)) | |
begin | |
require 'json' | |
rescue LoadError | |
require "json/json.rb" |
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
import org.openqa.selenium.By; | |
import org.openqa.selenium.Platform; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import org.openqa.selenium.remote.CapabilityType; | |
import java.net.URL; |
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
import requests | |
import json | |
# limit = 379 for now. Alex must change | |
r = requests.get('https://api.clever.com/v1.1/sections?limit=379&where=%7B%22district%22%3A%224fd43cc56d11340000000005%22%7D&distinct=district%2Cstudents%2Ccourse_name%2Csis_id', headers={'Authorization':'Bearer DEMO_TOKEN'}) | |
# putting r.text (string) into as json object (json_obj) | |
json_obj = json.loads(r.text) |
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
export SAUCE_USERNAME=YOUR_SAUCE_USERNAME | |
export SAUCE_ACCESS_KEY=YOUR_ACCESS_KEY | |
git clone https://github.com/ndmanvar/Ruby-Cucumber-WatirWebdriver | |
cd Ruby-Cucumber-WatirWebdriver | |
git checkout manheim | |
bundle install | |
rake test_sauce show_sessionid_and_job_name |
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
# prereq: have sauce username and accesskey set as environment variables | |
# i.e. export SAUCE_USERNAME=YOUR_USERNAME | |
# export SAUCE_ACCESS_KEY=YOUR_ACCESS_KEY | |
# Only works in firefox | |
require 'selenium-webdriver' | |
url = "http://#{ENV['SAUCE_USERNAME']}:#{ENV['SAUCE_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub".strip |
OlderNewer