Saturday, May 14, 2011

Transparency and Business

 

I tried to catch up my unread blogs and read a blog by Seth Godin.  In Why you might choose to be in favor of transparency, he made the case for how businesses can benefit from transparency. I would like to add some more points.

Businesses take extra care for not leaking their business plans, that is the conventional view every body agrees. It is based this following argument, in a cut throat competition, knowing what the competitor going to do, can be a big advantage. I also had that view until I read Ricardo Semler’s Maverick : The Success Story Behind the World's Most Unusual Workplace. Semler showed to world that if you keep your plans dynamic, knowing what they could do, can’t bring an advantage to the competitor. When competitor working on that plan, it could be changed in Semelr’s factories. Workers debate and update the plans every day, every week so there no static plan to rely on.

Seems to be illogical, isn’t it?

Think about open source code. Lot of people thought that by making the source code open, security will be compromised. It was proved otherwise.

If we extend this argument as Godin did in that blog, Internet removed the these barriers and opened the flood gates of knowledge. Transparency always brings benefits. 

Sunday, May 8, 2011

Standard Scripting languages in Test Automation

 

By standard scripting languages, I mean, JavaScript, Python etc. To know more about how non standard scripting languages used in test automation, please read Hey Vendors, Give Us Real Scripting Languages by Bret Pettichord. Even, though, it was written in 2001, the points made is still valid today.

Another aspect is using the standard locators in UI element locators. Let me explain with one example. I had a OR condition in  the element locator. In non standard locators, I am forced use this following script

Check if Element A is present

if A is present click A

else

Click Element B

Which means I need to make at least two calls to check if the particular element is present.

Consider the multiple selector option and multiple attribute selector in jQuery,

Multiple Selector (“selector1, selector2, selectorN”)

Multiple Attribute Selector [name="value"][name2="value2"]

Click (Element A,Element B)

If I can use the above selector formats, just one step is enough. Add to this how many lines I don’t need to type to check this. Instead of four lines, script will have only one line. I choose jQuery as example. Those formats are actually CSS selectors.

Next time if you’re still using a old custom format for element locators, think about CSS.

ShareThis

raja's shared items

There was an error in this gadget

My "Testing" Bundle