STQA Mini Project R
STQA Mini Project R
1. Introduction
2. Steps
3. Selenium Testing
4. Regular Expression
5. Sample Program
6. Screenshots
7. Test Results
8. Used Tools
9. Conclusion
Title:
Software Testing and Quality Assurance Mini Project Dynamic webside of covid-19 information using
HTML, CSS, JAVASCRIPT And PHP, MySQL database used to store user account, comment, and
registration form details. Regular Expression testcases for testing purpose
Problem Definition:
Objective
We are going to learn how to Prepare Test Cases inclusive of Test Procedures for identified TestScenarios.
Perform selenium testing with regular expression check
Prepare Test Reports based on Test Pass/Fail Criteria.
Theory
The Test Plan document is derived from the Product Description, Software Requirement Specification, Use
Case Documents. The focus of the test is what to test, how to test, when to test, and who will test. Test plan
document is used as a communication medium betweentest team and test managers.
A standard test plan for Website Testing should define following features;
SELENIUM TESTING :
Selenium is an open source umbrella project for a range of tools and libraries aimed at supporting
browser automation. It provides a playback tool for authoring functional tests across most modern web
browsers, without the need to learn a test scripting language.
Regular expressions are a very useful technique for improving Selenium WebDriver tests. They can be used
for
Let’s look into regular expressions using a specific test case. Our test case
does the following:
5. validate that results count is greater than 0 (1 – 25 of 905 items; the results count is
905)
9. validate that the results count is greater than 0 (26 – 50 of 905 items; the results
count is 905)
For the first validation, we should verify that the following urls are correct:
https://vpl.bibliocommons.com/search?q=java&t=keyword
https://vpl.bibliocommons.com/search?display_quantity=25&page=2&q=java&t=k
eyword
It would be great to use the same code to validate both urls since they are similar.
1 – 25 of 905 items
26 – 50 of 905 items
Again, we should try to use the same code to extract the result count from both texts since they have the same
pattern.
For both validations, we could use String methods and variables. But regular
1. Before class :
The @BeforeClass annotated method runs before the execution of test methods in a current class.
2. After class :
The @AfterClass annotated method will be executed after all the test methods of a current class have
been invoked.
3. Test class :
The @Test class annotated method is containing test logic which is automate the webpage.
package Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;
1. Signup page :
2. Regex test
3. Registred user login :
4. Login :
5. Button Test :
6. See Report :
Test Result Report
TABLE OF CONTENTS
1.0 Introduction
2.0 Testing Strategy
2.1 Selenium Testing
2.2 Regular Expression Testing
3.0 Tools
4.0 Approvals
1.0 INTRODUCTION
Project Dynamic webside of covid-19 information using HTML, CSS, JAVASCRIPT And PHP,
MySQL database used to store user account, comment, and registration form details.
1. Functional testing
2. Selenium testing
Manual Testing
Automate d
Approac Type of Using Using
Testing on Tools/APIs/Libraries
h Testing Devic Emulat
Device
e Or
Standard Selenium No Yes No 1. Selenium
Testing Testing
(Functional
Testing)
PASSED TESTCASES 7
FAILED TESTCASES 2
PENDING TERSTCASES 0
Validation units
INSERT 63 37 00 MODERATE -
related to insertion
Retrieval of records
VIEW 100 100 00 LOW -
from DB
Searching records in
SEARCH 100 100 00 MODERARTE -
DB
PASSED TESTCASES 3
FAILED TESTCASES 1
PENDING TERSTCASES 0
3.0 TOOLS
Conclusion: