gorn.ch

Tobias Ebnöther's personal blog

Selenium RC presentation

Today I had a talk at the GDI about Selenium Remote Control. The location was great!, good coffee, nice food (snacks and chocolates everywhere) and real towels at the toilets!
This is probably not very useful without my voice, but here are the slides. I worked for the first time with Apples Keynote and liked it pretty much. Probably I buy it for the next speak :)

Some example code I used:

SimpleTest:
class TestValidations extends UnitTestCase {
function testValidate() {
$foo = 3*10;
$this->assertIdentical(30, $foo);
}
}

$test = new TestValidations();
$reporter = new TextReporter();
$test->run($reporter);


Selenium:
$selenium = new Testing_Selenium("*firefox", "http://www.liip.ch/");
$browser_session_id = $selenium->start();
$selenium->open("/");

$page_title = $selenium->getTitle();
if ($page_title == "Liip AG") {
print "Title Equal: 'Liip AG'\n";
} else {
print "Title Not Equal: 'Liip AG'\n";
print "Found Title Equal: " . $page_title . "\n";
}
sleep(30);
$selenium->stop();

Selenium SimpleTest:
class SeleniumTest extends UnitTestCase
{
function setUp() {
$this->selenium = new Testing_Selenium("*chrome", "http://liip.ch");
$result = $this->selenium->start();
}

function tearDown() {
$this->selenium->stop();
}

function testLiipTitle() {
$this->selenium->open("/");
$this->assertEqual('Liip AG', $this->selenium->getTitle());
}
}

$test = new SeleniumTest();
$test->run(new TextReporter());


Preparing last minute slides:
I didn't manage to get the presentation to the beamer while keeping the slides preview

Patrice isn't the only testing evangelist anymore:
Not my best speak but the crowd was amazed about selenium
Comments (2)  Permalink
Powered by Flux CMS