Git Product home page Git Product logo

autotest's Introduction

usage

使用时机: 未知

  1. 安装python3,下载最新的版本即可,我用的是3.7.3(版本必须在3.6以上)

  2. 安装allure,mac下执行:

    brew install allure
    
    # 没有安装过brew的,执行下面的命令安装:
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. 安装python依赖库,在autotest目录下执行:

    pip3 install -r requirements.txt
  4. 修改autotest/conf/config.ini中的各个section的ip地址,改为自己虚拟机的IP

  5. 执行测试,以case/GTP1.0为例,在autotest下执行:

    python3 run.py case/GTP1.0

docker 本地运行

使用时机:

  1. 本机装有docker。
  2. 没有装python
  3. 或者不想侵扰本机 python/依赖包 版本
  1. 制作镜像

    docker build -t mypython:3.7.7 .
    
  2. 使用镜像运行case

    # 修改 autotest/conf/config.ini
    vi ./conf/config.ini
    # 中的各个section的ip地址,改为自己虚拟机的IP
    # ...
    # 
    
    # run case
    docker run --rm -it -w /data -v "${PWD}":"/data/" mypython:3.7.7 python run.py -c case/FlipAGV/test_flipagv_out_stock_one_feedline.py
    
    
    # run case
    docker run --rm -it -w /data -v "${PWD}":"/data/" mypython:3.7.7 python run.py -c case/FlipAGV/test_flipagv_mock_agv_arrive.py
    
  3. 删除镜像

    docker rmi mypython:3.7.7
    
  4. 本体运行 运行单个case python3 run.py -c case/TES_V2/test_Avoid_basic.py::TestAvoidBasic::test_avoid_basic_parking

autotest's People

Contributors

cming091 avatar

Watchers

 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.