Download the PHP package slince/mechanic without Composer

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

All versions of mechanic with dependencies

Informations about the package mechanic

机械师

基于php的测试框架,目前支持api接口测试

安装

Mechanic是基于php的,采用composer安装,所以需要安装php运行环境和composer包管理工具;php最低版本要求5.5.9,如需要帮助请参考 php官网, windows平台官网;如果您没有安装composer请先安装composer,参考链接 composer官网composer中文网 环境准备完毕之后在命令行或者终端执行以下命令安装

安装完成之后执行

验证是否安装成功,如果提示你命令不存在那么你需要将composer的全局bin目录加入到系统路径

使用

创建测试项目

执行项目创建命令

执行完毕之后你会在当前目录下看到以[name]命名的项目

创建测试用例

创建测试套件

在项目目录/src/TestSuite下创建测试套件文件,详细实例请参考demo 测试套件是可选的,如果你没有创建测试套件,mechanic会创建一个default测试套件,并将所有的测试用例加入该测试套件

执行测试套件

project是可选的,如果不提供测默认当前目录是测试项目路径

查看测试报告

Mechanic支持以下几种报告策略:

你可以将Mechanic与Jenkins结合实现全自动化测试,详细情况参考文章Mechanic于Jenkins结合实现无人值守自动化运行


Version
Requires php Version >=5.5.9
guzzlehttp/guzzle Version ~6.2
slince/event Version ~1.0
slince/cache Version ~1.0
slince/config Version ~1.0
slince/di Version ~1.0
symfony/filesystem Version ~3.0
symfony/console Version ~3.0
cakephp/utility Version ~3.0
phpoffice/phpexcel Version ~1.8
webmozart/assert Version ^1.0
symfony/finder Version ^3.1
cakephp/i18n Version ^3.2
dompdf/dompdf Version ^0.6.0
swiftmailer/swiftmailer Version ^5.4
facebook/webdriver Version ^1.1

The package slince/mechanic contains the following files

Loading the files please wait ....