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
| task :cucumber_sauce do | |
| Parallel.map(@browsers, :in_threads => @browsers.size) do |browser| | |
| begin | |
| puts "Running with: #{browser.inspect}" | |
| ENV['SELENIUM_BROWSER_OS'] = browser[:os] | |
| ENV['SELENIUM_BROWSER_NAME'] = browser[: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
| /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:156:in `[]=': undefined method `[]=' for nil:NilClass (NoMethodError) | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:207:in `handle_error' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:48:in `process!' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:43:in `loop' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:43:in `process!' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:11:in `process' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/configuration/actions/file_transfer.rb:40:in `transfer' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/configurati |
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
| /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:156:in `[]=': undefined method `[]=' for nil:NilClass (NoMethodError) | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:207:in `handle_error' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:48:in `process!' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:43:in `loop' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:43:in `process!' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/transfer.rb:11:in `process' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/configuration/actions/file_transfer.rb:40:in `transfer' | |
| from /Users/dima/.rvm/gems/ree-1.8.7-2010.02@groupon/gems/capistrano-2.5.19/lib/capistrano/configurati |
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
| Rake::Task[ :run_browser_tests ].execute({ :browser_name => browser[:name], | |
| :browser_version => browser[:version], | |
| :browser_od => browser[:os] }) |
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
| Notes from my talk: | |
| Cucumber: | |
| http://cukes.info/ | |
| Rspec: | |
| http://rspec.info/ | |
| Find selenium here: | |
| http://seleniumhq.org/ |
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
| //Change private to protected | |
| protected UrlMapper getUrlMapper(String method) { | |
| if ("DELETE".equals(method)) { | |
| return deleteMapper; | |
| } else if ("GET".equals(method)) { | |
| return getMapper; | |
| } else if ("POST".equals(method)) { | |
| return postMapper; | |
| } else { | |
| throw new IllegalArgumentException("Unknown method: " + method); |
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
| /* | |
| Copyright 2012 Selenium committers | |
| Copyright 2012 Software Freedom Conservancy | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
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
| require 'rubygems' | |
| require 'em-proxy' | |
| require 'http_parser.rb' | |
| require 'uuid' | |
| require 'uri' | |
| PROXY_SERVER_HOST = "127.0.0.1" | |
| PROXY_SERVER_PORT = ENV['PROXY_SERVER_PORT'] || 9001 | |
| output = "tmp/blocked_external_urls.log" |
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
| \vlc\vlc.exe screen:// :screen-fps=4 :sout=#transcode{vcodec=h264,venc=x264{profile=baseline,level=3.0,nocabac,nobframes,ref=1},deinterlace,vb=200,scale=1}:file{dst='tmp\test_result_video.mp4'} |
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
| require 'rubygems' | |
| require 'em-proxy' | |
| require 'http_parser.rb' | |
| require 'uuid' | |
| require 'uri' | |
| Proxy.start(:host => "127.0.0.1", :port => 9001) do |conn| | |
| @p = Http::Parser.new | |
| @p.on_headers_complete = proc do |h| |
OlderNewer