oneko/codeception-testlink

Testlink 报告的 Codeception 扩展

1.0 2018-01-12 11:51 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:34:57 UTC


README

[工作中 - 尚不可用]

如你所见,这个项目很大程度上基于 https://github.com/bookitcom/codeception-testrail

Codeception TestLink 集成模块

Codeception 扩展提供了测试将结果报告给 TestLink 的功能,使用的是 TestLink Rest API v2

注意: 扩展目前仅支持 Cest Codeception 测试格式。它不能报告 PHPUnit 或 Cept 测试。

安装

安装此插件最简单的方法是使用 Composer。你可以通过运行以下命令安装模块:

composer require --dev oneko/codeception-testlink

操作理论

待办事项

配置

扩展需要设置四个配置参数(userapikeyproject)。还有一些额外的配置选项,可以用来覆盖状态和禁用与 TestLink 的连接。

要启用扩展,可以将以下内容添加到你的 codeception.yml 配置文件中

extensions:
    enabled:
        - OnekO\Codeception\TestLink\Extension

全局配置选项(如 userapikey)也应该在 codeception.yml 配置中设置

extensions:
    config:
        OnekO\Codeception\TestLink\Extension:
            enabled: false                    # When false, don't communicate with TestLink (optional; default: true)
            user: 'testlink@oneko.org'   # A TestLink user (required)
            apikey: 'REDACTED'                # A TestLink API Key (required)
	  		url: 'https://myurl.testlink.com' # The base URL for you TestLink Instance
            project: 9                        # TestLink Project ID (required)
            status:
                success: 1                    # Override the default success status (optional)
                skipped: 11                   # Override the default skipped status (optional)
                incomplete: 12                # Override the default incomplete status (optional)
                failed: 5                     # Override the default failed status (optional)
                error: 5                      # Override the default error status (optional)

更多信息

许可

MIT

(c) OnekO https://oneko.org 2018