Skip to content

Instantly share code, notes, and snippets.

View richdownie's full-sized avatar

Rich Downie richdownie

View GitHub Profile
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
544ff11248f6 selenium/standalone-chrome-debug "/opt/bin/entry_point" 3 seconds ago Up 2 seconds 0.0.0.0:4422->4444/tcp, 0.0.0.0:5922->5900/tcp pensive_mestorf
~ $docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
544ff11248f6 selenium/standalone-chrome-debug "/opt/bin/entry_point" About a minute ago Exited (127) About a minute ago pensive_mestorf
$ brew install caskroom/cask/brew-cask
$ brew cask install licecap
What I Test with:
gem 'cucumber'
gem ‘selenium-webdriver
gem 'rspec'
gem 'page-object'
gem 'gmail'
gem 'httparty'
gem 'twitter'
gem 'twilio-ruby'
gem ‘ruby-jmeter’
gem 'cucumber'
gem 'rspec'
gem 'page-object'
gem 'thor'
gem 'gmail'
gem 'httparty'
gem 'twitter'
gem 'twilio-ruby'%
Windows Users Get Started!
Install chocolatey (instructions on chocolatey.org)
At a command prompt:
> cinst gitextensions
> cinst ruby
> cinst gow
> cinst SeleniumChromeDriver2
> cinst IEDriverServer
require 'blackboxd'
require 'cucumber'
require 'selenium-webdriver'
require 'rspec'
Before do
@driver = Selenium::WebDriver.for :chrome
@time = 15
end
richdownie@mbp ~/code/cyborg (git::master) $ heroku run rake db:reset RAILS_ENV=production
Running `rake db:reset RAILS_ENV=production` attached to terminal... up, run.1676
Your Gemfile lists the gem cucumber (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem selenium-webdriver (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem rspec (>= 0) more than once.
You should probably keep only one of them.
richdownie@mbp ~/code/cyborg (git::master) $ heroku pg:info
=== HEROKU_POSTGRESQL_WHITE_URL (DATABASE_URL)
Plan: Dev
Status: available
Connections: 1
PG Version: 9.2.7
Created: 2013-05-17 13:54 UTC
Data Size: 8.7 MB
Tables: 7
Rows: 3097/10000 (In compliance)
2014-04-14T12:58:06.013042+00:00 app[web.1]: Processing by MetricsController#dropin as HTML
2014-04-14T12:58:06.013042+00:00 app[web.1]: Parameters: {"scenario"=>"features/Advantage.feature:11", "browser"=>"chrome"}
2014-04-14T12:58:06.122036+00:00 app[web.1]: Completed 500 Internal Server Error in 109ms
2014-04-14T12:58:06.124068+00:00 app[web.1]:
2014-04-14T12:58:06.124068+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::InsufficientPrivilege: ERROR: permission denied for relation metrics
2014-04-14T12:58:06.124068+00:00 app[web.1]: : INSERT INTO "metrics" ("browser", "comment", "created_at", "exception", "name", "scenario", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"):
2014-04-14T12:58:06.124068+00:00 app[web.1]: app/controllers/metrics_controller.rb:4:in `dropin'
2014-04-14T12:58:06.124068+00:00 app[web.1]:
2014-04-14T12:58:06.124068+00:00 app[web.1]:
Before do
@driver = Selenium::WebDriver.for :chrome
@domain = "https://google.com"
@time = 2
end