Download the PHP package bookit/codeception-testrail without Composer

On this page you can find all versions of the php package bookit/codeception-testrail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package codeception-testrail

Codeception TestRail Integration Module

This Codeception extension provides functionality for tests to report results to TestRail using the TestRail API v2.

Note: The extension currently only supports the Cest Codeception test format. It cannot report PHPUnit or Cept tests.

Installation

The easiest way to install this plugin is using Composer. You can install module by running:

Theory of Operation

The extension hooks the following Codeception events: suite.after, test.success, test.skipped, test.incomplete, test.error, and test.fail. The extension also provides an _initialize() method and some other helper methods.

During the _initialize() step, the module will fetch the project details and create a new plan for the run. The plan name can be procedurally generated but by default it will be the date and time formatted as Y-m-d H:i;s. Also during this step the default status list is overriden with any from the config.

During the test.success, test.skipped, test.incomplete, test.error, and test.fail events, a result is recorded for that event. TestRail Suites and TestRail Test Cases are set for the test using annotations (@tr-suite and @tr-case). The TestRail Suite can either be set at the class level or the method level; precedent is give to the method level annotation. The TestRail Test Case can only be set at the method level. Additionally, the elapsed time of the test will be formatted and recorded.

During the after.suite event, the collected results will be transmitted to TestRail. This is accomplished by performing two actions. The first action is to create a TestRail Test Plan Entry for each of the TestRail suites in the result set. The Test Plan Entry will only contain Test Cases which were also registered. The Test Plan Entry will be named after the Codeception suite and the TestRail suite, separated by a colon.

After the Test Plan Entry is created, the Test Run ID is captured from the response and the test results are transmitted using the bulk test result action. Before the results are passed to TestRail, they're filtered to remove any results which set the TestRail System Status of Untested. The TestRail API issues an error when a result attempts to set this status.

The default status map is:

Codeception Status TestRail Status TestRail Status ID
success Success 1
failure Failed 5
error Failed 5
incomplete Success 1
skipped Untested 3

Configuration

The extension requires four configuration parameters to be set (user, apikey, project). There are additional configuration options for overriding statuses and disabling the connection to TestRail.

To enable the extension the following can be added to your codeception.yml config file:

Global configuration options (like the user and apikey) should also be set in the codeception.yml config:

More Information

License

MIT

(c) BookIt.com 2016


All versions of codeception-testrail with dependencies

PHP Build Version
Package Version
Requires codeception/codeception Version ^2.2
guzzlehttp/guzzle Version ^6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bookit/codeception-testrail contains the following files

Loading the files please wait ....