SlideShare a Scribd company logo
MASTER TEST SPECIFICATION FOR SIMPLE RAILROAD COMMAND PROTOCOL(SRCP) 28 JUNE 2010 Tester, Ankit Singh Masters High Integrity System University of Applied Sciences Frankfurt am Main
OVERVIEW SRCP Version 0.8.3 SRCP is an internet protocol for controlling and programming (digital) model railway system. Communication: TCP Network connection between Client & Server SRCP Provides Three Modes of operations: Handshake Mode Command Mode Info Mode
PROJECT SCHEDULE
STRATEGIES:   TO SELECT THE FINAL TEST CASES Important Network Establishment between a client and a server  1. Level of priority a. MUST/MUST NOT tagged requirements b. SHALL/RECOMMEND tagged requirements c. CAN/OPERATIONAL tagged requirements 2. Valid/Invalid requirements 3. General flow of operations requirements
TEST METRICS USED Test metric  Definition  Purpose How to calculate Defect severity The severity level of a defect indicates the potential business impact for the end user (business impact = effect on the end user x frequency of occurrence). Provides indications about the quality of the product under test. High-severity defects means low product quality, and vice versa. At the end of this phase, this information is useful to make the release decision based on the number of defects and their severity levels. Every defect has severity levels attached to it. Broadly, these are Critical, Serious, Medium and Low. Test coverage Defined as the extent to which testing covers the products complete functionality. This metric is an indication of the completeness of the testing. It does not indicate anything about the effectiveness of the testing. This can be used as a criterion to stop testing. Coverage could be with respect to requirements, functional topic list, business flows, use cases, etc. It can be calculated based on the number of items that were covered vs. the total number of items.
BLACK BOX TESTING Equivalence partitioning Boundary-value analysis Error guessing
WRONG TEST SPECIFICATION  (BLACK BOX TESTING) Test Case ID.No Test Area Command Expected Output  Behavior Description  Severity Level 3_1 Command  set ConnEctionMode Srcp Command 410 ERROR unknown command Fail : <TimeStamp>202 OK CONNECTIONMODE Low 3_2 Feedback SET 1 FB 0x111111 0 100 INFO 1  FB 0x111111 0 Fail: <TimeStamp> 422 ERROR unsupported device group Critical 3_3  Session  GET 0 SESSION 2 100 INFO 0 SESSION 2 Fail: <TimeStamp> 422 ERROR unsupported device group Critical 3_4 Server RESET 0 SERVER 101 INFO 0 SERVER Fail : <TimeStamp> 423 ERROR unsupported operation Crititcal 3_5  Time  TERM 0 TIME 102 INFO 0 TIME Fail: <TimeStamp> 422 ERROR unsupported device group Critical
WHITE BOX TESTING Statement coverage Decision coverage Condition coverage
WHITE BOX TESTING REPORT SAFE CODING GUIDELINES Function Bug Suggestion enqueueInfoFB 1000, Message length hardcoded Should be passed any specified message, and calculate size dynamically queue_reset_fb usleep not checked for incorrect result check the result returned by usleep() infoFB msg overflow can occur, so message length should be dynamically checked Check for the overflow
FINDINGS TCP-port 4303 assigned by IANA but not mentioned in specification Incomplete data in specification leads to confusion  Insufficient details in Specification In some cases commands are not working on certain device groups Differences between Specification & srcpd implementations.  Proper Return checks are not done in the source codes which can lead to crashing of the system.
IMPROVEMENTS Perform stress tests (eg. high number of simultaneous connections) Increase code coverage Increase control over environment (OS settings, real time debugging info) Improve overall clarity about specification  Server Crash testing (Server crash and recovery time)
CONCLUSION Full code coverage using black-box testing isn’t feasible White-box in combination with black-box testing considerably increases code coverage  Increased code coverage = Increased code safety
REFERENCES Lecture notes and slides of Dr. Shoenfelder. The Art of Software Testing, Second Edition, Glenford J. Myers http://en.wikipedia.org/wiki/Test_case
Thank You  For  Listening patiently & Asking No Questions !!! 

More Related Content

PDF
03 test specification and execution
Clemens Reijnen
 
PPTX
Practical unit testing in c & c++
Matt Hargett
 
PDF
ABAP Code Retreat Frankfurt 2016: TDD - Test Driven Development
Hendrik Neumann
 
PDF
Testival meetup 60_leveraging_the_power_of_your_testing_with_xray_20210112_v2
Sergio Freire
 
PPT
Automated Regression Testing for Embedded Systems in Action
AANDTech
 
PPT
Introduction to Parasoft C++TEST
Engineering Software Lab
 
PDF
It's Not a Bug, It's a Feature — How Misclassification Impacts Bug Prediction
sjust
 
PPT
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Engineering Software Lab
 
03 test specification and execution
Clemens Reijnen
 
Practical unit testing in c & c++
Matt Hargett
 
ABAP Code Retreat Frankfurt 2016: TDD - Test Driven Development
Hendrik Neumann
 
Testival meetup 60_leveraging_the_power_of_your_testing_with_xray_20210112_v2
Sergio Freire
 
Automated Regression Testing for Embedded Systems in Action
AANDTech
 
Introduction to Parasoft C++TEST
Engineering Software Lab
 
It's Not a Bug, It's a Feature — How Misclassification Impacts Bug Prediction
sjust
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Engineering Software Lab
 

What's hot (20)

PPTX
The Impact of Test Ownership and Team Structure on the Reliability and Effect...
Kim Herzig
 
PDF
Parasoft fda software compliance part2
Engineering Software Lab
 
PPTX
Issre2014 test defectprediction
Kim Herzig
 
PPTX
Unit testing
princezzlove
 
PPTX
Embedded Testing 2015
Vassilis Rizopoulos
 
PDF
TDD in the ABAP world - sitNL 2013 edition
Hendrik Neumann
 
PPT
Testing strategies
chaitanya_yarlagadda
 
PPTX
Unit testing
Slideshare
 
PPTX
Introduction to Automation Testing
Archana Krushnan
 
PPT
Beyond Static Analysis: Integrating .NET Static Analysis with Unit Testing a...
Erika Barron
 
PPTX
Integration in component based technology
Saransh Garg
 
PDF
Types of Non Functional Testing
iFour Technolab Pvt. Ltd.
 
PPTX
H testing and debugging
missstevenson01
 
PDF
System Integration Testing
Josh Case
 
PDF
Code coverage & tools
Rajesh Kumar
 
PPTX
Types of test tools
Vaibhav Dash
 
ODP
Software testing tools
Gaurav Paliwal
 
PPTX
Black & White Box testing
Mohamed Zeinelabdeen Abdelgader Farh jber
 
PPTX
Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)
STePINForum
 
PPTX
Integration testing
Vaibhav Dash
 
The Impact of Test Ownership and Team Structure on the Reliability and Effect...
Kim Herzig
 
Parasoft fda software compliance part2
Engineering Software Lab
 
Issre2014 test defectprediction
Kim Herzig
 
Unit testing
princezzlove
 
Embedded Testing 2015
Vassilis Rizopoulos
 
TDD in the ABAP world - sitNL 2013 edition
Hendrik Neumann
 
Testing strategies
chaitanya_yarlagadda
 
Unit testing
Slideshare
 
Introduction to Automation Testing
Archana Krushnan
 
Beyond Static Analysis: Integrating .NET Static Analysis with Unit Testing a...
Erika Barron
 
Integration in component based technology
Saransh Garg
 
Types of Non Functional Testing
iFour Technolab Pvt. Ltd.
 
H testing and debugging
missstevenson01
 
System Integration Testing
Josh Case
 
Code coverage & tools
Rajesh Kumar
 
Types of test tools
Vaibhav Dash
 
Software testing tools
Gaurav Paliwal
 
Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)
STePINForum
 
Integration testing
Vaibhav Dash
 
Ad

Viewers also liked (20)

PPT
TINYOS Oscilloscope Application
Ankit Singh
 
ODP
Dane presentation
Ankit Singh
 
PPT
Design Alternative for Parallel Systems
Ankit Singh
 
PPS
Mote Mote Radio Communication
Ankit Singh
 
PDF
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
Ankit Singh
 
PDF
MicazXpl Intelligent Sensors Network Project Presentation
Ankit Singh
 
KEY
DO-178B/ED-12B Presentation
Ankit Singh
 
PPTX
Security Vision for Software on Wheels (Autonomous Vehicles)
Ankit Singh
 
PPT
Software Fault Tolerance
Ankit Singh
 
PDF
The Security and Privacy Requirements in VANET
Ankit Singh
 
PPT
Anti Collision Railways System
Ankit Singh
 
PDF
The Security and Privacy Threats to Cloud Computing
Ankit Singh
 
DOCX
Indian German Unity
Ankit Singh
 
PPTX
Eeuwigblijvenleren2
Henk van der Berg
 
PPT
Monaco 020909
sfa_angeiologie
 
PDF
200905 - Sociable machines
Javier Gonzalez-Sanchez
 
PDF
Livre resumes 2007 angeio
sfa_angeiologie
 
PPT
Tax planning introduction fall 2012
dphil002
 
PDF
Postcards From Pure Michigan
PMCHUGH
 
PDF
201506 CSE340 Lecture 12
Javier Gonzalez-Sanchez
 
TINYOS Oscilloscope Application
Ankit Singh
 
Dane presentation
Ankit Singh
 
Design Alternative for Parallel Systems
Ankit Singh
 
Mote Mote Radio Communication
Ankit Singh
 
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
Ankit Singh
 
MicazXpl Intelligent Sensors Network Project Presentation
Ankit Singh
 
DO-178B/ED-12B Presentation
Ankit Singh
 
Security Vision for Software on Wheels (Autonomous Vehicles)
Ankit Singh
 
Software Fault Tolerance
Ankit Singh
 
The Security and Privacy Requirements in VANET
Ankit Singh
 
Anti Collision Railways System
Ankit Singh
 
The Security and Privacy Threats to Cloud Computing
Ankit Singh
 
Indian German Unity
Ankit Singh
 
Eeuwigblijvenleren2
Henk van der Berg
 
Monaco 020909
sfa_angeiologie
 
200905 - Sociable machines
Javier Gonzalez-Sanchez
 
Livre resumes 2007 angeio
sfa_angeiologie
 
Tax planning introduction fall 2012
dphil002
 
Postcards From Pure Michigan
PMCHUGH
 
201506 CSE340 Lecture 12
Javier Gonzalez-Sanchez
 
Ad

Similar to Simple Railroad Command Protocol (20)

PPTX
Softwar tetesting basic
parekhjigarh
 
PDF
Testing lab manual Testing lab manual sqa
MuhammadAdnan845624
 
DOCX
Ericsson MSC commands
Anthony Uisso
 
PDF
Automatic Analyzing System for Packet Testing and Fault Mapping
IRJET Journal
 
PDF
Qualcomm lte-performance-challenges-09-01-2011
Muhammad Noor Ifansyah
 
PDF
SAP consulting results
Konstantin Berger
 
PDF
Co emulation of scan-chain based designs
ijcsit
 
PDF
Communication network simulation on the unix system trough use of the remote ...
Damir Delija
 
PDF
Communication network simulation on the unix system trough use of the remote ...
Damir Delija
 
PDF
Communication network simulation on the unix system trough use of the remote ...
Damir Delija
 
PDF
2 g dt and mapinfo
mohammad ali amini
 
PDF
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
Lori Head
 
PPTX
module5 notes on random zation techniques.pptx
smiritisms
 
PPT
Code Coverage in Theory and in practice form the DO178B perspective
Engineering Software Lab
 
PPT
Code coverage in theory and in practice form the do178 b perspective
Engineering Software Lab
 
PDF
108401 2727+ijet-ijens
Hatim100
 
PDF
JTAG
zomrolion
 
PPT
Testing
Sonali Chauhan
 
PPTX
Design for testability and automatic test pattern generation
Dilip Mathuria
 
PDF
On-chip Generation of Functional Tests with Reduced Delay and Power
journalBEEI
 
Softwar tetesting basic
parekhjigarh
 
Testing lab manual Testing lab manual sqa
MuhammadAdnan845624
 
Ericsson MSC commands
Anthony Uisso
 
Automatic Analyzing System for Packet Testing and Fault Mapping
IRJET Journal
 
Qualcomm lte-performance-challenges-09-01-2011
Muhammad Noor Ifansyah
 
SAP consulting results
Konstantin Berger
 
Co emulation of scan-chain based designs
ijcsit
 
Communication network simulation on the unix system trough use of the remote ...
Damir Delija
 
Communication network simulation on the unix system trough use of the remote ...
Damir Delija
 
Communication network simulation on the unix system trough use of the remote ...
Damir Delija
 
2 g dt and mapinfo
mohammad ali amini
 
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
Lori Head
 
module5 notes on random zation techniques.pptx
smiritisms
 
Code Coverage in Theory and in practice form the DO178B perspective
Engineering Software Lab
 
Code coverage in theory and in practice form the do178 b perspective
Engineering Software Lab
 
108401 2727+ijet-ijens
Hatim100
 
JTAG
zomrolion
 
Design for testability and automatic test pattern generation
Dilip Mathuria
 
On-chip Generation of Functional Tests with Reduced Delay and Power
journalBEEI
 

More from Ankit Singh (7)

PPTX
IoT in Mining for Sensing, Monitoring and Prediction of Underground Mines Roo...
Ankit Singh
 
PDF
Parallex - The Supercomputer
Ankit Singh
 
PDF
Cooperative Linux
Ankit Singh
 
PDF
Master Teset Specification SRCP
Ankit Singh
 
PDF
Micazxpl - Intelligent Sensors Network project report
Ankit Singh
 
DOCX
Toilet etiquettes
Ankit Singh
 
PDF
TinyOS installation Guide And Manual
Ankit Singh
 
IoT in Mining for Sensing, Monitoring and Prediction of Underground Mines Roo...
Ankit Singh
 
Parallex - The Supercomputer
Ankit Singh
 
Cooperative Linux
Ankit Singh
 
Master Teset Specification SRCP
Ankit Singh
 
Micazxpl - Intelligent Sensors Network project report
Ankit Singh
 
Toilet etiquettes
Ankit Singh
 
TinyOS installation Guide And Manual
Ankit Singh
 

Recently uploaded (20)

PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
AbdullahSani29
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
AVTRON Technologies LLC
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
famaw19526
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
PDF
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
PDF
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
PDF
Doc9.....................................
SofiaCollazos
 
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
AbdullahSani29
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
AVTRON Technologies LLC
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
famaw19526
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
Software Development Company | KodekX
KodekX
 
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
Doc9.....................................
SofiaCollazos
 

Simple Railroad Command Protocol

  • 1. MASTER TEST SPECIFICATION FOR SIMPLE RAILROAD COMMAND PROTOCOL(SRCP) 28 JUNE 2010 Tester, Ankit Singh Masters High Integrity System University of Applied Sciences Frankfurt am Main
  • 2. OVERVIEW SRCP Version 0.8.3 SRCP is an internet protocol for controlling and programming (digital) model railway system. Communication: TCP Network connection between Client & Server SRCP Provides Three Modes of operations: Handshake Mode Command Mode Info Mode
  • 4. STRATEGIES: TO SELECT THE FINAL TEST CASES Important Network Establishment between a client and a server 1. Level of priority a. MUST/MUST NOT tagged requirements b. SHALL/RECOMMEND tagged requirements c. CAN/OPERATIONAL tagged requirements 2. Valid/Invalid requirements 3. General flow of operations requirements
  • 5. TEST METRICS USED Test metric Definition Purpose How to calculate Defect severity The severity level of a defect indicates the potential business impact for the end user (business impact = effect on the end user x frequency of occurrence). Provides indications about the quality of the product under test. High-severity defects means low product quality, and vice versa. At the end of this phase, this information is useful to make the release decision based on the number of defects and their severity levels. Every defect has severity levels attached to it. Broadly, these are Critical, Serious, Medium and Low. Test coverage Defined as the extent to which testing covers the products complete functionality. This metric is an indication of the completeness of the testing. It does not indicate anything about the effectiveness of the testing. This can be used as a criterion to stop testing. Coverage could be with respect to requirements, functional topic list, business flows, use cases, etc. It can be calculated based on the number of items that were covered vs. the total number of items.
  • 6. BLACK BOX TESTING Equivalence partitioning Boundary-value analysis Error guessing
  • 7. WRONG TEST SPECIFICATION (BLACK BOX TESTING) Test Case ID.No Test Area Command Expected Output Behavior Description Severity Level 3_1 Command set ConnEctionMode Srcp Command 410 ERROR unknown command Fail : <TimeStamp>202 OK CONNECTIONMODE Low 3_2 Feedback SET 1 FB 0x111111 0 100 INFO 1 FB 0x111111 0 Fail: <TimeStamp> 422 ERROR unsupported device group Critical 3_3 Session GET 0 SESSION 2 100 INFO 0 SESSION 2 Fail: <TimeStamp> 422 ERROR unsupported device group Critical 3_4 Server RESET 0 SERVER 101 INFO 0 SERVER Fail : <TimeStamp> 423 ERROR unsupported operation Crititcal 3_5 Time TERM 0 TIME 102 INFO 0 TIME Fail: <TimeStamp> 422 ERROR unsupported device group Critical
  • 8. WHITE BOX TESTING Statement coverage Decision coverage Condition coverage
  • 9. WHITE BOX TESTING REPORT SAFE CODING GUIDELINES Function Bug Suggestion enqueueInfoFB 1000, Message length hardcoded Should be passed any specified message, and calculate size dynamically queue_reset_fb usleep not checked for incorrect result check the result returned by usleep() infoFB msg overflow can occur, so message length should be dynamically checked Check for the overflow
  • 10. FINDINGS TCP-port 4303 assigned by IANA but not mentioned in specification Incomplete data in specification leads to confusion Insufficient details in Specification In some cases commands are not working on certain device groups Differences between Specification & srcpd implementations. Proper Return checks are not done in the source codes which can lead to crashing of the system.
  • 11. IMPROVEMENTS Perform stress tests (eg. high number of simultaneous connections) Increase code coverage Increase control over environment (OS settings, real time debugging info) Improve overall clarity about specification Server Crash testing (Server crash and recovery time)
  • 12. CONCLUSION Full code coverage using black-box testing isn’t feasible White-box in combination with black-box testing considerably increases code coverage Increased code coverage = Increased code safety
  • 13. REFERENCES Lecture notes and slides of Dr. Shoenfelder. The Art of Software Testing, Second Edition, Glenford J. Myers http://en.wikipedia.org/wiki/Test_case
  • 14. Thank You For Listening patiently & Asking No Questions !!! 