Creating Transaction Monitors in Firefox

Transaction monitors simulate a user’s path through a website, such as buying something, logging in or searching a website. You create transactions by recording actions in Firefox or Chrome using AlertSite’s script recorder, DéjàClick. DéjàClick is a free browser extension that automatically records and plays back user action, with no programming needed.

In this tutorial, we will use the Firefox browser to create a transaction monitor for Amazon.com. The monitor will search Amazon for Star Wars, and verify that the search results contain the film Star Wars: A New Hope.

In This Tutorial

1. Install DéjàClick for Firefox

First, check if you have the DéjàClick toolbar in Firefox.

DejaClick toolbar in Firefox

If you do not see this toolbar, install DéjàClick from the Firefox Add-ons website:

If your website uses Flash, also install DéjàClick’s TrueScreen module:

2. Record a Transaction

  1. To start recording, click Record Record on the DéjàClick toolbar:

    Record button on the DejaClick toolbar in Firefox

  2. If you see a message about simulating a new visitor, click Enable:

    The Simulate New Visitor option is currently disabled. Enabling this option is recommended if you are recording a DejaClick Business Transaction for use with AlertSite's global monitoring platform.

  3. Open the starting page of the transaction and do what a typical user would do – click the links, fill in forms, and so on.

    In this tutorial, we will search for Star Wars on Amazon:

    Searching 'Star Wars' on Amazon

3. Create a Keyword Validation

To make sure your web pages contain correct content, you can add keyword validations to your transaction. For example, if you log into an application as TestUser, you expect Hello TestUser appear on the page, and if it is not there, the application is not working properly.

Let’s create a keyword validation:

  1. Click Validate on the DéjàClick toolbar:

    Validation button on the DejaClick toolbar

    DéjàClick switches into the keyword selection mode. As you move the mouse pointer over the page, DéjàClick automatically suggests the text under the pointer as a keyword.

    Keyword selection mode

  2. Click the text "Star Wars: A New Hope" to create a keyword validation for it.
  3. In the dialog that appears, review the keyword and click OK.

    Add Keyword Validation dialog

  4. You can repeat steps 2-3 to add validations for other phrases on the page.
  5. To exit the keyword selection mode, click Close Validation on the DéjàClick toolbar again.

The transaction is now configured to raise an error if the text does not appear on the page.

4. Finish Recording

Click StopStop recording on the DéjàClick toolbar. You will see a message with the number of recorded events.

For now, the transaction is temporarily stored on your computer. We need to upload it to AlertSite so that the transaction will run from the global monitoring locations. We will do this later in this tutorial.

5. View the Recorded Transaction

All recorded user actions appear in the DéjàClick sidebar on the left side of the Firefox window. If you do not see the sidebar, click the Open Sidebar Open Sidebar button on the DéjàClick toolbar.

On the Properties tab, you can review the event properties and playback parameters.

DejaClick sidebar

6. Replay Transaction on the Desktop

Before uploading the recorded transaction to AlertSite, you need to replay it locally to make sure it works correctly.

  1. (Optional.) If you want to measure page rendering time during monitoring, click Configure Options on the DéjàClick toolbar, and select Quick Settings > Replay for User Experience.

    Replay for User Experience option

    Note: With this option the replay may take longer because DéjàClick measures render times after loading web pages.

  2. Click Replay.
  3. If you see a message about screen size adjustment, click Yes.

    DéjàClick will now repeat the recorded actions in the browser.

  4. If you see a message about page content timeout, click Skip to Next Event, and DéjàClick will automatically adjust the timeout.

    Page Content Change Timeout

  5. When the replay is complete, the results appear in the Results tab on the DéjàClick sidebar:

    Script Result

If there was an error, try re-recording the transaction, or try adjusting playback parameters on the Properties tab. For troubleshooting tips, see DéjàClick Troubleshooting Guide.

7. Upload Transaction to AlertSite

After the replay completes successfully, you can upload the transaction to AlertSite.

  1. On the DéjàClick toolbar, click the Remote Services button, and select AlertSite Login.

    AlertSite Login

  2. Enter your AlertSite login and password, and click OK.
  3. Click again, and select Upload Recording.
  4. In the Upload Recording dialog that appears, specify the Transaction Name and other parameters:

    Upload Recording dialog

  5. You will be redirected to AlertSite’s Monitor Summary dashboard.
  6. To review or change other monitoring settings, click Edit Monitor and proceed from there. For a description of available settings, see Real-Browser Monitor (DéjàClick) Settings.

    Edit DejaClick Monitor

  7. The monitor will start collecting data shortly. You can see the run results on AlertSite’s dashboards.

    Monitor results in AlertSite

What's Next

© 2017 SmartBear Software. All rights reserved.      Terms of Use · Privacy Policy