Bug examples in software testing

Dmitri Kozlov
4 min readOct 12, 2020

The internet and books on software testing are full of information on different types of bugs.

The information is too general and does not help you to recognize a bug in the software program.

The examples below will give you a good feel of what a software bug is.

The examples are close to realistic and presented to people new to software quality assurance.

I) Simple Test Examples

1. Save

a) A Value entered on the screen is not saved
b) The program only saves the first five input characters into the text box
c) The document starting from the second page is not saved
d) A screen wizard consisting of several screens only saves parameters on the first screen
e) The most recent project in use is not saved in the list

2. Input Validation

a) A value entered into the input box format shows as text rather than a number with two digits
b) Entering an invalid input value shows an error
c) Entering text is not fitting all input text inside the input box

3. Show/Hide

a) After I hide the portion of the screen, selecting the toggle does not restore the screen back
b) The screen view closing when selecting the View Show Menu

4. Enable/Disable

a) Selecting the flag field option should enable the user rights section
b) Clicking the proceed button should unhide the temporary results section

5. Copy

a) Selecting the item and clicking Copy shows an error
b) Selecting the item and clicking Copy create a blank copy
c) Copying more than ten selected items shows an error

6. Open file

a) Opening text file shows the first line only from the text file
b) Opening text file should show an underscore sign after each word in a sentence
c) Opening a 10-gigabyte text file shows an error

7. Default screen

a) New item screen section should not be visible by default
b) The new criteria checkbox should be selected by default
c) Salary radio button option Location2 default instead of Location1
d) The projected rate dropdown should have “linear” as the default selection
e) Adding a new list opens a new blank window with all buttons enabled

8. Parameter settings

a) The font size selection is not reflecting the font size
b) The file save location is still saving files to the default save location.

9. Search text input box

Typing lowercase letters does not find text in uppercase.

10. Calculation

a) Clicking the Calculate button shows division by zero error
b) Clicking Re-Calculate still shows old result values

11. Send

a) Clicking the Send button shows in progress status bar at zero percent at all times
b) Clicking the Send button generates a failed email message with an error

12. File Export

a) Clicking File Project Export generates a successful message and a blank zip file
b) File Project Export only saves data for the first set

13. Print

a) Clicking Print to PDF produces a blank PDF File
b) Clicking Print to PDF shows odd pages in the output PDF file

14. Delete

a) Deleting all entries keeps the first entry
b) Deleting an entry shows the entry in the main list

15. Output Report

a) Output report shows parameter information from the first screen only
b) Output report shows license expiration error
b) Changing Parameter X on Screen A should modify the output report layout

II) More Complex Examples

1) Runtime environment

a) A feature works on a software developer machine, but it does not work in the software program
b) The feature works in the prior version and does not work in the current software version
c) The feature works in the temporary development site and does not work in the production site on the server/cloud environment

2) Steps to reproduce

a) Example 1

1. Select the radio button second non-default option of two options available on-screen One
2. Fill out input A on-screen One
3. Go to screen Two
4. On screen two, select the checkbox and fill out input B
5. Go to screen Three and click revert changes
6. Issue: screen one radio button shows option two instead of option one default
7. Issue: screen two shows the checkbox selected instead of checkbox default unselected

b) Example 2

1. Change default flag to True from False to enable dropdown list on screen1
2. Pick item 2 in the dropdown list on screen1
3. Click the Calculate button on screen1
4. Issue: The calculation result omits additional argument in the calculation formula

c) Example 3

1. Enter integer with two decimals inputs in section A on screen1
2. Select section A, click the Copy button, specify copy location screen2, and proceed to copy
3. Open screen2
4. Issue: Integer inputs with two decimals show rounded to the nearest integer

--

--

Dmitri Kozlov

Senior Software QA Analyst — 19 yrs experience (B.A. Mathematics Temple University 1998)