SlideShare a Scribd company logo
1 of 54
TESTING WEB APPLICATONS
AGENDA:
īƒ˜WHAT IS TESTING ?
īƒ˜TESTING PROCESS
īƒ˜TYPES OF TESTING
īƒ˜MVC
īƒ˜COST ESTIMATION FOR SOFTWARE PROJECTS
īƒ˜ESTIMATION FOR AGILE AND WEBAPPS
īƒ˜CONCLUSIONS
īƒ˜Q & A
TESTING WEB APPLICATIONS
Testing:
Testing is the process of exercising software with
the intent of finding of errors.
Web Testing:
Webapp testing is a collection of related activities
with a single goal: to uncover errors in webapp
content, function, usability, navigability, performance,
capacity, and security.
Challenges in Web application testing:
Web based systems and applications reside on
network and interoperate with many different
1. operating systems,
2. browsers,
3. hardware platforms,
4. communications protocols,
the search for errors represents a significant challenge
Dimensions of Quality for Web Applications:
Quality is incorporated into a web application as a
consequence of good design. Reviews and Testing
examine one or more of the following quality
dimensions.
1.Content 2.Function 3.Structure
4.Usability 5.Navigability 6.Performance
7.Compatibility 8.Interoperability 9.Security.
Common Errors in Web
Applications
ī‚— You often see a symptom of the error, not the error itself.
ī‚— It may be difficult or impossible to reproduce an error
outside the environment in which the error was originally
encountered.
ī‚— Many errors can be traced to the webapp configuration.
ī‚— Errors can be difficult to trace across three architectural
layers: the client, the server, or the network itself.
ī‚— Some errors are due to the static operating and others are
attributable to the dynamic operating Environment.
Testing Approach for web application:
ī‚— The content model for the webapp is reviewed to
uncover errors.
ī‚— The interface model is reviewed to ensure that all use
cases can be accommodated.
ī‚— The design model for the webapp is reviewed to
uncover navigation errors.
ī‚— The user interface is tested to uncover errors in
presentation and/or navigation mechanics
ī‚— Functional components are unit tested.
Testing Approach for web application:
ī‚— Navigation throughout the architecture should be tested.
ī‚— The webapp is implemented in a variety of different
environmental configurations and is tested for
compatibility with each configuration.
ī‚— Security tests are conducted in an attempt to exploit
vulnerabilities in the webapp or within its environment
ī‚— Performance tests should be conducted.
ī‚— The webapp is tested by a controlled and monitored
population of end users the results of their interaction with
the system are evaluated for content and navigation
errors, usability concerns, compatibility concerns, and the
webapp security, reliability, and performance.
Testing process
Configurati
on testing
Performance
testing
Security
testing
Content
testing Interface testing
Navigation
testing
Component
testing
Component design
Architecture design
Navigation design
Content design
Aesthetic
design
Interf
ace
Technology
Content Testing:
Content testing has three important objectives
ī‚— 1. To uncover syntactic errors(for eg., typos, grammar
mistakes) in the text-based documents, graphical
representations, and other media
ī‚— 2. To uncover semantic errors(i.e., focuses on the
information presented within each content object)
ī‚— 3. To find errors in the organization or structure of the
content that is presented to the end user.
Database testing:
ī‚— Tests should be designed to uncover errors made in translating
the user’s request into a form that can be processed by the
DBMS.
ī‚— Tests that uncover errors in communication between the webapp
and the remote database must be developed.
ī‚— Raw data acquired from the database must be transmitted to the
webapp server and properly formatted for subsequent
transmittal to the client.
ī‚— Tests that demonstrate the validity of the transformations
applied to the raw data to create valid content objects must also
be created.
ī‚— Content and compatibility testing will be done after the
dynamic content object is transmitted to the client in a form that
can be displayed to end user
Layers of interaction
User Interface Testing
ī‚— Interface features include type fonts, the use of
color, frames, images, borders, tables, and related interface
features that are generated as webapp execution proceeds
should be tested
ī‚— Individual interface mechanisms are tested in a manner
that is analogous to unit testing(client-side
scripting, dynamic HTML, scripts, streaming content).
ī‚— Each interface mechanism is tested within the context of a use
case for a specific user category which is analogous to
integration testing
ī‚— The complete interface is tested against selected use cases and
NSUs to uncover errors in the semantics of the interface
which is analogous to validation testing
Interface mechanisms
When a user interacts with a webapp, the interaction occurs through
one or more interface mechanisms.
Links:
Each navigation link is tested to ensure that the proper content object
or function is reached.
Forms:
ī‚— At a macroscopic level, tests are performed to ensure that Labels
correctly identify fields within the form and that mandatory fields are
identified visually for the user
ī‚— The server receives all information contained within the form and that
no data are lost in the transmission between client and server
ī‚— Appropriate defaults are used when the user does not select from a
pull-down menu or set of buttons
ī‚— Browser functions(e.g., back arrow) do not corrupt data entered in a
form
Interface mechanisms
Client-side scripting:
1. Black-box tests are conducted to uncover any errors in processing as
the script is executed.
2. These tests are often coupled with form testing, because script input
is often derived from data provided as part of forums processing.
3. A compatibility test should be conducted to ensure that the scripting
language that has been chosen will work properly in the environmental
configurations that the webapp.
Dynamic HTML:
1. Tests should be conducted to ensure that dynamic HTML is displayed
correctly.
2. Compatibility test should be conducted to ensure that dynamic
HTML works properly in the environmental configurations that
support the webapp
Interface mechanisms
Pop-up windows:
A series of tests ensure that
ī‚— The pop-up is properly sized and positioned
ī‚— The pop-up does not cover the original webapp
window
ī‚— The aesthetic design of the pop-up is consistent with
aesthetic design of the interface
ī‚— Scroll bars and other control mechanisms appended to
the pop-up are properly located and function is
required.
Interface mechanisms
Streaming content:
Tests should demonstrate that streaming data are up-to-date properly
displayed, and can be suspended without error and restarted without
difficulty.
Cookies:
On the server side, tests should ensure that a cookie is properly
constructed and properly transmitted to the client side when specific
content or functionality is requested and to ensure that its expiration
date is correct.
On the client side, tests determine whether the webapp properly
attaches existing cookies to a specific request sent to server
Compatibility tests:
ī‚— A series of compatibility validation tests are
derived, often adapted from existing interface
tests, navigation tests, performance tests, and security
tests.
ī‚— The intent of the test is to uncovers the errors or
execution problem that can be traced to configuration
differences.
Component level testing
ī‚— Component-level testing, also called function testing, focuses on a set
of tests that attempt to uncover errors in webapp functions. Each
webapp function is a software component (implemented in one of a
variety of programming or scripting languages) and can be tested using
black box or sometimes white box techniques
ī‚— Black box techniques are equivalence partitioning, boundary value
analysis
ī‚— White box techniques : path testing
ī‚— Forced error testing:
īļ It is used to derive test cases that purposely drive the webapp
component into an error condition.
īļ The purpose is to uncover errors that occur during error handling (eg
incorrect or nonexistent error message, webapp failure as consequence
of the error, erroneous output driven by erroneous input, side effects
that are related to component processing).
Navigation testing
īƒ˜ To ensure that the mechanisms that allow the
webapp user to travel through the webapp are all
functional and to validate the each NSU can be
achieved by the appropriate user category
īƒ˜ Navigation mechanisms are tested to ensure that
each performs its intended function.
Navigation mechanisms
ī‚— Navigation
Internal, External links and anchors within a specific web page
should be tested to ensure that proper content or functionality is
reached when the link is chosen.
ī‚— Bookmarks
Even it is a browser function, the webapp should be tested to ensure
that a meaningful page title can be extracted as the bookmark is created.
ī‚— Redirects
Redirects should be tested by requesting incorrect internal links or
external URLs and assessing how the webapp handles these requests.
Navigation mechanisms
ī‚— Frames and framesets
īƒ˜ Each frame contains the content of a specific web page, and a
frameset contains multiple frames and enables the display of
multiple web pages at the same time.
īƒ˜ Test should ensure these functions works properly.
ī‚— Internal search engines
Search engine testing validates the accuracy and
completeness of the search, the error-handling properties of the
search engine, and advanced search features(eg., the use of
Boolean operators in the search field)
ī‚— Site Maps
1. It provides a complete table of contents for all web pages.
2. Each site map entry should be tested to ensure that the links
take the user to the proper content or functionality
Configuration Testing
To test a set of probable client-side and server-
side configurations to ensure that the user experience
will be the same on all of them and to isolate errors
that may be specific to a particular configuration.
Server-side issues:
ī‚— As server side configuration tests are designed, you
should consider each component of the server
configuration.
ī‚— Is the webapp fully compatible with the server OS?
ī‚— Are system files, directories, and related system data
created correctly when the webapp is operational?
Configuration testing
CONTINUATIONâ€Ļ
ī‚— Do system security measures (e.g., firewalls or encryption)
allow the webapp to execute and service users without
interference or performance degradation?
ī‚— Has the webapp been tested with the distributed server
configuration?
ī‚— Is the webapp properly integrated with database software?
ī‚— Is the webapp sensitive to different versions of database
software?
ī‚— Do server-side webapp scripts execute properly?
ī‚— Have system administrator errors been examined for their
effect on webapp operations?
Configuration testing
Client-side issues:
ī‚— On the client side, configuration test focus more heavily on
webapp compatibility with configurations that contain one or
more permutations of the following components.
ī‚— Hardware – CPU, memory, storage, and printing devices
ī‚— Operating systems - Linux, Macintosh OS, Microsoft
Windows, a mobile- based OS
ī‚— Browser software - Firefox, Safari, IE, Opera, Chrome, and
others
ī‚— User interface components- Active X, Java applets, and others
ī‚— Plug-ins- QuickTime, RealPlayer, and many others
ī‚— Connectivity – cable, DSL, regular modem, T1,WiFi
Security Testing
Security tests are designed to probe vulnerabilities of the
client-side environment, the network communications that
occur as data are passed from client to server and back
again, and the server-side environment.
Client side vulnerabilities:
ī‚— On the client side, vulnerabilities can often be traced to
preexisting bugs in browsers, e-mail programs, or
communication software.
ī‚— For eg : one of the commonly mentioned bugs is Buffer
Overflow
Security Testing
Network vulnerabilities:
ī‚— Data communicated between the client and server are
vulnerable to spoofing. Spoofing occurs when one end
of the communication pathway is subverted by and
entity with malicious intent.
ī‚— For e.g., A user can be spoofed by a malicious website
that acts as if it is the legitimate webapp server. The
intent is to steal passwords, proprietary
information, or credit data.
Security Testing
Server side vulnerabilities:
Vulnerabilities include denial- of-service attacks and
malicious scripts that can be passed along to the client
side or used to disable server operation
For eg: server –side databases can be accessed without
authorization(data theft).
Security Testing
To protect against these vulnerabilities, one or more of the following security
elements is implemented
ī‚— Firewall – a filtering mechanism that is a combination of hardware and
software that examines each incoming packet of information to ensure that it is
coming from a legitimate source, blocking any data that are suspect.
ī‚— Authentication - a verification mechanism that validates the identity of all
clients and servers, allowing communication to occur only when both sides are
verified.
ī‚— Encryption – an encoding mechanism that protects sensitive data by modifying
it in a way that makes it impossible to read by those with malicious intent.
Encryption is strengthened by using digital certificates that allow the client to
verify the destination to which th data are transmitted.
ī‚— Authorization - a filtering mechanism that allows access to the client or server
environment only by those individuals with appropriate authorization
codes(e.g., user ID and password)
Performance testing
It is used to uncover performance problems that can result from:
ī‚— Lack of server-side resources
ī‚— Inappropriate network bandwidth
ī‚— Inadequate database capabilities, faulty or weak operating
system capabilities
ī‚— Poorly designed webapp functionality
The intent is twofold
īļTo understand how the system responds as loading (i.e.
., number of users, number of transactions, or overall data
volume) increases
īļTo collect metrics that will lead to design modifications to
improve performance
Load testing
ī‚— The intent of load testing is to determine how the webapp and its server-sie
environment will respond to various loading conditions. As testing
proceeds, permutations to the following variables define a set of test
conditions:
ī‚— N, number of concurrent users
ī‚— T, number of online transactions per unit of time
ī‚— D, data load processed by the server per transaction.
ī‚— Load testing can also be used to assess recommended connection speeds for
user of the webapp. Overall throughput, P, is computed in the following
manner:
ī‚— P= N* T*D
ī‚— As an example, consider a popular sports news site. At a given moment, 20,000
concurrent users submit a request(a transaction, T) once every 2 minutes on
average. Each transaction requires the webapp to download a new article that
averages 3 bytes in length. Therefore, throughput can be calculated as
P=[20,000*0.5*3kb]/60=500kbytes/sec=4 megabits per second
Stress testing
ī‚— Stress testing is a continuation of load testing, but in this instance the
variables, N, T and D are forced to meet and then exceed operational limits.
The intent of test is to check:
ī‚— Does the system degrade ”gently”, or does the server shut down as capacity is
exceeded?
ī‚— Does server software generate “server not available” message? More
generally, are users aware that they cannot reach the server?
ī‚— Does the server queue resource requests and empty the queue once capacity
demands diminish?
ī‚— Are transactions lost as capacity is exceeded?
ī‚— If the system does fail, how long will it take to come back online?
ī‚— What values of N, T, and D force the server environment to fail? How does
failure manifest itself? Are automated notifications sent to technical support
staff at the server site?
ī‚— Are certain webapp functions discontinued as capacity reaches the 80 or 90
percent level?
MODEL-VIEW-CONTROLLER
Webapp architecture
ī‚— WebApp architecture describes an infrastructure the enables a
web-based system or application to achieve its business
objectives
ī‚— Applications should be built using layers in which different
concerns are taken into account.
ī‚— In particular, application data should be separated from the
page’s contents(navigation nodes) and these contents, in turn
, should be clearly separated from the interface look-and–
feel(pages)
ī‚— The Model-View-Controller(MVC) architecture is one of a
number of suggested webapp infrastructure models that
decouple the user interface from the webapp functionality and
informational content.
MODEL-VIEW-CONTROLLER
ī‚— The model (sometimes referred to as the “model object”)
contains all application-specific content and processing
logic, including all content objects, access to external
data/information sources, and all processing functionality that is
application specific.
ī‚— The View contains all interface specific functions and enables
the presentation of content and processing logic, including all
content objects, access to external data/information sources, and
all processing functionality required by the end user.
ī‚— The controller manages access to the model and the view and
coordinates the flow of data between them.
ī‚— In webapp, “ the view is updated by the controller with data from
the model based on user input”
The MVC Architecture
Browser
Controller:
Manages user requests
Selects model behavior
Selects view response
Model:
Encapsulates functionality
Encapsulates content objects
Incorporates all webapp
states
View
Prepares data from model
Request updates from
model
Presents view selected by
controller
Server
Update
request
External DataClient
User request or data
H
T
M
L
d
a
t
a
View selection
Behavior request (state
change)
Data
from
model
MODEL-VIEW-CONTROLLER
ī‚— Referring to the figure, user requests or data are handled by
the controller. The controller also selects the view object
that is applicable based on the user request. Once the type
of request is determine, a behavior request is transmitted
to the model which implements the functionality or
retrieves the content required to accommodate the request.
ī‚— The model object can access data stored in a corporate
database, as part of a local data store, or as a collection of
independent files.
ī‚— The data developed by the model must be formatted and
organized by the appropriate view object and then
transmitted from the application server back to the client-
based browser for display on the customer’s machine
ESTIMATION FOR SOFTWARE PROJECTS
Software cost and effort estimation will never be an exact science.
To achieve reliable cost and effort estimates, a number of options arise:
1. Delay estimation until late in the project
Unfortunately, it is not practical.
2. Base estimates on similar projects that have already been completed.
The second option can reasonably well, if the current project is
quite similar to past efforts and other project influences(e.g., The
customer, business conditions, the software engineering
environment, deadlines) are roughly equivalent. Unfortunately, past
experience has not always been a good indicator of future results.
ESTIMATION FOR SOFTWARE PROJECTS
Decomposition Techniques:
īļ Decomposition techniques take a divide-and-conquer approach to
software project estimation.
īļ By decomposing a project into major functions and related software
engineering activities, cost and effort estimation can be performed in a
stepwise fashion.
Empirical estimation models
It can be used to complement decomposition techniques and offer a
potentially valuable estimation approach in their own right. A model is based
on experience and takes the form
d= f(vi)
Where d is one of a number of estimated values(e.g., effort, cost, project
duration) and vi are selected independent parameters(e.g., estimated LOC or
FP).
ESTIMATION FOR SOFTWARE PROJECTS
Decomposition Approach can be of two different point
of view
1.Decomposition of the problem.
2.Decomposition of the process.
Estimation uses one or both forms of partitioning
ESTIMATION FOR SOFTWARE PROJECTS
Software sizing:
ī‚— The accuracy of a software project estimate is predicated
on a number of things:
ī‚— The degree to which you have properly estimated the size
of the product to be built
ī‚— The ability to translate the size estimate into human
effort, calendar time, and dollars
ī‚— The degree to which the project plan reflects the abilities of
the software team
ī‚— The stability of product requirements and the environment
that supports the software engineering effort
ESTIMATION FOR SOFTWARE PROJECTS
Putnam and Myers suggest four different approaches
to the sizing problem:
ī‚— “Fuzzy logic” sizing : This approach uses the
approximate reasoning techniques that are the
cornerstone of fuzzy logic. To apply this approach, the
planner must identify the type of application, establish
its magnitude on a qualitative scale, and then refine
the magnitude within the original range.
ESTIMATION FOR SOFTWARE PROJECTS
Continuationâ€Ļ
ī‚— Function point sizing : The planner develops estimates
of the information domain characteristics.
ī‚— Standard component sizing : Software is composed of
a number of different “standard components” that are
generic to a particular application area.
ī‚— Change sizing : This approach is used when a project
encompasses the use of existing software that must be
modified in some way
ESTIMATION FOR SOFTWARE PROJECTS
Problem-Based estimation:
ī‚— LOC and FP data are used in two ways during software
project estimation:
ī‚— As estimation variables to “size” each element of the
software
ī‚— As baseline metrics collected from past projects and used
in conjunction with estimation variables to develop cost
and effort projections
ī‚— Baseline productivity metrics(e.g., LOC/pm or FP/pm^6)
are then applied to the appropriate estimation variable, and
cost or effort for the function is derived.
ī‚— Function estimates are combined to produce an overall
estimate for the entire project.
ESTIMATION FOR SOFTWARE PROJECTS
Process-Based Estimation
ī‚— The most common technique for estimating a project
is to base the estimate on the process that will be used.
That is, the process is decomposed into a relatively
small set of tasks and the effort required to
accomplish each task is estimated.
ī‚— Like the problem-based techniques, process-based
estimation begins with a delineation of software
functions obtained from the project scope. A series of
framework activities must be performed for each
function.
ESTIMATION FOR SOFTWARE PROJECTS
Estimation with use cases:
ī‚— Use cases are described using many different formats
and styles- there is no standard form
ī‚— Use cases represent an external view(the user’s view)
of the software and can therefore be written at many
different levels of abstraction.
ī‚— Use cases do not address the complexity of the
functions and features that are described
ī‚— Use cases can describe complex
behavior(e.g., interactions) that involve many
functions and features.
ESTIMATION FOR SOFTWARE PROJECTS
Empirical estimation models:
ī‚— An estimation model for computer software uses
empirically derived formulas to predict effort as a function
of LOC or FP. Values for LOC or FP are estimated , the
resultant values for LOC or FP are plugged into the
estimation model.
ī‚— The empirical data that support most estimation models
are derived from a limited sample of projects. For this
reason, no estimation model is appropriate for all classes of
software and in all development environments.
Therefore, you should use the results obtained from such
models judiciously.
ESTIMATION FOR SOFTWARE PROJECTS
ī‚— An estimation model should be calibrated to reflect
local conditions. The model should be tested by
applying data collected from completed
projects, plugging the data into the model, and then
comparing actual to predicated results. If agreement is
poor, the model must be tuned and retested before it
can be used.
ESTIMATION FOR SOFTWARE PROJECTS
THE COCOMO II MODEL
ī‚— In his classic book on “software engineering
economics”, Barry Boehm introduced a hierarchy of
software estimation models bearing the name
COCOMO, for constructive cost model.
ī‚— The original COCOMO model became one of the most
widely used and discussed software cost estimation models
in the industry.
ī‚— It has evolved into a more comprehensive estimation
model, called COCOMO II, COCOMO II is actually a
hierarchy of estimation models that address the following
areas:
ESTIMATION FOR SOFTWARE PROJECTS
The Application Composition Model
ī‚— Suitable for projects built with modern GUI-builder tools. Based
on new Object Points.
The Early Design Model
ī‚— You can use this model to get rough estimates of a project's cost
and duration before you've determined it's entire architecture. It
uses a small set of new Cost Drivers, and new estimating
equations. Based on Unadjusted Function Points or KLOC.
The Post-Architecture Model
ī‚— This is the most detailed COCOMO II model. You'll use it after
you've developed your project's overall architecture. It has new
cost drivers, new line counting rules, and new equations.
ESTIMATION FOR SOFTWARE PROJECTS
Estimation for agile development:
ī‚— Estimation for agile projects uses a decomposition
approach that encompasses the following steps:
ī‚— Each user scenario(the equivalent of a mini use case
created at the very start of a project by end users or
other stakeholders) is considered separately for
estimation purposes.
ī‚— The scenario is decomposed into the set of software
engineering tasks that will be required to develop it
ESTIMATION FOR SOFTWARE PROJECTS
Continuationâ€Ļ
ī‚— 3a. The effort required for each task is estimated separately.
Note: Estimation can be based on historical data, an empirical
model, or “experienced”
ī‚— 3b. alternatively, the “volume” of the scenario can be estimated in
LOC, FP, or some other volume-oriented measure
ī‚— 4a. Estimates for each task are summed to create an estimate for
the scenario.
ī‚— 4b. alternatively, the volume estimate for the scenario is
translated into effort using historical data.
ī‚— The effort estimates for all scenarios that are to be implemented
for a given software increment are summed to develop the effort
estimate for the increment
ESTIMATION FOR SOFTWARE PROJECTS
Estimation for webapp projects
ī‚— Webapp projects often adopt the agile process model.
A modified function point measure, coupled with the
steps outlined, can be used to develop an estimate for
the webapp. The following approach when adapting
function points for webapp estimation.
ī‚— Inputs are each input screen or form (for example, CGI
or java), each maintenance screen
ESTIMATION FOR SOFTWARE PROJECTS
Continuationâ€Ļ
ī‚— Outputs are each static web page, each dynamic web page
script(for e.g., ASP, ISAPI, or other DHTML script), and each
report(whether web based or administrative in nature).
ī‚— Tables are each logical table in the database plus, if you are using
XML to store data in a file, each XML object( or collection of
XML attributes)
ī‚— Interfaces retain their definition as logical files(for e.g., unique
record formats) into our out-of-the-system boundaries
ī‚— Queries are each externally published or use a message-oriented
interface. A typical example is DCOM or COM external
references.
ī‚— For more information: software estimation techniques
Conclusion:
ī‚— Changes in software engineering technology are indeed
“rapid and unforgiving” but at the same time progress is
often quite slow.
ī‚— By the time a decision is made to adopt a new
process, method, or tool
ī‚— Conduct the training necessary to understand its application
ī‚— Introduce the technology into the software development
culture
ī‚— Something newer has come along, and the process begins
anew
Q & A

More Related Content

What's hot

Regression Test Automation Framework
Regression Test Automation Framework Regression Test Automation Framework
Regression Test Automation Framework Infosys
 
Automation framework
Automation framework Automation framework
Automation framework ITeLearn
 
Testing in CI / CD Pipeline
Testing in CI / CD PipelineTesting in CI / CD Pipeline
Testing in CI / CD PipelineMichael Ciulla
 
Testing project (basic)
Testing project (basic)Testing project (basic)
Testing project (basic)Lokesh Singrol
 
Web engineering - MVC
Web engineering - MVCWeb engineering - MVC
Web engineering - MVCNosheen Qamar
 
Netserv Software Testing
Netserv Software TestingNetserv Software Testing
Netserv Software Testingsthicks14
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework DesignsSauce Labs
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_moduleSuresh Mishra
 
Aut web shrikant_bhalerao
Aut web shrikant_bhaleraoAut web shrikant_bhalerao
Aut web shrikant_bhaleraoShrikant Bhalerao
 
Testing level
Testing levelTesting level
Testing levelzahid7578
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsSteven Li
 
Frequently Used Off Host Developer Toolsl
Frequently Used Off Host Developer ToolslFrequently Used Off Host Developer Toolsl
Frequently Used Off Host Developer ToolslSharan S
 
Visual Studio 2010 for testers
Visual Studio 2010 for testersVisual Studio 2010 for testers
Visual Studio 2010 for testersArpit Dubey
 
M. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅ
M. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅM. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅ
M. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅAlex
 
Web testing
Web testingWeb testing
Web testingAbdul Basit
 
MD Tareque Automation
MD Tareque AutomationMD Tareque Automation
MD Tareque AutomationMD Tareque
 

What's hot (20)

Regression Test Automation Framework
Regression Test Automation Framework Regression Test Automation Framework
Regression Test Automation Framework
 
Automation framework
Automation framework Automation framework
Automation framework
 
Testing in CI / CD Pipeline
Testing in CI / CD PipelineTesting in CI / CD Pipeline
Testing in CI / CD Pipeline
 
Testing project (basic)
Testing project (basic)Testing project (basic)
Testing project (basic)
 
Web engineering - MVC
Web engineering - MVCWeb engineering - MVC
Web engineering - MVC
 
Netserv Software Testing
Netserv Software TestingNetserv Software Testing
Netserv Software Testing
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
Qa process
Qa processQa process
Qa process
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_module
 
Aut web shrikant_bhalerao
Aut web shrikant_bhaleraoAut web shrikant_bhalerao
Aut web shrikant_bhalerao
 
Testing level
Testing levelTesting level
Testing level
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
 
Qa process
Qa processQa process
Qa process
 
Frequently Used Off Host Developer Toolsl
Frequently Used Off Host Developer ToolslFrequently Used Off Host Developer Toolsl
Frequently Used Off Host Developer Toolsl
 
Resume_QA
Resume_QAResume_QA
Resume_QA
 
Visual Studio 2010 for testers
Visual Studio 2010 for testersVisual Studio 2010 for testers
Visual Studio 2010 for testers
 
M. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅ
M. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅM. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅ
M. Holovaty, КоĐŊŅ†ĐĩĐŋŅ†Đ¸Đ¸ авŅ‚ĐžĐŧĐ°Ņ‚иСиŅ€ĐžĐ˛Đ°ĐŊĐŊĐžĐŗĐž Ņ‚ĐĩŅŅ‚иŅ€ĐžĐ˛Đ°ĐŊиŅ
 
Web testing
Web testingWeb testing
Web testing
 
Web testing
Web testingWeb testing
Web testing
 
MD Tareque Automation
MD Tareque AutomationMD Tareque Automation
MD Tareque Automation
 

Similar to Testingwebapplication by nandi cool

Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...
Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...
Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...Esraa Farrag
 
New Web Testing power point presentation
New Web Testing power point presentationNew Web Testing power point presentation
New Web Testing power point presentationharinathrk
 
Lecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxLecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxBalkrishanpatidar
 
Lecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxLecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxBalkrishanpatidar
 
Lecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxLecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxBalkrishanpatidar
 
What is Selenium Testing.pdf
What is Selenium Testing.pdfWhat is Selenium Testing.pdf
What is Selenium Testing.pdfAnanthReddy38
 
What is Web Testing?
What is Web Testing?   What is Web Testing?
What is Web Testing? QA InfoTech
 
Software Testing Introduction (Part 4))
 Software Testing Introduction (Part 4)) Software Testing Introduction (Part 4))
Software Testing Introduction (Part 4))Thapar Institute
 
072SWE415StNotes13.ppt
072SWE415StNotes13.ppt072SWE415StNotes13.ppt
072SWE415StNotes13.pptPritishMarathe
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Knoldus Inc.
 
Unit Testing Essay
Unit Testing EssayUnit Testing Essay
Unit Testing EssayDani Cox
 
Upstream testing.
Upstream testing.Upstream testing.
Upstream testing.Mindtree Ltd.
 
Glimpse and Benefits of Testing
Glimpse and Benefits of TestingGlimpse and Benefits of Testing
Glimpse and Benefits of TestingSourabh Kasliwal
 
Testing of web based Applicatons
Testing of web based ApplicatonsTesting of web based Applicatons
Testing of web based ApplicatonsVenkatakumar Reddy
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...madhurpatidar2
 
Reliability Improvement with PSP of Web-Based Software Applications
Reliability Improvement with PSP of Web-Based Software ApplicationsReliability Improvement with PSP of Web-Based Software Applications
Reliability Improvement with PSP of Web-Based Software ApplicationsCSEIJJournal
 

Similar to Testingwebapplication by nandi cool (20)

Testing web application
Testing web applicationTesting web application
Testing web application
 
Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...
Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...
Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...
 
New Web Testing power point presentation
New Web Testing power point presentationNew Web Testing power point presentation
New Web Testing power point presentation
 
Lecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxLecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptx
 
Lecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxLecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptx
 
Lecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptxLecture31-Web-based-testing-I.pptx
Lecture31-Web-based-testing-I.pptx
 
Web test
Web testWeb test
Web test
 
Web test
Web testWeb test
Web test
 
What is Selenium Testing.pdf
What is Selenium Testing.pdfWhat is Selenium Testing.pdf
What is Selenium Testing.pdf
 
What is Web Testing?
What is Web Testing?   What is Web Testing?
What is Web Testing?
 
Software Testing Introduction (Part 4))
 Software Testing Introduction (Part 4)) Software Testing Introduction (Part 4))
Software Testing Introduction (Part 4))
 
GUI, Performance, Load and API testing with Test Studio
GUI, Performance, Load and API testing with Test StudioGUI, Performance, Load and API testing with Test Studio
GUI, Performance, Load and API testing with Test Studio
 
072SWE415StNotes13.ppt
072SWE415StNotes13.ppt072SWE415StNotes13.ppt
072SWE415StNotes13.ppt
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6
 
Unit Testing Essay
Unit Testing EssayUnit Testing Essay
Unit Testing Essay
 
Upstream testing.
Upstream testing.Upstream testing.
Upstream testing.
 
Glimpse and Benefits of Testing
Glimpse and Benefits of TestingGlimpse and Benefits of Testing
Glimpse and Benefits of Testing
 
Testing of web based Applicatons
Testing of web based ApplicatonsTesting of web based Applicatons
Testing of web based Applicatons
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
 
Reliability Improvement with PSP of Web-Based Software Applications
Reliability Improvement with PSP of Web-Based Software ApplicationsReliability Improvement with PSP of Web-Based Software Applications
Reliability Improvement with PSP of Web-Based Software Applications
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
CÃŗdigo Creativo y Arte de Software | Unidad 1
CÃŗdigo Creativo y Arte de Software | Unidad 1CÃŗdigo Creativo y Arte de Software | Unidad 1
CÃŗdigo Creativo y Arte de Software | Unidad 1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Testingwebapplication by nandi cool

  • 1. TESTING WEB APPLICATONS AGENDA: īƒ˜WHAT IS TESTING ? īƒ˜TESTING PROCESS īƒ˜TYPES OF TESTING īƒ˜MVC īƒ˜COST ESTIMATION FOR SOFTWARE PROJECTS īƒ˜ESTIMATION FOR AGILE AND WEBAPPS īƒ˜CONCLUSIONS īƒ˜Q & A
  • 2. TESTING WEB APPLICATIONS Testing: Testing is the process of exercising software with the intent of finding of errors. Web Testing: Webapp testing is a collection of related activities with a single goal: to uncover errors in webapp content, function, usability, navigability, performance, capacity, and security.
  • 3. Challenges in Web application testing: Web based systems and applications reside on network and interoperate with many different 1. operating systems, 2. browsers, 3. hardware platforms, 4. communications protocols, the search for errors represents a significant challenge
  • 4. Dimensions of Quality for Web Applications: Quality is incorporated into a web application as a consequence of good design. Reviews and Testing examine one or more of the following quality dimensions. 1.Content 2.Function 3.Structure 4.Usability 5.Navigability 6.Performance 7.Compatibility 8.Interoperability 9.Security.
  • 5. Common Errors in Web Applications ī‚— You often see a symptom of the error, not the error itself. ī‚— It may be difficult or impossible to reproduce an error outside the environment in which the error was originally encountered. ī‚— Many errors can be traced to the webapp configuration. ī‚— Errors can be difficult to trace across three architectural layers: the client, the server, or the network itself. ī‚— Some errors are due to the static operating and others are attributable to the dynamic operating Environment.
  • 6. Testing Approach for web application: ī‚— The content model for the webapp is reviewed to uncover errors. ī‚— The interface model is reviewed to ensure that all use cases can be accommodated. ī‚— The design model for the webapp is reviewed to uncover navigation errors. ī‚— The user interface is tested to uncover errors in presentation and/or navigation mechanics ī‚— Functional components are unit tested.
  • 7. Testing Approach for web application: ī‚— Navigation throughout the architecture should be tested. ī‚— The webapp is implemented in a variety of different environmental configurations and is tested for compatibility with each configuration. ī‚— Security tests are conducted in an attempt to exploit vulnerabilities in the webapp or within its environment ī‚— Performance tests should be conducted. ī‚— The webapp is tested by a controlled and monitored population of end users the results of their interaction with the system are evaluated for content and navigation errors, usability concerns, compatibility concerns, and the webapp security, reliability, and performance.
  • 8. Testing process Configurati on testing Performance testing Security testing Content testing Interface testing Navigation testing Component testing Component design Architecture design Navigation design Content design Aesthetic design Interf ace Technology
  • 9. Content Testing: Content testing has three important objectives ī‚— 1. To uncover syntactic errors(for eg., typos, grammar mistakes) in the text-based documents, graphical representations, and other media ī‚— 2. To uncover semantic errors(i.e., focuses on the information presented within each content object) ī‚— 3. To find errors in the organization or structure of the content that is presented to the end user.
  • 10. Database testing: ī‚— Tests should be designed to uncover errors made in translating the user’s request into a form that can be processed by the DBMS. ī‚— Tests that uncover errors in communication between the webapp and the remote database must be developed. ī‚— Raw data acquired from the database must be transmitted to the webapp server and properly formatted for subsequent transmittal to the client. ī‚— Tests that demonstrate the validity of the transformations applied to the raw data to create valid content objects must also be created. ī‚— Content and compatibility testing will be done after the dynamic content object is transmitted to the client in a form that can be displayed to end user
  • 12. User Interface Testing ī‚— Interface features include type fonts, the use of color, frames, images, borders, tables, and related interface features that are generated as webapp execution proceeds should be tested ī‚— Individual interface mechanisms are tested in a manner that is analogous to unit testing(client-side scripting, dynamic HTML, scripts, streaming content). ī‚— Each interface mechanism is tested within the context of a use case for a specific user category which is analogous to integration testing ī‚— The complete interface is tested against selected use cases and NSUs to uncover errors in the semantics of the interface which is analogous to validation testing
  • 13. Interface mechanisms When a user interacts with a webapp, the interaction occurs through one or more interface mechanisms. Links: Each navigation link is tested to ensure that the proper content object or function is reached. Forms: ī‚— At a macroscopic level, tests are performed to ensure that Labels correctly identify fields within the form and that mandatory fields are identified visually for the user ī‚— The server receives all information contained within the form and that no data are lost in the transmission between client and server ī‚— Appropriate defaults are used when the user does not select from a pull-down menu or set of buttons ī‚— Browser functions(e.g., back arrow) do not corrupt data entered in a form
  • 14. Interface mechanisms Client-side scripting: 1. Black-box tests are conducted to uncover any errors in processing as the script is executed. 2. These tests are often coupled with form testing, because script input is often derived from data provided as part of forums processing. 3. A compatibility test should be conducted to ensure that the scripting language that has been chosen will work properly in the environmental configurations that the webapp. Dynamic HTML: 1. Tests should be conducted to ensure that dynamic HTML is displayed correctly. 2. Compatibility test should be conducted to ensure that dynamic HTML works properly in the environmental configurations that support the webapp
  • 15. Interface mechanisms Pop-up windows: A series of tests ensure that ī‚— The pop-up is properly sized and positioned ī‚— The pop-up does not cover the original webapp window ī‚— The aesthetic design of the pop-up is consistent with aesthetic design of the interface ī‚— Scroll bars and other control mechanisms appended to the pop-up are properly located and function is required.
  • 16. Interface mechanisms Streaming content: Tests should demonstrate that streaming data are up-to-date properly displayed, and can be suspended without error and restarted without difficulty. Cookies: On the server side, tests should ensure that a cookie is properly constructed and properly transmitted to the client side when specific content or functionality is requested and to ensure that its expiration date is correct. On the client side, tests determine whether the webapp properly attaches existing cookies to a specific request sent to server
  • 17. Compatibility tests: ī‚— A series of compatibility validation tests are derived, often adapted from existing interface tests, navigation tests, performance tests, and security tests. ī‚— The intent of the test is to uncovers the errors or execution problem that can be traced to configuration differences.
  • 18. Component level testing ī‚— Component-level testing, also called function testing, focuses on a set of tests that attempt to uncover errors in webapp functions. Each webapp function is a software component (implemented in one of a variety of programming or scripting languages) and can be tested using black box or sometimes white box techniques ī‚— Black box techniques are equivalence partitioning, boundary value analysis ī‚— White box techniques : path testing ī‚— Forced error testing: īļ It is used to derive test cases that purposely drive the webapp component into an error condition. īļ The purpose is to uncover errors that occur during error handling (eg incorrect or nonexistent error message, webapp failure as consequence of the error, erroneous output driven by erroneous input, side effects that are related to component processing).
  • 19. Navigation testing īƒ˜ To ensure that the mechanisms that allow the webapp user to travel through the webapp are all functional and to validate the each NSU can be achieved by the appropriate user category īƒ˜ Navigation mechanisms are tested to ensure that each performs its intended function.
  • 20. Navigation mechanisms ī‚— Navigation Internal, External links and anchors within a specific web page should be tested to ensure that proper content or functionality is reached when the link is chosen. ī‚— Bookmarks Even it is a browser function, the webapp should be tested to ensure that a meaningful page title can be extracted as the bookmark is created. ī‚— Redirects Redirects should be tested by requesting incorrect internal links or external URLs and assessing how the webapp handles these requests.
  • 21. Navigation mechanisms ī‚— Frames and framesets īƒ˜ Each frame contains the content of a specific web page, and a frameset contains multiple frames and enables the display of multiple web pages at the same time. īƒ˜ Test should ensure these functions works properly. ī‚— Internal search engines Search engine testing validates the accuracy and completeness of the search, the error-handling properties of the search engine, and advanced search features(eg., the use of Boolean operators in the search field) ī‚— Site Maps 1. It provides a complete table of contents for all web pages. 2. Each site map entry should be tested to ensure that the links take the user to the proper content or functionality
  • 22. Configuration Testing To test a set of probable client-side and server- side configurations to ensure that the user experience will be the same on all of them and to isolate errors that may be specific to a particular configuration. Server-side issues: ī‚— As server side configuration tests are designed, you should consider each component of the server configuration. ī‚— Is the webapp fully compatible with the server OS? ī‚— Are system files, directories, and related system data created correctly when the webapp is operational?
  • 23. Configuration testing CONTINUATIONâ€Ļ ī‚— Do system security measures (e.g., firewalls or encryption) allow the webapp to execute and service users without interference or performance degradation? ī‚— Has the webapp been tested with the distributed server configuration? ī‚— Is the webapp properly integrated with database software? ī‚— Is the webapp sensitive to different versions of database software? ī‚— Do server-side webapp scripts execute properly? ī‚— Have system administrator errors been examined for their effect on webapp operations?
  • 24. Configuration testing Client-side issues: ī‚— On the client side, configuration test focus more heavily on webapp compatibility with configurations that contain one or more permutations of the following components. ī‚— Hardware – CPU, memory, storage, and printing devices ī‚— Operating systems - Linux, Macintosh OS, Microsoft Windows, a mobile- based OS ī‚— Browser software - Firefox, Safari, IE, Opera, Chrome, and others ī‚— User interface components- Active X, Java applets, and others ī‚— Plug-ins- QuickTime, RealPlayer, and many others ī‚— Connectivity – cable, DSL, regular modem, T1,WiFi
  • 25. Security Testing Security tests are designed to probe vulnerabilities of the client-side environment, the network communications that occur as data are passed from client to server and back again, and the server-side environment. Client side vulnerabilities: ī‚— On the client side, vulnerabilities can often be traced to preexisting bugs in browsers, e-mail programs, or communication software. ī‚— For eg : one of the commonly mentioned bugs is Buffer Overflow
  • 26. Security Testing Network vulnerabilities: ī‚— Data communicated between the client and server are vulnerable to spoofing. Spoofing occurs when one end of the communication pathway is subverted by and entity with malicious intent. ī‚— For e.g., A user can be spoofed by a malicious website that acts as if it is the legitimate webapp server. The intent is to steal passwords, proprietary information, or credit data.
  • 27. Security Testing Server side vulnerabilities: Vulnerabilities include denial- of-service attacks and malicious scripts that can be passed along to the client side or used to disable server operation For eg: server –side databases can be accessed without authorization(data theft).
  • 28. Security Testing To protect against these vulnerabilities, one or more of the following security elements is implemented ī‚— Firewall – a filtering mechanism that is a combination of hardware and software that examines each incoming packet of information to ensure that it is coming from a legitimate source, blocking any data that are suspect. ī‚— Authentication - a verification mechanism that validates the identity of all clients and servers, allowing communication to occur only when both sides are verified. ī‚— Encryption – an encoding mechanism that protects sensitive data by modifying it in a way that makes it impossible to read by those with malicious intent. Encryption is strengthened by using digital certificates that allow the client to verify the destination to which th data are transmitted. ī‚— Authorization - a filtering mechanism that allows access to the client or server environment only by those individuals with appropriate authorization codes(e.g., user ID and password)
  • 29. Performance testing It is used to uncover performance problems that can result from: ī‚— Lack of server-side resources ī‚— Inappropriate network bandwidth ī‚— Inadequate database capabilities, faulty or weak operating system capabilities ī‚— Poorly designed webapp functionality The intent is twofold īļTo understand how the system responds as loading (i.e. ., number of users, number of transactions, or overall data volume) increases īļTo collect metrics that will lead to design modifications to improve performance
  • 30. Load testing ī‚— The intent of load testing is to determine how the webapp and its server-sie environment will respond to various loading conditions. As testing proceeds, permutations to the following variables define a set of test conditions: ī‚— N, number of concurrent users ī‚— T, number of online transactions per unit of time ī‚— D, data load processed by the server per transaction. ī‚— Load testing can also be used to assess recommended connection speeds for user of the webapp. Overall throughput, P, is computed in the following manner: ī‚— P= N* T*D ī‚— As an example, consider a popular sports news site. At a given moment, 20,000 concurrent users submit a request(a transaction, T) once every 2 minutes on average. Each transaction requires the webapp to download a new article that averages 3 bytes in length. Therefore, throughput can be calculated as P=[20,000*0.5*3kb]/60=500kbytes/sec=4 megabits per second
  • 31. Stress testing ī‚— Stress testing is a continuation of load testing, but in this instance the variables, N, T and D are forced to meet and then exceed operational limits. The intent of test is to check: ī‚— Does the system degrade ”gently”, or does the server shut down as capacity is exceeded? ī‚— Does server software generate “server not available” message? More generally, are users aware that they cannot reach the server? ī‚— Does the server queue resource requests and empty the queue once capacity demands diminish? ī‚— Are transactions lost as capacity is exceeded? ī‚— If the system does fail, how long will it take to come back online? ī‚— What values of N, T, and D force the server environment to fail? How does failure manifest itself? Are automated notifications sent to technical support staff at the server site? ī‚— Are certain webapp functions discontinued as capacity reaches the 80 or 90 percent level?
  • 32. MODEL-VIEW-CONTROLLER Webapp architecture ī‚— WebApp architecture describes an infrastructure the enables a web-based system or application to achieve its business objectives ī‚— Applications should be built using layers in which different concerns are taken into account. ī‚— In particular, application data should be separated from the page’s contents(navigation nodes) and these contents, in turn , should be clearly separated from the interface look-and– feel(pages) ī‚— The Model-View-Controller(MVC) architecture is one of a number of suggested webapp infrastructure models that decouple the user interface from the webapp functionality and informational content.
  • 33. MODEL-VIEW-CONTROLLER ī‚— The model (sometimes referred to as the “model object”) contains all application-specific content and processing logic, including all content objects, access to external data/information sources, and all processing functionality that is application specific. ī‚— The View contains all interface specific functions and enables the presentation of content and processing logic, including all content objects, access to external data/information sources, and all processing functionality required by the end user. ī‚— The controller manages access to the model and the view and coordinates the flow of data between them. ī‚— In webapp, “ the view is updated by the controller with data from the model based on user input”
  • 34. The MVC Architecture Browser Controller: Manages user requests Selects model behavior Selects view response Model: Encapsulates functionality Encapsulates content objects Incorporates all webapp states View Prepares data from model Request updates from model Presents view selected by controller Server Update request External DataClient User request or data H T M L d a t a View selection Behavior request (state change) Data from model
  • 35. MODEL-VIEW-CONTROLLER ī‚— Referring to the figure, user requests or data are handled by the controller. The controller also selects the view object that is applicable based on the user request. Once the type of request is determine, a behavior request is transmitted to the model which implements the functionality or retrieves the content required to accommodate the request. ī‚— The model object can access data stored in a corporate database, as part of a local data store, or as a collection of independent files. ī‚— The data developed by the model must be formatted and organized by the appropriate view object and then transmitted from the application server back to the client- based browser for display on the customer’s machine
  • 36. ESTIMATION FOR SOFTWARE PROJECTS Software cost and effort estimation will never be an exact science. To achieve reliable cost and effort estimates, a number of options arise: 1. Delay estimation until late in the project Unfortunately, it is not practical. 2. Base estimates on similar projects that have already been completed. The second option can reasonably well, if the current project is quite similar to past efforts and other project influences(e.g., The customer, business conditions, the software engineering environment, deadlines) are roughly equivalent. Unfortunately, past experience has not always been a good indicator of future results.
  • 37. ESTIMATION FOR SOFTWARE PROJECTS Decomposition Techniques: īļ Decomposition techniques take a divide-and-conquer approach to software project estimation. īļ By decomposing a project into major functions and related software engineering activities, cost and effort estimation can be performed in a stepwise fashion. Empirical estimation models It can be used to complement decomposition techniques and offer a potentially valuable estimation approach in their own right. A model is based on experience and takes the form d= f(vi) Where d is one of a number of estimated values(e.g., effort, cost, project duration) and vi are selected independent parameters(e.g., estimated LOC or FP).
  • 38. ESTIMATION FOR SOFTWARE PROJECTS Decomposition Approach can be of two different point of view 1.Decomposition of the problem. 2.Decomposition of the process. Estimation uses one or both forms of partitioning
  • 39. ESTIMATION FOR SOFTWARE PROJECTS Software sizing: ī‚— The accuracy of a software project estimate is predicated on a number of things: ī‚— The degree to which you have properly estimated the size of the product to be built ī‚— The ability to translate the size estimate into human effort, calendar time, and dollars ī‚— The degree to which the project plan reflects the abilities of the software team ī‚— The stability of product requirements and the environment that supports the software engineering effort
  • 40. ESTIMATION FOR SOFTWARE PROJECTS Putnam and Myers suggest four different approaches to the sizing problem: ī‚— “Fuzzy logic” sizing : This approach uses the approximate reasoning techniques that are the cornerstone of fuzzy logic. To apply this approach, the planner must identify the type of application, establish its magnitude on a qualitative scale, and then refine the magnitude within the original range.
  • 41. ESTIMATION FOR SOFTWARE PROJECTS Continuationâ€Ļ ī‚— Function point sizing : The planner develops estimates of the information domain characteristics. ī‚— Standard component sizing : Software is composed of a number of different “standard components” that are generic to a particular application area. ī‚— Change sizing : This approach is used when a project encompasses the use of existing software that must be modified in some way
  • 42. ESTIMATION FOR SOFTWARE PROJECTS Problem-Based estimation: ī‚— LOC and FP data are used in two ways during software project estimation: ī‚— As estimation variables to “size” each element of the software ī‚— As baseline metrics collected from past projects and used in conjunction with estimation variables to develop cost and effort projections ī‚— Baseline productivity metrics(e.g., LOC/pm or FP/pm^6) are then applied to the appropriate estimation variable, and cost or effort for the function is derived. ī‚— Function estimates are combined to produce an overall estimate for the entire project.
  • 43. ESTIMATION FOR SOFTWARE PROJECTS Process-Based Estimation ī‚— The most common technique for estimating a project is to base the estimate on the process that will be used. That is, the process is decomposed into a relatively small set of tasks and the effort required to accomplish each task is estimated. ī‚— Like the problem-based techniques, process-based estimation begins with a delineation of software functions obtained from the project scope. A series of framework activities must be performed for each function.
  • 44. ESTIMATION FOR SOFTWARE PROJECTS Estimation with use cases: ī‚— Use cases are described using many different formats and styles- there is no standard form ī‚— Use cases represent an external view(the user’s view) of the software and can therefore be written at many different levels of abstraction. ī‚— Use cases do not address the complexity of the functions and features that are described ī‚— Use cases can describe complex behavior(e.g., interactions) that involve many functions and features.
  • 45. ESTIMATION FOR SOFTWARE PROJECTS Empirical estimation models: ī‚— An estimation model for computer software uses empirically derived formulas to predict effort as a function of LOC or FP. Values for LOC or FP are estimated , the resultant values for LOC or FP are plugged into the estimation model. ī‚— The empirical data that support most estimation models are derived from a limited sample of projects. For this reason, no estimation model is appropriate for all classes of software and in all development environments. Therefore, you should use the results obtained from such models judiciously.
  • 46. ESTIMATION FOR SOFTWARE PROJECTS ī‚— An estimation model should be calibrated to reflect local conditions. The model should be tested by applying data collected from completed projects, plugging the data into the model, and then comparing actual to predicated results. If agreement is poor, the model must be tuned and retested before it can be used.
  • 47. ESTIMATION FOR SOFTWARE PROJECTS THE COCOMO II MODEL ī‚— In his classic book on “software engineering economics”, Barry Boehm introduced a hierarchy of software estimation models bearing the name COCOMO, for constructive cost model. ī‚— The original COCOMO model became one of the most widely used and discussed software cost estimation models in the industry. ī‚— It has evolved into a more comprehensive estimation model, called COCOMO II, COCOMO II is actually a hierarchy of estimation models that address the following areas:
  • 48. ESTIMATION FOR SOFTWARE PROJECTS The Application Composition Model ī‚— Suitable for projects built with modern GUI-builder tools. Based on new Object Points. The Early Design Model ī‚— You can use this model to get rough estimates of a project's cost and duration before you've determined it's entire architecture. It uses a small set of new Cost Drivers, and new estimating equations. Based on Unadjusted Function Points or KLOC. The Post-Architecture Model ī‚— This is the most detailed COCOMO II model. You'll use it after you've developed your project's overall architecture. It has new cost drivers, new line counting rules, and new equations.
  • 49. ESTIMATION FOR SOFTWARE PROJECTS Estimation for agile development: ī‚— Estimation for agile projects uses a decomposition approach that encompasses the following steps: ī‚— Each user scenario(the equivalent of a mini use case created at the very start of a project by end users or other stakeholders) is considered separately for estimation purposes. ī‚— The scenario is decomposed into the set of software engineering tasks that will be required to develop it
  • 50. ESTIMATION FOR SOFTWARE PROJECTS Continuationâ€Ļ ī‚— 3a. The effort required for each task is estimated separately. Note: Estimation can be based on historical data, an empirical model, or “experienced” ī‚— 3b. alternatively, the “volume” of the scenario can be estimated in LOC, FP, or some other volume-oriented measure ī‚— 4a. Estimates for each task are summed to create an estimate for the scenario. ī‚— 4b. alternatively, the volume estimate for the scenario is translated into effort using historical data. ī‚— The effort estimates for all scenarios that are to be implemented for a given software increment are summed to develop the effort estimate for the increment
  • 51. ESTIMATION FOR SOFTWARE PROJECTS Estimation for webapp projects ī‚— Webapp projects often adopt the agile process model. A modified function point measure, coupled with the steps outlined, can be used to develop an estimate for the webapp. The following approach when adapting function points for webapp estimation. ī‚— Inputs are each input screen or form (for example, CGI or java), each maintenance screen
  • 52. ESTIMATION FOR SOFTWARE PROJECTS Continuationâ€Ļ ī‚— Outputs are each static web page, each dynamic web page script(for e.g., ASP, ISAPI, or other DHTML script), and each report(whether web based or administrative in nature). ī‚— Tables are each logical table in the database plus, if you are using XML to store data in a file, each XML object( or collection of XML attributes) ī‚— Interfaces retain their definition as logical files(for e.g., unique record formats) into our out-of-the-system boundaries ī‚— Queries are each externally published or use a message-oriented interface. A typical example is DCOM or COM external references. ī‚— For more information: software estimation techniques
  • 53. Conclusion: ī‚— Changes in software engineering technology are indeed “rapid and unforgiving” but at the same time progress is often quite slow. ī‚— By the time a decision is made to adopt a new process, method, or tool ī‚— Conduct the training necessary to understand its application ī‚— Introduce the technology into the software development culture ī‚— Something newer has come along, and the process begins anew
  • 54. Q & A