Skip to content

Commit

Permalink
[docs] Add a note about what we do if a browser hangs (#2971)
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev authored and AndreyBelym committed Oct 16, 2018
1 parent c4a8a03 commit b28bfb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ testcafe [options] <browser-list-comma-separated> <file-or-glob ...>
> Inactive tabs and minimized browser windows switch to a lower resource consumption mode
> where tests do not always execute correctly.
If a browser stops responding while it executes tests, TestCafe restarts the browser and reruns the current test in a new browser instance.
If the same problem occurs with this test two more times, the test run finishes.

## Browser List

The `browser-list-comma-separated` argument specifies the list of browsers (separated by commas) where tests are run.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ createTestCafe('localhost', 1337, 1338)
.catch(error => { /* ... */ });
```

If a browser stops responding while it executes tests, TestCafe restarts the browser and reruns the current test in a new browser instance.
If the same problem occurs with this test two more times, the test run finishes.

#### Cancelling Test Tasks

You can stop an individual test task at any moment by cancelling the corresponding promise.
Expand Down

0 comments on commit b28bfb3

Please sign in to comment.