Download the PHP package qase/php-commons without Composer

On this page you can find all versions of the php package qase/php-commons. 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 php-commons

Qase PHP Commons

This module is an SDK for developing test reporters for Qase TMS. You should use it if you're developing your own test reporter for a special-purpose framework.

To report results from tests using a popular framework or test runner, don't install this module directly and use the corresponding reporter module instead:

Installation

Configuration

Qase PHP Reporters can be configured in multiple ways:

All configuration options are listed in the table below:

Description Config file Environment variable Default value Required Possible values
Common
Mode of reporter mode QASE_MODE off No testops, report, off
Fallback mode of reporter fallback QASE_FALLBACK off No testops, report, off
Environment slug environment QASE_ENVIRONMENT undefined No Any string
Root suite rootSuite QASE_ROOT_SUITE undefined No Any string
Enable debug logs debug QASE_DEBUG False No True, False
Enable console logging logging.console QASE_LOGGING_CONSOLE True No True, False
Enable file logging logging.file QASE_LOGGING_FILE True No True, False
Qase Report configuration
Driver used for report mode report.driver QASE_REPORT_DRIVER local No local
Path to save the report report.connection.path QASE_REPORT_CONNECTION_PATH ./build/qase-report
Local report format report.connection.format QASE_REPORT_CONNECTION_FORMAT json json, jsonp
Qase TestOps configuration
Token for API access testops.api.token QASE_TESTOPS_API_TOKEN undefined Yes Any string
Qase API host. For enterprise users, specify address: example.qase.io testops.api.host QASE_TESTOPS_API_HOST qase.io No Any string
Qase enterprise environment testops.api.enterprise QASE_TESTOPS_API_ENTERPRISE False No True, False
API request timeout in seconds testops.api.timeout QASE_TESTOPS_API_TIMEOUT 30 No Any positive integer
Number of extra attempts for a failed API request testops.api.retries QASE_TESTOPS_API_RETRIES 3 No Any non-negative integer
Base delay between retries in seconds, doubled on every attempt testops.api.retryBackoff QASE_TESTOPS_API_RETRY_BACKOFF 1.0 No Any positive number
Code of your project, which you can take from the URL: https://app.qase.io/project/DEMOTR - DEMOTR is the project code testops.project QASE_TESTOPS_PROJECT undefined Yes Any string
Qase test run ID testops.run.id QASE_TESTOPS_RUN_ID undefined No Any integer
Qase test run title testops.run.title QASE_TESTOPS_RUN_TITLE Automated run <Current date and time> No Any string
Qase test run description testops.run.description QASE_TESTOPS_RUN_DESCRIPTION <Framework name> automated run No Any string
Qase test run complete testops.run.complete QASE_TESTOPS_RUN_COMPLETE True True, False
Qase test run tags testops.run.tags QASE_TESTOPS_RUN_TAGS undefined No Config: array of strings, Env: comma-separated string
External issue type testops.run.externalLink.type QASE_TESTOPS_RUN_EXTERNAL_LINK_TYPE undefined No jiraCloud, jiraServer
External issue URL testops.run.externalLink.link QASE_TESTOPS_RUN_EXTERNAL_LINK_URL undefined No Any valid URL string
Qase test plan ID testops.plan.id QASE_TESTOPS_PLAN_ID undefined No Any integer
Size of batch for sending test results testops.batch.size QASE_TESTOPS_BATCH_SIZE 200 No 1200
Enable defects for failed test cases testops.defect QASE_TESTOPS_DEFECT False No True, False
Enable public report link generation after run completion testops.showPublicReportLink QASE_TESTOPS_SHOW_PUBLIC_REPORT_LINK False No True, False
Configuration values to associate with test run testops.configurations.values QASE_TESTOPS_CONFIGURATIONS_VALUES [] No Comma-separated key=value pairs
Create configuration groups and values if they don't exist testops.configurations.createIfNotExists QASE_TESTOPS_CONFIGURATIONS_CREATE_IF_NOT_EXISTS False No True, False
Status filter for test results testops.statusFilter QASE_TESTOPS_STATUS_FILTER [] No Comma-separated string
Status mapping for test results statusMapping QASE_STATUS_MAPPING {} No JSON object or comma-separated key=value pairs

Example qase.config.json config

Environment Variables Example

You can also configure configurations using environment variables:

The QASE_TESTOPS_CONFIGURATIONS_VALUES should be a comma-separated list of key=value pairs.

Result Delivery

Results are sent to Qase in batches of testops.batch.size. A batch stays in the reporter buffer until the API confirms it, so a failed request never destroys the results it was carrying:

How Configurations Work

Configurations in Qase TestOps work as follows:

Status Filtering

You can filter out test results with specific statuses using the statusFilter configuration option:

Config file example:

Environment variable example:

Available statuses:

When statusFilter is configured, results with the specified statuses will be excluded from being sent to Qase TestOps.

Status Mapping

You can map (transform) test result statuses using the statusMapping configuration option. This is useful when you need to convert statuses from your testing framework to match Qase's expected statuses.

Config file example:

Environment variable example:

Available statuses for mapping:

How status mapping works:

Example scenarios:

  1. Convert invalid to failed: Map invalid status to failed to treat infrastructure issues as test failures
  2. Convert skipped to passed: Map skipped status to passed to include skipped tests in pass rate calculations
  3. Multiple mappings: Apply different mappings for different statuses in a single configuration

Validation rules:

External Issue Integration

You can link test runs to external issues (like Jira tickets) by configuring the externalLink option:

Config file example:

Environment variables example:

Supported external issue types:

When an external link is configured, the system will automatically associate the test run with the specified external issue after the run is created.

Technical Details:


All versions of php-commons with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
qase/qase-api-client Version ^1.1.5
qase/qase-api-v2-client Version ^1.1.5
ramsey/uuid Version ^4.7
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 qase/php-commons contains the following files

Loading the files please wait ...