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

Erster Abend am Inseli

http://gorn.ch/dynimages/480/files/moblog/2007-06/17005302-bild000.jpg

 Permalink

Map option-space to normal space

Probably every OS X user knows it, you're typing something like:
cat foo | grep bar

After typing the pipe your fingers are too slow to release the option key before pressing space. Now you've got a non-breaking space there (causes by the "⌥␣" combination) which won't be interpreted correctly by the bash. My solution is to map the non-breaking space to a normal space. To do that add the following Line to your "~/Library/KeyBindings/DefaultKeyBinding.dict" file:

"~ " = ("insertText:", "\U20");

PS: Yes there is a new "OS X" category on my blog :)
Related Entries:
Living with Terminal.app
Fixing the delete key in Terminal.app
Comments (4)  Permalink

Ausgestorbene Spezies gesichtet!

Es gibt sie also noch...
Skaters en masse!
 Permalink

Openair Zürich

Am Nachmittag noch nicht viel los:
Massive Crowd!

Am Abend gabs dann doch noch etwas mehr Leute. Am meisten erstaunt hat mich Deichkind deren Sound mag ich im normalfall nicht wirklich, aber Live - der burner. Definitiv einer der besten Live-Acts die ich je gesehen habe. Party ab der ersten Sekunde.

Ärgerlich war ein mühsames Depot System (2Fr pro Becher, Gabel, Teller und Rückgabe nur mit Jeton) sowie haufenweise unfreundlicher Deutscher Protectas die sich regelmässig durch die Crowd gepflügt haben um Leute raus zu fischen. Naja, immernoch besser als Schöttli Schläger.
Related Entries:
Wahre Zürcher...
Getting ready for the Openair Frauenfeld
 Permalink

Rossi offering new service

After closing the kitchen our all beloved Rossi is now offering a special Beer 2 Office service for us:
Beer from Bar Rossi on the Desk
Now we're ready for the summer.
Comments (3)  Permalink

Taming firefox temp files on osx

It's very annoying on OS X Firefox saves temporary files on your desktop per default. So you'll get a bunch of PDFs on your screen after a hard work day ;)

Here is how to fix it:
  • Change the Download Folder in Safari, Firefox uses it as tempDir.
  • Add the following key to your config to keep the tempDir clean (Firefox will delete temp files after closing): app.helperApps.deleteTempFileOnExit = true
Related Entries:
xchat on OSX / Command as alt
Setting up relayhost for postfix on OSX (with ssl and authentication)
MacHeist Software Bundle
Leopard native apache with custom (64bit) PHP
Leopard PHP / Apache Package with pecl support
 Permalink
1-7/7
Powered by Flux CMS