SlideShare a Scribd company logo
1 of 15
Download to read offline
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
Open Source
SMB Compliance Test Suite
Amit – EMC Isilon Storage Division
Yogesh Kulkarni – Calsoft Inc.
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
Why an SMB Compliance Test Suite
Available Option Limitation
SMB Torture • Coverage out of the gate
• Extensibility
Microsoft Interop Test Suite • Hard to integrate with automation systems
• Limited coverage
2
 Requirements
 Broad Coverage
 Easy Extensibility
 Portability
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
Conformance Testing Strategy
 The Basics
 Standard or specification
 Test Framework
 Test Cases
3
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
Conformance Testing Strategy
 Possible Test Approaches
 Exhaustive testing
 Thorough testing
 Negative testing
 We chose Thorough testing including Negative
test cases as well
4
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
Conformance Testing Strategy
Other Considerations
• State transitions
 Connection and mount level state transitions
 File level state transitions
 Value Ranges
• Multi-dialect support and dialect specific tests
5
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 Orthogonal Array Testing for scope management
 “Orthogonal array testing is a black box
testing technique that is a systematic,
statistical way of software testing. It is used when
the number of inputs to the system is relatively
small, but too large to allow for exhaustive testing
of every possible input to the systems.”-
Wikipedia
 We reviewed several Orthogonal Array test
software and picked Hexawise.
6
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 Test Cases in XML
 XML driven approach for state machine
 Client machine states are embedded in an XML file
 There is a unique XML tag corresponding to each
SMB command request and response
 Expected values/errors are put into XML itself
 Parameter values can be default or set in the XML
 Allows for testing with out-of-range values
 Makes addition of test cases easy
7
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 The Pike Framework
 A Python SMB client
 Developed at EMC Isilon
 Capable of creating and sending SMB2
packets to a SMB server and parsing the
response
 Making SMB Testing Less Torturous (SDC 2013) -
Brian Koropoff - EMC Isilon
8
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 Architecture
9
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 Sample XML request, response pair
10
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 Commands covered
11
Command Approx. Test Cases
SMB2 Read 50
SMB2 Write 50
SMB2 Create 500*
Locking (op_locks, leases, BRL) 500*
Tree Connect 40
Tree Disconnect 40
Logoff 40
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 SMB Create
 Create is a very large command and has huge
number of combinations.
 Divided into 4 sub-categories
 Create a file
 Create a dir
 Open a file
 Open a dir
 Effect of desired access and file share settings
 Effect of create options and dispositions
12
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 Locking tests
 Locking with oplocks, leases and byte range.
 Interoperations between oplocks, leases and
byte-range locking
 Effect of desired access and File share on
locking
13
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
 Links
 Pike: https://github.com/emc-isilon/pike
 Pull request for this suite is awaiting approval
14
2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved.
SMB Conformance Test Suite
Questions?
15

More Related Content

Viewers also liked

Conflict-sensitive Palm Date Value Chain Development in Yemen
Conflict-sensitive Palm Date Value Chain Development in YemenConflict-sensitive Palm Date Value Chain Development in Yemen
Conflict-sensitive Palm Date Value Chain Development in YemenNikolaos Koufos
 
Criterios historia 2012
Criterios historia 2012Criterios historia 2012
Criterios historia 2012estudiaenlaubu
 
자금조달 의사결정 case study
자금조달 의사결정 case study자금조달 의사결정 case study
자금조달 의사결정 case studyEuna Choi
 

Viewers also liked (7)

Cedolino febbraio 2012
Cedolino febbraio 2012Cedolino febbraio 2012
Cedolino febbraio 2012
 
Globos cantoblanco
Globos cantoblancoGlobos cantoblanco
Globos cantoblanco
 
Conflict-sensitive Palm Date Value Chain Development in Yemen
Conflict-sensitive Palm Date Value Chain Development in YemenConflict-sensitive Palm Date Value Chain Development in Yemen
Conflict-sensitive Palm Date Value Chain Development in Yemen
 
Criterios historia 2012
Criterios historia 2012Criterios historia 2012
Criterios historia 2012
 
자금조달 의사결정 case study
자금조달 의사결정 case study자금조달 의사결정 case study
자금조달 의사결정 case study
 
Tsunami
TsunamiTsunami
Tsunami
 
OST Recovery Tool
OST Recovery ToolOST Recovery Tool
OST Recovery Tool
 

Similar to AmitFru_OpenSource_SMB_Compliance_Test_Suite

AmitFru_Multiprotocol_Testing_Suite
AmitFru_Multiprotocol_Testing_SuiteAmitFru_Multiprotocol_Testing_Suite
AmitFru_Multiprotocol_Testing_SuiteYogesh Kulkarni
 
OOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best PracticesOOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best Practicesvasuballa
 
The Future of Storage : EMC Software Defined Solution
The Future of Storage : EMC Software Defined Solution The Future of Storage : EMC Software Defined Solution
The Future of Storage : EMC Software Defined Solution RSD
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planningSivaprasanthRentala1975
 
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...Alfresco Software
 
CFSummit ColdFusion 2015 Load Balancing, Failover and Scalability
CFSummit ColdFusion 2015 Load Balancing, Failover and ScalabilityCFSummit ColdFusion 2015 Load Balancing, Failover and Scalability
CFSummit ColdFusion 2015 Load Balancing, Failover and ScalabilitymcollinsCF
 
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDzRDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDzSusan Yoskin
 
Load Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionLoad Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionColdFusionConference
 
Test automation lessons from WebSphere Application Server
Test automation lessons from WebSphere Application ServerTest automation lessons from WebSphere Application Server
Test automation lessons from WebSphere Application ServerRobbie Minshall
 
Continuous Interop Testing
Continuous Interop TestingContinuous Interop Testing
Continuous Interop TestingJohn Cocke
 
Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingKMS Technology
 
Sajeeda Parveen_5+Exp_Resume
Sajeeda Parveen_5+Exp_ResumeSajeeda Parveen_5+Exp_Resume
Sajeeda Parveen_5+Exp_Resumesajeedakumbari
 
ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat
 
Test Driven Development #sitFRA
Test Driven Development #sitFRATest Driven Development #sitFRA
Test Driven Development #sitFRAChristian Drumm
 
Test automation wipro
Test automation   wiproTest automation   wipro
Test automation wiproambreprasad77
 
Keyword Driven Automation
Keyword Driven AutomationKeyword Driven Automation
Keyword Driven AutomationPankaj Goel
 
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...IBM Systems UKI
 
Continuous Application Delivery to WebSphere - Featuring IBM UrbanCode
Continuous Application Delivery to WebSphere - Featuring IBM UrbanCodeContinuous Application Delivery to WebSphere - Featuring IBM UrbanCode
Continuous Application Delivery to WebSphere - Featuring IBM UrbanCodeIBM UrbanCode Products
 

Similar to AmitFru_OpenSource_SMB_Compliance_Test_Suite (20)

AmitFru_Multiprotocol_Testing_Suite
AmitFru_Multiprotocol_Testing_SuiteAmitFru_Multiprotocol_Testing_Suite
AmitFru_Multiprotocol_Testing_Suite
 
OOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best PracticesOOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best Practices
 
Em13c features- HotSos 2016
Em13c features- HotSos 2016Em13c features- HotSos 2016
Em13c features- HotSos 2016
 
The Future of Storage : EMC Software Defined Solution
The Future of Storage : EMC Software Defined Solution The Future of Storage : EMC Software Defined Solution
The Future of Storage : EMC Software Defined Solution
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
 
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...
 
CFSummit ColdFusion 2015 Load Balancing, Failover and Scalability
CFSummit ColdFusion 2015 Load Balancing, Failover and ScalabilityCFSummit ColdFusion 2015 Load Balancing, Failover and Scalability
CFSummit ColdFusion 2015 Load Balancing, Failover and Scalability
 
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDzRDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
RDz for DevOps Webcast Series: Implementing Continuous Integration with RDz
 
Load Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionLoad Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusion
 
Test automation lessons from WebSphere Application Server
Test automation lessons from WebSphere Application ServerTest automation lessons from WebSphere Application Server
Test automation lessons from WebSphere Application Server
 
Em13c New Features- One of Two
Em13c New Features- One of TwoEm13c New Features- One of Two
Em13c New Features- One of Two
 
Continuous Interop Testing
Continuous Interop TestingContinuous Interop Testing
Continuous Interop Testing
 
Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice Sharing
 
Sajeeda Parveen_5+Exp_Resume
Sajeeda Parveen_5+Exp_ResumeSajeeda Parveen_5+Exp_Resume
Sajeeda Parveen_5+Exp_Resume
 
ABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDDABAPCodeRetreat 23.7.2016 - TDD
ABAPCodeRetreat 23.7.2016 - TDD
 
Test Driven Development #sitFRA
Test Driven Development #sitFRATest Driven Development #sitFRA
Test Driven Development #sitFRA
 
Test automation wipro
Test automation   wiproTest automation   wipro
Test automation wipro
 
Keyword Driven Automation
Keyword Driven AutomationKeyword Driven Automation
Keyword Driven Automation
 
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
 
Continuous Application Delivery to WebSphere - Featuring IBM UrbanCode
Continuous Application Delivery to WebSphere - Featuring IBM UrbanCodeContinuous Application Delivery to WebSphere - Featuring IBM UrbanCode
Continuous Application Delivery to WebSphere - Featuring IBM UrbanCode
 

AmitFru_OpenSource_SMB_Compliance_Test_Suite

  • 1. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. Open Source SMB Compliance Test Suite Amit – EMC Isilon Storage Division Yogesh Kulkarni – Calsoft Inc.
  • 2. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. Why an SMB Compliance Test Suite Available Option Limitation SMB Torture • Coverage out of the gate • Extensibility Microsoft Interop Test Suite • Hard to integrate with automation systems • Limited coverage 2  Requirements  Broad Coverage  Easy Extensibility  Portability
  • 3. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. Conformance Testing Strategy  The Basics  Standard or specification  Test Framework  Test Cases 3
  • 4. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. Conformance Testing Strategy  Possible Test Approaches  Exhaustive testing  Thorough testing  Negative testing  We chose Thorough testing including Negative test cases as well 4
  • 5. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. Conformance Testing Strategy Other Considerations • State transitions  Connection and mount level state transitions  File level state transitions  Value Ranges • Multi-dialect support and dialect specific tests 5
  • 6. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  Orthogonal Array Testing for scope management  “Orthogonal array testing is a black box testing technique that is a systematic, statistical way of software testing. It is used when the number of inputs to the system is relatively small, but too large to allow for exhaustive testing of every possible input to the systems.”- Wikipedia  We reviewed several Orthogonal Array test software and picked Hexawise. 6
  • 7. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  Test Cases in XML  XML driven approach for state machine  Client machine states are embedded in an XML file  There is a unique XML tag corresponding to each SMB command request and response  Expected values/errors are put into XML itself  Parameter values can be default or set in the XML  Allows for testing with out-of-range values  Makes addition of test cases easy 7
  • 8. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  The Pike Framework  A Python SMB client  Developed at EMC Isilon  Capable of creating and sending SMB2 packets to a SMB server and parsing the response  Making SMB Testing Less Torturous (SDC 2013) - Brian Koropoff - EMC Isilon 8
  • 9. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  Architecture 9
  • 10. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  Sample XML request, response pair 10
  • 11. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  Commands covered 11 Command Approx. Test Cases SMB2 Read 50 SMB2 Write 50 SMB2 Create 500* Locking (op_locks, leases, BRL) 500* Tree Connect 40 Tree Disconnect 40 Logoff 40
  • 12. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  SMB Create  Create is a very large command and has huge number of combinations.  Divided into 4 sub-categories  Create a file  Create a dir  Open a file  Open a dir  Effect of desired access and file share settings  Effect of create options and dispositions 12
  • 13. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  Locking tests  Locking with oplocks, leases and byte range.  Interoperations between oplocks, leases and byte-range locking  Effect of desired access and File share on locking 13
  • 14. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite  Links  Pike: https://github.com/emc-isilon/pike  Pull request for this suite is awaiting approval 14
  • 15. 2014 Storage Developer Conference. © EMC Corp and Calsoft Inc.. All Rights Reserved. SMB Conformance Test Suite Questions? 15