Comments (9)
Hi
I tried to repro this on my environment but failed. Everything works fine to me.
Is that a typo, missing ":" between "C\" in this "/Settings:C\MsWinSMBProtocolTest20170111_091422042536\TestSuiteConfigs\ServerLocalTestRun.testrunconfig "?
And what's the version of PTF (Protocol Test Framework) you are using?
The HTML files should be generated together with .txt files.
You check the function TestResultHandler below:
https://github.com/Microsoft/ProtocolTestFramework/blob/master/src/htmltestlogger/HtmlTestLogger.cs
Thanks,
Yan
from windowsprotocoltestsuites.
thanks,
yes there is a typo while filing bug.
i am using PTF version 1.0
Downloaded from - https://github.com/Microsoft/ProtocolTestFramework/releases/download/1.0/ProtocolTestFrameworkInstaller.msi
But i could see the same issue.
from windowsprotocoltestsuites.
The thing is the Txt files are getting generated for the test cases but not Html. I am not sure what I am missing here
from windowsprotocoltestsuites.
Since I cannot repro it in my machine, could you help debug it in your environment?
-
Download code, zip is enough.
https://github.com/Microsoft/ProtocolTestFramework -
Unzip the file in your machine.
-
Open "ptf.sln" in src folder by Visual Studio.
-
Modify the output path to the path below of HtmlTestLogger project,
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions
-
Build the solution, then check if the new HtmlTestLogger.dll is generated in the above path:
-
Run your command to repro
-
When the command is running, attach the process vstest in Visual Studio.
Then you can debug to see what happened.
Thank you in advance!
Yan
from windowsprotocoltestsuites.
Hey thank you so much. that helped a lot.
I am able to track down the issue. The method File.WriteAllText() was failing. Please check the following screenshot.
I am not sure whether it is correct or not. but when it executes, the code expects the ptfconfig files must be in "Bin" directory. The code here forces me to put my *.ptfconfigs in ..\Bin\ directory.
what if someone have placed their customize config files in a different folder and updated ServerLocalTestRun.testrunconfig and command for the same.
To fix my issue i have created a bin directory to my homedir and placed all ptfconfig files to it and it worked.
I guess the code must handle the situation irrespective of test suite installation directory path, if the another path is provided.
Thank you very much for your help!
from windowsprotocoltestsuites.
for more info:
previously my command was:
cd "C:\MsWinSMBProtocolTest20170112_005936513583\TestSuiteConfigs\Logs" & "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" C:\MicrosoftProtocolTests\FileServer\Server-Endpoint\1.0.5000.0\Bin\MS-SMB2_ServerTestSuite.dll /TestCaseFilter:"TestCategory=Negotiate" /Settings:C:\MsWinSMBProtocolTest20170112_005936513583\TestSuiteConfigs\ServerLocalTestRun.testrunconfig /Logger:html
and ptfconfigs were at: C:\MsWinSMBProtocolTest20170112_005936513583\TestSuiteConfigs*.ptfconfig and *.testrunconfig
Then i have created a bin directory under C:\MsWinSMBProtocolTest20170112_005936513583\TestSuiteConfigs\Bin
and moved all *.ptfconfig, *.testrunconfig to the same.
New command
cd "C:\MsWinSMBProtocolTest20170112_005936513583\TestSuiteConfigs" & "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" C:\MicrosoftProtocolTests\FileServer\Server-Endpoint\1.0.5000.0\Bin\MS-SMB2_ServerTestSuite.dll /TestCaseFilter:"TestCategory=Negotiate" /Settings:C:\MsWinSMBProtocolTest20170112_005936513583\TestSuiteConfigs\Bin\ServerLocalTestRun.testrunconfig /Logger:html
from windowsprotocoltestsuites.
Well, now I can reproduce it in my machine too. :)
I agree with you, we should not expect the *.ptfconfig files are in "bin" folder.
Customized ptfconfig files are possible and we should support this scenario.
I'll file a bug and fix it later. Note, the fix will be delivered to PTF, not this repo.
Thank you very much for reporting and debugging this issue!
Yan
from windowsprotocoltestsuites.
The bug is fixed and changes are pushed to https://github.com/Microsoft/ProtocolTestFramework
@dinebhar , you can have a try when you have time.
from windowsprotocoltestsuites.
Close this issue since no update for a long time.
from windowsprotocoltestsuites.
Related Issues (20)
- WindowsProtocolTestSuites : STATUS_LOGON_FAILURE HOT 5
- Hp 430 notebook Laptop with Window 7 platinum 32-bit showing error. HOT 2
- Trojan:MSIL/AgentTesla.SMK!MTB Virus detected in FileServer-TestSuite-ServerEP.zip v4.21.9.0 HOT 3
- Test host process crashed : No usable version of libssl was found HOT 3
- play list support, or method to re-run single tests HOT 7
- Misleading assertion failure messages in QueryDirectoryTestCases.cs
- Algorithm_NotingFileModified_Dir_LastAccessTime could be improved HOT 2
- Want to run AlternateDataStream tests on OTHERFS HOT 3
- FileInfo_Query_FileInternalInformation could run on OTHERFS HOT 3
- FileInfo_Query_FileBasicInfo_File_IsIntegritySupported always fails if OTHERFS and named streams HOT 4
- MS-WSP: CPMConnectIn request appears to be corrupt HOT 2
- This repo is missing important files
- PTMCLi error in NegotiateTestCaseS1040. HOT 2
- Could test get FILE_OBJECTID_BUFFER functions HOT 1
- Could test SMB2 setinfo BASIC with time = -2 HOT 3
- Directory entry AllocationSize values are implementation-specific HOT 3
- Directory entry ShortName values are implementation-specific HOT 3
- SMBD support HOT 1
- Timestamp MinusTwo tests are in BVT but others are not HOT 2
- active directory MS-SRVS protocol support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windowsprotocoltestsuites.