Skip to content

Incorrect construction of html-reports #605

Closed

Description

Hello,
I have a problem, my reports don't show graphs with latency and load.
The problem was in calling the toLocaleString method without passing a parameter in the report itself:
var date = new Date(viewModel.FinalStats.TestInfo.Created); viewModel.FinalStats.TestInfo.Created = date.toLocaleString();
1

If you pass the value 'en-US', then everything works correctly, and the graphs are displayed again
var date = new Date(viewModel.FinalStats.TestInfo.Created); viewModel.FinalStats.TestInfo.Created = date.toLocaleString('en-US');
image

I have a different date format on my computer

Activity

  1. AntyaDev commented on Jul 17, 2023

    @AntyaDev
    Contributor

    Hi @Ilyichovskiy ,
    And thank you for informing me about this issue.
    I will try to fix it soon.

  2. AntyaDev commented on Jul 19, 2023

    @AntyaDev
    Contributor

    Hi @Ilyichovskiy ,
    Can you please try the latest beta version - 5.1.2-beta.0
    If it helps, then I will publish a patch

  3. AntyaDev commented on Jul 20, 2023

    @AntyaDev
    Contributor

    ping @Ilyichovskiy

  4. AntyaDev commented on Jul 20, 2023

    @AntyaDev
    Contributor

    @Ilyichovskiy did you try the latest beta with the fix?

  5. routaz commented on Mar 4, 2024

    @routaz

    I am using the 5.6.0-beta.0 package and have same problem with Date showing up as invalid and no charts displayed.

    Screenshot 2024-03-04 at 15 07 33
  6. AntyaDev commented on Mar 4, 2024

    @AntyaDev
    Contributor

    Hi @routaz ,
    Can you please attach your report?

  7. routaz commented on Mar 5, 2024

    @routaz
  8. routaz commented on Mar 11, 2024

    @routaz

    @AntyaDev Are those reports enough?

  9. AntyaDev commented on Mar 11, 2024

    @AntyaDev
    Contributor

    Hi @routaz ,
    Yes, looks enough.
    Thanks!

  10. AntyaDev commented on Mar 11, 2024

    @AntyaDev
    Contributor

    @routaz I need also HTML report.

  11. 14 remaining items

  12. AntyaDev commented on Mar 28, 2024

    @AntyaDev
    Contributor

    @routaz You can find this line of code in the HTML report. You have something with your locale settings that prevents you from parsing DateTime.

  13. AntyaDev commented on Mar 28, 2024

    @AntyaDev
    Contributor

    @routaz please check https://www.nuget.org/packages/NBomber/5.6.0-beta.7
    I have set Invariant Culture, maybe it will help.

  14. AntyaDev commented on Mar 30, 2024

    @AntyaDev
    Contributor

    @routaz any updates?

  15. routaz commented on Mar 30, 2024

    @routaz

    @AntyaDev Sorry, I am offline for few days now. But will get back to you as soon as possible regarding this :)

  16. AntyaDev commented on Mar 30, 2024

    @AntyaDev
    Contributor

    @routaz, we are about to release a new version, and I would like to make sure that our fixes work.
    Could you please tell me what locale you currently have on your PC? I would like to set your locale and verify it.
    Is it fi_FI ?

  17. routaz commented on Mar 30, 2024

    @routaz

    @AntyaDev Yes, I'm located in Finland and using macOS Sonoma 14.3.1 if that makes any difference. I get access to my PC on day after tomorrow most likely and will test it then!

  18. AntyaDev commented on Apr 1, 2024

    @AntyaDev
    Contributor

    Hi @routaz
    Will you be able to check today?
    Thank you so much for your attention and participation.

  19. routaz commented on Apr 2, 2024

    @routaz

    @AntyaDev Finally got online briefly!
    Still no luck with reports, here's the archived reports, included screenshot of the packages I am using as well.
    Can you confirm if it works on your end. I'll try to debug on the date value from report too.
    Archive.zip

    EDIT:
    Here's a screenshot of date value:
    Screenshot 2024-04-02 at 10 55 01

  20. AntyaDev commented on Apr 4, 2024

    @AntyaDev
    Contributor

    @routaz can you please install en-US locale on your laptop.
    it seems it fails to format datetime to en-US locale

  21. AntyaDev commented on Apr 4, 2024

    @AntyaDev
    Contributor

    @routaz I have changed the parsing library for date time in HTML report.
    Could you please try new version: 5.6.0-beta.9

  22. routaz commented on Apr 4, 2024

    @routaz

    Hi @AntyaDev
    Just tried with en_US locale and latest package. Still no graphs. I really start to think this is something on my end and with laptop settings. I'll add zip with test reports, screenshots of my settings and let me know if you need debug-logs from Rider.
    And if you want to contact me directly via email, you can write to me to routaz@gmail.com
    Archive.zip

  23. AntyaDev commented on Apr 4, 2024

    @AntyaDev
    Contributor

    @routaz, Can you please debug this function? What does it return?

    image

  24. AntyaDev commented on Jul 29, 2024

    @AntyaDev
    Contributor

    fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions