0
0
Testing Fundamentalstesting~15 mins

Bug report writing in Testing Fundamentals - Build an Automation Script

Choose your learning style9 modes available
Write a clear and complete bug report for a login failure
Preconditions (2)
Step 1: Open the login page
Step 2: Enter a valid username 'user@example.com' in the username field
Step 3: Enter an incorrect password 'wrongpass' in the password field
Step 4: Click the 'Login' button
Step 5: Observe the error message displayed
✅ Expected Result: An error message 'Invalid username or password' is displayed clearly below the login form
Automation Requirements - None (manual writing task)
Assertions Needed:
Bug report includes a clear title
Bug report describes steps to reproduce exactly
Bug report states expected and actual results
Bug report includes environment details
Bug report is concise and easy to understand
Best Practices:
Use simple language without jargon
Include exact steps to reproduce
Mention the version and environment
Describe the actual behavior and expected behavior
Attach screenshots or logs if possible
Automated Solution
Testing Fundamentals
Title: Login fails with incorrect password showing unclear error

Steps to reproduce:
1. Open the login page at https://example.com/login
2. Enter username 'user@example.com'
3. Enter password 'wrongpass'
4. Click the 'Login' button

Expected result:
User sees error message 'Invalid username or password' below the login form.

Actual result:
User sees a generic error message 'Login failed' without explanation.

Environment:
Browser: Chrome 114.0
OS: Windows 10
App version: 1.2.3

Notes:
The error message is unclear and does not help the user understand the problem.

Screenshot attached showing the error message.

This bug report is written clearly and simply. The title summarizes the problem. The steps to reproduce are exact and easy to follow. Expected and actual results are clearly stated so developers understand the difference. Environment details help reproduce the issue. The note explains why this is a problem. Including a screenshot helps visualize the issue.

This format helps developers quickly understand and fix the bug.

Common Mistakes - 5 Pitfalls
{'mistake': "Writing vague titles like 'Login problem'", 'why_bad': 'It does not help identify the issue quickly among many bugs.', 'correct_approach': "Use specific titles like 'Login fails with incorrect password showing unclear error'."}
Skipping steps to reproduce or writing them unclearly
Not stating expected vs actual results
Omitting environment details like browser or app version
Using technical jargon or complex language
Bonus Challenge

Now write three bug reports for different issues using the same clear format.

Show Hint