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
PPTX
Practical unit testing in c & c++
PDF
ABAP Code Retreat Frankfurt 2016: TDD - Test Driven Development
PDF
Testival meetup 60_leveraging_the_power_of_your_testing_with_xray_20210112_v2
PPT
Automated Regression Testing for Embedded Systems in Action
PPT
Introduction to Parasoft C++TEST
PDF
It's Not a Bug, It's a Feature — How Misclassification Impacts Bug Prediction
PPT
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
03 test specification and execution
Practical unit testing in c & c++
ABAP Code Retreat Frankfurt 2016: TDD - Test Driven Development
Testival meetup 60_leveraging_the_power_of_your_testing_with_xray_20210112_v2
Automated Regression Testing for Embedded Systems in Action
Introduction to Parasoft C++TEST
It's Not a Bug, It's a Feature — How Misclassification Impacts Bug Prediction
Parasoft .TEST, Write better C# Code Using Data Flow Analysis

What's hot (20)

PPTX
The Impact of Test Ownership and Team Structure on the Reliability and Effect...
PDF
Parasoft fda software compliance part2
PPTX
Issre2014 test defectprediction
PPTX
Unit testing
PPTX
Embedded Testing 2015
PDF
TDD in the ABAP world - sitNL 2013 edition
PPT
Testing strategies
PPTX
Unit testing
PPTX
Introduction to Automation Testing
PPT
Beyond Static Analysis: Integrating .NET Static Analysis with Unit Testing a...
PPTX
Integration in component based technology
PDF
Types of Non Functional Testing
PPTX
H testing and debugging
PDF
System Integration Testing
PDF
Code coverage & tools
PPTX
Types of test tools
ODP
Software testing tools
PPTX
PPTX
Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)
PPTX
Integration testing
The Impact of Test Ownership and Team Structure on the Reliability and Effect...
Parasoft fda software compliance part2
Issre2014 test defectprediction
Unit testing
Embedded Testing 2015
TDD in the ABAP world - sitNL 2013 edition
Testing strategies
Unit testing
Introduction to Automation Testing
Beyond Static Analysis: Integrating .NET Static Analysis with Unit Testing a...
Integration in component based technology
Types of Non Functional Testing
H testing and debugging
System Integration Testing
Code coverage & tools
Types of test tools
Software testing tools
Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)
Integration testing
Ad

Viewers also liked (20)

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

Similar to Simple Railroad Command Protocol (20)

PDF
Master Teset Specification SRCP
PDF
Mts srcp
PDF
SRCP seminar
PDF
G53 qat09pdf6up
PPTX
Understanding Key Concepts and Applications in Week 11: A Comprehensive Overv...
PPT
Types of Software Testing
PPTX
Black box software testing
PPT
Software testing overview subbu
PPTX
SOFTWARE TESTING.pptx
PDF
Introduction to Software Testing
PPT
Dynamic analysis in Software Testing
PPT
Introduction to software testing
PPT
Testing
PDF
Block 1 ms-034 unit-1
PPT
Software testing
PPTX
SWE-6 TESTING.pptx
PPTX
Software Testing
PPT
&lt;p>Software Testing&lt;/p>
PPT
An overview to Software Testing
PPT
lec-11 Testing.ppt
Master Teset Specification SRCP
Mts srcp
SRCP seminar
G53 qat09pdf6up
Understanding Key Concepts and Applications in Week 11: A Comprehensive Overv...
Types of Software Testing
Black box software testing
Software testing overview subbu
SOFTWARE TESTING.pptx
Introduction to Software Testing
Dynamic analysis in Software Testing
Introduction to software testing
Testing
Block 1 ms-034 unit-1
Software testing
SWE-6 TESTING.pptx
Software Testing
&lt;p>Software Testing&lt;/p>
An overview to Software Testing
lec-11 Testing.ppt

More from Ankit Singh (6)

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

Recently uploaded (20)

PPTX
Microsoft User Copilot Training Slide Deck
PDF
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
SaaS reusability assessment using machine learning techniques
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
A symptom-driven medical diagnosis support model based on machine learning te...
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
LMS bot: enhanced learning management systems for improved student learning e...
PDF
Connector Corner: Transform Unstructured Documents with Agentic Automation
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
Microsoft User Copilot Training Slide Deck
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
Data Virtualization in Action: Scaling APIs and Apps with FME
Basics of Cloud Computing - Cloud Ecosystem
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
NewMind AI Weekly Chronicles – August ’25 Week IV
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
SaaS reusability assessment using machine learning techniques
Convolutional neural network based encoder-decoder for efficient real-time ob...
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
A symptom-driven medical diagnosis support model based on machine learning te...
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
LMS bot: enhanced learning management systems for improved student learning e...
Connector Corner: Transform Unstructured Documents with Agentic Automation
Enhancing plagiarism detection using data pre-processing and machine learning...
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
Improvisation in detection of pomegranate leaf disease using transfer learni...
Rapid Prototyping: A lecture on prototyping techniques for interface design

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 !!! 