Docs/Recorder extension
#

Recorder extension

Record a flow in Chrome with the Cofactor Recorder extension and turn it into an E2E test. Sign in, grant access to your application's site, record as one of your logins, name the test, and regenerate it from the same recording.

Record a flow and turn it into a test

The Cofactor Recorder is a Chrome extension. You click through a flow in your application, and Cofactor turns what you did into an E2E test. Use it when showing the flow is quicker than describing it.

Record a flow

  1. Install the extension. Add Cofactor Recorder to Chrome from the Chrome Web Store.

  2. Sign in. Click the extension's icon in the toolbar, then Sign in. A Cofactor tab opens. Approve the sign-in there. The popup then shows Signed in.

  3. Allow your site. The extension records only on sites you allow. In its popup, find your application under Sites and click Grant access, then accept Chrome's prompt. The list shows each application with its default environment URL. An application with no default environment URL cannot be granted until you add one.

  4. Open your application. Go to a page of the site you granted. A Record · <application name> pill appears in the page. Drag it by its handle to move it, or minimize it.

  5. Pick a login. Click the pill. Under Record as…, choose one of the application's credentials, then click Start recording. If the flow starts at the sign-in page, sign in as that user and carry on. If the application has no credentials, add one first. See Credentials and login.

  6. Do the flow. Click through the journey. The pill shows the time and the number of events captured. A recording survives page loads, and the pill returns on the next page of the same site. To throw it away, click Discard.

  7. Stop and name it. Click Stop. In Create workflow, give the test a title. Under What were you testing?, write a sentence about what the flow checks. Click Create workflow.

  8. Open the test. A card in the page confirms the upload and links to Open editor. Cofactor builds the test in the background. Click the extension's icon at any time to see its status under Recent activity, which covers the last 24 hours. The statuses are Pending, Generating, Running, Ready, Passed or Attention.

Regenerate a test from its recording

If the first draft is off, run the builder again on the same recording.

  1. Open the test in the Flow Designer and click the settings gear.
  2. In Details, find Source, which reads Recording from Chrome extension.
  3. Click Regenerate. Add guidance if you want, for example what the first draft skipped, then confirm.

Regenerating replaces the test's steps and its cache. Edits you made to the steps are lost.

Check it worked

  1. Recent activity in the extension lists your recording as Ready or Passed.
  2. The test opens in the Flow Designer with steps for what you did.
  3. Run the test. It passes against the environment you recorded on.

Go deeper