SlideShare a Scribd company logo
A Framework for Automatic
Construction of Test Scenarios
from Use-cases
VU Y. NGUYEN1, THO T. QUAN1,
NHUAN D. LAI2 AND THUAN D.LE1
1 HOCHIMINH CITY UNIVERSITY OF TECHNOLOGY
2LARION COMPUTING
Outline
• Introduction
• Motivation
• FATS
– Use-Case Presentation
– Activity Graph Construction
– Testing Scenario Development
• Practical Status
• Conclusion
3
Introduction
Checking the correctness
• Hard
• Expensive
• Manually
Testing
• Static analysis
• False alarms
Code inspection
Testing
• Testing is more popular than code inspection.
• A test case contains a set of
– Inputs
– Execution conditions
– Desired outputs.
Problem
• The test case generation is costly.
• Automatic solutions are specified on complex
mathematical models which are difficult to be
applied in real industry.
7
Motivation
Motivation
• Try to generate test scenarios
– Automatic
– Simple
– Can be applied in industry
• Solution
– Generate test case from use-cases
Use case example
Motivation
• UMLs in the real industry world
– Widely used in the specification
– Do not strictly follow the UML standard
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
Use-case flow
• Normal
Use-case flow
• Normal
• Exception
Use-case flow
• Normal
• Exception
• Fork
Activity Diagram
Motivation
• Create test scenarios from use-cases
– Problem:
• Difficult to be translated directly automatically
• Complex due to natural language processing
– Solution:
• Create an intermediate language for describing the Use-
cases scenarios
• Easily to handle by the computer
• Friendly to end users
17
Framework for Automated
Testing Scenarios
The FATS framework
• Framework for Automated Testing Scenarios
Use-cases
Presentation
Activity Graph
Construction
Testing
Scenario
Development
19
Use-cases Presentation
Use-cases Presentation
• Presented in a formal form which is not only
machine-understandable for automatic
processing but also friendly for end-user to
handle
• Use specific markup language
– Consist of fundamental elements
– Use a pair of opening and closing tags for each
use-case elements
Ví dụ - Use case
• ID: 1, Name: Tìm khóa học, Create By: Ngọc Vinh, Date
Created: 22/12/2010, Actor: Học viên, Description: Tìm
kiếm khóa học trung tâm (các thành phần còn lại để trống).
• BasicFlow:
1. Học viên đăng nhập vô hệ thống
2. Học viên đánh tên khóa học vào ô tìm kiếm
3. Bấm nút "search"
• Decision 1
a. If có khóa học với tên đã cho, hệ thống hiển
thị tất cả các khóa học tương ứng Go to step 4
b. If không có khóa học với tên đã cho, hệ thống
hiển thị dòng chữ "không tìm thấy". Go to step 5
• 4. Học viên chọn một khóa học để xem
• 5. End the flow
<UseCase>
<Id>1</Id>
<Name>Tìm khóa
học</Name>
<Creator>Ngọc
Vinh</Creator>
<DateCreated>22/12/2010</
DateCreated>
<LastUpdate>
</LastUpdate>
<LastDayUpdate>
</LastDayUpdate>
<Actor>Học viên</Actor>
<Goal>
</Goal>
<Description>Tìm kiếm
khóa học của trung
tâm</Description>
<PreCondition>
</PreCondition>
<PostCondition>
</PostCondition>
<Includes>
</Includes>
Ví dụ XML
<BasicFlow>
<Flow>
<Go id="1">Học viên đăng nhập
vào hệ thống</Go>
<Go id="2">Học viên đánh tên
khóa học vào ô tìm kiếm</Go>
<Go id="3">Bấm nút
"search"</Go>
<Decision id="D1">
<Branch id="1" condition="có
khóa học với tên đã cho">
<Go id="3.a">hệ thống hiển thị
tất cả các khóa học tương ứng</Go>
<Go parameter="4">
</Go>
</Branch>
<Branch id="2" condition="không có
khóa học nào với tên đã cho">
<Go id="3.b">hệ thống hiển thị
dòng chữ "không tìm thấy".</Go>
<Go parameter="5">
</Go>
</Branch>
</Decision>
<Go id="4">Học viên chọn một
khóa học để xem</Go>
<Go id="5">End the flow</Go>
</Flow>
</BasicFlow>
<AlternativeFlows />
<ExceptionFlows />
</UseCase>
Ví dụ XML
Example
• Use-cases: Search event functionality
“When user selects search events on web page, the
system will present an appropriate page. If user
chooses a date without any event, the system shows
“No event”. Otherwise, the system shows a page with
events for that date, giving time and event name.”
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
Form Flow
Form
Form
Form
Form
Form
Form
Highlight error
Highlight error
Highlight Error
Highlight Error
Save load use-case
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
39
Activity Graph Construction
Activity Graph
Transition table
Activity Graph
43
Testing Scenario
Development
Basic Path
• Basic paths are execution paths which loops
are executed 1 time at most.
• Example:
– Path 1: 1  2  3  4  5  9.
– Path 2: 1  2  3  4  6  7 8 9.
Test scenarios generation
• Combination of graph traversal and white-box
analysis techniques
• Restrict to basic-paths only
Test scenarios
[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios
48
Practical status
Practical Status
• Applied in LARION Computing
• Implemented as an internal helper tool for
generating test case scenarios
50
Conclusion
Pros
• Development of test scenarios from use-cases
in an automatic manner
• Markup languages to make the use-cases
understandable by computer programs
• Do not need to generate test scenarios from
activity diagram
• Experiment results are promising.
Cons
• Use-case diagrams do not cover all system
behaviors due to use-case-composers.
• Not convenient for traditional users
Future works
• GUI-based editor
• Improve automatic process by parsing strict
English in use-case descriptions
© 2014 HCMC Software Testing Club
Thank you

More Related Content

What's hot (20)

PDF
Test Automation - Keytorc Approach
Keytorc Software Testing Services
 
PDF
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
Ho Chi Minh City Software Testing Club
 
PDF
Test Automation
nikos batsios
 
PPTX
ISTQB Advanced Level Test Automation Engineering Training
HiraQureshi22
 
PPT
Automated Testing with Agile
Ken McCorkell
 
PPTX
Testing Frameworks And Methodologies
Steven Cahill
 
PDF
[Quang Nguyen] Performance Test in Best Practices
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Practical Experiences In Test Automation
Ho Chi Minh City Software Testing Club
 
PPTX
Automation Testing
Sun Technlogies
 
PPTX
How To Transform the Manual Testing Process to Incorporate Test Automation
Ranorex
 
PDF
[Vu Van Nguyen] Value-based Software Testing an Approach to Prioritizing Tests
Ho Chi Minh City Software Testing Club
 
PDF
Training program BaffleSol academy of learning
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
PPT
Test Automation Framework Designs
Sauce Labs
 
PPTX
www.tutorialsbook.com presents Manual testing
Tutorials Book
 
PPT
Ruud van Houwelingen - What Next for MBT? Implementing with Tools
TEST Huddle
 
PPT
Mieke Gevers - Performance Testing in 5 Steps - A Guideline to a Successful L...
TEST Huddle
 
PPTX
Software Teting
Ruchika Sinha
 
PPT
Rob Baarda - Are Real Test Metrics Predictive for the Future?
TEST Huddle
 
PPTX
Istqb foundation level day 1
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
PDF
Tutorial ranorex
radikalzen
 
Test Automation - Keytorc Approach
Keytorc Software Testing Services
 
Test Design with Action-based Testing Methodology - Ngo Hoang Minh
Ho Chi Minh City Software Testing Club
 
Test Automation
nikos batsios
 
ISTQB Advanced Level Test Automation Engineering Training
HiraQureshi22
 
Automated Testing with Agile
Ken McCorkell
 
Testing Frameworks And Methodologies
Steven Cahill
 
[Quang Nguyen] Performance Test in Best Practices
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Practical Experiences In Test Automation
Ho Chi Minh City Software Testing Club
 
Automation Testing
Sun Technlogies
 
How To Transform the Manual Testing Process to Incorporate Test Automation
Ranorex
 
[Vu Van Nguyen] Value-based Software Testing an Approach to Prioritizing Tests
Ho Chi Minh City Software Testing Club
 
Training program BaffleSol academy of learning
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
Test Automation Framework Designs
Sauce Labs
 
www.tutorialsbook.com presents Manual testing
Tutorials Book
 
Ruud van Houwelingen - What Next for MBT? Implementing with Tools
TEST Huddle
 
Mieke Gevers - Performance Testing in 5 Steps - A Guideline to a Successful L...
TEST Huddle
 
Software Teting
Ruchika Sinha
 
Rob Baarda - Are Real Test Metrics Predictive for the Future?
TEST Huddle
 
Istqb foundation level day 1
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
Tutorial ranorex
radikalzen
 

Viewers also liked (19)

PDF
Web API Test Automation Using Frisby & Node.js
Ho Chi Minh City Software Testing Club
 
PDF
Common Web UI Problems Transforming Manual to Automation
Ho Chi Minh City Software Testing Club
 
PDF
Security testing-What can we do - Trinh Minh Hien
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
Ho Chi Minh City Software Testing Club
 
PDF
Agile Testing - Not Just Tester’s Story _ Dang Thanh Long
Ho Chi Minh City Software Testing Club
 
PDF
Building an effective mobile testing strategy
Ho Chi Minh City Software Testing Club
 
PDF
The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...
Ho Chi Minh City Software Testing Club
 
PDF
A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
Ho Chi Minh City Software Testing Club
 
PDF
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Ho Chi Minh City Software Testing Club
 
PDF
Why a Mobile Test Strategy is just Test Strategy
Ho Chi Minh City Software Testing Club
 
PPTX
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...
seleniumconf
 
PDF
Using Selenium to Improve a Teams Development Cycle
seleniumconf
 
PDF
Introducing Selenium Builder – the Future of Test Development
seleniumconf
 
PPTX
Self-Generating Test Artifacts for Selenium/WebDriver
seleniumconf
 
PDF
Automatic Test Case Generation
Adnan Causevic
 
PPT
Building Quality with Foundations of Mud
seleniumconf
 
PDF
Requirement Development and Test
Kent Ishizawa
 
PDF
The story of language development
Hiroshi SHIBATA
 
Web API Test Automation Using Frisby & Node.js
Ho Chi Minh City Software Testing Club
 
Common Web UI Problems Transforming Manual to Automation
Ho Chi Minh City Software Testing Club
 
Security testing-What can we do - Trinh Minh Hien
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Making IT Count – Agile Test Metrics
Ho Chi Minh City Software Testing Club
 
Agile Testing - Not Just Tester’s Story _ Dang Thanh Long
Ho Chi Minh City Software Testing Club
 
Building an effective mobile testing strategy
Ho Chi Minh City Software Testing Club
 
The New Agile Testing Quadrants: Bringing Skilled Testers and Developers Toge...
Ho Chi Minh City Software Testing Club
 
A Universal Automation Framework based on BDD Cucumber and Ruby on Rails - Ph...
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
Ho Chi Minh City Software Testing Club
 
Introduction to Back End Automation Testing - Nguyen Vu Hoang, Hoang Phi
Ho Chi Minh City Software Testing Club
 
Why a Mobile Test Strategy is just Test Strategy
Ho Chi Minh City Software Testing Club
 
Testing Rapidly Changing Applications With Self-Testing Object-Oriented Selen...
seleniumconf
 
Using Selenium to Improve a Teams Development Cycle
seleniumconf
 
Introducing Selenium Builder – the Future of Test Development
seleniumconf
 
Self-Generating Test Artifacts for Selenium/WebDriver
seleniumconf
 
Automatic Test Case Generation
Adnan Causevic
 
Building Quality with Foundations of Mud
seleniumconf
 
Requirement Development and Test
Kent Ishizawa
 
The story of language development
Hiroshi SHIBATA
 
Ad

Similar to [HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios (20)

PPT
LlosengCh04E2ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
KandaWeby
 
PPSX
DITEC - Software Engineering
Rasan Samarasinghe
 
PDF
Continuous Integration: Improving Quality in Moodle
Dan Poltawski
 
PPTX
Blue Prism Training Agenda
Saranya Vempalli
 
PDF
Olli-Pekka Puolitaival - Model-Based Testing for Integration Testing in Real ...
TEST Huddle
 
PDF
Olli-Pekka Puolitaival - Model-Based Tested for Integration Tested in Real Pr...
TEST Huddle
 
PPTX
Chapter 4.pptx
zaaakditte
 
PPTX
1)Testing-Fundamentals_L_D.pptx
gianggiang114
 
PPTX
2 approaches to system development
cymark09
 
PPTX
Testing as a Career
Prabal Dutta
 
PDF
Plone Testing Tools And Techniques
Jordan Baker
 
PPT
Performance Testing your Kuali Student Product
Kuali Student Project
 
PDF
2024 DAPUG Conference Arnaud Bouchez Test Driven Design
Arnaud Bouchez
 
PPT
Ch11lect1 ud
Ahmet Balkan
 
PPT
Generating test cases using UML Communication Diagram
Praveen Penumathsa
 
PPTX
Unit v
Suvithak
 
PPTX
The Core of Testing – Dynamic Testing Process – According to ISO 29119 with...
TEST Huddle
 
PPT
12proto
Patricio Metheny
 
PPTX
Lecture (Software Testing).pptx
skknowledge
 
PPTX
RPA_EC_2Cre_Chapter 03-Process Methodologies.pptx
huongdq21411
 
LlosengCh04E2ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
KandaWeby
 
DITEC - Software Engineering
Rasan Samarasinghe
 
Continuous Integration: Improving Quality in Moodle
Dan Poltawski
 
Blue Prism Training Agenda
Saranya Vempalli
 
Olli-Pekka Puolitaival - Model-Based Testing for Integration Testing in Real ...
TEST Huddle
 
Olli-Pekka Puolitaival - Model-Based Tested for Integration Tested in Real Pr...
TEST Huddle
 
Chapter 4.pptx
zaaakditte
 
1)Testing-Fundamentals_L_D.pptx
gianggiang114
 
2 approaches to system development
cymark09
 
Testing as a Career
Prabal Dutta
 
Plone Testing Tools And Techniques
Jordan Baker
 
Performance Testing your Kuali Student Product
Kuali Student Project
 
2024 DAPUG Conference Arnaud Bouchez Test Driven Design
Arnaud Bouchez
 
Ch11lect1 ud
Ahmet Balkan
 
Generating test cases using UML Communication Diagram
Praveen Penumathsa
 
Unit v
Suvithak
 
The Core of Testing – Dynamic Testing Process – According to ISO 29119 with...
TEST Huddle
 
Lecture (Software Testing).pptx
skknowledge
 
RPA_EC_2Cre_Chapter 03-Process Methodologies.pptx
huongdq21411
 
Ad

More from Ho Chi Minh City Software Testing Club (10)

PDF
[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Choosing The Best Of The Plan-Driven And Agile Developmen...
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Creating a Better Testing Future
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams
Ho Chi Minh City Software Testing Club
 
PDF
[HCMC STC Jan 2015] Performing Target Test in UMTS Network
Ho Chi Minh City Software Testing Club
 
PDF
Ho Chi Minh City Software Testing Conference 2014 "Stay on the cutting-edge" ...
Ho Chi Minh City Software Testing Club
 
PDF
[Vu Van Nguyen] Test Estimation in Practice
Ho Chi Minh City Software Testing Club
 
PDF
[Thong Nguyen & Trong Bui] Behavior Driven Development (BDD) and Automation T...
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Workshop Of Context-Driven Testing In Agile
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Developing an Offshore Context-Driven Testing Team
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Proving Our Worth Quantifying The Value Of Testing
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Choosing The Best Of The Plan-Driven And Agile Developmen...
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Creating a Better Testing Future
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] How To Work Effectively As a Tester in Agile Teams
Ho Chi Minh City Software Testing Club
 
[HCMC STC Jan 2015] Performing Target Test in UMTS Network
Ho Chi Minh City Software Testing Club
 
Ho Chi Minh City Software Testing Conference 2014 "Stay on the cutting-edge" ...
Ho Chi Minh City Software Testing Club
 
[Vu Van Nguyen] Test Estimation in Practice
Ho Chi Minh City Software Testing Club
 
[Thong Nguyen & Trong Bui] Behavior Driven Development (BDD) and Automation T...
Ho Chi Minh City Software Testing Club
 

Recently uploaded (20)

PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 

[HCMC STC Jan 2015] FATS: A Framework For Automated Testing Scenarios