Wednesday, 30 December 2009

Automation…. Who needs the most?

[With all due respect to my automation colleagues and friends, I am writing this post…]

“I want to see a semi automatic washing machine.” A lady rushed into an electronic shoppee almost shouting to the boy at the counter. Everybody including me and my wife looked at her with a mixture of surprize and anger. (What were we doing there? Guys in time of recession, what more can we do than some window shopping).

I was eager to know and observe the response of the sales-man at the counter
. He politely started showing her various brands. (This is why we call customer a king.)
That didn’t please the lady; the sales person was insisting her to buy a fully automatic one. She kept on saying that she wants a semi-automatic as in their area there is a problem of water supply. And she went off.

Something struck me and I decided to take this up as a topic for my next post, Automation. (Wait a sec. That does not mean that I know in and out of automation at all.
My fellow friends can start objecting something if you want to once you read this complete post.).

If you observe above given conversation/para carefully, what do you notice? A clear stated requirement (semi-automatic), a constraint (limited/problematic water supply) implementing the suggested solution (fully-automatic). That’s it? I feel we can look beyond that.

When we see the efficient / effective use of test automation in the software industry, we should also see the motive, the purpose behind it. There can be following purposes behind automation…
1) Organisation wants it to be done to improve quality of the software.
2) Customer wants to see the efficiency & effectivity in testing with the help of good sound regression tests.
3) Tester needs to avoid and remove the repetitive and tedious tasks.

What I feel is that these days, organisation is so much focused on the first two aspects that they do tend to forget the most important part (according to me- you can contradict) the third one.

By no means am I saying that other motives are not important. Customer goal + organisational objectives are the key to the success of every industry.

But if you shift the focus on this conversation, customer wasn’t demanding something but saler wanted to sell something else. Isn’t this funny?

When we say that we follow the best practices, do we really see that whether those best practices are helping the need of our own employees as well? Just because automation is working on one piece of software does not mean that same will work in same way on the other as each & every software has its own set of characteristics, constraints. It is upto all of us that we suggest something for the better to the organisation. If we can not automate the complete software then let’s make an effort to solve the basic needs of the tester and automate some part to make his/her life easier. Small things like automation for generating the test data for testing, which will in turn may give better productivity and good results from same resource ( as they call us ). And customer will also be happy to see less buggy software.

Automation is important part and plays a major role in testing now days. We just need to understand the scope and boundaries to utilise it. It can be full fledged automation or up to a certain degree and then it is left to some brilliant minds of QA professionals to take that ahead.

What do you think? Don’t just think, but act on it and reply to this.

Monday, 23 November 2009

Is your software tested well?

Hello again!! Although seem to be long gap but still I am out with something which is close to the heart of the tester. I know most of the organizations do follow practice of appreciating the efforts being put by QA/tester but, still in some the credit of so called good software goes to the developers (which they do think as creators) of it. Hang on…! We (testers), are we not the creators of software?

How many times we hear people say “Wow! This is really nicely developed piece of software.” Did we ever hear something like “This software is very well tested?”

This is a long debate and will go on and on. But we can always see where we can improve. One basic thing to get some kind of appreciation or reward is to bring the work done to the notice of the stakeholders. It is very important that our work gets noticed by somebody to comment on it. Otherwise we will end up doing the job and it will be taken for granted from everybody as a duty.

Whatever we say, whatever we do has to have some visibility, evidence, proof. As our work sometimes does not have the visibility. Even though we do carry out our day to day activities efficiently and effectively and in turn are contributing to the success of the deliverables. This I thought of when I read one discussion which asks about how we can ensure that the tester has actually tested the mentioned functionality.

So don’t you think my fellow testers, this is the time where we could use our brains to come out with some intelligent ideas, innovative solutions and show the worth of having us in team?

Don’t you think that we can also get counted as one of the key members within the team? Due to lack of attention, it is very easy to get demoralized.

What forms do you think with which the visibility to the work we do is available? Evidences, AVIs, being actively involved in any discussion, rather I’d say leading a discussion, meeting minutes with who has commented what about the same discussion. Etc. Please think and do come up with as many as possible.

No doubt automation plays a very important role in test execution visibility but apart from these all or at least some of the above given forms are also important.

Simply because of the fact that we end up on neglected side of the team, we should not get de-motivated and always try to do something new out of the usual work we do. And then finally we can hear someone passing by or someone having a look at the software built by our team like, “Really! This software is very well tested!!”

Wednesday, 28 October 2009

Learning how to learn...!!

I read somewhere the quote which says…

“Learning how to learn in life is life’s most important skill”

So, did you learn something new today?
And do you think it is beneficial for you and / or others?

Ok, lot many questions now. (Hey but that is also one way to learn! Ask questions.J)

Last week, I was asked to explain the functionality of the product which I started exploring a couple of months ago. Before going to the meeting room, I also wasn’t sure how am I going to explain the attendees something that I am still learning. And the discussion started.

I clarified at the start itself to all the candidates who were attending the training (from this trainee) that I am also in a learning phase, so if at all there are any doubts that I cant answer right away, lets park them and I’ll get back to you after some investigation. And with this I explained the functionality. They came up with quite a few doubts which I could barely have an idea about. And as decided we parked them.

It is very obvious for us, that we learn something and still keep on asking questions to the trainer after the training about the things which didn’t strike us when training was on, isn’t it? This is where I feel the need for verification of learnings arises. And I think the best medium through which one can gauge or verify that is by explaining someone the same things that we learn. Who may or may not be interested but inquisitive enough to raise some doubts / queries that we couldn’t have thought of. And this in turn will help us only to learn a lot many new things we missed out.

No doubt about it that all of us have different mechanisms in our mind to verify that we learnt something in the right way or not…

1)Some may try executing it…

2)Some may use to reiterate the stuff that was discussed in training (summarize at the end of the training).

As per the quote in this post earlier, learning how to learn is also an art and a skill to acquire. And it should be clear in our mind that whatever is the position we hold in an organization, there are new things to learn.

Do you also have some good mechanism to verify the things you’ve learnt? It not only could be product / project related but about anything that is beneficial? Great!! Please do share it then.

Saturday, 19 September 2009

Tasting and Testing

Well, this might turn out to be one of the smallest of my posts ever. But thought this could be a nice thing to share with you all.
Have you heard about Tea Taster? Well I didn’t until someone told me that I can become one. I asked why? They say that one of the pre-requisites for being a tea tester (how much is this thing true, still a question) is that you shouldn't have tasted tea prior to being a tea taster at all. And I heard it a lot of times whenever I said I don’t drink tea and don’t know how it tastes either.
As I always do, started thinking is this related somewhat to Software Testing we do? Having knowledge of the software prior to testing it! We often hear people saying about the product knowledge and product competency. Is it mandatory for a tester or for a QA?
Don’t know. May be it is or may be it isn't. I mean it could be context specific. Let us have a look at it from both the angles.

Yes- It is mandatory.
Take an example of a car driver. You have to learn / acquire driving skills to be able to drive it. Else it will be a chaos when you are there in the driver’s seat.
Take an example of a machine at doctor’s workplace. You must know the technique to use it else you won’t be able to do checkup of the patient.
Not to mention the impact of both the cases discussed above is very severe.

No- It is not mandatory.
Now let’s refer to the first section of this post. It says to taste the tea perfectly well; you shouldn't have tasted tea at all in your life prior to this job.

Whenever we say we are executing the existing scenarios to understand the product / software, we are indirectly testing it in terms of following points.
 How usable is the software…
 How the software itself trains the new user to use its functionality…

Whenever a new QA joins any team, I feel an organisation can take pointers from him on the above mentioned things. Additionally, they may ask him to start by just explaining him the basic workflow to run the software. And then if he can on his own come up with some good findings, it could well become a return before any investment in that candidate!

Note- We as testers should always look out for both the sides of a coin before reaching to any conclusion. It not only benefits us to grow in terms of our analytical thinking but also for the organisation who really wants value addition from us.

Tuesday, 18 August 2009

Sharpen up your axe...

“Dada, I want to hear a story from you”, a 5 yr old child, residing next to our house, came to me almost demanding as someone from the office asking about my status report. I said “wait, I am busy with something else” declining the demand. He calmly sat on the chair next to me for next 10 minutes. (It showed his patience – something we all should have while testing too. I thought).

I said ok lets start, “Once there was a wood cutter…..” and the story went on the usual way. At the end of the story, that little fellow, a small kid, asked me a question with a usual childhood curiously. “You said that each evening, that woodcutter was used to sharpen his axe. Why couldn’t he do it while he was cutting the wood?”

“Because, had he been busy in sharpening his axe while cutting the wood, he could have invested additional time in there with less wood in his kitty at the end of the day.” I answered.

With this answer, he left happily having got satisfied with his demand of hearing the story.

I wondered and started thinking in different line altogether. What do we testers do to sharpen up our skills for betterment of organization when we are not doing the actual testing?

Of course in product based organization you hardly get any time out from testing. But sooner than later you could also feel that we are not growing with the flow the market grows and not getting matured enough to look out of the box and think of something which will do good for you as an individual as well as for the organization.

1) Sharing of ideas:

Once I got a forward email having a Chinese proverb that, “When someone shares something of value with you, and you benefit from it, you have a moral obligation to share it with others.”

Just share it whenever you feel the information is valuable and could be useful for others. Be it any experience you had while testing a particular application, while interacting with the customer. There are various ways through which you can share this information.

2) Improvise:

Test cases, test plan, system test, bug report… so on and so forth. I know this we breathe in and out daily. But there is always scope for improvement. Frequently visit the artifacts you produced and try to find ways through which you can improve the quality of those. Try out various mechanisms and ways to reduce time spent in documentation.

3) Think out of the box:

Try to learn something new which you didn’t know until now. May be directly it won’t be needed for the project at this moment, but it could be handy in near future. And it always allows you to cater your personal competency.

4) Certification:

I feel it is an incentive; go for it when you feel you have some time to. But it is something you are able to utilize in your day to day testing activity as well. And the terms you learn in it you should be able to relate them to the testing that you are doing.

I know most of us (if not all of us) are more or less following the sharpening the axe principle being discussed here. If you also are doing something apart from the things discussed above to keep yourself busy while not testing anything. Please share it….

Value addition by a tester

Just read on!!!

(Note: Names selected in below given conversation are not related to any person(s) in our organisation. They are just placeholders.)

“Hi! Good Morning!” Ganesh (Name changed) wished his recently joined as a trainee developer colleague Meeta (Name changed). (Ganesh is a Tester and knows the importance of wishing a good morning to the developerJ). She sadly replied “there is not anything good about this morning Gan!”

(Ganesh puzzled with a lot of questions as usual being a tester and wanted to know more.)

“Tell me! What happened?” Ganesh said. She replied “Since I came in the morning today, I am playing with this PDF. I want to edit and mark some text in bold. But I can’t.”

Ganesh had a look at the version of acrobat she was using. Then checked whether it supports the PDF writing or not. And it wasn’t. No wonder! How can one write with acrobat reader?

“Well! I got the problem” Ganesh replied. “Your acrobat version can’t write the PDF.” It can only read. Simple!”

“But then how can I do it?” She asked.

“Very simple again! What you can do is just export it to MS-word (while going through the version she has, ganesh spotted an export option which was available.) make it bold there and get the job done.”

“What if I want to make it a PDF document again?”

“You will need an Acrobat Distiller for that. Install it on your machine provided that you have the liberty to do it off course; you have to take permission from our h/w department formally. Then set it as your default printer. And simply print the document after editing through distiller. That’s it.”

She again asked. “What if I want to edit the pdf itself rather than doing this lengthy exercise?”

Ganesh calmly replied. “Get the licensed copy version of Acrobat Writer. This is much lengthier than the process I suggested. It’s up to you.”

Hang on!!!

Did you notice something in the above given conversation? I did! That’s why thought to share this with you.

When we do software testing, we actually step in to the shoes of customer. And it’s really important that we do take care of that role and motive behind that role. For the first time, I saw that the developer is acting like a customer. Yes! And in fact he wasn’t acting but he was a customer in above given context.

I heard many times a question that what value does a Tester adds to the project. And people in some organization neglect the importance of having a tester.

1) Ask/enquire/question: “Tell me! What happened?” This is a simple ‘wh’ type question. But it exhibits the quality of curiosity. There could have been a problem with the code, a syntactical error, a statement missing, variable not defined, where he could have also been lost. But there is no harm in asking inquisitively.

2) Keep your eyes open: While doing investigation of the version, tester mentioned above went through the options that the software had. This exhibits quality of being always on the look out for something extra. Did anyone ask to do it? No. But to save our time in testing the software also, we have to efficiently use this quality as well.

3) Know your processes: The tester is or should be aware of the process a project, a unit, an organization follows and should make sure that the process is being correctly followed. “Take permission from our h/w department” indicates that he is fully aware of it.

4) Suggest a solution: “What you can do is….” This does not mean that the solution will be ultimate. But, this is how we can add value to the project and the work.

5) Learn and let learn: To save the time, Ganesh could have simply grabbed the keyboard of Meeta and solved her problem. But he explained her how to do it. So that she will also learn new thing which she wasn’t aware of.

Did I miss out on something more from above given conversation? Do you also feel that through such abilities along with routine testing qualities we can add value to the project?

Please shoot your comments and suggestions which will definitely help me learn and grow as well with respect to these discussions which I am posting.

Quick generation of test data

Test Data Generation
“I am hungry, what are you doing since last one hour”. I shouted a bit politely. (Wonder how the voice even when you shout gets polite after marriage!J). My wife replied “I am preparing to cook.”

I said “What? Since last one hour you are just preparing to cook? How much time it will take now to actually cook and then eat?”

She (being the QA by nature and profession) replied with a smile… “This is same as you prepare your test data first and then test the application”.

I thought Aha! That’s an interesting answer. J Which turned the atmosphere to a bit lighter side and eventually we finished with the meals ½ an hour after that.

As always, that left me thinking… Really we spend lot of time in thinking about the test data which we want to generate and then some additional time to proceed with the testing.

Being a regular visitor (not much of the contributor though) to www.testrepublic.com , I went in to find something which will help me reduce my time for preparation of test data.

I came across a site www.testersdesk.com . It is a wonderful set of tools for us as testers which will help us prepare thousands of test data inputs in one click. It has excellent tools ranging from simple name generators to the SQL injectors.
(Copyright @ ValueMinds Solutions Pvt. Ltd. @ 2008 All Rights Reserved)

Whenever we logon to the website, it gives us enough amount of exploring to suite different test dataset needs.

It focuses on 3 main aspects of test cases.
1) Test Design Tool kit
It gives us variety of test design tools which will help us reduce the time and effort in generating the test cases.

2) Test Data Generation toolkit
These are the common test data generating tools which we may need day in and day out.

3) Miscellaneous toolkit
This gives us SQL injection test case generation and a tool which gives information about the hardware of the machine.

Whats most important!!! It is Free to be used for everyone.
Just go and check it out….

Don’t forget to let me know whether it is useful for you or not…! I am dam sure it is.

A story of a Test Engineer

“Well I don’t think User will be that stupid to execute this way!!”

“Do you think it is a valid use case?”

“Why did you try that out? Don’t you have something interesting to work with?”

Tester’s BA, dev, tech lead all were shooting these questions at him and he was expected to give answers to all these.

For him, what he learnt from the testing course + the experience he had is that he as QA / tester should detect and prevent bugs from occurring as early in the development lifecycle to avoid investing additional cost in our application. So, he could have said “I am doing my job”.

But he was silent, thinking deeply that is he doing it the right way? Doing it correctly? Or is he doing this just to say at the end of release we raised these many bugs and receive some applause!!

The problem here is not raising number of bugs or not pleasing your subordinates / project leads by not raising them and giving the go ahead. But this is something which needs to be discussed and sorted out with collaboration and understanding.

As we all know there is not bug free software in this world. And we as testers should always keep this in mind. But (with a capital ‘B’), there could be some rules that could be decided and agreed upon before approaching the testing activity to avoid such questions being raised. And we deserve every right after that if anyone tries to bypass / neglect those.

We have to make sure that...

Every test case should be in line with use case e.g. We can’t go to the database and change some value to make software behave weirdly.
We as a QA have right to question each and every requirement.
Unless and until we get a convincing answer, we should not leave the question / topic we initiated.

Once we have that answer with us, we should record it somewhere, either in test case / bug report / email / intranet site after notifying related people / person.

We as QAs should also consider time factor. And then set our priorities based on that. Exhaustively testing the flow which is least likely to happen doesn’t make sense. So priority should always be given to the use case.

These rules will make sure when we as a QA get caught first for project failure, we can show them the relevant document. That is if such illogical use case is tried by a customer.

Remember, this is not to blame anyone at all. These are just the problems which all of us could be facing and it should require deep thinking in mind for all of us. We can come up with good set of generic rules that tester/dev/BA/tech lead all should agree upon and work according to it collectively and collaboratively.

Wow… you already had this in mind! Great. Start shooting with your comments then…

Drawing your scenarios


Software testing is a process that deals with information & risks. We as QA’s should strive to get such relevant information from any source (as long as its valid one of course!). That in turn helps in decision making while writing test cases.

Just before a few days over a cup of coffee, me along with some of office colleagues were discussing about how we miss out on important test case while writing them. And emphasizing the fact that how review meetings are important to detect such missing links.

That reminded me of one of important meeting and I left off that discussion, while going to the meeting room, I was still thinking on the point of meetings. How much of it we spend each day to discuss, review, and finalize test cases. Can we minimize it somehow and still ensure we have the relevant and required information to make our test cases cover close to 100% functional coverage?

A few days after that, we had the Requirement Based Testing training for QAs. And we were exposed to the technique of Mind Mapping. And I thought, Hey!! That can be a nice solution!

In short,
Ø We need to minimize risk of missed defects in testing.
Ø We need to minimize time consumption in discussions & meetings
Ø We need to save the cost of our project.

Ok, so now, here it goes. A super full proof formula for achieving 100% test coverage and ensuring that no defect is there in the software. (Oh! Did I say something wrong?) Yes I did. We can minimize the risk arising out of defects but can’t ensure that there will be no defect in the software.

So all I want to say is I don’t have any formula but want to share with you a method that is learnt from the last training we had. And it helped me a lot in asking for valid information & getting it for writing more effective and test cases having high probability of finding as yet undiscovered defects. The technique is Mind Mapping.

Very simple, whenever you are preparing a document, visualizing the content is really important and it makes you understand the wider scope of the things from all angles of quality of thinking (Clarity, Relevance, Depth, Breadth, Logic, Accuracy and Precision). So in one line it is “Draw your scenarios first and then jot them down.”

Free Mind is a tool that can be used to create such maps. It is a freeware available on the net. (google it!!!)

I have adopted it for preparing system test scenarios for “Agreement in Principle” functional area of my projects. Have a look in. (This is not the entire chart but gives you an idea.)




How to derive the scenarios: Very simple again.

Take one node and follow one path till the end node…. that becomes your scenario. (For e.g. Branch sales user>Creates an AIP>when both the rules pass) And then jot the steps in each of the scenario along with the expected result.



Isn’t it easy? It will definitely help us achieve significantly close to 100% (if not 100%) test coverage.

This tool / technique might not be new to you. You might be already aware of this tool. The most important thing is how we utilize it to the best of our abilities and help ourselves and our project in minimizing the 3 risks that are mentioned above.

Most importantly, not only in testing but also in day to day life we can use it to perform multitasking.

Your valuable replies are most welcome.