Git Product home page Git Product logo

protocoltestframework's Introduction

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 .NET Core and support cross-platform. It runs on Windows, macOS and multiple distributions of Linux. You should install the software listed below based on your testing purpose, including their own dependencies.

  1. .NET Core SDK

Build

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

cd ProtocolTestFramework

Change to src directory and build PTF:

cd src
dotnet build --configuration Release

Note:

For more information about how to use dotnet build please refer to :dotnet build

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 [email protected] with any additional questions or comments.

protocoltestframework's People

Contributors

aya80904 avatar bhartid avatar caoyihua avatar dingshouqing avatar dongruiqing avatar hsuanyatsai avatar jessief avatar jiajunw avatar jozefizso avatar microsoft-github-policy-service[bot] avatar ms-hujia avatar msftgits avatar obaro avatar rayyuepro avatar yazeng avatar yinuosh avatar ziyezizy7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

protocoltestframework's Issues

InstallPrerequisites.ps1 not working

I am trying to install PTF on a windows-server-2012r2-x86_64 instance with Ansible. The command is:

.\\InstallPrerequisites.ps1 -ConfigPath .\\PrerequisitesConfig.xml

It failed with output like this:

/ TASK [win_shell                                             \
| chdir=C:\ProtocolTestFramework\ProtocolTestFramework-stagin |
| g\InstallPrerequisites,                                     |
| _raw_params=.\InstallPrerequisites.ps1 -ConfigPath          |
\ .\PrerequisitesConfig.xml]                                  /
 -------------------------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

task path: /home/joeg/autobuild/roles/windows-common/tests/try.yml:19
Friday 21 September 2018  22:14:03 +1200 (0:00:04.019)       0:00:19.193 ******
Using module file /home/joeg/.pyenv/versions/3.6.6/envs/ansible/lib/python3.6/site-packages/ansible/modules/windows/win_shell.ps1
.......
changed: [*******] => {
    "changed": true,
    "cmd": ".\\InstallPrerequisites.ps1 -ConfigPath .\\PrerequisitesConfig.xml",
    "delta": "0:00:15.125019",
    "end": "2018-09-21 10:14:22.193134",
    "rc": 0,
    "start": "2018-09-21 10:14:07.068114"
}

STDOUT:

Reading Prerequisites Configure file...
Get information of all the Prerequisite tools from Configure file
Get the tools to be downloaded from the specified category
Create temporary folder for downloading files `
Temporary folder C:\ProtocolTestFramework\ProtocolTestFramework-staging\InstallPrerequisites\aadf0aef-7544-4dc3-bd14-ac540df999ba is created
Application: Visual Studio Community 2017 is not installed
Downloading file VS2017Community. Please wait...
Downloading VS2017Community completed. Path:C:\ProtocolTestFramework\ProtocolTestFramework-staging\InstallPrerequisites\aadf0aef-7544-4dc3-bd14-ac540df999ba\vs_community.exe
Installing VS2017Community. Please wait...

C:\ProtocolTestFramework\ProtocolTestFramework-staging\InstallPrerequisites>C:\ProtocolTestFramework\ProtocolTestFramework-staging\InstallPrerequisites\aadf0aef-7544-4dc3-bd14-ac540df999ba\vs_community.exe --update --quiet
Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1028\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\2052\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1055\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1046\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1042\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1029\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1036\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\3082\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1040\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1031\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1045\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1033\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1041\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\HelpFile\1049\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\vs_setup_bootstrapper.exe...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.Diagnostics.Tracing.EventSource.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.RemoteControl.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Common.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Configuration.Interop.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Download.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Engine.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.Telemetry.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Microsoft.VisualStudio.Utilities.Internal.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\Newtonsoft.Json.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\es\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\zh-Hans\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\zh-Hant\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\pt-BR\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\tr\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\cs\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\pl\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\de\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\fr\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\it\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\ko\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\ja\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\ru\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\vs_setup_bootstrapper.config...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\vs_setup_bootstrapper.exe.config...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\detection.json...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\500f682bb90aa13505\vs_bootstrapper_d15\vs_setup_bootstrapper.json...


C:\ProtocolTestFramework\ProtocolTestFramework-staging\InstallPrerequisites>C:\ProtocolTestFramework\ProtocolTestFramework-staging\InstallPrerequisites\aadf0aef-7544-4dc3-bd14-ac540df999ba\vs_community.exe --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community" --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.Net.Component.4.7.1.TargetingPack --add Microsoft.Net.ComponentGroup.4.7.1.DeveloperTools --add Microsoft.VisualStudio.Component.Windows10SDK.16299.Desktop --add Microsoft.VisualStudio.Component.TestTools.Core --add Microsoft.Component.MSBuild --passive --norestart --quiet
Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1028\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\2052\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1055\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1046\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1042\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1029\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1036\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\3082\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1040\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1031\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1045\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1033\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1041\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\HelpFile\1049\help.html...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\vs_setup_bootstrapper.exe...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.Diagnostics.Tracing.EventSource.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.RemoteControl.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Common.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Configuration.Interop.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Download.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Engine.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.Telemetry.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Microsoft.VisualStudio.Utilities.Internal.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\Newtonsoft.Json.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\es\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\zh-Hans\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\zh-Hant\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\pt-BR\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\tr\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\cs\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\pl\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\de\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\fr\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\it\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\ko\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\ja\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\ru\vs_setup_bootstrapper.resources.dll...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\vs_setup_bootstrapper.config...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\vs_setup_bootstrapper.exe.config...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\detection.json...

Preparing: C:\Users\ADMINI~1\AppData\Local\Temp\9172ed6957e594f97539\vs_bootstrapper_d15\vs_setup_bootstrapper.json...

WiX Toolset v3.11 or later version is already installed
Application: Spec Explorer 2010 is not installed
Downloading file SE. Please wait...
Downloading SE completed. Path:C:\ProtocolTestFramework\ProtocolTestFramework-staging\InstallPrerequisites\aadf0aef-7544-4dc3-bd14-ac540df999ba\SpecExplorer.msi
Installing SE. Please wait...
ERROR 1620
Remove temporary folder
Prerequisite tools are all installed.

META: ran handlers
META: ran handlers
 ____________
< PLAY RECAP >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

********             : ok=5    changed=3    unreachable=0    failed=0

For WiX Toolset, I already installed it in advance, so ignore that.
For Visual Studio 2017, it doesn't report any error. But I checked, it's actually not installed.
For Spec Explorer, it failed with an error ERROR 1620 and not installed.

The script still exit 0 successfully with a message Prerequisite tools are all installed.

The value of NTFS_ShareFolder is empty

I am running the BVT tests against my private SMB 3 server implementation. I see multiple failures with "xxxx is incocnlusive. The value of NTFS_SHareFolder" is empty...."

If I carefully read the user guide, the 6 shares I need to create on the SUT are named FileShare, SMBBasic, SameWithSMBBasic, DifferentFromSMBBasic, ShareForceLevel2, SMBEncrypted.

Which one of these is "NTFS_SHareFolder"?

Am I expected to create files in "NTFS_SHareFolder"?

Please clarify what is failing when I see the message "NTFS_SHareFoler is empty"

Thank you

Build fails on Windows 10 Home ESX 5.5 VM

After installing prerequisites and rebooting the host, the following error message is produced while running "build.cmd formodel":

C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(772,5): error MSB4062: The "ResolveWixReferences" task could not be loaded from the assembly C:\Program Files (x86)\WiX Toolset v3.10\bin\WixTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft
.Build.Framework.ITask. [C:\Users\test\protocoltestframework\src\deploy\Installer\ProtocolTestFrameworkInstaller.wixproj]
Done Building Project "C:\Users\test\protocoltestframework\src\deploy\Installer\ProtocolTestFrameworkInstaller.wixproj"
(Clean;Rebuild target(s)) -- FAILED.

The same error is produced without the "formodel" argument.

Please let me know if you need any other information.
Attached a log of the failed build.

buildFail.txt

backward slash for relative paths in htmltestlogger resource files not working while accessing over network.

Hello,

Following are the three locations where the backward slashes are used.
1.
https://github.com/Microsoft/ProtocolTestFramework/blob/master/src/htmltestlogger/Resources/functions.js#L79

function ClickChange(caseDiv, casename)
{
    // Change src dynamically
    document.getElementById("testcase").src = 'Html\\' + casename + '.html';
    document.getElementById('back_to_summary').style.display = '';        
   ...

https://github.com/Microsoft/ProtocolTestFramework/blob/master/src/htmltestlogger/Resources/index.html#L137
<script type="text/javascript" src="js\functions.js"></script>

https://github.com/Microsoft/ProtocolTestFramework/blob/master/src/htmltestlogger/Resources/testcase.html#L74
<script type="text/javascript" src="..\js\functions.js"></script>

I could see the index page empty with the following error in the Firebug network analyzer.
screenshot

I have tried replacing backward slash with forward slash and it worked
like: <script type="text/javascript" src="./js/functions.js"></script>

Make XtfGetErrorText public

Microsoft.Internal.GamesTest.Xbox.NativeMethods.XtfGetErrorText is a very useful function to get more information about the errors you get using this framework. Could it be made public instead of internal? Otherwise we have to call the native dll ourselves.

A typo in PrerequisitesConfig.xml

On this line:

https://github.com/Microsoft/ProtocolTestFramework/blob/2b36faaa2e324cf9556d7db5369e5fa3640cf38a/InstallPrerequisites/PrerequisitesConfig.xml#L3

At the end:

 arguments="/q /">

should be:

 arguments="/q"/>

This typo make the xml invalid and InstallPrerequsites.ps1 failed with following error:

Cannot convert value "System.Object[]" to type "System.Xml.XmlDocument". 
Error: "The 'tool' start tag on line 3 position 4 does not match the end tag 
of 'tools'. Line 6, position 4."
At C:\ProtocolTestFramework\ProtocolTestFramework-master\InstallPrerequisites\I
nstallPrerequisites.ps1:114 char:5
+     [xml]$toolXML = Get-Content -Path $DpConfigPath 
#".\PrerequisitesConfig.xml"
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvalidCastToXmlDocument

BVT_Leasing_FileLeasingV2 occasionally fails

I see this occasionally when running the WPTS, category BVT, SMB2 tests.
This appears to be a test bug in BVT_Leasing_FileLeasingV2.
This test usually passes, and always passes for me if I run that test alone.

When run along with all the BVT SMB2 tests, the test client occasionally
returns an incorrect response to the server's lease break notification,
where the lease break had state going from 3 to 0, and the
lease break acknowledgment had state 3 (should be zero).

Details of those two packets:

No.     Time           Source                Destination           Protocol Length Info
   7298 30.300534      192.168.202.132       192.168.202.1         SMB2     178    Lease Break Notification

Frame 7298: 178 bytes on wire (1424 bits), 178 bytes captured (1424 bits) on interface bridge100, id 0
Ethernet II, Src: 00:0c:29:5a:4b:25, Dst: 16:7d:da:14:e7:64
Internet Protocol Version 4, Src: 192.168.202.132, Dst: 192.168.202.1
Transmission Control Protocol, Src Port: 445, Dst Port: 62589, Seq: 1321, Ack: 1450, Len: 112
NetBIOS Session Service
SMB2 (Server Message Block Protocol version 2)
    SMB2 Header
    Lease Break Notification (0x12)
        StructureSize: 0x002c
        Lease Epoch: 0x0003
        Lease Flags: 0x00000001, Break Ack Required
        Lease Key: 5ae7ccf5-715d-489b-ad25-55bb1cf0fadb
        Current Lease State: 0x00000003, Read Caching, Handle Caching
        New Lease State: 0x00000000
        Lease Break Reason: 0x00000000
        Access Mask Hint: 0x00000000
        Share Mask Hint: 0x00000000

No.     Time           Source                Destination           Protocol Length Info
   7300 30.303692      192.168.202.1         192.168.202.132       SMB2     170    Lease Break Acknowledgment

Frame 7300: 170 bytes on wire (1360 bits), 170 bytes captured (1360 bits) on interface bridge100, id 0
Ethernet II, Src: 16:7d:da:14:e7:64, Dst: 00:0c:29:5a:4b:25
Internet Protocol Version 4, Src: 192.168.202.1, Dst: 192.168.202.132
Transmission Control Protocol, Src Port: 62589, Dst Port: 445, Seq: 1450, Ack: 1433, Len: 104
NetBIOS Session Service
SMB2 (Server Message Block Protocol version 2)
    SMB2 Header
    Lease Break Acknowledgment (0x12)
        StructureSize: 0x0024
        Reserved: 0000
        Lease Flags: 0x00000000
        Lease Key: 5ae7ccf5-715d-489b-ad25-55bb1cf0fadb
        Lease State: 0x00000003, Read Caching, Handle Caching.            <<< Wrong!
        Lease Duration: 0x0000000000000000

wpts-leasing-v2b.pcapng.gz

FileInfo_Query_FileIdInformation fails on OTHERFS

The test function FileInfo_Query_FileIdInformation
tries to use FSCTL_READ_FILE_USN_DATA on OTHERFS,
which is generally not going to work.
I've modified this function to only try that on
NTFS or REFS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.