Giter VIP home page Giter VIP logo

crypto_project's Introduction

crypto_project

Setup Guid:(request&websocket) 1 run scripts it's self by right click mouse and click run or execute run_test.py a if you want to run in debug mode please execute run_test.py like run(["-m","debug"]) but debug mode won't generate report in test_report directory b run run_test.py like run() without param will generate report 2 install requirement package in requirements.txt 3 set file name by change param cases_path in config.py ,if you want to change which case you want to run in run_tests.py 4 if you want to run scripts in jenkins please follow steps as flow: a create a free style project in jenkins b config git install path and github address in project c add build steps(Execute shell script) in jenkins and input python run_tests.py -m run d config html report e config junit report to check trand of failure rates f config email send Case & Framework desc:(request&websocket)

1 project is base on pytest framework and it contains 3 layers a api_config.py which enclose api_document content b api_invoke to send request by invoke Func.api() which enclose python request methods c api_services.py contain methods to obtain response message from server d test_cases located in test_dir with test_ prefix which require by pytest frame work e common directory maintain common function like api_utils enclose python request ans excel_utils enclose excel read and write methods f parametrize with excel and set excel file location in config.py g rest_report contain test report generate by run_test.py h config.py and conftest contain golbal config and fixture for pytest i websocket setup and tear down by ws_connect_close fixture in configtest.py test poll jenknis build

crypto_project's People

Contributors

ljrdemail 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.