定制 aklump/check-pages 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aklump/check-pages

最新稳定版本:0.24.0

Composer 安装命令:

composer require aklump/check-pages

包简介

Very simple QA for websites.

README 文档

README

Very Simple QA for HTTP

Check Pages

Heavy Development

⚠️ Use at your own risk. This project is under heavy development and is undergoing changes pretty regularly.

Summary

This project intends to provide a process of QA testing of a website, which is very fast to implement and simple to maintain. You write your tests using YAML and they can be as simple as checking for a 200 HTTP response on the homepage. PHP is working under-the-hood, but general use does not require you to know PHP.

Simple Test Syntax

Assert the homepage loads.

-
  visit: /

Assert the admin section is protected.

-
  visit: /admin
  why: Make sure the `/admin` path returns 403 forbidden when not logged in.
  status: 403

In a third test we can assert there is one logo image on the homepage, like so:

-
  visit: /
  find:
    -
      dom: '#logo img'
      count: 1

Lastly, make sure there are no unprocessed tokens on the page (a.k.a. a substring does not appear):

-
  visit: /
  find:
    -
      not contains: '[site:name]'

For more code examples explore the /examples directory.

Installation

Execute the following snippet in your terminal, which will install Check Pages in your home directory. Composer is required for this to work.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/aklump/check-pages/refs/heads/master/setup-check-pages.sh)"
  1. Test your installaion by typing checkpages in a new terminal window.
    1. If you see a Composer PHP version warning then you will need to setup an alias (see Troubleshooting)
  2. You should see the welcome screen if installation is working properly.

Quick Start

Initialize Your Project

  1. cd my/project/root
  2. mkdir bin (do this only if you want the binary(ies) to be installed here.)
  3. checkpages init
  4. Review the output for any important messages.

Run the Demonstration Tests

  1. bin/run_check_pages_tests.sh
  2. If you are online, you should see passing tests.
  3. Try again with maximim verbosity bin/run_check_pages_tests.sh -vvv

See Troubleshooting if you experiences problems.

Documentation

https://aklump.github.io/check-pages/

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-09-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固