# The CrushTest window

CrushTest's UI is one page, the same in its own window and in a browser. `CrushTest.exe` and `CrushTest.app` open it in a window of their own; on Linux (or when no window can be shown) `crushtest.sh` prints an address with a one-time key, `http://127.0.0.1:PORT/?t=…`, to open in a browser on the same machine. The UI answers only on 127.0.0.1 and only to that link, unless you start the controller for other machines ([Install](Install.md#the-controller-for-other-machines)).

![A run's results](Results/run.png)

## The pages

The menu on the left has the pages, with CrushTest's version under its name and its folder at the bottom.

| Page | What it is for |
|---|---|
| [Run](Running.md) | start a run (the server, the profile, a second server to compare with, rounds, load machines, a time window), its preflight, and the run live: charts, the server's CPU, the load machines, the log |
| [Results](Results.md) | every run that was made; open one for its details and reports, or tick runs as A and B to compare them |
| [Compare](Results.md#compare) | the runs you ticked, side by side, with a verdict per measure and the reports |
| [Servers](Servers-and-TLS.md) | the servers CrushTest tests: addresses, users, the admin API, TLS, production, load balancers, and the clean-up of what CrushTest made |
| [Profiles](Profiles.md) | the built-in profiles and your own: what each session does, how hard, for how long, and the caps and guards |
| [Agents](Load-Machines.md) | this machine and the paired load agents and monitors |
| [License](Licensing.md) | CrushTest's license, activation, check-in and release |

A run's details also have **Trend**: its profile on its server, build after build ([Trend](Results.md#trend)).

Without a license only the License page is there ([Licensing](Licensing.md#without-a-license)).

## Starting and closing

- **One run at a time.** While a run goes, the Run page shows it and **Start** waits; the other pages can be used.
- **Closing the window**, or stopping `crushtest.sh` with Ctrl-C, aborts a run that is going and gives it up to 90 seconds to sweep its files and remove its test users ([Safety on production](Safety.md#after-the-run)).
- **The settings stay** in CrushTest's folder ([Files](Files.md)): servers, profiles, paired agents and every result are there the next time.

## The command line

Everything the Run, Results and Compare pages do can also be done from a script, with the servers and profiles set up here: see [Command line](Command-Line.md).
