- Docs
-
Environment.html
- GET Get Team Info
- GET Get users in your team
- GET Retrieve a specific user in your team
- POST Create a user in your team
- PUT Update a user in your team
- POST Reset credentials for a specific user in your team
- GET List Codeless Tests
- GET Specific Codeless test info
- POST Create a Codeless test
- DEL Delete Codeless test
- PUT Update Codeless test
- POST Schedule Codeless Test
- POST Codeless Test Alert
- POST Codeless Test Report
- POST Modify Test Steps
- GET List Test Steps
- GET Get Browsers for Test
- POST Update Browsers for Test
- POST Run a specific Codeless test
- PUT Stop a specific Codeless test
- POST Run all Codeless tests
- GET Test Job
- POST Webhook
- GET List Codeless Suites
- GET Get Codeless Suite Details
- POST Run a specific Codeless suite
- POST Create a Codeless Suite
- POST Delete a Codeless Suite
- GET Get Browsers for Codeless Suite
- POST Update Browsers for Codeless Suite
- GET Get tests for a Codeless Suite
- POST Add tests to a Codeless Suite
- DEL Remove tests from a Codeless Suite
- POST Upload to Storage
- POST Update uploaded File
- GET Uploaded File Data
- GET Uploaded files List
- DEL Delete a file from Storage
Intro
API V1
Browsers & devices
GET List of browsersUser
Team Management
Tests
Builds
Devices
Screenshots
Tunnel
Codeless Automation Tests
TestLab Suites
TestingBot Storage
Configuration
Share
How to select the Operating System and Browser you want to run your tests on
You can choose between various browsers and operating systems to run your test on.
After you've determined the browser and OS you want to run your test on, you need to specify what you would like in your test.
Below are some examples on how to do this with Selenium RC code:
PHP Code:
In the example below we will run the test on Firefox 8.
Copy
<?php
class SimpleTest extends PHPUnit_Extensions_TestingBotTestCase
{
protected function setUp()
{
$this->setBrowserVersion(8);
$this->setPlatform('Windows');
$this->setBrowser('Firefox');
}
}
Ruby Code:
In the example below we will run the test on Safari 5.
Copy
require "rubygems"
gem "selenium-client"
require "selenium/client"
gem 'test-unit'
require 'test/unit'
gem "testingbot"
require "testingbot"
class ExampleTest < TestingBot::TestCase
attr_reader :browser
def setup
@browser = Selenium::Client::Driver.new \
:host => "hub.testingbot.com",
:port => 80,
:browser => "firefox",
:version => "latest",
:platform => "WINDOWS",
:url => "https://testingbot.com",
:timeout_in_second => 60
browser.start_new_browser_session
end
C# Code:
In the example below we will run the test on Internet Explorer 9.
Copy
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
{
[TestFixture()]
public class Test
{
private IWebDriver driver;
[SetUp]
public void Init()
{
DesiredCapabilities capabilities = DesiredCapabilities.InternetExplorer();
capabilities.SetCapability(CapabilityType.Version, "9");
capabilities.SetCapability("api_key", "REPLACE_API_KEY");
capabilities.SetCapability("api_secret", "REPLACE_API_SECRET");
driver = new RemoteWebDriver(
new Uri("http://hub.testingbot.com/wd/hub/"), capabilities);
}
[Test]
public void TestCase()
{
driver.Navigate().GoToUrl("https://www.google.com");
StringAssert.Contains("Google", driver.Title);
}
[TearDown]
public void Cleanup()
{
driver.Quit();
}
}
}