Final Stqa Miniproject 2-1
Final Stqa Miniproject 2-1
Mini Project
[SOFTWARE TESTING AND
QUALITY ASSURANCE]
Name of Program: Computer Engineering
CERTIFICATE
This is to certify that the project report entitles
Submitted by
is a bonafide student of this institute and the work has been carried out by him/her
under the supervision of Prof. Anita Patil and it is approved for the
partial fulfillment of the requirement of Savitribai Phule Pune University, for the award of
the degree of Bachelor of Engineering (Computer Engineering).
We would like to extend our sincere appreciation and indebtedness to the teacher of the Computer
Department Prof. Anita Patil for providing the technical, informative support, valuable guidance and
constant inspiration and encouragement as a project guide which has brought this stage one project report
in this form.
We would also like to express our gratitude to Prof. Dr. Soumitra Das. for his constant source of
encouragement and friendly guidance throughout the project work And at the end we would like to express
our gratitude to all staff member who have directly or indirectly contributed in their own way and all my
friends Computer Department for their suggestions and constructive criticism.
Vaibhav Yelmule
Table of Contents
1. Introduction
2. Steps
3. Selenium Testing
4. Regular Expression
5. Sample Program
6. Screenshots
7. Test Results
8. Used Tools
9. Conclusion
Title
Problem Definition:
Perform Desktop Application testing using Automation Tool like JUnit generate Test
Report.
Hardware Requirements:
2GB RAM, 500GB HDD, Laptop, etc.
Software Requirement:
VS Code IDE, Windows OS
Learning Objectives:
We are going to learn how to Prepare Test Cases inclusive of Test Procedures for
identified Test Scenarios. Perform selective Black-box and White-box testing covering
Unit and Integration test by using suitable Testing tools. also Prepare Test Reports based
on Test Pass/Fail Criteria.
Outcomes:
After completion of this project, we are able to understand Unit and Integration testing
with Tool with Test Report.
Theory
What is Unit Testing?
Unit testing is a software testing technique that focuses on verifying the correctness of
individual units or components of a software application. A unit in this context is the
smallest testable part of the software, typically a single function, method, or procedure.
The primary goal of unit testing is to ensure that each unit of code works as intended
and produces the expected output for a given set of inputs.
Unit testing is a fundamental practice in modern software development, particularly in
agile and test-driven development (TDD) methodologies. It helps identify and fix
defects early in the development process, leading to higher code quality, improved
maintainability, and faster development cycles. By ensuring that individual components
work correctly, it contributes to the overall reliability of the software system.
• pytest: Pytest is a popular and user-friendly testing framework for Python that
simplifies test writing and provides rich reporting.
• NUnit: NUnit is a widely used unit testing framework for .NET and C#. It offers a
range of features for writing and running tests.
• Mocha: Mocha is a versatile testing framework for JavaScript, commonly used with
Node.js and web applications.
Black-box Testing
Black-box testing focuses on testing the application's functionality without knowledge
of its internal code. The goal is to ensure that the application behaves correctly
according to its specifications. For this simple calculator application, black- box testing
might include:
- Functionality Testing:
Testing the core functionality of adding and deleting the products from cart.
- Usability Testing:
Evaluating the user interface for ease of use.
- Boundary Testing:
Checking how the application handles edge cases.
- Compatibility Testing:
Ensuring the application works on different browsers and devices.
White-box Testing
White-box testing involves examining the internal code and logic of the application.
The aim is to verify that the code functions as intended and to uncover any potential
issues. For this simple application, white-box testing might include:
- Unit Testing:
Testing individual functions or methods (e.g., functions for
addition/subtraction/multiplication/Division).
- Integration Testing:
Testing how different parts of the application work together.
- For integration testing, tools like Super test can be used, but it may be overkill for
this simple.
Test Report:
Test case 1: Check whether the calculator can perform addition for two interfering numbers
(Sample addition)
Test case 2: Check validation for zero inputs.
Test case 3: Check whether the calculator uses the BODMAS technique.
Test case 4: Check whether on pressing two operators one after the other, the latest one will
override the previous operator.
Test Report:
- Test case 1: Check whether the calculator can perform addition for two interfering
numbers (Sample addition)
Test Result: Pass
Description: All operations performed successfully.
- Test case 3: Check whether the calculator uses the BODMAS technique.
Test Result: Pass
Description: Application of BODMAS technique applied successfully.
- Test case 3: Check whether on pressing two operators one after the other, the latest
one will override the previous operator.
Test Result: Pass
Description: Overriding of operator applied successfully.
Summary:
The application has passed all test cases, and no critical or major defects were
identified. It meets the specified requirements and is ready for acceptance.
Acceptance Criteria:
The application is considered acceptable as it passed all test cases and demonstrated
consistent and correct behaviour across different browsers.
Conclusion:
This conclusion summarizes the key findings from the testing process and provides a clear
assessment of the application's readiness for use. It also highlights the importance of ongoing
monitoring and maintenance in a production environment.