Testing express

Testing express

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.