《SNIA-SDC23-Ogbo-Windows-Protocol-Test-Suites_0.pdf》由会员分享,可在线阅读,更多相关《SNIA-SDC23-Ogbo-Windows-Protocol-Test-Suites_0.pdf(18页珍藏版)》请在三个皮匠报告上搜索。
1、1|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialVirtual ConferenceSeptember 28-29,2021Windows Protocol Test SuitesArchitecture,design,and usage for testing protocol implementationsPresented byObaro OgboSenior Software EngineerMicrosoft2|2023 SNIA.All Rights Reserved.Classified as
2、 Microsoft ConfidentialAgendaBackgroundTest Suites Architecture Application Design&Architecture Test Case Design SUT ControlUsage PTM Service PTM Cli Docker Image3|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialBackgroundWindows Protocol Test Suites4|2023 SNIA.All Rights Reserved.
3、Classified as Microsoft ConfidentialBackground InteroperabilityOpen connections to Microsoft products Open protocols Open APIs Open Access Open Source CompatibilitySupport for standardsData portabilityOpen engagement5|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialBackground Windo
4、ws ProtocolsEvaluates whether a protocol implementation meets certain interoperability requirements.Originally developed for in-house testing of Microsoft Open Specifications.Used to test/verify Windows behavior.Also used to test 3rd-party implementations.Do not cover every protocol requirement,and
5、do not certify an implementation,but can be a useful indication of interoperability.6|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialBackground Test Suite GoalsOpen Source https:/ platformProtocol features as testsOpen spec docs https:/ protocols RDP,SMB2,ADFamily,etc7|2023 SNIA.A
6、ll Rights Reserved.Classified as Microsoft Confidential2.Develop protocol test suite(synthetic client)according to Open Specification3.Run against Windows to verify Open Specification4.Run against 3rd-party implementation to help identify&debug issues1.Open Specification defines messages,sequences,b
7、ehaviors5.Interoperability between partners server and Windows clientWindows Client Windows Server Test SuiteSynthetic Client Partners Server Message Over the Wire4531Open Specification2Server-side implementationBackground Protocol Test Methodology8|2023 SNIA.All Rights Reserved.Classified as Micros
8、oft ConfidentialArchitectureWindows Protocol Test Suites9|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialArchitecture DesignPTM Service/PTM CliFileServer Test SuiteRDP Test SuiteProtocol Test FrameworkProto SDK.NET 7 SDKWindowsLinuxMacOS10|2023 SNIA.All Rights Reserved.Classified
9、as Microsoft ConfidentialArchitecture Test Case DesignDesign Test cases Architecture Interfaces Consider undetermined partner implementationImplementation SDK Test casesIf xxx server sends message A to xxx client,the client MUST respond with message B.If A is invalid,client MUST return error message
10、 C.Test Case 1:1.;2.Server.Send(msgAmsgA);3.Expect client respond msgBmsgB,and,andAssert(msgB.Field1=valid1)Assert(msgB.Field1=valid1)Assert(Assert(msgB.FieldNmsgB.FieldN =validNvalidN)Test Case 2:1.;2.Server.Send(Invalid Invalid msgAmsgA);3.Expect client respond msgCmsgC,and,and Assert(Assert(msgC.
11、SatusmsgC.Satus =ERROR)=ERROR)11|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialArchitecture SUT Control SUT Remote Control Protocol Abstract control operations to SUT PowerShell Shell Interactive Managed SUT Control Agent(Managed)runs on SUT C#Java C Python12|2023 SNIA.All Rights
12、 Reserved.Classified as Microsoft ConfidentialUsageWindows Protocol Test Suites13|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialUsage Direct executiondotnet testCross platformPowerShell&Shell batch scripts RunAllTestCases RunTestCasesByFilterSupports filtering FullyQualifiedName
13、Name TestCategory14|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialUsage PTM ServiceUser Friendly Auto detection GUIWeb serviceCross platformSupports multiple Test Suite versionsCreate custom filter rulesExport configurationhttps:/ 15|2023 SNIA.All Rights Reserved.Classified as Mi
14、crosoft ConfidentialUsage PTM CliIntegrates with CI/CDImports configurationCan be used with custom filter rulesAutomation friendlyCross platform16|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialUsage Docker ImageDebian 11 baseSupports PTM ServiceSupports Direct executionSupported Test Suites File Server RDP Server RDP Clienthttps:/ 17|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialContact U18|2023 SNIA.All Rights Reserved.Classified as Microsoft ConfidentialPlease take a moment to rate this session.Your feedback is important to us.