Git Product home page Git Product logo

apirun's Introduction

apirun

A simple API test framework for doing api test easy.

How to Use It?

Open Console, type apirun --help, you will see some parameters

-f TESTCASEFILE, --testcasefile=TESTCASEFILE

TESTCASEFILE is .xls format, you can write testcases in it.

-F TESTCASEFOLDER, --testcasefolder=TESTCASEFOLDER

TESTCASEFOLDER contains TESTCASEFILEs, you need write folder or folder\\, never \\folder; default is None, which means to scan the current work dir.

--report=REPORT

Folder to store test results, default is report.

--demo

Make demo xls in working dir.

-V, --version

Show the version.

--email

sending email after finishing api test

--from

the user who sends email, will cover the info in email.json

--to

the user(s) who receive email, will cover the info in email.json

--subject

the email subject, will cover the info in email.json, default is API Test Result

--host

the email host, will cover the info in email.json, is required no metter in json file or in parameter

--pt, --pressuretest

run pressure test according to the xls, supported by locustio; Ctrl + C, if you want to stop it.

--pt-demo

make PT demo file in current folder

--pt-not-run

just make locustfile according to the xls

--master

Set locust to run in distributed mode with this process as master, use this parameter with --pt; Ctrl + Break, if you want to stop it.

Pending

  • More api test situations

apirun's People

Contributors

guotengda1993 avatar

Stargazers

 avatar

Watchers

James Cloos 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.