Pages

Custom Search

Software Testing Jokes/Humour - The case of poor Boundary Value Analysis

The case of poor Boundary Value Analysis

In September 2005, a man living in Gurgaon near New Delhi, India, received a bill for his as yet unused credit card stating that he owed Rs.0/-. He ignored it and threw it away.

 

In April, he received another and threw that one away too.

 

The following month, the credit card company sent him a very nasty note stating they were going to cancel his card if he didn't send them Rs.0/- by return of post. He called them and talked to them; they said it was a computer error and told him they'd take care of it.

 

The following month, our hero decided that it was about time that he tried out the troublesome credit card figuring that if there were purchases on his account it would put an end to his ridiculous mess. However, in the first store that he produced his credit card in payment for his purchases, he found that his card had been cancelled.

 

He called the credit card company who apologized for the computer error once again and said that they would take care of it. The next day he got a bill for Rs.0/- stating that payment was now overdue. Assuming that, having spoken to the credit card company only the previous day, the latest bill was yet another mistake, he ignored it, trusting that the company would be as good as their word and sort the problem out.

 

The next month, he got a bill for Rs.0/- stating that he had 10 days to pay his account or the company would have to take steps to recover the debt.

 

Finally giving in, he thought he would play the company at their own game and mailed them a cheque for Rs.0/-. The computer duly processed his account and returned a statement to the effect that he now owed the credit card company nothing at all.

 

A week later, the man's bank called him asking him what he was doing writing a cheque for Rs.0/-. After a lengthy explanation, the bank replied that the Rs.0/- cheque had caused their cheque processing software to fail.

 

The bank could now not process ANY cheques from ANY of their customers that day because the cheque for Rs.0/- was causing the bank's computer to crash.

 

The following month, the man received a letter from the credit card company claiming that his cheque had bounced and that he now owed them Rs.0/- and unless he sent a cheque by return of post, they would be taking steps to recover the debt.

 

The man, who had been considering buying his wife a computer for her birthday, bought her a typewriter instead.

Software Testing Jokes/Humor - Who Is Who?


Who Is Who?


A Project Manager is the one who thinks 9 women can deliver a baby in 1 month. 
An Onsite Coordinator is the one who thinks 1 woman can deliver 9 babies in 1 month. 
A Developer is the one who thinks it will take 18 months to deliver 1 baby. 
A Marketing Manager is the one who thinks he can deliver a baby even if no man and woman are available. 
A Client is the one who doesn't know why he wants a baby. 
A Tester is the one who always tells his wife that this is not the right baby.

Software Testing Jokes/Humor -The ‘Height’ Of A Flagpole

The 'Height' Of A Flagpole


A group of managers were given the assignment of measuring the height of a flagpole. So they go out to the flagpole with ladders and tape measures and they're struggling to get the correct measurement; dropping the tape measures and falling off the ladders.
A tester comes along and sees what they're trying to do, walks over, pulls down the flagpole, lays it flat, measures it from end to end, gives the measurement to one of the managers and walks away.
After the tester is gone, one manager turns to another and laughs, "Isn't that just like a tester? We're looking for the height and he gives us the length."

Software Testing Interview Questions

Software Testing Interview Questions
 
A software tester should be able explain the questions by applying what he learnt in his organization. These are frequently asked questions that you may likely to face if you attempt to sit for a job change interview.
 

1. Tell me something about yourself?
2. Tell me about your current project?
3. What is your primary role in your project?
4. What is your daily routine in your office?
5. What is the end to end process that is followed in your project?
6. What is a test plan and who prepares it?
7. How do you make sure that you have understood the entire requirement given by the client?
8. What do you do when you find something wrong in the requirement?
9. What is a traceability matrix, and what is the purpose of it?
10. What do you do when you received a build?
11. What is the difference between retesting and regression?
12. Why do you do sanity and regression and what is the difference?
13. How do you write test cases?
14. How can we test without requirements?
15. How do we know all scenarios are covered in test cases?
16. What is role of a tester in the requirement phase?
17. If the release date is only one day left, how you will test the product in one day?
18. What is the review process that is followed in your project/organisation?
19. What is the test environment and sets in up in your project?
20. How do you report a bug?
21. What is a bug life cycle?
22. What are severity and priority?
23. Who decides severity and priority?
24. How do you know something is a bug?
25. Which is the most important bug you have reported so far? 
26. Tell me an example of high severity but low priority bug?
27. Tell me an example of low severity but high priority bug?
28. What are the test case design techniques that you know?
29. Tell me about boundary value analysis with an example
30. What is equivalence partitioning?
31. How do you reduce the number of test cases?
32. When do you say your product ready for release?
33. What is suspension and resumption criteria in test plan?
34. Which all major fields/information are required when reporting a defect?
35. What is difference between static and dynamic testing?
36. What is the difference between system testing and functional testing?
37. What are Alpha and Beta testing?
38. What are verification and validation?
39. What is monkey testing and why it is necessary?
40. What is pesticide paradox?
41. If you report a bug, and developer says that this is not a bug, how would you handle such situation?
42. What is performance testing?
43. What is the difference between load and stress testing?
44. What is gorilla testing?
45. How many types of integration testing strategies are there?
46. What are stubs and drivers in integration testing?
47. When can we go for automation testing?
48. What is parameterization in automation testing?
49. What is correlation in performance testing?
50. How do you perform installation testing?
51. What is usability testing?
52. What are virtual users in performance testing?
53. How does system testing differ from integration testing?
54. What are CMMI levels?
55. What is the difference between inspection and walkthrough?
56. What are the code coverage tools?
57. What are Testing Effectiveness (TE) and Defect Removal Efficiency (DRE)?
58. Who are PQA, DPA and CC in a project?
59. Can automation replace manual testing and manual testing replace automation testing?
60. What is defect masking?
61. Which Estimation Model is used for your project work?
62. Who assigns work in your project and how?
63. Why do you want to change your job?
64. Do you have any problem in working late nights or on weekends?

65. Do you have any experience in managing a software testing project?

15 QTP Questions You Should Know Before Interview

15 QTP Questions You Should Know Before Interview 


1. Name the types of Test Automation?

Record and Playback (does not work in real world scenario)
Functional decomposition
Keyword driven
Model Based
Hybrid Test Automation Framework etc.

2. Explain the benefits of using Test Automation?

It can be executed unattended, leaving the testers free to do other work.
Large number of data combinations can be run - Good coverage.
Re-use of test cases in the different releases/versions etc.

3. Give the names of some Test Automation products/vendors?

QuickTest Professional - HP
TestComplete - Automatedqa
Rational Robot - IBM

4. When to use Test Automation?

In one short line
Successful test-automation needs to start early in the development cycle.


5. Give a to the point narration of what Test Automation is?

Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions. Commonly, test automation involves automating a manual process already in place that uses a formalized testing process. (Wikipedia)

6. Write advantages of using Test Automation?

Refer to Answer 2

7. Name any three types of applications you can run Test Automation on?

Test automation can be run on Windows applications, Web applications, .Net Applications, Java applications etc.

8. When would we not want to use Test Automation?

If the product is not mature enough.
If you don't have the time. The product is to be shipped after one month and you think you can buy a tool and automate a testing process in order to complete early is all rubbish. (See answer 4)

9. Give the steps of GUI Test Automation?

(related to QuickTest)
Analyzing your application
Preparing the testing infrastructure
Building your tests and adding steps to them
Enhancing your test
Debugging, running, and analyzing your test
Reporting defects

10. Explain the difference between Keyword view and Expert view?

The Keyword View is comprised of a table-like view, in which each step is a separate row in the table, and each column represents the different parts of the steps.

In the Expert View, you can view an action in VBScript. If you are familiar with VBScript, you can add and update statements and enhance your tests and function libraries with programming.

11. How to start recording with a keyboard shortcut?

F3

12. How to stop recording with a keyboard shortcut?

F4

13. How to playback from top with a keyboard shortcut?

F5

14. Is it possible to customize keyword view Fonts and colors?

Yes, Tools ->View Options.. and go to Fonts and Colors tab.

15. When will you use Shared and when local object repository?

Local Object Repository may be used if
You have only one, or very few, components that correspond to a given application, interface, or set of objects.
You do not expect to frequently modify object properties.

Shared Object Repository may be used if
You expect the object properties in your application to change from time to time.

You have several components that test elements of the same application, interface, or set of objects.

Some History About QTP.

Some Tidbits About QTP History.

QuickTest Professional 1.0 (QTP 1.0)
QuickTest Professional 1.0 was released in May 1998 and it was known as Astra QuickTest. It was for functional testing of World Wide Web only. It was marketed as an icon-based functional testing tool for e-business. By replacing traditional scripts with icons, it recorded and represented user actions visually to simplify and accelerate testing. It was priced at $4000 per copy.

QuickTest Professional 2.0 (QTP 2.0)
I do not have any information on QuickTest Professional 2.0. If you have any information, you can send me to dhall.sachin@gmail.com with subject "QTP History". I will publish it here (if it's worth publishing) with your name (along with your blogname, if any). Make sure that the information should be genuine and not the fake one.

QuickTest Professional 3.0 (QTP 3.0)
Mercury Interactive's QuickTest 3.0's system requirements were Pentium 166 MHz, Windows 95,/98 or NT 4, 32 MB of RAM, 23 MB of hard disk space, Internet Explorer 4.0 or higher. QuickTest did a good job of efficiently checking for every possible error and reporting the good or bad news. At that time only seven day evaluation version was available. The cost was $2,995 in US.

QuickTest Professional 4.0 (QTP 4.0)
The Mercury Interactive Astra LoadTest 4.0 and Astra QuickTest 4.0 Web testing tools were awarded 'Best of Show' in the Web Application Tools & Servers category at Penton Media's (NYSE: PMF) Internet World Chicago 2000. Astra QuickTest 4.0 Added Netscape Support. In addition, Astra QuickTest 4.0's cross browser testing capabilities made it easy to check compatibility between Netscape and Internet Explorer. Astra QuickTest 4.0 also offered full integration with Mercury Interactive's TestDirector. Astra QuickTest 4.0 was available at a price of $2,995 per seat. Mercury Interactive offered a package combining Astra QuickTest and TestDirector for $4,995.

QuickTest Professional 5.0 (QTP 5.0)
Astra QuickTest(TM) 5.0 allowed users to quickly and easily test the functionality of Web applications containing multimedia elements, Java applets and ActiveX controls. Astra QuickTest 5.0 supported testing on Macromedia Flash, as well as on RealAudio and RealVideo. Astra QuickTest 5.0 was priced at $3,995 (U.S.) per seat.

QuickTest Professional 6.0 (QTP 6.0)
QuickTest Professional 6.0 was again simple to use with simple interface. QTP 6.0 supported .Net development environment and XML support. It was again able to integrate with TestDirector and Winrunner. Users were able to run Winrunner scripts from QuickTest, but not the other way round.

QuickTest Professional 7.0 (QTP 7.0)
QTP 7 supported win 2003, without any OS conflicts. In QTP 7.0 actions could support passing and returning values. Corresponding English comments for every line of script in "Tree View", they renamed "Tree View" as "Keyword View". Reports in both XML and word format available, rapid object import, Enhanced support for "Recovery Manager" etc.

QuickTest Professional 8.0 (QTP 8.0)
Mercury introduced next-generation "zero-configuration" Keyword Driven testing technology in QuickTest Professional 8.0 — allowing for fast test creation, easier maintenance, and more powerful data-driving capability.
Other features were support for functional testing of all enterprise environments including ActiveX, terminal emulators SAP etc, Checkpoints, Unique Smart Object Recognition and many more features. Some of you might be using that until now.

QuickTest Professional 9.0 (QTP 9.0)

QuickTest Professional 10.0 (QTP 10.0)   is the present version, as you all know.

Kishuus.qtptool, Win Rs. 50,000 this march!

 

Test Case writing questions and answers

1 Test Case writing questions:

10 test cases for entering 3 values representing

sides of a triangle and the program giving output as scalene, isosceles or

equilateral (10 Marks)

Test cases:

Assume 3 sides of the triangle has A, B, and C

S.No.

Test case Name

Description

Expected Result

1

Check Scalene triangle

Enter input  as A=8, B=5 and C=7

Output should be scalene triangle

2

Check Scalene triangle

Enter input  as A=200, B=400 and C=900

Output should be scalene triangle

3

Check  isosceles triangle

Enter input  as A=8, B=10 and C=10

Output should be isosceles triangle

4

Check  isosceles triangle

Enter input  as A=800, B=700 and C=700

Output should be isosceles triangle

5

Check  equilateral triangle

Enter input  as A=15, B=15 and C=15

Output should be equilateral triangle

6

Check  equilateral triangle

Enter input  as A=190, B=190 and C=190

Output should be equilateral triangle

7

Check Negative values

Enter input  as A= -6, B=-15 and C=-14

Error message should be displayed

8

Check Negative values

Enter input  as A= 6, B=15 and C=-15

Error message should be displayed

9

Check Negative values

Enter input  as A= 6, B=-16 and C=-15

Error message should be displayed

10

Check Zero values

Enter input  as A= 6, B=16 and C=0

Error message should be displayed

We can write so many test cases like above.  We can have many combinations for all the above test cases.

 

1 Output of a calculator and finding the error in the output, write the defect log

for the bug (5 Marks)

Defect Log/Report:

Summary: Wrong result displayed as output of calculator program when adding two numbers

Description: Wrong result displayed when adding two numbers

 

Step to reproduce:

Step 1: Enter first number

Step 2: Click on plus (+) symbol

Step 2: Enter second number

Step 3: Click on equal (=) symbol

Step 4: Verify the result

Severity: High

Priority: High

Project/Program: Calculator

Defect detected by: Name of the tester

Assigned to: Developer Name

Detected on date: Current date

Attachments: Attachments (Screenshots, any supporting files)

 

1 Ques on weather Dev should do the testing or not. Give 3 reason on favour and 2

against it. (5 Marks)

Pros:

1.     Developers should test the code they write.  So that they can make sure their code is working as expected. This is called as Unit testing. They are technically sound

2.     Developer has good knowledge on coding/programming and they know where programs generally give errors. They can find it very easily.

3.     They have complete knowledge on the unit/piece of code they have developed. It's very easy for them to catch the errors in short period of time

         

Cons:

4.     They may not have complete knowledge on the application/product they are developing. i.e. lack of domain knowledge

5.    They don't have the testing knowledge to perform effective testing. Only testers know different methodologies in testing a application or product.

6.    Personal confidence on the code they developed and they may not test all functionalities completely

 

1 Question diff between priority of a bug and severity of a bug. Give example of

one case where priority is high but severity is low and one case where severity is

high bur priority is low

Defect Severity determines the defect's effect on the application where as Defect Priority determines the defect urgency of repair. Severity is given by Testers and Priority by Developers 

Example:

Low Severity & High Priority : If there is a spelling mistake or content issue on the homepage of a website which has daily hits of lakhs. In this case, though this fault is not affecting the website or other functionalities but considering the status and popularity of the website in the competitive market it is a high priority fault

High Severity & Low Priority : For example an application which generates some banking related reports weekly, monthly, quarterly & yearly by doing some calculations. If there is a fault while calculating yearly report. This is a high severity fault but low priority because this fault can be fixed in the next release as a change request.

 

1 Question on a program that calculates P=R/I where R, I are integer inputs and P

a floating point output. Write 10 test cases for this - 5 Marks.

 

S.No.

Test case Name

Description

Expected Result

1

Check output as float

Enter input  as R=3 and I=2

Output should be a floating point number. P must be equal to 1.5

2

Check output as Integer

Enter input  as R=4 and I=4

Output should not be a floating point number. P must be equal to 1

3

Check output as minus number

Enter input  as R=-8 and I=2

Output should not be a floating point number. P must be equal to -4

4

Check output as minus number

Enter input  as R=8 and I=-2

Output should not be a floating point number. P must be equal to 6

5

Check output as float

Enter input  as R=1 and I=25

Output should be a floating point number. P must be equal to 0.04

6

Check output as float

Enter input  as R=100 and I=300

Output should be a floating point number. P must be equal to 0.33333333333333

7

Check output as a zero

Enter input  as R=100 and I=100

Output should not be a floating point number. P must be equal to 0

8

Check output as a zero

Enter input  as R=-200 and I=-200

Output should not be a floating point number. P must be equal to 0

9

Check output as Integer

Enter input  as R=900 and I=900

Output should not be a floating point number. P must be equal to 1

10

Check output as Integer

Enter input  as R=878686775 and I=6778887

Output should not be a floating point number.

 

 

 

 

 

Like above we can have so many combinations of test cases. Testing is a never ending task. 100% testing is not at all possible on any application or product.