Friday, 27 January 2012

Post condition: getting all the windows closed

We've got a separate remote pc for tests execution. I don't rdp there often, though once I do, I have to close lots of windows manually :(
That's because some of my tests have to deal with popups and new windows, however, only the current window got closed until I applied following post condition

Tuesday, 24 January 2012

How to automate Omniture Debugger. Omniture Debugger Page Object.

That is quite a task from the first point of view, taking into consideration that the debugger itself is javascript based. In addition the task gets a condition, when you know that the Omniture Debugger page actually does not stop loading at FireFox - it transfers data from some omniture host, so, please be the following solution works for IE only. Though, after all, I do not really care, because I do not tests omniture, I test properties are accessed by debugger
Let's review what do we have:
  • javascript that actually calls omniture debugger page. Normally you use it as a bookmark.
  • some page that is considered as a referrer to Omniture Debugger page
What we need to have at the end:
  • open Omniture Debugger page in a popup and switch to it
  • ensure that variable or property we are searching for exists on the page and has the appropriate value

Friday, 20 January 2012

hub.bat + webdriver.bat + JSON configuration

Hope someone will consider it helpful. Do not forget to resolve the ports at firewall.

hub.bat
@echo off
cd c:\selenium
java -jar selenium-server-standalone-2.14.0.jar -role hub
webdriver.bat
@echo off
cd c:\selenium
java -jar selenium-server-standalone-2.14.0.jar -role webdriver -nodeConfig myconfig.json -hub http://localhost:4444/grid/register

Tuesday, 17 January 2012

How to debug selenium / webdriver tests live

I don't really remember where have I found that, yet I guess it would be nice to have the quick reference here.
What I have are:
  • Visual Studio 2010 Pro
  • hub + webdriver started
  • NUnit based tests
What I need is:
  • start a test execution both in debug or normal mode directly from Visual Studio
  • an ability to use breakpoints, watchers etc

Monday, 16 January 2012

Why selenium?

I utterly understand that there are lots of talks around the subject and there is no sense to pick it up again, yet I just want to ensure myself that I have chosen correct tool to work with. If you agreed the reasons I would really appreciate the fact that my first post here has got several followers.
Ok, let's try reviewing it through one by one , avoiding obvious reasons like selenium is free, cross platform/browser and bla bla bla