Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block aaronhumerickhouse

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View file_field in span.html
<link rel="stylesheet" type="text/css" href="">
<link rel="stylesheet" type="text/css" href="">
<link rel="stylesheet" type="text/css" href="">
<link rel="stylesheet" type="text/css" href="">
<body id="photo_gallery" class="prime_v3 logged_in">
<div id="top"></div>
aaronhumerickhouse / click_test.rb
Created Jan 2, 2015
Selenium Script for Click Defect
View click_test.rb
require "selenium-webdriver"
profile =
profile.native_events = true
driver = Selenium::WebDriver.for :firefox, profile: profile 'http:/'
element = driver.find_element(:name, 'q')
element.send_keys 'Hello Webdriver!'
View gist:7bd1395c9c723bfcf757

#Time Analysis of Running Selenium Tests in Parallel

##Introduction Having recently joined Sport Ngin as an Automation Engineer, I needed to choose a strategy to execute an Automation Regression Suite. With the vastness that is our web applications, we need to be able to perform Automated Regression Tests in a way that avoids disrupting development workflow without sacrificing the value it provides. Thankfully there are tools that aim to balance usefulness and unobtrusiveness. I'm going to talk specifically about tools based around Selenium WebDriver. Selenium Grid 2 easily allows for testing multiple browsers on multiple computers. There's BrowserStack and Sauce Labs which are SaaS services that run on top of Selenium Grid 2 utilizing Amazon's AWS EC2 instances. There are also other tools that help create distributive systems, such as Jenkins. I've created a handful of Automation Frameworks in the past and have run them on a local server farm as well as in Sauce Labs and in BrowserStack. Comparing th

aaronhumerickhouse / test1_spec.rb
Created Nov 13, 2014
Test executed in comparison for Sauce Labs, Browserstack, Selenium Grid 2, and a Distributed Build
View test1_spec.rb
require 'selenium-webdriver'
require 'spec_helper.rb'
describe 'Selenium Sample' do
it 'drives the example', :group_1 => true do 'Entering Aaron Humerickhouse into name_element'
name_element = @driver.find_element id: 'entry_1000000'
name_element.send_keys "Aaron Humerickhouse" 'Filling in story_element'
View gist:f9f17ad6b47815bbc0ed
require 'selenium-webdriver'
require 'spec_helper.rb'
#@logger, @wait, and @driver are all defined in spec_helper
describe 'Selenium Sample' do
it 'drives the example', :group_1 => true do 'Entering Aaron Humerickhouse into name_element'
@wait.until { @name_element = @driver.find_element id: 'entry_1000000' }
@name_element.send_keys "Aaron Humerickhouse"
View gist:d3e7e489ac90b0e96b62
A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.
Stack trace
javax.servlet.ServletException: java.lang.NoClassDefFoundError: hudson/maven/reporters/SurefireAggregatedReport
at org.kohsuke.stapler.Stapler.tryInvoke(
at org.kohsuke.stapler.Stapler.invoke(
at org.kohsuke.stapler.MetaClass$6.doDispatch(
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(
at org.kohsuke.stapler.Stapler.tryInvoke(
View gist:d00e4504011f791edc7f
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart -
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
aaronhumerickhouse / parallel_rspec.rb
Last active Aug 29, 2015
Parallel execution for RSpec and Browserstack
View parallel_rspec.rb
desc 'Runs Selenium Tests in browserstack in parallel'
task :browserstack_spec_parallel, [:opts] do |t, args|
puts "Running with: #{@browser.inspect}"
# Get all files
pattern = args[:opts].split('--pattern')[-1].split(' ')[0].gsub('"', '')
test_files = FileList[pattern].shuffle
You can’t perform that action at this time.