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 ExampleTest extends PHPUnit_Extensions_TestingBotTestCase | |
{ | |
public static $browsers = array( | |
array( | |
'name' => "Windows firefox 8", | |
'platform' => 'Windows', | |
'browser' => 'firefox', |
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
curl http://hub.testingbot.com:4444/selenium-server/driver/ -d 'cmd=getNewBrowserSession&client_key={{key}}&client_secret={{secret}}&1=iexplore&2=http%3A%2F%2Fwww.google.be%2F' |
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
import com.thoughtworks.selenium.*; | |
import org.junit.*; | |
import com.testingbot.*; | |
public class SmokeTest extends TestingBotTestCase { | |
public void setUp() throws Exception { | |
TestingBotSelenium selenium = new TestingBotSelenium( | |
"hub.testingbot.com", | |
4444, | |
"{\"client_key\": \"[key]\"," + |
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
{ | |
"capabilities": | |
[ | |
{ | |
"browserName": "firefox", | |
"version" : "10", | |
"platform" : "LINUX", | |
"alias" : "FF10", | |
"maxInstances": 3, | |
"seleniumProtocol": "Selenium" |
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", | |
:platform => "WINDOWS", |
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
import unittest | |
from selenium import webdriver | |
class SimpleTest(unittest.TestCase): | |
def setUp(self): | |
desired_capabilities = webdriver.DesiredCapabilities.FIREFOX | |
desired_capabilities['version'] = '11' | |
desired_capabilities['api_key'] = 'xx' | |
desired_capabilities['api_secret'] = 'xx' |
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
import junit.framework.TestCase; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.remote.*; | |
import java.net.URL; | |
import java.util.concurrent.TimeUnit; | |
public class SimpleTest extends TestCase { | |
private WebDriver driver; | |
public void setUp() throws Exception { |
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
using NUnit.Framework; | |
using System; | |
using Selenium; | |
using System.Web; | |
using System.Text; | |
using System.Net; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Remote; | |
namespace Test |
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
import junit.framework.TestCase; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.remote.*; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.concurrent.TimeUnit; | |
import junit.framework.AssertionFailedError; | |
import junit.framework.Test; | |
import junit.framework.TestListener; | |
import junit.framework.TestResult; |
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
import junit.framework.TestCase; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.remote.*; | |
import java.net.URL; | |
import java.util.concurrent.TimeUnit; | |
public class SimpleTest extends TestCase { | |
private WebDriver driver; | |
public void setUp() throws Exception { |
OlderNewer