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](https://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](http://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.
Copy file name to clipboardExpand all lines: docs/03-AcceptanceTests.md
+1-15Lines changed: 1 addition & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ $I->click('LOGIN');
29
29
$I->see('Welcome, Davert!');
30
30
```
31
31
32
-
**This scenario can be performed either by PhpBrowser or by a "real" browser through WebDriver**.
32
+
**This scenario can be performed either by PhpBrowser or by a real browser through WebDriver**.
33
33
34
34
|| PhpBrowser | WebDriver |
35
35
| --- | --- | --- |
@@ -763,20 +763,6 @@ WebDriver module provides advanced methods for the browser session, however, the
763
763
764
764
Those methods can be used to create custom commands like `$I->startBrowser()` or used in [before/after](https://codeception.com/docs/06-ModulesAndHelpers#Hooks) hooks.
765
765
766
-
## Error Reporting
767
-
768
-
By default Codeception uses the `E_ALL & ~E_STRICT & ~E_DEPRECATED` error reporting level.
769
-
In acceptance tests you might want to change this level depending on your framework's error policy.
770
-
The error reporting level can be set in the suite configuration file:
771
-
772
-
```yaml
773
-
actor: AcceptanceTester
774
-
# ...
775
-
error_level: E_ALL & ~E_STRICT & ~E_DEPRECATED
776
-
```
777
-
778
-
`error_level`can also be set globally in `codeception.yml` file. In order to do that, you need to specify `error_level` as a part of `settings`. For more information, see [Global Configuration](https://codeception.com/docs/reference/Configuration). Note that suite specific `error_level` value will override global value.
779
-
780
766
## Conclusion
781
767
782
768
Writing acceptance tests with Codeception and PhpBrowser is a good start.
Framework modules also contain additional methods to access framework internals. For instance, Laravel5, Phalcon,
193
+
Framework modules also contain additional methods to access framework internals. For instance, Laravel, Phalcon,
228
194
and Yii2 modules have a `seeRecord` method which uses the ActiveRecord layer to check that a record exists in the database.
229
195
230
196
Take a look at the complete reference for the module you are using. Most of its methods are common to all modules
@@ -233,10 +199,10 @@ but some of them are unique.
233
199
You can also access framework globals inside a test or access the dependency injection container
234
200
inside the `Helper\Functional` class:
235
201
236
-
{% highlight php %}
237
-
202
+
```php
238
203
<?php
239
-
namespace Helper;
204
+
205
+
namespace Tests\Support\Helper;
240
206
241
207
class Functional extends \Codeception\Module
242
208
{
@@ -246,8 +212,7 @@ class Functional extends \Codeception\Module
246
212
$service->doSomething();
247
213
}
248
214
}
249
-
250
-
{% endhighlight %}
215
+
```
251
216
252
217
Also check all available *Public Properties* of the used modules to get full access to their data.
253
218
@@ -257,13 +222,11 @@ By default Codeception uses the `E_ALL & ~E_STRICT & ~E_DEPRECATED` error report
257
222
In functional tests you might want to change this level depending on your framework's error policy.
258
223
The error reporting level can be set in the suite configuration file:
259
224
260
-
{% highlight yaml %}
261
-
225
+
```yaml
262
226
actor: FunctionalTester
263
227
...
264
228
error_level: E_ALL & ~E_STRICT & ~E_DEPRECATED
265
-
266
-
{% endhighlight %}
229
+
```
267
230
268
231
`error_level`can also be set globally in `codeception.yml` file. In order to do that, you need to specify `error_level` as a part of `settings`. For more information, see [Global Configuration](https://codeception.com/docs/reference/Configuration). Note that suite specific `error_level` value will override global value.
0 commit comments