PragmaticFlow / NBomber

Modern and flexible load testing framework for Pull and Push scenarios, designed to test any system regardless a protocol (HTTP/WebSockets/AMQP etc) or a semantic model (Pull/Push).
https://nbomber.com
Other
2.07k stars 131 forks source link

Report file name contains invalid chars #490

Closed KamilDuljas closed 1 year ago

KamilDuljas commented 1 year ago

Hi, when i try set "WithReportFilename" as WithReportFileName("PerformanceTest" + DateTime.Now.ToString()) then throw exception:

image

Moreover "WithReportFolder as the same name works fine: WithReportFolder("PerformanceTest" + DateTime.Now.ToString())

KamilDuljas commented 1 year ago

hmmm after test I see that dirname syntax is also incorrect:

10:51:48 [ERR] Report.save failed System.IO.IOException: The filename, directory name, or volume label syntax is incorrect. : 'C:\sources\repos\NBomberSample\NBomberSample\bin\Debug\ExSPerformanceTest_10\10\2022 10:50:42 AM' at void System.IO.FileSystem.CreateDirectory(string fullPath, byte[] securityDescriptor) at DirectoryInfo System.IO.Directory.CreateDirectory(string path) at ReportFile[[]] NBomber.DomainServices.Reports.Report.saveToFolder(ILogger logger, string folder, string fileName, FSharpList reportFormats, ReportsContent report)

AntyaDev commented 1 year ago

Hi @KamilDuljas

I think it's because your file name contains invalid characters. Try to filter them out.

It seems to me like it's not an NBomber bug. I will close this issue.