GithubHelp home page GithubHelp logo

easytester / automagic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radiateboy/automagic

0.0 0.0 0.0 6.18 MB

web automated test platform with Python Django

Home Page: https://radiateboy.github.io/automagic/

License: GNU General Public License v2.0

Python 24.67% CSS 14.26% JavaScript 29.78% HTML 29.37% Dockerfile 0.10% Less 1.82%

automagic's Introduction

自动化测试平台

python3.8+ Django 3.0.6框架

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

DATABASES = {
    'default': {
        # 'ENGINE': 'django.db.backends.sqlite3',
        # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
        'ENGINE':'django.db.backends.mysql',
        'NAME':'automatic',
        'USER':'root',
        'PASSWORD':'123456',
        'HOST':'127.0.0.1',
        'PORT':'3306'
    }
}

数据库初始化

python3 init_database.py

cd automagic

python3 manage.py makemigrations

python3 manage.py migrate

python3 manage.py loaddata initial_data.json

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

创建管理员用户

python3 manage.py createsuperuser

按照提示进行输入要创建的用户名、邮箱、密码(8位以上,字母、字符、数字的组合)

启动服务

python3 manage.py runserver 0.0.0.0:8000

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

django admin

http://127.0.0.1:8000/admin/

如何执行测试脚本

点击查看如何执行测试

公众号

扫一扫关注公众号

开源优测

automagic's People

Contributors

dependabot[bot] avatar radiateboy avatar small99 avatar tsbc520 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.