0% found this document useful (0 votes)
33 views16 pages

Stqa Project 2 Vrewb VR

project report

Uploaded by

Aryan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views16 pages

Stqa Project 2 Vrewb VR

project report

Uploaded by

Aryan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Online Inventory Tracking System

Title
Mini-Project 3:
Create a small web-based application by selecting relevant system environment /
platform and programming languages. Narrate concise Test Plan consisting
features to be tested and bug taxonomy. Narrate scripts in order to perform
regression tests. Identify the bugs using Selenium WebDriver and IDE and
generate test reports encompassing exploratory testing.

Software Requirements
HTML, CSS, JavaScript, Node.js, Express.js, Selenium, Selenium IDE, PYTHON

Hardware Requirement
2GB RAM, 500 GB HDD, i5 Processor

Theory

What is Selenium?
Selenium is a free (open source) automated testing suite for web applications
across different browsers and platforms. Selenium is a suite of software tools to
automate Web Browsers.• It is an Open-source suite of tools mainly used for
Functional and Regression Test Automation. Selenium is a free (open source)
automated testing suite for web applications across different browsers and
platforms.

It is quite like HP Quick Test Pro (QTP now UFT) only that Selenium focuses on
automating web-based applications. Testing done using Selenium tool is usually
referred to as Selenium Testing.
Selenium supports various Operating environments.
○ Microsoft Windows
○ Linux
○ Macintosh
● Selenium supports various Browsers.
○ Mozilla Firefox
○ IE
○ Google Chrome
○ Safari
○ Opera
● Selenium supports various programming environments to write programs (Test scripts)
○ Java
○ C#
○ Python
○ Perl
○ Ruby
○ PHP

History of the Selenium Project


Selenium first came to life in 2004.

● In 2006, Selenium WebDriver was launched at Google.


● In 2008, the whole Selenium team decided to merge Selenium WebDriver
with Selenium RC to form a more powerful tool called Selenium 2.0
○ Selenium 1
■ (Selenium IDE + Selenium RC + Selenium Grid)
○ Selenium 2
■ (Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)
Selenium’ Tools Suite
Selenium is not just a single tool but a suite of software's, each catering to different
testing needs of an organization. It has four components.
● Selenium Integrated Development Environment (IDE)
● Selenium Remote Control (RC)
● WebDriver
● Selenium Grid

1. Selenium IDE Features :-

 Create Test Cases, Test suites (We can Record test cases or type
Test steps using element locators and Selenese commands)

 Edit Test Cases

 Execute Test cases, Test suites

 Debug Test Cases.

 Enhance Test Cases

2. Drawbacks of Selenium IDE:-

 It supports Mozilla Firefox browser only.

 It doesn’t support Programming logic/features to enhance Test cases.

 It doesn’t support Data-Driven Testing.

 It is not suitable for complex test case design.

 No centralized maintenance of Objects/Elements

2. Selenium Remote Control (Selenium RC) :-

Selenium RC was the flagship testing framework of the whole Selenium


project for a long time. This is the first automated web testing tool that
allowed users to use a programming language they prefer. As of version
2.25.0, RC can support the following programming languages:

○ Java

○ C#

○ PHP
○ Python

○ Perl

○ Ruby

3. Selenium WebDriver :-

 It is a Programming interface to create and execute Test cases.

 Selenium IDE has IDE but doesn’t have Programming interface.

 Selenium WebDriver has Programming interface but doesn’t have IDE.

 It communicates directly to the browser.

 No need of Separate Server such as RC ServerUFT/QTP has both IDE


as well as a Programming interface.

 Faster Execution than IDE & RC


 Selenium WebDriver supports various programming
environments to write programs.

i. Java

ii. C#

iii. Perl

iv. Python

v. Ruby

vi. PHP

 Using Element/Object locators/properties and Webdriver Methods we


can create and execute Test cases.

 Selenium Webdriver supports various browsers to create and


execute a test case/test script/test

Note: Browser driver varies from one browser to another.

● Drawbacks of Selenium WebDriver


○ It doesn’t generate detailed Test Reports.
○ No centralized maintenance of Object/elements
○ It requires Programming Knowledge
○ Cannot support the readily new browser
○ Installation is More Complicated than Selenium IDE
○ No built-in mechanism for logging runtimemessage
4. Selenium Grid :-

 Selenium Grid is used to execute tests across multiple browsers,


operating environments and machines in parallel.
 Selenium Grid 2 supports Selenium RC Tests as well as Selenium
WebDriver Tests.
i. Selenium WebDriver to create Test cases using Element locators and
Webdriver methods.
ii. Java Programming to enhance test cases.
iii. TestNG Framework to group test cases, execute test
batches and generate detailed test reports.
 Features:
 Enables simultaneous running of tests in multiple browsers and environments.
 Saves time enormously.
 Utilizes the hub-and-node concept. The hub acts as a central source of
Selenium commands to each node connected to it.
2. TEST PLAN

Introduction:-
Testing the Inventory Tracking system application.
Goals: To provide platform for online inventory
system Objectives: Provide platform to maintain
record of goods.

Features to be tested:-
 Login
 Sign Up
 Book Cab
 Check Availability

Approach :-
 Unit Testing
 Integration Testing
 Acceptance Testing
 Alpha Testing
 Beta Testing

Item Pass/Fail Criteria :-


 Evaluation Team - This subsection describes the job
responsibilities and possibly the names of those on the
evaluation team.
 Exit Criteria - Defines when to stop testing.
 Evaluation Process - Describes the four steps of the evaluation
process to be followed.
 Requirements Traceability Matrix - Describes the process to record and
track incidents back to requirements

Suspension Criteria and Resumption Requirements :-


 Specify criteria to be used to suspend the testing activity.
 Specify testing activities which must be redone when testing is resumed.

Test Deliverables :-
 Test Cases
 Test Scripts
 Defect Reports
 Test Reports

Test Environment :-
 Environment
Windows 10
Chromedrive
r Selenium
Apache
Tomcat

 Programming
Languages HTML
CSS
JAVA
Servlet
 Testing tool
used
selenium

Test Case Scenarios :-


Sr No Input Description Expected Actual Status
Result Result
1 ! Email should Email is Email is not Pass
abcupgmail.co be in proper in accepted
m format wrong
format
2 Signup After Data should Data is Pass
be inserted inserted
signup in database
information and and page
should redirected is
be to login redirected
stored in page to login
database page
and
redirected
to
login page
3 login If credentials Page should Page Pass
provided are redirected
correct then to Profileshould
it should be page if
redirected
redirected to credentials to
matched login page if
credentials
matched and
Profile Page Otherwise Otherwise
it display it display
the the
message message
that that
<Invalid <Invalid
credentials= credentials=
4 Empty Empty input If field If field Pass
should not is is
field validation be accepted empty form empty
should not form
be should not
submitted be submitted
5 Password Password Password Password Pass
length should length length
be greater
than Or less than 8 less than 8
equal to 8 digits digits
should not should not
be be
accepted accepted
6 Book Cab When user Request Request Pass
book a cab sent to sent to
then driver driver
request
should be
sent to
driver

7 Check When user If cab If cab Pass


Availability search for a available available
cab and if it then then
is available information information
then of cab of cab
information should be should be
of available displayed displayed
cab should otherwise it otherwise it
be displayed should should
displayed displayed
the the
message message
<no cabs <no cabs
are are
available= available=

Setting up Selenium: -
Use pip to install the selenium package . Python 3.6 has pip available in the standard

library. Using pip ,you can install selenium like this :- pip install selenium
Setting up Chromedriver :-
1. Install chocolatey :-

Visit official website of chocolatey


https://chocolatey.org/

Steps to Install Chocolatey :-

2. Install Chromedriver :-

choco install chromedriver


Selenium Testing Using Webdriver :-

Use the Selenium with ChromeDriver the Corresponding Package has to be included before initializing .

Testing the login functionality :-


Testing Using Selenium IDE :-
Program :-

Conclusion :-
In this way using the Selenium we have Perform Testing and Prepared Test Report
of the same.

You might also like