Code Monkey home page Code Monkey logo

automagic's Introduction

自动化测试平台

python3.8+ Django 3.2.10框架

python3.8以下版本 使用Django 3.0.5 以上版本 ,django的 /admin/后台会异常退出,不使用/admin/后台不影响,安装请注意版本

(一)源码安装

pip3 install -r requirements/base.txt

pip3 install -r requirements/seleniumreq.txt

Mysql/Mariadb 数据库 automatic/settings/common.py

MYSQL_USERNAME =  os.environ.get('MYSQL_USERNAME', 'root')
MYSQL_PASSWORD =  os.environ.get('MYSQL_PASSWORD', '123456')
MYSQL_HOST =  os.environ.get('MYSQL_HOST', 'localhost')
MYSQL_PORT =  os.environ.get('MYSQL_PORT', '3306')
MYSQL_DBNAME =  os.environ.get('MYSQL_DBNAME', 'automatic')

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': MYSQL_DBNAME,
        'USER': MYSQL_USERNAME,
        'PASSWORD': MYSQL_PASSWORD,
        'HOST': MYSQL_HOST,
        'PORT': MYSQL_PORT,
    }
}

初始化并启动服务

python3 start.py

另:内置关键字 在wiki #关键字创建# 页面(可以了解一下)

http://127.0.0.1:8000 访问登录即可

默认管理员用户:admin, 密码:admin@123

(二)docker安装

方法一: 命令安装启动

docker pull tsbc520/automagic:2.0

启动docker容器:

docker run -d -p 8000:8000 \
-e MYSQL_HOST=192.168.10.167 \
-e MYSQL_PORT=3306 \
-e MYSQL_DBNAME=automatic \
-e MYSQL_USERNAME=root \
-e MYSQL_PASSWORD=123456 \
tsbc520/automagic:2.0 

方法二: docker-compose

docker-compose up

如何执行测试脚本

点击查看如何执行测试

公众号

扫一扫关注公众号

开源优测

automagic's People

Contributors

radiateboy avatar tsbc520 avatar dependabot[bot] avatar small99 avatar lgth avatar lichenglong004 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.