Replayer is a tool that can play back real user traffic. It replays Tableau Server single- or multi-user sessions. Replayer reconstructs the URL access and interactions on the viz using Tableau Server logs.
You can use Replayer to do user acceptance and performance testing. You can use it to reproduce and troubleshoot customer issues, perform regression testing, and measure and verify performance by replaying and simulating real-world, multi-user load conditions.
TC18 presentation link https://www.youtube.com/watch?v=sbb2xMtNYNk.
How does Replayer work?
Replayer uses Logshark to extract browser session and interaction information from Tableau Server log files. Replayer takes this information and builds a JSON file that can be used to play back sessions. The Replayer file contains the URLs that users accessed during the session, along with the commands users entered and the time the actions took place. Using the Replayer file, single or multiple sessions can be played back.
In Tableau, when users load a viz, select marks, apply filters, or interact with Tableau in other ways, the commands and actions get recorded in the log files. To collect the logs, you can use tabadmin or tsm commands to create an archive of the Tableau Server log files (for example, Logs.zip).
Starting with the Tableau Server archive, you run Logshark with a special plugin for Replayer, which extracts browser session information from the Apache logs and correlates that data with vizqlserver logs and generates a JSON file. This JSON file contains the browser interaction information, with all the viz links and commands from the Tableau Server sessions.
Using the JSON file as input, Replayer can walk through the browser session, opening the URL and running Tableau commands on the viz.
Sessions can be played back in a browser or without a browser. With a browser, the Replayer uses the Selenium libraries to load the viz and playback commands. Verification is done at each step of the way, and exceptions that are thrown are captured in logs.
Without a browser, you can play back multiple sessions simultaneously, so you can simulate load conditions that can help you test your Tableau Server configuration.
Replayer key features
Using Replayer, you can:
- Playback specific Tableau Server sessions, and filter the session based upon start time or RequestID.
- Use it to simulate load conditions so that you can test how to scale and balance your Tableau Server installations.
- Perform regression testing by running and comparing end-to-end user scenarios for Tableau Server upgrades.
- Capture and report HTTP exceptions that occur in a single-user session.
- Replay a customer defect, so that you can verify that it is fixed.
- Replaying single-user sessions in a browser (on Chrome & IE).
- Replaying multiple-user sessions without a browser.
- Control of the playback speed (can scale to the time recorded in the session).
- Altering traffic in Replayer file, such as multiplying the load, consolidating traffic to run at specified rate.
- Verification of each action, but reading the HTTP response code, presmodel or UI objects.
Replayer supports viz rendering scenarios only*:
- Replay viz viewing and authoring scenarios along with interactions.
- Replay specific slices of the logs based on:
- Altering traffic by multiplying load for performance and capacity planning.
*It does not replay other tasks like publishing, creating a viz, background tasks, etc.
Viewing the results of a Replayer test run
When you run Replayer, it writes information about each session it executes. The results can be consumed using many methods:
- For user acceptance testing to understand page load and interaction issues in A-B comparison, use the Replayer-Results viz.
- Use the Logshark viz generated from the Tableau Server log files, after a Replayer run to analyze results.
More details on looking at Replayer results can be found hereViewing results from Replayer test run .
Replayer is subject to the MIT license set forth below. Portions of Replayer may be licensed under additional or different open source licenses, as set forth in the Replayer dependency list. To the extent required by the license that accompanies the open source software, the terms of such license will apply in lieu of the terms of the MIT license with respect to such open source software, including, without limitation, any provisions governing access to source code, modification or reverse engineering.
Copyright © 2017 Tableau Software, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "Community Supported", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.