STQA Writeup
STQA Writeup
Aim:
To write a test scenario for the Gmail login page, ensuring all functionalities and possible edge cases
are covered.
Prerequisite:
Understanding of the expected behavior of a login page (input validation, error handling,
security considerations).
Learning Objectives:
To understand how to design and write test scenarios for a web application’s login page.
To learn how to identify different testing aspects such as functionality, usability, security, and
performance.
To gain insight into handling edge cases and potential user errors during the login process.
Theory:
1.1 Introduction:
The login page is a critical component of any web application, serving as the gateway to a user's
personal or business account. Ensuring its reliability and security is paramount. The Gmail login page
is one of the most widely used authentication systems globally, making it essential to thoroughly test
its functionality. This includes verifying that users can successfully log in with valid credentials, that
the system correctly handles invalid inputs, and that security features such as CAPTCHA and two-
factor authentication are functioning correctly.
1. Positive Scenarios:
2. Negative Scenarios:
o User leaves the email or password field blank and attempts to log in.
3. Security Scenarios:
o Ensure that after logging out, the user is not able to access the account by pressing
the back button.
4. Usability Scenarios:
o The login page is responsive and displays correctly on different devices (mobile,
tablet, desktop).
o The email and password fields have appropriate placeholder text and tooltips.
5. Performance Scenarios:
o Page load time for the login page is within acceptable limits.
o The login process completes within a reasonable time even under load (e.g., during
peak usage hours).
o User attempts to log in with spaces before or after the email/ password.
o User logs in after a session timeout and is redirected to the login page.
1.3 Conclusion:
Testing the Gmail login page involves evaluating various aspects, including functionality, security,
usability, and performance. By covering a wide range of scenarios, from positive to edge cases, we
can ensure the login page is robust and secure. Successfully writing and executing these test
scenarios will contribute to the overall quality and reliability of Gmail, providing users with a secure
and seamless experience. This exercise will also enhance the tester's ability to think critically about
different testing aspects and scenarios.
Assignment 2
Aim:
To write test cases for the Gmail login page, ensuring comprehensive coverage of all functionality,
edge cases, and security aspects.
Prerequisite:
Basic knowledge of writing test cases and understanding of web application behavior.
Learning Objectives:
To learn how to design and write detailed test cases for a web application's login page.
To understand how to test various functionalities, including input validation, error handling,
and security mechanisms.
To gain insight into how to test the login page for usability and responsiveness across
different devices.
To develop the ability to identify and document edge cases and negative scenarios
effectively.
Introduction:
The Gmail login page is a critical interface that users interact with to access their Gmail accounts. As
such, it must be reliable, user-friendly, and secure. Testing this page involves checking the
correctness of user inputs, ensuring that error messages are properly displayed, validating security
features, and verifying the page's performance under different conditions. This assignment focuses
on creating detailed test cases that cover all these aspects, ensuring that the login process works as
expected for all possible scenarios.
Test Cases:
Test Steps:
3. Click "Next."
4. Enter the correct password in the "Password" field.
5. Click "Next."
Preconditions: None.
Test Steps:
2. Enter an invalid email format (e.g., "user@domain") in the "Email or phone" field.
3. Click "Next."
Expected Result: An error message is displayed indicating that the email format is
incorrect.
Test Steps:
3. Click "Next."
5. Click "Next."
Expected Result: An error message is displayed indicating that the password is incorrect.
Test Steps:
Expected Result: An error message is displayed indicating that the email is not registered.
Preconditions: None.
Test Steps:
3. On the password entry page, leave the "Password" field empty and click "Next."
Expected Result: An error message is displayed indicating that the field cannot be left
empty.
Test Case 6: Security: Verify CAPTCHA Trigger After Multiple Failed Attempts
Preconditions: User has attempted to log in with incorrect credentials multiple times.
Test Steps:
Test Steps:
3. Click "Next."
Expected Result: The login page should display correctly and allow successful login on
mobile devices.
Test Steps:
Expected Result: The user is redirected to the login page and cannot access the inbox.
Conclusion:
Writing test cases for the Gmail login page involves covering all possible scenarios to ensure
functionality, security, usability, and performance. By systematically testing various inputs, handling
edge cases, and verifying security features, we can ensure that the login process is robust and user-
friendly. The exercise of writing these test cases enhances the tester’s ability to think critically about
different testing scenarios and ensures a thorough understanding of the application’s expected
behavior under various conditions.
Assignment 3
Aim: Test Cases for Social Media Application
Prerequisite:
User credentials for testing purposes (e.g., valid and invalid username/password
combinations).
Test data like user information, content for posting, and sample media files (images/videos).
Learning Objective:
To understand the critical features of a social media application and how to test them
effectively.
To gain proficiency in writing comprehensive and detailed test cases that cover various
scenarios within a social media platform.
To learn how to ensure that the functionalities of a social media application meet the
specified requirements and provide a seamless user experience.
To be able to identify and document expected outcomes and manage the testing process
effectively using an Excel sheet.
Introduction:
A social media application serves as a platform for users to connect, share content, and
interact with others online. The application includes functionalities such as user registration,
login, profile management, content creation and sharing, and social interactions like likes,
comments, and shares. Testing these functionalities is crucial to ensure that the application is
user-friendly, secure, and performs well under various conditions.
This documentation presents a set of test cases designed to verify the key features of a social
media application. These test cases are structured to cover various aspects of the
application, including user management, content interaction, and system behaviors.
Test Cases
Conclusion:
The above test cases are designed to comprehensively test the critical functionalities of a
social media application. By following these test cases, testers can identify potential issues
and ensure that the application delivers a seamless experience to its users. The systematic
approach to testing—covering user registration, login, profile management, content
interactions, and more—ensures that all essential features work as intended, providing
reliability and satisfaction to end-users. This documentation, when used effectively, will
contribute to the overall quality and success of the social media platform.
Assignment 4
Aim:
To create a defect report for a web application, documenting any issues or bugs identified
during testing.
Prerequisite:
Knowledge of defect reporting tools (e.g., Jira, Bugzilla) or a structured format for manual
defect reporting.
Basic understanding of software testing principles, including the types of defects (functional,
UI, performance, security, etc.).
A clear test plan and test cases that outline the expected outcomes.
Learning Objectives:
To learn how to identify, document, and report defects found during the testing process.
To understand the importance of clear, concise, and detailed defect reports in the software
development lifecycle.
To develop the ability to categorize and prioritize defects based on their severity and impact
on the application.
To gain experience in using defect tracking tools or creating structured manual reports that
facilitate effective communication between testers and developers.
Introduction:
A defect report is a crucial document in software testing that communicates issues found in
an application to the development team. It helps ensure that any discrepancies between the
actual and expected behavior of the application are tracked, understood, and resolved. A
well-documented defect report includes details such as the defect ID, description, steps to
reproduce, expected vs. actual results, severity, and any attachments (e.g., screenshots,
logs). This process not only helps in fixing the issue but also in preventing future occurrences
of similar defects.
Defect Title: Login Button Does Not Respond After Entering Valid Credentials
Severity: Critical
Priority: High
Environment:
Description: When a user enters valid email and password credentials on the login page and
clicks the "Login" button, the button becomes unresponsive. The user is not redirected to the
dashboard or inbox, and no error message is displayed.
Steps to Reproduce:
Expected Result: The user should be redirected to their dashboard/inbox after clicking the
"Login" button, indicating a successful login.
Actual Result: The "Login" button becomes unresponsive. The user remains on the login
page, and no error message is displayed.
Attachments:
Screenshot of the login page after clicking the "Login" button (file attached).
Additional Notes:
The issue was reproduced multiple times on different devices and browsers (e.g., Firefox,
Safari).
This defect blocks users from accessing their accounts, making it a critical issue that requires
immediate attention.
Status: Open
Comments:
[Tester Name]: Please investigate the button click event and ensure that the form submission
is triggered correctly.
Creating a defect report is an essential task in the software testing process, enabling clear
communication of issues between testers and developers. A well-documented defect report
not only helps in resolving current issues but also contributes to the overall quality of the
application by providing a record of what was tested and what was found. By practicing
defect reporting, testers can improve their attention to detail and their ability to convey
complex issues in a clear and actionable manner. This exercise also emphasizes the
importance of timely and accurate defect documentation in ensuring that software
applications are reliable and user-friendly.
Assignment 5
Aim:
To install Selenium Grid and Selenium WebDriver with Java in Eclipse IDE for automated web
testing.
Prerequisite:
System Requirements:
Learning Objectives:
To understand the process of setting up Selenium Grid for distributed web testing.
To learn how to configure Selenium WebDriver with Java in Eclipse for writing automated
test scripts.
To develop the skills required to execute and manage automated tests across different
browsers and platforms using Selenium Grid.
Introduction:
Selenium is one of the most popular tools for automating web applications for testing
purposes. Selenium WebDriver allows you to programmatically control a browser, and
Selenium Grid enables the parallel execution of tests across multiple machines, browsers,
and operating systems. This setup is crucial for running large-scale test suites efficiently and
ensuring that web applications function correctly across different environments.
Steps for Installation:
Install JDK: Follow the installation instructions. Ensure that the JAVA_HOME environment
variable is set correctly.
Install Eclipse: Follow the installation instructions and launch Eclipse after installation.
Step 2: Download the Selenium Java client library from the Selenium official website.
o Right-click on your project in Eclipse > Select "Build Path" > "Configure Build Path."
o Click "Add External JARs" and select the downloaded Selenium JAR files.
Step 1: Download Selenium Server (Grid) from the Selenium official website.
o Open a command prompt or terminal and navigate to the folder containing the
Selenium Server JAR file.
o On the same machine or a different machine, navigate to the Selenium Server JAR
location.
Modify your WebDriver test script to use Selenium Grid by specifying the RemoteWebDriver:
Step 6: Run the test and verify that it executes on the configured Grid node.
Conclusion:
By completing this setup, will have a fully functional Selenium environment for automated
testing with Java in Eclipse. This includes the capability to execute tests locally using
Selenium WebDriver and to distribute tests across multiple machines using Selenium Grid.
The skills gained from this exercise will be foundational for any further work in test
automation.