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

Switching data logging off/on doesn't work reliably in real-browser tests #348

Open
jowerner opened this issue Mar 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jowerner
Copy link
Contributor

jowerner commented Mar 7, 2023

If a part of a test scenario is not relevant for performance analysis, you can switch the logging of measurement data off and later on again by calling Session.getCurrent().getDataManager().setLoggingEnabled(boolean) in your test case.

When testing with real browsers, this might not show the intended effect. The reason is that measurements are not sent immediately from the browser to XLT, but delayed only, at the next before-unload event. This way, important data may arrive inside the blackout window and won't be logged, while actually unwanted data arrives outside the blackout window and will therefore be logged happily.

Workaround: Trigger a before-unload event by opening URL "about:blank" in the browser and wait some time for the data to arrive before disabling/enabling data logging.

@jowerner jowerner added the bug Something isn't working label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant