microsoft / WindowsProtocolTestSuites

⭐⭐Join us at sambaXP 2024 (Apr 17 - Apr 18)
https://www.interopevents.com/en-us/sambaxp24
Other
517 stars 207 forks source link

3 ChangeNotify testcases failing against Windows 10 #139

Closed viralmutant closed 6 years ago

viralmutant commented 6 years ago

I am trying to execute ChangeNotify testcases. My test controller is Windows 2008 and SUT is Windows 10. 3 of the testcases are always failing:

Error message displayed is:

Test method Microsoft.Protocols.TestSuites.FileSharing.SMB2.TestSuite.SMB2Basic.BVT_SMB2Basic_ChangeNotify_ChangeFileName threw exception: 

System.TimeoutException: The operation has timed out

Where may I look for the issue ?

chenlu0616 commented 6 years ago

Hi, viralmutant

Firstly please check that the "Platform" configuration in CommonTestSuite.deployment.ptfconfig is set correctly. If "Windows 10" means server, it should be set to "WindowsServer2016", if you are using Win 10 client, considering the behavior may be different from server, you could try "NonWindows".

Besides, the exception looks like that the request sent by test suite is dropped by server, maybe TCP connection is terminated, under such situation test suite logs can tell nothing more. To make it clear you need to capture the network traffic and look into the details, you can use the Microsoft Message Analyzer(https://www.microsoft.com/en-sg/download/details.aspx?id=44226) to capture the traffic and analyze.

Thanks, Lu

viralmutant commented 6 years ago

Ah, ok. I didn't look for the ptfconfig. In my case, I am using 'Windows 10' as the SUT server against which I am running test Just a naive question, if I make change to this file or a testcase, do I have to rebuild the MSI and resintall ?

viralmutant commented 6 years ago

Reran the tests against Windows 2016 server and none failed. Closing the issue.

However, if you can answer my query about rebuilding the testsuite, that would be helpful.

chenlu0616 commented 6 years ago

Hi, viralmutant

If you make change to ptfconfig file, you don't need to rebuild the MSI and reinstall, just rerun the test cases; However if you change the test case code, you need to rebuild the MSI and reinstall unless you run the test case with source code :-)

Thanks, Lu

viralmutant commented 6 years ago

Ok. Sorry, for a naive question, but where may I find the config after building and installing the MSI ?

chenlu0616 commented 6 years ago

Hi, viralmutant

After installing MSI successfully, you can find the ptfconfig files at %SystemDrive%\MicrosoftProtocolTests\FileServer\Server-Endpoint\<version#>\Bin

This kind of information is mentioned in the user guide (https://github.com/Microsoft/WindowsProtocolTestSuites/blob/staging/TestSuites/FileServer/docs/FileServerUserGuide.md), which you can take a reference :-)

Thanks, Lu