SlideShare una empresa de Scribd logo
1 de 39
Stages of Test
and Types of Test

Tài liệu đào tạo
Agenda
 Test

methods
 Types of Test
 Stages of Test
 Test Web Application
 Demo Tool Test WAPT
Two Fundamental Approaches
Structural Testing
–
–

Also known as: white box testing.
Test is based on the structure of the code.
Functional Testing

- Also known as: black box testing, functional
testing, behavioral testing.
- Test is based on the behavior of the software.
The code itself is not looked at.
White Box vs. Black Box Testing
White Box
INPUT

INPUT

OUTPUT
OUTPUT
White Box (Structural) Testing






Examines internal software design.
Requires the tester to have detailed knowledge of the
software structure.
Static structural analysis
– Complexity
– Code coverage
– Paths
Dynamic structural analysis
– Call pairs
– Control Flow
– Data flow
– Memory leaks
White Box Testing - Definition
A test case design method that uses the control
structure of the procedural design to derive test
cases.
White Box Testing
 Driven

by program structure
 Looks at the implementation details.
 Concerned with:
–
–
–
–
–

Programming style
Control method
Language
Database design
Coding details
Black Box (Functional) Testing




Based upon functional operation, does not require
knowledge of the code or software structure.
Functional test coverage (requirements tracing).
Examples:
–
–
–
–
–
–
–

Requirements based testing
Use case testing
State machine testing
Boundary value testing (domain testing)
Equivalence class partitioning
Syntax testing
Data flow testing
Stages of Test – V Model
Developer Testing vs. Independent Testing
(Tester)






Some testing is done by the code developers.
Some testing is done by an independent testing group.
The presence of an independent test group does not
mean that the developers stop testing.
The need for independent Testing: Developers know
how to make their code word so they miss a lot of bugs
Organizational Roles - Testing

Unit Testing
Code
Developers
Independent
Test Group

Integration
Testing

System
Testing
Unit Test








Test individual units of program: method, function, procedure
Done by the developers.
White box testing.
Test cases are defined by specifying paths.
Focus on a relatively small segment of code.
A path is an instruction sequence that threads through the
entire program form initial entry to final exit.
Simplest approach is to ensure that every statement is
exercised once.
More stringent: Require coverage of every path. Usually not
practical.
Unit Test (cont.)


What to test:
•
•

•
•
•

Data structure is examined
Boundary conditions are tested to ensure
that the module operates properly for
input and output data
All independent paths are exercised
Error handling paths are tested
Use of stubs (modules to be called) and
drivers (modules that calls)
Integration Test
Test integrated components/modules, interface of program
– Executed by developers, testers
Combining the individual components
Problems may occur due to:
– Data lost across interface
– One module can have an adverse affect on another
– Sub functions may not produce the desired major functions
– Individual acceptable imprecision but unacceptable if
magnified
– Global data structures presents problems
Is a systematic technique for constructing the program structure
while conducting tests to uncover errors associated with
interfacing
Objective is to take unit tested modules and build a program
structure that has been dictated by design
–







System Test
–
–
–

Testing system as whole
Testing requirements and business processes
Executed by testers
How to perform System test




Objectives
 To make sure the software functions properly in
accordance with software requirements specification.
Method
 Black-Box Testing
 Input – Compare results – Log defect (if any)
System Test Categories










Functionality
Reliability/Availability – To find problems based upon continuous
running of the system.
Load/Stress – To identify problems caused by peak load conditions.
Volume – To find problems in the system’s ability to process a
heavy load continuously.
Performance – To determine the actual response time and CPU
loading conditions of the system.
Installablities:
Recovery – Force the system to fail and then find problems in the
recovery processing of the system. .Particularly data.
Security – To find holes in the system’s security provision.
Serviceability – Maintenance and repair procedures.
Acceptance Test
–
–
–
–
–
–

it is the customer’s way to verify that what was
wanted is what is built
uncovers more than requirements discrepancies
allows the customers to determine what they really
want, whether specified in the document or not.
new problems may arise
rapid prototyping
changes may not only mean improper definition of
requirement, but also because customers may
decide that the problem is changed and a different
solution is needed
Acceptance Test
 To

validate that the delivered system meets the
actual business needs of the corporation.
 Executed by customer
 The customer may write the acceptance test
criteria and request that these be executed by
the developer,
 The developer may produce the acceptance test
criteria which are to be approved by the
customer.
Type of Test
–
–
–
–
–
–
–
–
–
–
–

Functional testing (F)
User Interface testing (U)
Performance testing (P)
Data & Data integrity testing (D)
Security & Access control testing (A)
Load testing (L)
Stress testing (S)
Volume testing (V)
Regression testing (R)
Installation testing (I)
Business Cycle Testing (B)
Functional testing






Function testing of the target-of-test should focus on
any requirements for test that can be traced directly to
use cases or business functions and business rules.
The goals of these tests are to verify proper data
acceptance, processing, and retrieval, and the
appropriate implementation of the business rules.
This type of testing is based upon black box
techniques that are verifying the application
Functional testing (cont.)
 Test Objective:

Technique:

Test functions follow requirements
Ensure proper target-of-test functionality, including
navigation, data entry, processing, and retrieval.
Execute each use case, use-case flow, or function,
using valid and invalid data, to verify the
following:
- The expected results occur when valid and invalid
data is used.
- Valid input data is updated correctly to database
- Each business rule is properly applied.

Completion Criteria: - All planned tests have been executed.
Special 
Considerations:

Functional test on Max OS X
User Interface testing
 Objective:
–
–
–

Verify navigation
Verify using of access methods (tab keys, mouse
movements, accelerator keys)
Window objects and characteristics, such as menus,
size, position, state, and focus conform to standards
User Interface testing (cont.)
 Technique:
–

Create or modify tests for each window to verify
proper navigation and object states for each
application window and objects

 Completion
–

Criteria:

Each window successfully verified to remain
consistent with benchmark version or within
acceptable standard
Performance testing
 Objective:

verify performance requirements
have been achieved
–
–
–

Response time
Transaction rates
Other time-sensitive requirements are measured
and evaluated
Performance Testing (Cont.)




Technique:
– Use Test Procedures developed for Function or Business
Cycle Testing
– Modify data files to increase the number of transactions or the
scripts to increase the number of iterations each transaction
occurs
Completion Criteria:
– Single Transaction: Successful completion of the test scripts
without any failures and within the expected or required time
allocation per transaction
– Multiple transactions: Successful completion of the test scripts
without any failures and within acceptable time allocation
Data & Data integrity testing


Objective:
–



Technique:
–
–



Ensure database access methods and processes function
properly and without data corruption
Check the returned data to ensure that the correct data was
retrieved for the correct transaction
Check the database to ensure the data has been populated as
intended, all database events occurred properly

Completion Criteria:
–

All database access methods and processes function as
designed and without any data corruption
Security & Access control testing
 Application-level
–

Check user right: verify that an actor/user can
access only those functions or data if they have
right

 System-level
–

Security

Security

Verify that only those users granted access to the
system are capable of accessing the applications
and only through the appropriate gateways
Load testing








Forcing the system to do a large amount of processing
Depends on the type of system.
Large number of transactions.
Large files.
Large number of files.
Large number of clients.
Repeated operations.
Load testing (cont.)



Objective:
– Verify performance behavior time for designated transactions
or business cases under varying workload conditions
Technique:
– Use tests developed for Function or Business Cycle Testing
– Modify data files to increase the number of transactions or the
tests to increase the number of times each transaction occurs



Completion Criteria:



–

–

Multiple transactions or multiple users: Successful completion
of the tests without any failures and within acceptable time
allocation
Performed on a dedicated machine or at a dedicated time
Stress testing


Objective: verify functions work without error under the
following stress conditions:
–
–
–



Little or no memory available on the server (RAM)
Maximum actual or physically capable number of clients
connected or simulated
Multiple users performing the same transactions against the
same data or accounts

Technique:
–
–

Use tests developed for Performance Profiling or Load Testing
To test limited resources, tests should be run on a single
machine, and RAM on server should be reduced or limited
Volume testing
 Objective:
–

Test with large amounts of data to determine if limits
are reached that cause the software to fail

 Technique:
–
–

Data and database integration
Use tests developed for Function testing
Regression testing
 Objective
–

Validate modified parts of the software, to make
sure that the modification does not cause errors in
other parts

 Technique
–

Reuse the set of test cases from an existing test
suite to test a modified module
Regression testing (cont.)


What is Regression test
Test the system as a whole. Similar to System test
 Usually take a lot of efforts




When to perform Regression test
–

Regression test usually is performed when:
Total number of change requests arisen since the latest baseline
(with regression test) > the number of requirements in that
baseline
 The total number of post-release defects is out of a pre-defined
threshold
 As planned in Maintenance plan (with Maintenance projects)

Installation testing
 To

identify problems in the installation
procedures
Business Cycle Testing
 Objective:
–

Ensure proper target-of-test and background
processes function according to required business
models and schedules

 Technique:
–
–
–

All functions that occur on a periodic schedule will
be executed or launched at the appropriate time
Testing will include using valid and invalid data
Each business rule is properly applied
Type of Test

Stage of Test
Unit

Integration

System

Acceptance

X

X

X

X

User Interface Tests

X

X

Performance

X

X

Load Testing

X

Security and Access
control Tests

X

Functional Tests
Test Web Application


What to test:
•

All components of a Web application on both the client and
server side

•

Validation or Functional Testing

•

HTML Validation

•

Link Testing

•

Load and stress Testing

•

Security Testing

•

Regression Testing
Test Web Application (cont.)


Problem:
–
–
–



Impossible to test all possible dependencies and
everything that could go wrong with this site.
Impossible to test varied target audience and platforms
that a web applications addresses
Tools used for load test, volume test

Solution:
–
–

Determine where to focus testing efforts within budget
and schedule constraints
Analyse risks and set priorities based on risk analysis

Más contenido relacionado

La actualidad más candente

Testing level
Testing levelTesting level
Testing levelzahid7578
 
software testing methodologies
software testing methodologiessoftware testing methodologies
software testing methodologiesJhonny Jhon
 
Four schools of testing context driven school
Four schools of testing   context driven schoolFour schools of testing   context driven school
Four schools of testing context driven schoolHolasz Kati
 
Software testing sengu
Software testing  senguSoftware testing  sengu
Software testing senguSengu Msc
 
Manual testing
Manual testingManual testing
Manual testingkaryatechs
 
Manual testing
Manual testingManual testing
Manual testingVivek V
 
Manual Testing Online Training
Manual Testing Online Training Manual Testing Online Training
Manual Testing Online Training QEdge Tech
 
STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)Ch Fahadi
 
Software Testing
Software TestingSoftware Testing
Software TestingKiran Kumar
 
Software quality and testing (func. & non func.)
Software quality and testing (func. & non   func.)Software quality and testing (func. & non   func.)
Software quality and testing (func. & non func.)Pragya G
 
Manual testing-training-institute-in-marathahalli
Manual testing-training-institute-in-marathahalliManual testing-training-institute-in-marathahalli
Manual testing-training-institute-in-marathahallisiyaram ray
 
Software Testing Tools Training
Software Testing Tools TrainingSoftware Testing Tools Training
Software Testing Tools TrainingQEdge Tech
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testingdidev
 
Software testing
Software testingSoftware testing
Software testingSimran Kaur
 

La actualidad más candente (20)

Testing level
Testing levelTesting level
Testing level
 
software testing methodologies
software testing methodologiessoftware testing methodologies
software testing methodologies
 
Four schools of testing context driven school
Four schools of testing   context driven schoolFour schools of testing   context driven school
Four schools of testing context driven school
 
Testing
TestingTesting
Testing
 
Software testing sengu
Software testing  senguSoftware testing  sengu
Software testing sengu
 
Manual testing
Manual testingManual testing
Manual testing
 
Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
 
Manual testing
Manual testingManual testing
Manual testing
 
Manual Testing Online Training
Manual Testing Online Training Manual Testing Online Training
Manual Testing Online Training
 
System testing
System testingSystem testing
System testing
 
Manual testing
Manual testingManual testing
Manual testing
 
STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software quality and testing (func. & non func.)
Software quality and testing (func. & non   func.)Software quality and testing (func. & non   func.)
Software quality and testing (func. & non func.)
 
Manual testing-training-institute-in-marathahalli
Manual testing-training-institute-in-marathahalliManual testing-training-institute-in-marathahalli
Manual testing-training-institute-in-marathahalli
 
Software Testing Tools Training
Software Testing Tools TrainingSoftware Testing Tools Training
Software Testing Tools Training
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing fundamentals
Software testing fundamentalsSoftware testing fundamentals
Software testing fundamentals
 

Destacado

Destacado (7)

Project Introduction of Directional System in Shanghai Underground
Project Introduction of Directional System in Shanghai Underground Project Introduction of Directional System in Shanghai Underground
Project Introduction of Directional System in Shanghai Underground
 
Kiểm thử
Kiểm thửKiểm thử
Kiểm thử
 
[Seminar] Hướng dẫn viết test case
[Seminar] Hướng dẫn viết test case[Seminar] Hướng dẫn viết test case
[Seminar] Hướng dẫn viết test case
 
2. testing of cement ppt
2. testing of cement ppt2. testing of cement ppt
2. testing of cement ppt
 
Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
 
Test Life Cycle
Test Life CycleTest Life Cycle
Test Life Cycle
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 

Similar a Gd test kieu_test

Objectorientedtesting 160320132146
Objectorientedtesting 160320132146Objectorientedtesting 160320132146
Objectorientedtesting 160320132146vidhyyav
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testingHaris Jamil
 
Object Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesObject Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesPunjab University
 
Test Process
Test ProcessTest Process
Test Processtokarthik
 
Testing Types And Models
Testing Types And ModelsTesting Types And Models
Testing Types And Modelsnazeer pasha
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1Raghu Kiran
 
Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1Techpartnerz
 
Software testing
Software testingSoftware testing
Software testingRavi Dasari
 
Testing in Software Engineering.docx
Testing in Software Engineering.docxTesting in Software Engineering.docx
Testing in Software Engineering.docx8759000398
 
Software Project Management: Testing Document
Software Project Management: Testing DocumentSoftware Project Management: Testing Document
Software Project Management: Testing DocumentMinhas Kamal
 
Software Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleSoftware Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleNikita Knysh
 
Levels Of Testing.pptx
Levels Of Testing.pptxLevels Of Testing.pptx
Levels Of Testing.pptxSunilNagaraj10
 

Similar a Gd test kieu_test (20)

Objectorientedtesting 160320132146
Objectorientedtesting 160320132146Objectorientedtesting 160320132146
Objectorientedtesting 160320132146
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testing
 
Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
 
Testing
TestingTesting
Testing
 
Object Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesObject Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slides
 
Test Process
Test ProcessTest Process
Test Process
 
Testing
TestingTesting
Testing
 
Testing Types And Models
Testing Types And ModelsTesting Types And Models
Testing Types And Models
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
 
System testing
System testingSystem testing
System testing
 
Pm 6 testing
Pm 6 testingPm 6 testing
Pm 6 testing
 
Pm 6 testing
Pm 6 testingPm 6 testing
Pm 6 testing
 
Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1
 
Software testing
Software testingSoftware testing
Software testing
 
Testing in Software Engineering.docx
Testing in Software Engineering.docxTesting in Software Engineering.docx
Testing in Software Engineering.docx
 
Testing
TestingTesting
Testing
 
Software Project Management: Testing Document
Software Project Management: Testing DocumentSoftware Project Management: Testing Document
Software Project Management: Testing Document
 
Software Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleSoftware Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software Lifecycle
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Levels Of Testing.pptx
Levels Of Testing.pptxLevels Of Testing.pptx
Levels Of Testing.pptx
 

Último

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 

Último (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 

Gd test kieu_test

  • 1. Stages of Test and Types of Test Tài liệu đào tạo
  • 2. Agenda  Test methods  Types of Test  Stages of Test  Test Web Application  Demo Tool Test WAPT
  • 3. Two Fundamental Approaches Structural Testing – – Also known as: white box testing. Test is based on the structure of the code. Functional Testing - Also known as: black box testing, functional testing, behavioral testing. - Test is based on the behavior of the software. The code itself is not looked at.
  • 4. White Box vs. Black Box Testing White Box INPUT INPUT OUTPUT OUTPUT
  • 5. White Box (Structural) Testing     Examines internal software design. Requires the tester to have detailed knowledge of the software structure. Static structural analysis – Complexity – Code coverage – Paths Dynamic structural analysis – Call pairs – Control Flow – Data flow – Memory leaks
  • 6. White Box Testing - Definition A test case design method that uses the control structure of the procedural design to derive test cases.
  • 7. White Box Testing  Driven by program structure  Looks at the implementation details.  Concerned with: – – – – – Programming style Control method Language Database design Coding details
  • 8. Black Box (Functional) Testing    Based upon functional operation, does not require knowledge of the code or software structure. Functional test coverage (requirements tracing). Examples: – – – – – – – Requirements based testing Use case testing State machine testing Boundary value testing (domain testing) Equivalence class partitioning Syntax testing Data flow testing
  • 9. Stages of Test – V Model
  • 10. Developer Testing vs. Independent Testing (Tester)     Some testing is done by the code developers. Some testing is done by an independent testing group. The presence of an independent test group does not mean that the developers stop testing. The need for independent Testing: Developers know how to make their code word so they miss a lot of bugs
  • 11. Organizational Roles - Testing Unit Testing Code Developers Independent Test Group Integration Testing System Testing
  • 12. Unit Test        Test individual units of program: method, function, procedure Done by the developers. White box testing. Test cases are defined by specifying paths. Focus on a relatively small segment of code. A path is an instruction sequence that threads through the entire program form initial entry to final exit. Simplest approach is to ensure that every statement is exercised once. More stringent: Require coverage of every path. Usually not practical.
  • 13. Unit Test (cont.)  What to test: • • • • • Data structure is examined Boundary conditions are tested to ensure that the module operates properly for input and output data All independent paths are exercised Error handling paths are tested Use of stubs (modules to be called) and drivers (modules that calls)
  • 14. Integration Test Test integrated components/modules, interface of program – Executed by developers, testers Combining the individual components Problems may occur due to: – Data lost across interface – One module can have an adverse affect on another – Sub functions may not produce the desired major functions – Individual acceptable imprecision but unacceptable if magnified – Global data structures presents problems Is a systematic technique for constructing the program structure while conducting tests to uncover errors associated with interfacing Objective is to take unit tested modules and build a program structure that has been dictated by design –    
  • 15. System Test – – – Testing system as whole Testing requirements and business processes Executed by testers
  • 16. How to perform System test   Objectives  To make sure the software functions properly in accordance with software requirements specification. Method  Black-Box Testing  Input – Compare results – Log defect (if any)
  • 17. System Test Categories          Functionality Reliability/Availability – To find problems based upon continuous running of the system. Load/Stress – To identify problems caused by peak load conditions. Volume – To find problems in the system’s ability to process a heavy load continuously. Performance – To determine the actual response time and CPU loading conditions of the system. Installablities: Recovery – Force the system to fail and then find problems in the recovery processing of the system. .Particularly data. Security – To find holes in the system’s security provision. Serviceability – Maintenance and repair procedures.
  • 18. Acceptance Test – – – – – – it is the customer’s way to verify that what was wanted is what is built uncovers more than requirements discrepancies allows the customers to determine what they really want, whether specified in the document or not. new problems may arise rapid prototyping changes may not only mean improper definition of requirement, but also because customers may decide that the problem is changed and a different solution is needed
  • 19. Acceptance Test  To validate that the delivered system meets the actual business needs of the corporation.  Executed by customer  The customer may write the acceptance test criteria and request that these be executed by the developer,  The developer may produce the acceptance test criteria which are to be approved by the customer.
  • 20. Type of Test – – – – – – – – – – – Functional testing (F) User Interface testing (U) Performance testing (P) Data & Data integrity testing (D) Security & Access control testing (A) Load testing (L) Stress testing (S) Volume testing (V) Regression testing (R) Installation testing (I) Business Cycle Testing (B)
  • 21. Functional testing    Function testing of the target-of-test should focus on any requirements for test that can be traced directly to use cases or business functions and business rules. The goals of these tests are to verify proper data acceptance, processing, and retrieval, and the appropriate implementation of the business rules. This type of testing is based upon black box techniques that are verifying the application
  • 22. Functional testing (cont.)  Test Objective: Technique: Test functions follow requirements Ensure proper target-of-test functionality, including navigation, data entry, processing, and retrieval. Execute each use case, use-case flow, or function, using valid and invalid data, to verify the following: - The expected results occur when valid and invalid data is used. - Valid input data is updated correctly to database - Each business rule is properly applied. Completion Criteria: - All planned tests have been executed. Special  Considerations: Functional test on Max OS X
  • 23. User Interface testing  Objective: – – – Verify navigation Verify using of access methods (tab keys, mouse movements, accelerator keys) Window objects and characteristics, such as menus, size, position, state, and focus conform to standards
  • 24. User Interface testing (cont.)  Technique: – Create or modify tests for each window to verify proper navigation and object states for each application window and objects  Completion – Criteria: Each window successfully verified to remain consistent with benchmark version or within acceptable standard
  • 25. Performance testing  Objective: verify performance requirements have been achieved – – – Response time Transaction rates Other time-sensitive requirements are measured and evaluated
  • 26. Performance Testing (Cont.)   Technique: – Use Test Procedures developed for Function or Business Cycle Testing – Modify data files to increase the number of transactions or the scripts to increase the number of iterations each transaction occurs Completion Criteria: – Single Transaction: Successful completion of the test scripts without any failures and within the expected or required time allocation per transaction – Multiple transactions: Successful completion of the test scripts without any failures and within acceptable time allocation
  • 27. Data & Data integrity testing  Objective: –  Technique: – –  Ensure database access methods and processes function properly and without data corruption Check the returned data to ensure that the correct data was retrieved for the correct transaction Check the database to ensure the data has been populated as intended, all database events occurred properly Completion Criteria: – All database access methods and processes function as designed and without any data corruption
  • 28. Security & Access control testing  Application-level – Check user right: verify that an actor/user can access only those functions or data if they have right  System-level – Security Security Verify that only those users granted access to the system are capable of accessing the applications and only through the appropriate gateways
  • 29. Load testing        Forcing the system to do a large amount of processing Depends on the type of system. Large number of transactions. Large files. Large number of files. Large number of clients. Repeated operations.
  • 30. Load testing (cont.)  Objective: – Verify performance behavior time for designated transactions or business cases under varying workload conditions Technique: – Use tests developed for Function or Business Cycle Testing – Modify data files to increase the number of transactions or the tests to increase the number of times each transaction occurs  Completion Criteria:  – – Multiple transactions or multiple users: Successful completion of the tests without any failures and within acceptable time allocation Performed on a dedicated machine or at a dedicated time
  • 31. Stress testing  Objective: verify functions work without error under the following stress conditions: – – –  Little or no memory available on the server (RAM) Maximum actual or physically capable number of clients connected or simulated Multiple users performing the same transactions against the same data or accounts Technique: – – Use tests developed for Performance Profiling or Load Testing To test limited resources, tests should be run on a single machine, and RAM on server should be reduced or limited
  • 32. Volume testing  Objective: – Test with large amounts of data to determine if limits are reached that cause the software to fail  Technique: – – Data and database integration Use tests developed for Function testing
  • 33. Regression testing  Objective – Validate modified parts of the software, to make sure that the modification does not cause errors in other parts  Technique – Reuse the set of test cases from an existing test suite to test a modified module
  • 34. Regression testing (cont.)  What is Regression test Test the system as a whole. Similar to System test  Usually take a lot of efforts   When to perform Regression test – Regression test usually is performed when: Total number of change requests arisen since the latest baseline (with regression test) > the number of requirements in that baseline  The total number of post-release defects is out of a pre-defined threshold  As planned in Maintenance plan (with Maintenance projects) 
  • 35. Installation testing  To identify problems in the installation procedures
  • 36. Business Cycle Testing  Objective: – Ensure proper target-of-test and background processes function according to required business models and schedules  Technique: – – – All functions that occur on a periodic schedule will be executed or launched at the appropriate time Testing will include using valid and invalid data Each business rule is properly applied
  • 37. Type of Test Stage of Test Unit Integration System Acceptance X X X X User Interface Tests X X Performance X X Load Testing X Security and Access control Tests X Functional Tests
  • 38. Test Web Application  What to test: • All components of a Web application on both the client and server side • Validation or Functional Testing • HTML Validation • Link Testing • Load and stress Testing • Security Testing • Regression Testing
  • 39. Test Web Application (cont.)  Problem: – – –  Impossible to test all possible dependencies and everything that could go wrong with this site. Impossible to test varied target audience and platforms that a web applications addresses Tools used for load test, volume test Solution: – – Determine where to focus testing efforts within budget and schedule constraints Analyse risks and set priorities based on risk analysis