简体   繁体   English

编码接收记录器

[英]Codeception Recorder

I'm new to Codeception and really liking the idea of the Recorder released as part of 2.1 but I'm really struggling getting it to work. 我是Codeception的新手,我真的很喜欢Recorder作为2.1的一部分发布的想法,但是我真的很难使它生效。

My acceptance.suite.yml looks like: 我的accept.suite.yml看起来像:

class_name: AcceptanceTester
modules:
    enabled:
        - WebDriver:
            url: http://whatever/
            browser: phantomjs
            window_size: 1024x768
        - \Helper\Acceptance

extensions:
    enabled:
        - Codeception\Extension\Recorder
    config:
        Codeception\Extension\Recorder:
            delete_successful: false

The PhantomJS stuff is working nicely but it looks like the Recorder extension isn't being loaded as nothing ever appears in the _output folder. PhantomJS的东西运行良好,但似乎没有加载Recorder扩展,因为_output文件夹中没有任何内容。

I've seen in places that I should include something in _bootstrap.php but given that Recorder is part of the core, then I wouldn't know what to include there. 我在某些地方看到我应该在_bootstrap.php包含一些内容,但是考虑到Recorder是核心的一部分,那么我不知道在其中包含什么。

I'm probably doing something really silly but the documentation on this is rather patchy at the moment. 我可能做的事情确实很愚蠢,但目前有关此文档的内容还很少。

I don't think it works at suite level, put it in your app wide codeception.yml 我认为它不适用于套件级别,请将其放入您的应用范围的Codeception.yml中

extensions:
    enabled:
        - Codeception\Extension\RunFailed
        - Codeception\Extension\Recorder
    config:
        Codeception\Extension\Recorder:
            delete_successful: false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM