Join us at SNIA NA SDC SMB3 IO Lab 2022 (9/14 - 9/16)
Перейти к файлу
Jiajun Wang 0fec3b95da Update PTF user guide
* Remove sections on Script adapter and PsWrapper adapter.
* Add guide for shell adapter.
2019-04-24 15:00:29 +08:00
InstallPrerequisites Add security protocols: Ssl3,Tls,Tls11,Tls12 2018-09-30 13:35:40 +08:00
docs Update PTF user guide 2019-04-24 15:00:29 +08:00
samples/XXXX_ProtocolTestSuite Only support vs2017. modify toolsversion and remove unused codes 2018-07-16 13:42:17 +08:00
src Add unit test for shell adapter 2019-04-24 15:00:29 +08:00
.gitattributes Update resource files 2015-10-22 10:58:44 +08:00
.gitignore Update gitignore 2019-03-20 12:39:18 +08:00
CONTRIBUTING.md PTF initial commit 2015-08-07 11:33:17 +08:00
LICENSE.txt PTF initial commit 2015-08-07 11:33:17 +08:00
README.md Merged PR 741: Update prerequisites 2018-11-15 08:14:11 +00:00

README.md

Protocol Test Framework

The Protocol Test Framework (PTF) is designed to support Microsoft Protocol Test Suites for both Windows and Office Protocol Interoperability testing. It implements the fundamentals to support Protocol Test Suite, including logging, checker, configuration and etc.

Prerequisites

PTF is based on Windows platform. You should install the softwares listed below based on your testing purpose, including their own dependencies.

  • Visual Studio 2017 with some individual components required by installing in Visual Studio Installer:
    Individual Component\Purpose Run test suites based on Protocol Test Framework (PTF) Build Protocol Test Framework (PTF) from source code
    .NET Framework 4.7.1 targeting pack Required Required
    Testing tools core features Required Required
    .NET Framework 4.7.1 SDK Required
    C# and Visual Basic Roslyn compilers Required
  • Spec Explorer 2010 v3.5.3146.0. It is required if you want to build Protocol Test Framework (PTF) from source code.
  • Wix Toolset v3.11 and Wix Toolset Visual Studio 2017 Extension. It is required if you want to build Protocol Test Framework (PTF) from source code.

You can use the script in InstallPrerequisites folder to automatically download and install these software. Tips when using the script in InstallPrerequisites folder:

  • To run the script, open Windows PowerShell, and execute the commands below in the PowerShell Window:
cd ProtocolTestFramework\InstallPrerequisites
.\InstallPrerequisitesForPTF.ps1
  • If you meet errors about Execution Policy, make sure you run Windows PowerShell as Administrator, and type the following and enter:
Set-ExecutionPolicy RemoteSigned

You could run the command below to verify if the Execution Policy is correctly set:

Get-ExecutionPolicy

Build

After you clone a copy of this repo, change to the ProtocolTestFramework directory:

cd ProtocolTestFramework

Change to src directory and run build.cmd:

cd src
build.cmd

After the build succeeds, ProtocolTestFrameworkInstaller.msi should be generated in the folder drop\ProtocolTestFramework\installer.

Samples

You can find samples of how to develop a protocol test suite using PTF here.

Documentation

  • User Guide describes the features of PTF, and how to use them to develop a new protocol test suite.

Contribute

You can find contributing guide here.

License

PTF is under the MIT license.

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.