{ "info": { "author": "luguo", "author_email": "hluguoj@163.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "# postman2case\n\n[![LICENSE](https://img.shields.io/github/license/HttpRunner/postman2case.svg)](https://github.com/HttpRunner/postman2case/blob/master/LICENSE) [![Build Status](https://travis-ci.org/HttpRunner/postman2case.svg?branch=master)](https://travis-ci.org/HttpRunner/postman2case) [![coveralls](https://coveralls.io/repos/github/HttpRunner/postman2case/badge.svg?branch=master)](https://coveralls.io/github/HttpRunner/postman2case?branch=master)\n\nConvert postman data to JSON testcases for HttpRunner.\n\n## usage\n\nTo see ``postman2case`` version:\n\n```shell\n$ python main.py -V\n0.0.1\n```\n\nTo see available options, run\n\n```shell\n$ python main.py -h\nusage: main.py [-h] [-V] [--log-level LOG_LEVEL]\n [postman_testset_file] [output_testset_file]\n\nConvert postman testcases to JSON testcases for HttpRunner.\n\npositional arguments:\n postman_testset_file Specify postman testset file.\n output_testset_file Optional. Specify converted JSON testset file.\n\noptional arguments:\n -h, --help show this help message and exit\n -V, --version show version\n --log-level LOG_LEVEL\n Specify logging level, default is INFO.\n```\n\n## examples\n\nIn most cases, you can run ``postman2case`` like this:\n\n```shell\n$ python3 main.py test/test.json output.json\nINFO:root:Generate JSON testset successfully: output.json\n```\n\nAs you see, the first parameter is postman source file path, and the second is converted JSON file path.\n\nThe output testset file type is detemined by the suffix of your specified file.\n\nIf you only specify postman source file path, the output testset is in JSON format by default and located in the same folder with source file.\n\n```shell\n$ python3 main.py test/test.json\nINFO:root:Generate JSON testset successfully: test/test.output.json\n```\n\n## generated testset\n\ngenerated JSON testset ``output.json`` shows like this:\n\n```json\n[\n {\n \"test\": {\n \"name\": \"/api/v1/Account/Login\",\n \"request\": {\n \"method\": \"POST\",\n \"url\": \"https://httprunner.top/api/v1/Account/Login\",\n \"headers\": {\n \"Content-Type\": \"application/json\"\n },\n \"json\": {\n \"UserName\": \"test001\",\n \"Pwd\": \"123\",\n \"VerCode\": \"\"\n }\n },\n \"validate\": []\n }\n }\n]\n```\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/HttpRunner/postman2case", "keywords": "postman converter json", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "postman2case", "package_url": "https://pypi.org/project/postman2case/", "platform": "", "project_url": "https://pypi.org/project/postman2case/", "project_urls": { "Homepage": "https://github.com/HttpRunner/postman2case" }, "release_url": "https://pypi.org/project/postman2case/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Convert POSTMAN data to JSON testcases for HttpRunner.", "version": "0.0.1" }, "last_serial": 4868147, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d3e06a9daecae9c866d4c7105f844709", "sha256": "8609f080856e079cfc43bef2be31f3a8fec0ced3db9ed8a168bfa2ba8b31046c" }, "downloads": -1, "filename": "postman2case-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d3e06a9daecae9c866d4c7105f844709", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4541, "upload_time": "2019-02-26T05:15:56", "url": "https://files.pythonhosted.org/packages/59/7e/6cd3131e395e1659bd9823997328feb09f3563fa992e0949e88ad05419dc/postman2case-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3e06a9daecae9c866d4c7105f844709", "sha256": "8609f080856e079cfc43bef2be31f3a8fec0ced3db9ed8a168bfa2ba8b31046c" }, "downloads": -1, "filename": "postman2case-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d3e06a9daecae9c866d4c7105f844709", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4541, "upload_time": "2019-02-26T05:15:56", "url": "https://files.pythonhosted.org/packages/59/7e/6cd3131e395e1659bd9823997328feb09f3563fa992e0949e88ad05419dc/postman2case-0.0.1.tar.gz" } ] }