Technical

Apart from Technical Topics, increasingly i find myself wanting to write about other topics that interests me - Entreprenuership and Business, Leadership, Africa, Service Industry (e.g Hotels, Restaurant). My writings would always represent my opinions and it might change from time to time.

Cucumber unicode support

I ran into a problem today where some french and spanish characters were being displayed strangely. And this made my test to fail, After some poking around in google i can across a post that suggested adding require ‘cucumber/formatter/unicode’ to the env.rb and that seem to have sorted the problems i was having. Hopes this saves you some time.

Performance Testing experience using Ant and Jmeter - Part 2

In my last blog post, i described how i have used jmeter-plugins at my current client site, now i am faced with another problem , i need to be able to run these performance test from command line, in other for these performance tests to be executed in a CI environment such as teamcity. A quick search brings to light the ant jmeter task which is an ant task for running jmeter test.

Performance Testing experience using Ant and Jmeter - Part 1

Jmeter is a well known open source performance/load testing tool and to be fair it does a lot of stuff really well. if you wants to do some quick performance testing without a whole lots of infrastructure around it then it is great. I started out my task with jmeter with some objectives: <li> A tool that i could integrate into a CI tool such as teamcity</li> <li> Meaningful graphs that could be easily interpreted by any one in the team</li> <li> Able to integrate the graphs into teamcity</li> <li> Able to monitor the performance of the website under test.

Screenshare tool for my trainings

Occasionally i invite people round to my house for testing or automation training which sometimes i find inconvenient. In other situation, someone on other side of town need my help and i cant. I have recently come across the tool - join.me and it is awesome, it allow mwe to share my screen with people and you can give them control ove your machine as well. I think this is great !

Stumbled on Chrome Net Internal

Sometime i would use my blog as a place to keep interesting stuff for future exploration. I came across the chrome net internals today and i think it exposes a lot of useful information that might be useful to testers when testing a web application. To access the chrome net internals, navigate to chrome://net-internals/ on a google chrome browser. I would be spending some more time in the future exploring this but for now its back to work.

Watir-Webdriver: Website certificate does not come from a trusted source

A colleague came across this problem while executing our acceptance tests. The issue was related to the fact that the SSL certificate for the site was named differently from the domain on which the test were being executed on . Hence, we got this error: “xxx.xxx.xxxx uses an invalid security certificate.The certificate does not come from a trusted source.The certificate is only valid for <a id=“cert_domain_link” title=“xxx.xxx.com”>xxxx.xxxxx.com</a>The certificate will not be valid until 13-Jul-11 10:28 AM.

Test automation click might not completely simulate an actual human click

I have been working at this client where i am opportuned to use cucumber, watir-webdriver and i came across this problem today. The application i am testing is an e-commerce site and i am writing test for a page on which i click on an item and the item appears on the shopping basket area of the site. My code look like [code] def select_item(item_name) @browser.li(:text => /#{item_name}/).link(:class_name => “addOptions”).click Watir::Wait.

Redirecting blogger post to wordpress.com

I moved my blog from the blogger one to wordpress and i wanted to ensure that people that have bookmarked post on my old blog get redirected to the new one on wordpress as i wouldnt be update the old blog anymore. I found a lot of effort by different people and all the stuff that was suggested using javascript didnt work for me, what i got was regardless of the page you are on my old blogger site, you would be redirected to my homepage on the wordpress site which is not very helpful.

Could not start Selenium session due to browser url not including http

I was helping a friend out last weekend, and he was getting an error java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89) This was strange because looking at his code everything seem to be properly set up, i did some debugging and I discovered that the session in the selenium object was null, this suggested that we weren’t initializing the selenium object properly.

could not start Selenium session: Failed to start new browser sesion

I have heard people have problems with starting firefox3 while using selenium1.0.x on windows7. The exact error message is similar to this: java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! Please add the directory containing “firefox.exe” to your PATH environment variable, or explicitly specify a path to Firefox 3 like this: *firefox3c:\blah\firefox.exe at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89) I attempted to fix this by putting the path in the environment variable of the windows7 machine and it still did not work.