Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: ability to save and rehydrate dashboard for later interactive use #29

Closed
cwilso03 opened this issue Jun 3, 2023 · 9 comments

Comments

@cwilso03
Copy link

cwilso03 commented Jun 3, 2023

Having a PDF report is great. But it would be even better to be able to save the dashboard into some file, then later be able to rehydrate it for continued interaction in the browser. I see it's built in React under the hood. Any chance it could be made reloadable without requiring the test to be repeated?

@szkiba
Copy link
Collaborator

szkiba commented Jun 3, 2023

Maybe the replay feature what you are looking for. I just released it 2 days ago. Is it suitable for your use case?
You can save results to json and later replay it with 'k6 dashboard replay file' command.
It is not exactly same as the online version, because of json output has a hard coded 200ms aggregating period... but usually it doesn't make visible difference

@cwilso03
Copy link
Author

From the documentation on the feature, yes, it sounds like that would work. Unfortunately, the replay command just hangs when I run it. The dashboard tab in the browser never appears. Admittedly, I'm trying to load a JSON data file that is ~1 million lines long (same data file I submitted in issue #28).

@cwilso03
Copy link
Author

Troubleshooting further, I get the following output from k6.exe -v dashboard replay --help:

ERRO[0000] unknown command "dashboard" for "k6.exe"

This is when running the 0.4.3 version downloaded from the Releases section.

Should I be using a different syntax for replay?

@szkiba
Copy link
Collaborator

szkiba commented Jun 26, 2023

Sorry for the delay. I'm asking for a little more patience, I'm on vacation, and then I'll start a new job. I can probably deal with the problem in mid-August.

@cwilso03
Copy link
Author

No problem at all. Thanks again for the great plugin!

@szkiba
Copy link
Collaborator

szkiba commented Aug 18, 2023

From the documentation on the feature, yes, it sounds like that would work. Unfortunately, the replay command just hangs when I run it. The dashboard tab in the browser never appears. Admittedly, I'm trying to load a JSON data file that is ~1 million lines long (same data file I submitted in issue #28).

Hi @cwilso03 , which OS/platform are you use? Big JSON should not be the problem, I managed to display your file ftrom #28 .
There is a possible related issue #31 (Ubuntu 20.04)

Troubleshooting further, I get the following output from k6.exe -v dashboard replay --help:

Oh, ye, the dashboard subcommand is a little hack, and works only if it is the first argument (just omit -v)

I guess you are using Windows...

May I ask you to check again with the latest xk6-dashboard version?
(v0.5.2)

@cwilso03
Copy link
Author

cwilso03 commented Aug 18, 2023

Hi @cwilso03 , which OS/platform are you use? Big JSON should not be the problem, I managed to display your file ftrom #28 . There is a possible related issue #31 (Ubuntu 20.04)

I'm on Windows 11.

May I ask you to check again with the latest xk6-dashboard version? (v0.5.2)

It will likely be next week before I can check again, but yes, I'm happy to do so.

@szkiba
Copy link
Collaborator

szkiba commented Aug 21, 2023

I'm on Windows 11.

I'm on Linux but I have a win 10, checked and works with your prev data file (attached to #28).

It will likely be next week before I can check again, but yes, I'm happy to do so.

Thank you

@cwilso03
Copy link
Author

Hi @szkiba, I can confirm the data files load correctly on replay. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants