Testing express

Testing express

Monday, June 25, 2012

Why every release is a "ThRilleR"


I bet you too might have experienced this. Thrillers have
  • Tension
  • Suspense
  • Excitement 
"A thriller is villain-driven plot, whereby he or she presents obstacles that the hero must overcome" - wikepedia

I agree with the above statement from wiki. Now you need to fit in the characters in the above statement.
Don't take it seriously ;)

I always keep thinking, why this happens?

Improper planning
Lack of motivation in team
Lot of changes
Unexpected deadlines
Unreasonable expectations
Lacking a good leader
Too much commitment
Casualness

Add on, if you can share from your experiences

"Paani da rang vekh ke, akhiyaan cho hanju rul de" = "Seeing the color of water, tears roll down my eyes" -AK

Saturday, May 19, 2012

Adding power to browsers - node.js

As a tester I need to keep myself updated with the latest technologies and tools, So I thought of putting down my learning experiences here

There is a new technology in the javascript land called "node.js", it is being used in one of our projects. This gave me some motivation to explore it.

I was thinking, where does node.js fit in the knowledge/information I have? I started with browser as a starting point. The main basic elements of a browser are HTML, JavaScript & CSS. I will be referring JavaScipt as js, because I may need to use it often. 
what problem does js solve?
Html can serve only static webpages, js can serve dynamic webpages.
I tried to find out more information about js:

1) js is an interpreted language with object-oriented capabilities 
2) js runs in a single threaded environment, meaning multiple scripts cannot run at the same time 
3) Each of the popular browsers use different js engines
IE – Chakra
FF – SpiderMonkey(built in C++), Rhino(built in Java)
Safari – Nitro
Chrome – V8

What is node.js?
"node is a bunch of sugar on top of virtual machine v8" --Quote from Ryan Dhal, creator of node.js

It means node is a tool built on top of google's js engine v8, this is the same engine which chrome browser uses.

What problem does node.js solve?
js has concurrency issues, it is not possible to do several things at same time, node addresses this concurrency problem. you can run multiple scripts at same time. It means response times are fast.

Eventhough node solves this problem, it has some limitations
its still young and immature, you can listen to this video to know more about node from the creator ryan dhal http://www.youtube.com/watch?v=jo_B4LTHi3I

Important points
  • generally js is executed in browsers, with node you can execute js from outside a browser
  • node has a command line tool/console, similar to irb in ruby
  • you can execute javascript file from the command line tool/console using node command
For testers this can be a important tool in the toolkit for learning & exploring js, which is an important element of a browser.

Friday, May 4, 2012

Automation - The buzz word

There is a flood of automation tools in market in the past few years. "Automation" has become a buzz word. Every manager wants his team to find automated solutions to speed up the testing efforts.

From a tester's perspective, what does it mean?

1. Opportunity to explore and learn new tools
2. Learn a new scripting language that can give  new insight to a tester
3. Break routine patterns as a tester. Eg; thinking beyond black box
4. Chance to think from a development perspective

From a management perspective, what does it mean?

1. How much do we save with automation
2. Can we automate everything?
3. Can we move testers to other projects, because automation will free up their time
4. There is a new automation tool in market, can we do a quick POC and implement?

There are lot of expectations that cannot be fulfilled because the perception is "Automation can solve all problems on click of a button"

This cannot be true, because automation is similar to development effort and can be complex if you plan to automate big projects.

Few questions to ask before thinking of automation:

1. What are the testing requirements?
2. What tools are available that suit the testing requirements?
3. Is the product stable enough to start automation?
4. How much do we want to automate?
5. Does the tool support automation for the application under test(AUT) or do we need testability in the AUT ?
6. Are the testers skilled enough to do automation?
7. If testers don't have automation skills, is company ready to groom them or hire people with skills?
8. What value does automation add? 
9. What are the expectations/timelines for automation efforts?
10. How mature is the automation tool?
11. What community support does it have?
12. Is the tool open-source or commercial?

Automation is not bad, It can be a powerful tool in a testers toolkit, if used effectively. Over use and hype of "Automation" will not solve problems. Thinking and Implementing smart automation solutions is the need.






Wednesday, November 16, 2011

Convert a string to a list

Ruby is one of my favourite languages. Its because of its ease of use. I always had  a problem of converting a long string as a list to put in excel. Before I knew any scripting I used to do it manually by copy pasting each word of string in excel. This was not so frequent, so I did not pay much attention but this situation gave me some motivation. I thought of finiding a solution using ruby. Its damn easy and a permanent solution. you can do it only with very few lines of code

fruits = "apple,mango,pear,water melon,guava,black and blue (berries)"
list = [fruits]
list.each do|ps|
  a = ps.split(/,/)
  puts a
end

Output is:
apple
mango
pear
water melon
guava
black and blue (berries)

Now I can easily put it in an excel

Explanation:

I am storing the string in a string variable, then passing it to an array list. Then I iterate over the array and split when there is a ',' and then store each element in variable 'a' and print it on screen.

I know this can be done in many other ways, I would love to see that. feel free if you have more better solutions. My intention here is to solve my problem and get some hands on with ruby.

Tuesday, November 15, 2011

Good bug report

This post was born as a result of message from a colleague tester who is new to this field of testing.

[12:51:41 PM] xyz: i was playing and there was hang problem
[12:51:58 PM] xyz: and all of a sudden i got that msg and i was out


My first reaction was not good, but later I realized even I have done these things when I was a novice. So, I planned to help tester in a simple way

What is a good bug report? what is its main purpose?
A good bug report consists of all relevant information for a developer about the bug
Main pupose is to help developer reproduce and fix it

What is all relevant information?
Short summary of the defect that clearly describes the defect
Environment details
Is it reproducible? if yes steps to reproduce
Actual result vs expected result
Any screenshots or videos of the defect attached?
Any specific build no
Which area this bug belongs to in the software/application you are testing?
Test data used
What is the severity, means how much damage it does?

Who is the audience of bug reports?
Mostly developers, but there can be testers & managers who might be interested

If you feel I have missed any point or you can add to it from your experience feel free to do that

Monday, November 14, 2011

He is not technical?

Scene: In a scrum a developer was explaining an issue to a tester, manager interrupts & tells, please explain him functionally, "he is not a technical person".

what does this mean "He is not technical ?", I keep wondering

should the tester get offended? or appreciate manager for protecting him?

I feel testers need to be both functional and technical to do justice for their role. Its a myth that a tester need not be technical or he commits a crime if he is inclined towards the technical aspects of software. Infact it is an important skill.

Friday, September 2, 2011

Back after a long time

I realized that blogging is not a easy job. I appreciate people who blog regularly because it needs discipline, time management and proper organization of ideas. I take some inspiration from them and get things moving in my blog. It been a long gap since I updated my last post. There are many things I would like to update.

I still have my goal this year to improve my writing and blogging skills. I have been trying to push myself to do many things recently but not so encouraging results.  

Thats all for now

adios