Wednesday, April 14, 2010

Simple But Effective

Thought I would toss out a quick post about a few simple lines of code that came to save the day.

Have no fear If Else is here to save the day!

We do product line development where we have twelve unique products whose foundation is a common code base, but each product has variant points and are updated incrementally.

Recently we deployed 4 of the 12 products and numerous automation scripts broke.  With a little investigation there was a difference in a single page flow.

To the rescue was:

if browser.element? "some_css_locator" "some_css_locator", :wait_for => :page

All automation tests are now passing!

The really cool part is this code will work even if the new page flow is deployed to the other 8 products.

Long live css locators and the If Else!

Friday, April 02, 2010

Do your Homework!

Good morning!  This is a quick post to my blog rather than making a tacky post on a users forum.  I believe we all gain very valuable information and assistance from user forums.  I pay close attention to a couple of forums and groups, but here is a snippet of a post on the JMeter forum that gets my feathers ruffled.

"I wnat to perform load,performance and capacity testing for a web site. can
you guide me how to do that

Do you see anything wrong with this post?

OK, there are typing errors, but what I see is an individual who has not even attempted to learn about the topic.  These individuals need to install the tools.  Follow the examples learn what they can then post intelligent questions.

So far the forum has explained to this individual the differences between load and performance testing and provided this individual with links to all the starting material.  Now with this post they expect the forum to do the work for them.

Please people put in a little bit of effort!