You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](http://codeception.com/images/recorder.gif))
71
+
Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](https://codeception.com/images/recorder.gif))
72
72
Activated only for suites with WebDriver module enabled.
73
73
74
74
The screenshots are saved to `tests/_output/record_*` directories, open `index.html` to see them as a slideshow.
@@ -125,7 +125,7 @@ public function testLogin(AcceptanceTester $I)
* ssl_cipher - list of one or more permissible ciphers to use for SSL encryption (MySQL specific, @seehttps://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-cipher)
70
+
* ssl_key - path to the SSL key (MySQL specific, @seehttp://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-key)
71
+
* ssl_cert - path to the SSL certificate (MySQL specific, @seehttp://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-cert)
72
+
* ssl_ca - path to the SSL certificate authority (MySQL specific, @seehttp://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-ssl-ca)
* ssl_cipher - list of one or more permissible ciphers to use for SSL encryption (MySQL specific, @seehttp://php.net/manual/de/ref.pdo-mysql.php#pdo.constants.mysql-attr-cipher)
75
75
* databases - include more database configs and switch between them in tests.
76
76
* initial_queries - list of queries to be executed right after connection to the database has been initiated, i.e. creating the database if it does not exist or preparing the database collation
77
-
77
+
* skip_cleanup_if_failed - Do not perform the cleanup if the tests failed. If this is used, manual cleanup might be required when re-running
78
78
### Example
79
79
80
80
modules:
@@ -88,6 +88,7 @@ if you run into problems loading dumps and cleaning databases.
88
88
cleanup: true
89
89
reconnect: true
90
90
waitlock: 10
91
+
skip_cleanup_if_failed: true
91
92
ssl_key: '/path/to/client-key.pem'
92
93
ssl_cert: '/path/to/client-cert.pem'
93
94
ssl_ca: '/path/to/ca-cert.pem'
@@ -390,7 +391,8 @@ Returns the number of rows in a database
390
391
391
392
#### haveInDatabase
392
393
393
-
Inserts an SQL record into a database. This record will be erased after the test.
394
+
Inserts an SQL record into a database. This record will be erased after the test,
395
+
unless you've configured "skip_cleanup_if_failed", and the test fails.
Copy file name to clipboardExpand all lines: docs/modules/PhpBrowser.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Warning. Using PHAR file and composer in the same project can cause unexpected e
32
32
33
33
34
34
35
-
Uses [Guzzle](https://guzzlephp.org/) to interact with your application over CURL.
35
+
Uses [Guzzle](http://guzzlephp.org/) to interact with your application over CURL.
36
36
Module works over CURL and requires **PHP CURL extension** to be enabled.
37
37
38
38
Use to perform web acceptance tests with non-javascript browser.
@@ -50,13 +50,13 @@ If test fails stores last shown page in 'output' dir.
50
50
51
51
* url *required* - start url of your app
52
52
* headers - default headers are set before each test.
53
-
* handler (default: curl) - Guzzle handler to use. By default curl is used, also possible to pass `stream`, or any valid class name as [Handler](https://docs.guzzlephp.org/en/latest/handlers-and-middleware.html#handlers).
53
+
* handler (default: curl) - Guzzle handler to use. By default curl is used, also possible to pass `stream`, or any valid class name as [Handler](http://docs.guzzlephp.org/en/latest/handlers-and-middleware.html#handlers).
54
54
* middleware - Guzzle middlewares to add. An array of valid callables is required.
55
55
* curl - curl options
56
56
* cookies - ...
57
57
* auth - ...
58
58
* verify - ...
59
-
* .. those and other [Guzzle Request options](https://docs.guzzlephp.org/en/latest/request-options.html)
59
+
* .. those and other [Guzzle Request options](http://docs.guzzlephp.org/en/latest/request-options.html)
60
60
61
61
62
62
#### Example (`acceptance.suite.yml`)
@@ -91,7 +91,7 @@ Those properties and methods are expected to be used in Helper classes:
0 commit comments