Git Product home page Git Product logo

moklr's Introduction

Moklr

moklr定位于http请求代码生成,自动化测试,API status服务等test/development辅助功能,此外还可能集成文档服务,目前仍在持续开发中。

Demo

heroku moklr, 账号:test/123456

Features

  • postman替代品,支持postaman数据(collection级别)直接导入
  • http请求代码生成,支持常见的多种语言(js/java/go/python/shell/ruby等等)
  • API status检查(需runbot支持)
  • 批量测试case
  • 测试文档和API文档生成

Usage

  1. 依赖于mongodb,需提前安装

  2. 运行

    git clone https://github.com/sumory/moklr.git
    cd moklr
    npm install .
    
    #根据具体情况修改config配置,配置位于config目录下
    
    #选择config目录下的test.js这个配置启动
    NODE_ENV=test node index.js
    
    #访问http://localhost:8001
    

Screenshots

moklr's People

Contributors

sumory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

moklr's Issues

Postman做import时错误,提示import to collection error!

postman版本是v5.0.2
错误提示是:import to collection error!
用v2的Export报错,用v1的也报错。
v1的导出json格式是这样
`

"id": "eb7eaef4-3000-4795-a187-3138d2168cfd",
"name": "Farm",
"description": "",
"order": [],
"folders": [
	{
		"owner": "2435347",
		"lastUpdatedBy": "2435347",
		"lastRevision": 2147483647,
		"folder": null,
		"id": "51bf070c-96ca-7d77-70ff-708114921ca7",
		"name": "Cattle",
		"description": "牛只",
		"order": [
			"7062636b-d6d9-f6a0-4595-340c712df9d4",
			"bfc880c0-693e-86e5-ce03-a1113251118f",
			"0a762d41-3890-95c4-baff-c4b9be1dfc3f",
			"adbb7175-56a4-9166-b5f6-7bf5da45defd",
			"2de46bf3-7608-fc6b-7432-a85fdc647589",
			"4cf72c07-0a68-670d-abbb-775979b67008",
			"ca9e3b18-98cf-be26-1ab4-6a2067414cd1",
			"192ac93f-d4b3-0873-74ba-42db83256775",
			"6ef1a1dd-1a90-45c5-86cc-1be20089a4d7"
		],
		"folders_order": []
	},

`

v2的导出格式是这样
`

	{
		"variables": [],
		"info": {
			"name": "Farm",
			"_postman_id": "eb7eaef4-3000-4795-a187-3138d2168cfd",
			"description": "",
			"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
		},
		"item": [
			{
				"name": "Cattle",
				"description": "牛只",
				"item": [
					{
						"name": "获取疫苗种类信息",
						"request": {
							"url": "http://192.168.1.111:1337/Cattle/getVaccinekinds",
							"method": "POST",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/x-www-form-urlencoded",
									"description": ""
								}
							],
							"body": {
								"mode": "urlencoded",
								"urlencoded": [
									{
										"key": "EPCNumber",
										"value": "temp07777",
										"description": "",
										"type": "text"
									}
								]
							},
							"description": "获取疫苗的种类信息"
						},
						"response": []

`

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.