entanet-qa/testrail-api-run-create

Creates run on testrail using api creds

0.0.17 2018-09-06 09:18 UTC

This package is not auto-updated.

Last update: 2024-04-26 12:21:04 UTC


README

EntanetQA TestRail API Run Creator

Why?

This was made to help with pipelining Behat testing + testrail integration.

The following package leverages BehatTestrailreporter but automatically:

Creates a new test run for the project
Uses the latest test suite for the test run
Uses the currently active milestone for the test run
Updates and reformats the Behat.yml so that the runId is the newly created run

Installing

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

Ensure that you have setup behat.yml to include:

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

Use

Call CreateRun from project root. Append your project in testrail as a param

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

Then call behat, if you have setup BehatTestrailReporter correctly, your new run on testrail wil be automatically updated.

Known Issues

Validation looks at behat.yml and asesses if has correct information and if keys and values are present and populated
Currently does not validate if value format is correct \

Notes

GLHF :) :)

Does not write tests for you....