selenium testing with testingbot.com

Post on 27-Jun-2015

1.727 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Talk about how easy it is to run Selenium tests on TestingBot.com

TRANSCRIPT

Cross Browser Selenium Testing with TestingBot

an introductory guide

by Jochen DelabieDecember 2011

What is Selenium?

• Selenium is the industry-standard framework to perform functional tests on browsers.

• It has been around for years, still active development.

• Using Javascript or client API to control browsers.• Easy to learn and use with the Selenium IDE• Write a test once, run it across multiple browsers and

platforms.

TestingBot.com - Run Selenium testsWith TestingBot.com you can run cross browser tests in an easy way.

• Create a Selenium test• Use one of our plugins• Run the test on the browsers you want• Instantly see test results: screenshots and video of the test

running

Example of a Selenium TestRunning your first test is easy, see the example below:

<?php

class ExampleTest extends PHPUnit_Extensions_TestingBotTestCase{    public static $browsers = array(           array(               'name' => "Windows firefox 8",               'platform'       => 'Windows',               'browser'        => 'firefox',               'browserVersion' => '8'           )       );    protected function setUp()    {        $this->setHost('hub.testingbot.com');        $this->setPort(4444);        $this->setBrowserUrl('http://www.google.com/');    }

    public function testTitle()    {        $this->open('/');        echo $this->getEval('window.location.href');    }}

Selenium Grid

Selenium Grid is a network of Selenium RC nodes, supporting the selenium and Webdriver protocol.

The grid we use on TestingBot.com contains nodes hosted on Amazon's Cloud Infrastructure. We support all major browsers:

• IE• Firefox• Safari• Chrome

CI - Continuous Integration

While developing your app, it is convenient to have something that will run your tests on a timely basis to verify if nothing breaks.

At TestingBot.com we provide a feature where we run your tests on the interval you specify and alert you when something is wrong. This way you can easily fix bugs.

Selenium Testing - The Future

In the near future we'll see more focus on mobile app testing and faster testing with WebDriver.

At TestingBot.com we'll focus on mobile testing, Jenkins support and Selenium integration plugins.

Questions

Any questions? We love feedback.

top related