entanet-qa/testrail-api-run-create

使用API凭据在TestRail上创建运行

0.0.17 2018-09-06 09:18 UTC

This package is not auto-updated.

Last update: 2024-09-27 14:09:03 UTC


README

EntanetQA TestRail API 运行创建器

为什么?

这是为了帮助处理Behat测试 + TestRail集成的管道。

以下包利用BehatTestrailreporter,但会自动

为项目创建一个新的测试运行
使用测试运行的最新测试套件
使用测试运行的当前活动里程碑
更新并重新格式化Behat.yml,以便运行ID是新创建的运行

安装

$> composer require entanet-qa/testrail-api-run-create

请确保您已设置behat.yml以包含

 flexperto\BehatTestrailReporter\TestrailReporterExtension:
        enabled: true
        baseUrl: Appropriate TestRail API url
        testidPrefix: test_rail_
        username: Your Username
        apiKey: Your API key
        customFields:
            custom_environment: '1'

使用

从项目根目录调用CreateRun。将项目作为参数追加到TestRail

$> vendor/bin/testrail-api-run-create --project='Testing'

然后调用behat,如果您已正确设置BehatTestrailReporter,TestRail上的新运行将自动更新。

已知问题

验证检查behat.yml,并判断其是否包含正确信息,以及键和值是否存在并填写
目前不验证值格式是否正确

备注

GLHF :) :)

不会为您编写测试...