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 'rspec' | |
| require 'capybara/rspec' | |
| require 'testingbot' | |
| require 'testingbot/capybara' | |
| TestingBot::config do |config| | |
| config[:desired_capabilities] = { :browserName => "internet explorer", :version => 9, :platform => "WINDOWS" } | |
| end | |
| describe "People", :type => :request do |
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
| caps = { | |
| :browserName => "firefox", | |
| :platform => "WINDOWS", | |
| :blacklist => 'www.chegg.com' | |
| } | |
| urlhub = "http://key:secret@hub.testingbot.com:4444/wd/hub" | |
| client = Selenium::WebDriver::Remote::Http::Default.new | |
| client.timeout = 120 | |
| @webdriver = Selenium::WebDriver.for :remote,:url => urlhub , :desired_capabilities => caps,:http_client => client |
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
| from threading import Thread | |
| from selenium import webdriver | |
| import time | |
| API_KEY = "key" | |
| API_SECRET = "secret" | |
| def get_browser(caps): | |
| return webdriver.Remote( | |
| desired_capabilities=caps, |
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/other/websocket.rb | |
| +++ b/other/websocket.rb | |
| @@ -13,11 +13,12 @@ require 'stringio' | |
| require 'digest/md5' | |
| require 'digest/sha1' | |
| require 'base64' | |
| +require 'openssl' | |
| class EClose < Exception | |
| end |
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 'testingbot' | |
| gem "selenium-client" | |
| gem "selenium-webdriver" | |
| require "selenium-webdriver" | |
| require "selenium/client" | |
| caps = { | |
| :browserName => "firefox", | |
| :version => "13", |
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 'rspec' | |
| require 'capybara/rspec' | |
| require 'testingbot' | |
| require 'testingbot/capybara' | |
| TestingBot::config do |config| | |
| config[:desired_capabilities] = { :browserName => "ipad", :platform => "MAC" } | |
| end | |
| describe "People", :type => :request do |
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
| client = Selenium::WebDriver::Remote::Http::Default.new | |
| client.timeout = 120 | |
| @webdriver = Selenium::WebDriver.for :remote,:url => urlhub , :desired_capabilities => caps, :http_client => client | |
| @webdriver.navigate.to "https://m.xoom.com/" | |
| wait = Selenium::WebDriver::Wait.new(:timeout => 30) | |
| wait.until { @webdriver.find_element(:link_text => "Log In").displayed? } |
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
| TestingBot::config do |config| | |
| config[:host] = "localhost" | |
| config[:port] = 4445 | |
| end |
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
| phpunit.xml | |
| ------------------ | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <phpunit | |
| backupGlobals="false" | |
| colors="true"> | |
| <testsuites> |
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
| <?php | |
| class SimpleTest extends PHPUnit_Extensions_TestingBotTestCase | |
| { | |
| protected function onNotSuccessfulTest(Exception $e) | |
| { | |
| mail("mail@mail.com", "Failed test", $e->getMessage()); | |
| parent::onNotSuccessfulTest($e); | |
| } | |