Lab 1
Lab 1
Test automation is a crucial aspect of modern software development, offering numerous benefits while also
presenting certain challenges. It involves using software tools and scripts to automatically execute and validate
tests, which enhances the efficiency and accuracy of the testing process.
The seven principles of software testing are foundational guidelines that help ensure the
effectiveness and efficiency of the testing process. These principles are widely recognized in the
software industry and provide a framework for testing strategies. Here is an overview of each
principle:
1. Testing Shows the Presence of Defects: The primary goal of testing is to identify defects
in the software. It can demonstrate that defects are present but cannot prove that there are
1|Page
no defects. Even with extensive testing, it is impossible to confirm that the software is
completely error-free.
2. Exhaustive Testing is Impossible: It is impractical to test all possible combinations of
inputs and scenarios due to time and resource constraints. Instead, testers should focus on
risk-based testing to cover the most critical areas of the application.
3. Early Testing: Testing should begin as early as possible in the software development
lifecycle. Detecting defects early can significantly reduce the cost and effort required to fix
them later in the development process.
4. Defect Clustering: A small number of modules often contain the majority of defects. This
principle suggests that testing efforts should be concentrated on these areas to efficiently
identify and address issues.
5. Pesticide Paradox: Repeatedly executing the same set of test cases will eventually fail to
uncover new defects. To overcome this, test cases need to be regularly reviewed and
updated to ensure they remain effective.
6. Testing is Context-Dependent: Testing approaches and strategies should be tailored to
the specific context of the software being tested. Different types of applications require
different testing methods and techniques.
7. Absence of Errors Fallacy: Even if no defects are found, it does not guarantee that the
software meets user needs and requirements. A software product can be free of defects but
still fail to deliver the desired functionality.
Test scenarios, also called test conditions or test possibilities, represent typical tasks users might
want to accomplish with the software. A simple test scenario may require multiple test cases to
cover the different outcomes. In our login system, some scenarios could be "I can successfully log
in" or "I can't log in without entering my email address correctly."
3|Page
Consider creating a reusable test case template.
A test case template provides a flexible but basic structure that you can customize on an as-needed
basis. It can also serve as a checklist to ensure all essential elements have been included. Many
testers use spreadsheets with one test per row and the test elements in columns.
4|Page
Now we will show the test case writing for the following website:
1. Website Name: https://www.website.com/sign-in/?source=SC
Test Item:
Login
Test Cases : 1
5|Page
Insert valid Username and
leave Password blank -> Click Login will fail and a notification
2 LOG IN button message will be displayed
Leave Username blank and
insert valid Password -> Click Login will fail and a notification
3 LOG IN button message will be displayed
Insert invalid value both for
Username and Password -> Login will fail and a notification
4 Click LOG IN button message will be displayed
Insert invalid Username and
leave Password blank -> Click Login will fail and a notification
5 LOG IN button message will be displayed
Leave Username blank and
insert invalid Password -> Click Login will fail and a notification
6 LOG IN button message will be displayed
Insert valid Username and
invalid Password -> Click LOG Login will fail and a notification
7 IN button message will be displayed
Insert invalid Username and
valid Password -> Click LOG IN Login will fail and a notification
8 button message will be displayed
6|Page
Test Cases : 2
Test Area: Login
Test Case ID: Login002
Summary/Purpose: To verify the successful login with valid credentials
Precondition: User must Signup/Registration
Sl. No. Test steps Test Data Expected Result Actual Result Pass/Fail?
Valid Username and
Password will be
Enter valid Username and inserted in particular
1 Password text box
Login will be succeeded
and it will transit to
2 Click LOG IN button Home page
Test Cases : 3
Test
Sl. No. Test steps Expected Result Actual Result
Data Pass/Fail?
7|Page
Test Case Writing Using Trello : https://trello.com/
1. Sign Up using your email or create a temporary email from this link :
https://moakt.com/en
2. After Sign in you will get following page :
8|Page
5. Password Hints:
9|Page
Email test steps
6. Now after doing the test steps you need to check if these test steps are doing fine
or not.
10 | P a g e
Practice The following:
Write the test steps for the below login form :
11 | P a g e