Docs/How Cofactor works
#

How Cofactor works

The six things Cofactor is made of, application, sandbox, test, suite, run and issue, and how they fit together.

Map my Cofactor organization

Cofactor has six main things: application, sandbox, test, suite, run and issue.

Look at your organization

  1. Application. The product you test, usually one web app. Your code connects to an application.

    bash
    cofactor application list
    
  2. Sandbox. A live copy of your application with its own data, test logins and stand-ins for outside services. A sandbox is also called a test environment. You claim one, use it and throw it away. See Environments.

    bash
    cofactor sandbox envs --application "<name from step 1>"
    
  3. Test. One user journey written in plain language, like "sign in, open billing, change the plan." An agent plays that person in a real browser. A test is also called a flow. See End-to-end tests.

    bash
    cofactor workflow list
    
  4. Suite. A group of tests you run together, such as a smoke suite for every change. cofactor test-suite suites lists your suites, and cofactor test-suite executions lists their runs. See Suites and schedules.

    bash
    cofactor test-suite suites
    
  5. Run. One execution of a test or suite. It keeps every step, assertion and screenshot, so you can see what happened.

    bash
    cofactor workflow runs list <workflow id from step 3>
    
  6. Issue. A problem Cofactor found, with its severity and a link to the run that shows it. See Issues.

    bash
    cofactor issues list
    
A run page for a passed test. The steps are listed with their results on the left, and the recording of the run with its screenshot is on the right.

Check it worked

You can name one application, one sandbox, one test and its last run from your own organization. If application list is empty, start with the Quickstart.

Go deeper