8
Cross Browser Selenium Testing with TestingBot an introductory guide by Jochen Delabi December 2011

Selenium Testing with TestingBot.com

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Selenium Testing with TestingBot.com

Cross Browser Selenium Testing with TestingBot

an introductory guide

by Jochen DelabieDecember 2011

Page 2: Selenium Testing with TestingBot.com

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.

Page 3: Selenium Testing with TestingBot.com

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

Page 4: Selenium Testing with TestingBot.com

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');    }}

Page 5: Selenium Testing with TestingBot.com

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

Page 6: Selenium Testing with TestingBot.com

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.

Page 7: Selenium Testing with TestingBot.com

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.

Page 8: Selenium Testing with TestingBot.com

Questions

Any questions? We love feedback.