Getting Started With Record and Replay

Applies to CrossBrowserTesting SaaS, last modified on November 26, 2020

Why use Record & Replay?

  • Record & Replay is designed to make automated testing seamless and easy.

    With no programming knowledge required, you can create an automated script with just a few clicks.

  • No need to hassle with complex languages and frameworks to build an automated script.

    The Record & Replay tool helps any user transition from a Manual Live Tester into a powerful Automated user. We have constructed this tool to work solely through a simple Interface. No need to hack around a text editor, with cumbersome frameworks, to get your scripts up and running in no time.

Video tutorial

 

To start a new recording, navigate to Record & Replay > Record a Script on the left-side panel.

Record and replay

Step 1. Start recording

  1. Enter the URL of the page to be tested.

  2. Select a display resolution size.

  3. Click Record Script. This will launch the recorder, navigate to your URL, and you can start recording steps. These steps will be recorded and saved as an automated script.

    Recording an automated script

    Click the image to enlarge it.

Step 2. Record browser actions

Once the specified website is loaded, interact with it with the mouse and keyboard and the Record & Replay recorder at the top of the page.

Record & Replay recorder

Click the image to enlarge it.

Every browser action you take will add a recorded step in your script, that is, scrolling, clicking, typing, and so on. For best results, make intentional browser actions. The tool will record everything and show your actions in the Script Steps list.

Script steps

Click the image to enlarge it.

Your latest browser action is displayed at the top. To view all the recorded steps, click the most recent one and scroll through the history.

Click to delete any unwanted steps that are not needed or where there were mistakes during the recording.

For more details about the Record & Replay recorder, see Recorder UI Overview.

Step 3. Save the recorded script and replay it

  1. Click Stop in the Record & Replay recorder.

  2. Give the script a name and short description and click Save Script.

    Saving the recorded script

    Click the image to enlarge it.

  3. Click Replay Script.

    Replaying a script

    Click the image to enlarge it.

  4. Select an OS, browser, and resolution to be used to replay the script and click Replay Script again. This will replay the recorded script in real time. You can then watch it back anytime as a recorded video.

    Replaying a script

    Click the image to enlarge it.

  5. Analyze the test run results.

    Test score

    Click the image to enlarge it.

  6. (Optional) Click Share to share the results via a public URL, email, Slack, or Jira. For details, see Collaborating Integrations.

Step 4. Create and run a suite

You can create a suite of recorded scripts and run them in parallel. You can add up to 10 scripts to a suite.

Suites are only allowed on plans with automation capabilities.

To create a suite:

  1. Navigate to Record & Replay > Replay a suite on the left-side panel.

    Creating a suite
  2. Click + New Suite.

    Creating a suite

    Click the image to enlarge it.

  3. Give your suite a name and description, explaining what the suite is testing. Click Create.

    Creating a suite

    Click the image to enlarge it.

  4. Click + Add Scripts, and then select up to 10 scripts to be run in the suite and click + Add Scripts.

    Adding scripts to a suite

    Click the image to enlarge it.

  5. Set up browser configurations and click + Add Config.

    Adding browsers to the suite browser list

    Click the image to enlarge it.

  6. (Optional) ClickAdd Schedule to schedule a suite to run on a recurring basis. You can have up to 5 schedules per suite.

    Adding a suite schedule

    Click the image to enlarge it.

  7. Set up the schedule:

    • Set how often and when the suite will run.

    • Set notifications via Slack or email or disable them.

    Setting up a schedule

    Click the image to enlarge it.

     
  8. Click Run Suite at the top of the page.

    Running a suite

    Click the image to enlarge it.

Record & Replay glossary

Script

The result of the recorded steps that the user takes.

Script Steps

Each action that the user takes when recording a script. Also known as Script Commands.

Replay

Running a script or suite to play it back, capturing a recorded video and test score.

Playback

A preview of a test available from within the recorder v2 interface. Does not capture test results.

Suite

The grouping of scripts and browsers designed to run in parallel.

Parallel

Running multiple tests at once. This allows you to get your test results back much faster.

Browser List

A set of browsers and OSs (operating systems) that run as a group. For example, Chrome 54/Windows 10.

Regression Testing

A testing type that ensures that a previously developed test still performs the same way after it is changed or interfaced with other software. Testing over time in regression.

Test Score

The end result of the test run, that is, Pass / Fail.

What is the difference between playback and replay?

When using the new interface, you may see references for test playback. Playback uses the same lightweight setup that we use for recording and is useful for previewing your steps after recording or editing a test without leaving the recorder interface. They differ from replays in a few ways:

  • The script generation engine is slightly different but should produce near-exact results.

  • No ability to choose the operating system or browser.

  • Results from playbacks are not stored.

The option to replay a test is available after saving the script. It allows you to choose an OS, browser, and resolution to run a test against using CrossBrowserTesting's Selenium Grid. Once the test has completed, you can view test results such as video recording, snapshots, and expected values.

See Also

Recorder UI Overview
FAQ

Highlight search results