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
require 'nokogiri' | |
require 'csv' | |
@xml = Nokogiri::XML(open("Old-Accounting-System.xml")) | |
@csv = CSV.open("output.csv", "w") | |
def populate(opts = Hash.new(0)) | |
fields = [] | |
payload = [] | |
opts.each do |k,v| |
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
#!/usr/bin/env ruby | |
require 'rest-client' | |
require 'nokogiri' | |
require 'sanitize' | |
class Checker | |
attr_accessor :url, :scope, :sleep_interval | |
attr_reader :page, :copy, :latest_copy | |
def initialize(url, scope, sleep_interval) |
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
require 'ruby-progressbar' | |
progress_bar = ProgressBar.create(:total => @urls.count, :format => '%a |%b %i| %p%% Completed') | |
progress_bar.increment |
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
require 'rspec' | |
require 'nyan_cat_formatter' | |
group = describe 2 do | |
it "should be two" do | |
2.should == 3 # failing test | |
end | |
it "should be two" do | |
2.should == 2 |
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
module Report | |
class Tags | |
def initialize(step_mother, path_or_io, options) | |
@all_tags = [] | |
end | |
def tag_name(tag_name) | |
@all_tags << tag_name | |
end |
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
require 'selenium-webdriver' | |
require 'rspec-expectations' | |
def setup | |
@driver = Selenium::WebDriver.for :firefox | |
end | |
def teardown | |
@driver.quit | |
end |
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
3 processes for 26 beakers, ~ 8 beakers per process | |
Run options: include {:wip=>"true"} | |
Run options: include {:wip=>"true"} | |
Run options: include {:wip=>"true"} | |
Unable to download image! | |
[[ATTACHMENT|/Users/more/Dropbox/_dev/Arrgyle/Animoto/evidence/report_33451c6e722c4bedb9cb053ea5dd221b.log]] | |
[[ATTACHMENT|/Users/more/Dropbox/_dev/Arrgyle/Animoto/evidence/sauce_job_33451c6e722c4bedb9cb053ea5dd221b.log]] | |
F |
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
# Elemental Selenium Tip 32 "XPath or CSS?" | |
# Directory Structure | |
# |-- config.rb | |
# |-- Rakefile | |
# `-- spec | |
# |-- id_and_class_spec.rb | |
# |-- spec_helper.rb | |
# `-- traversing_spec.rb |
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
user system total real | |
header_id_and_class using css 0.047000 0.109000 0.156000 ( 1.132802) | |
header_id_and_class using xpath 0.078000 0.141000 0.219000 ( 1.132802) | |
header_id_class_and_direct_desc using css 0.062000 0.078000 0.140000 ( 1.132802) | |
header_id_class_and_direct_desc using xpath 0.063000 0.031000 0.094000 ( 1.235784) | |
header_traversing using css 0.031000 0.172000 0.203000 ( 1.214156) | |
header_traversing using xpath 0.000000 0.140000 0.140000 ( 1.132800) | |
header_traversing_and_direct_desc using css 0.000000 0.125000 0.125000 ( 1.144128) | |
header_traversing_and_direct_desc using xpath 0.015000 0.079000 0.094000 ( 1.212096) | |
cell_id_and_class using css 0.016000 0.093000 0.109000 ( 1.121472) |
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
div#sibling-1.1 + div#sibling-1.2 + div#sibling-1.3 > div#sibling-2.1 + div#sibling-2.2 + div#sibling-2.3 > div#sibling-3.1 + div#sibling-3.2 + div#sibling-3.3 > div#sibling-4.1 + div#sibling-4.2 + div#sibling-4.3 > div#sibling-5.1 + div#sibling-5.2 + div#sibling-5.3 > div#sibling-6.1 + div#sibling-6.2 + div#sibling-6.3 > div#sibling-7.1 + div#sibling-7.2 + div#sibling-7.3 > div#sibling-8.1 + div#sibling-8.2 + div#sibling-8.3 > div#sibling-9.1 + div#sibling-9.2 + div#sibling-9.3 > div#sibling-10.1 + div#sibling-10.2 + div#sibling-10.3 > div#sibling-11.1 + div#sibling-11.2 + div#sibling-11.3 > div#sibling-12.1 + div#sibling-12.2 + div#sibling-12.3 > div#sibling-13.1 + div#sibling-13.2 + div#sibling-13.3 > div#sibling-14.1 + div#sibling-14.2 + div#sibling-14.3 > div#sibling-15.1 + div#sibling-15.2 + div#sibling-15.3 > div#sibling-16.1 + div#sibling-16.2 + div#sibling-16.3 > div#sibling-17.1 + div#sibling-17.2 + div#sibling-17.3 > div#sibling-18.1 + div#sibling-18.2 + div#sibling-18.3 > div#sibling-19.1 + div#si |
OlderNewer