{ "info": { "author": "gerrywen", "author_email": "blog@gerrywen.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", "Programming Language :: Python :: 3.7" ], "description": "# postman2runner\n\n\nConvert postman data to JSON testcases for HttpRunner.\n\n## usage\n\nTo see ``postman2runner`` version:\n\n```shell\n$ python main.py -V\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_dir] [-- output_file_type]\n\nConvert postman testcases to JSON testcases for HttpRunner.\n\npositional arguments:\n postman_testset_file Specify postman testset file.\n -- output_dir Optional. Specify converted JSON testset folder.\n -- output_file_type Optional. Generate file format , default json.\n\noptional arguments:\n -h, --help show this help message and exit\n -V, --version show version\n --log-level LOG_LEVEL Specify logging level, default is INFO.\n```\n\n## examples\n\nIn most cases, you can run ``postman2runner`` like this:\n\n```shell\n$ python3 main.py tests/data/test.json --output_dir tests/postman2case --output_file_type yaml\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 tests/data/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## \u53c2\u8003\u6765\u6e90\n\u3010[HttpRunner](https://github.com/HttpRunner/postman2case)\u3011\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gerrywen/postman2runner", "keywords": "postman converter json", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "postman2runner", "package_url": "https://pypi.org/project/postman2runner/", "platform": "", "project_url": "https://pypi.org/project/postman2runner/", "project_urls": { "Homepage": "https://github.com/gerrywen/postman2runner" }, "release_url": "https://pypi.org/project/postman2runner/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Convert POSTMAN data to JSON testcases for HttpRunner.", "version": "0.0.2" }, "last_serial": 5429693, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ce1142d0a93e1d63d838fb555ae7c2b7", "sha256": "73d041dc3e32fec20364abb436027f6a61c2f9aa11ddbeafd2c43858c976feda" }, "downloads": -1, "filename": "postman2runner-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ce1142d0a93e1d63d838fb555ae7c2b7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10123, "upload_time": "2019-06-21T06:55:50", "url": "https://files.pythonhosted.org/packages/d3/c0/0ba6811851b8eeef26630f9838060a58a991b6e5bd9707dcf3def30e00cb/postman2runner-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a533cbdfdf2ebea58f22f224dfd2836d", "sha256": "006ea4c957ac751fe7de32a27588070eb00018fb5b0b8aef7cdbda8aa437046b" }, "downloads": -1, "filename": "postman2runner-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a533cbdfdf2ebea58f22f224dfd2836d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7167, "upload_time": "2019-06-21T06:55:53", "url": "https://files.pythonhosted.org/packages/c9/9d/352e85955ee08cccd22b520f290e4928d60056b9e1df850d1696f4b7fe5f/postman2runner-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "eb995acf9953c8c7c57c4482a5ca8ca1", "sha256": "599e014bd5c9878a11a892bd6109b0d099c9fdec8389cb91e0dc3c2019154ef7" }, "downloads": -1, "filename": "postman2runner-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "eb995acf9953c8c7c57c4482a5ca8ca1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10351, "upload_time": "2019-06-21T08:38:16", "url": "https://files.pythonhosted.org/packages/5b/39/0a10b1e6781a7011bebc0edbe06571a89191473de6e88b6cfa107257bb28/postman2runner-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e6723c191f1ece9e69d1474c605b79b5", "sha256": "5ef26e4c53e5cb0ef3de2284ae801530048dbb80ad60084789b7a7e32dc00253" }, "downloads": -1, "filename": "postman2runner-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e6723c191f1ece9e69d1474c605b79b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7369, "upload_time": "2019-06-21T08:38:18", "url": "https://files.pythonhosted.org/packages/c0/11/7b102b861017fc2f52b72e612773a5a16343bac3f6de44a57d9daab6af21/postman2runner-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb995acf9953c8c7c57c4482a5ca8ca1", "sha256": "599e014bd5c9878a11a892bd6109b0d099c9fdec8389cb91e0dc3c2019154ef7" }, "downloads": -1, "filename": "postman2runner-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "eb995acf9953c8c7c57c4482a5ca8ca1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10351, "upload_time": "2019-06-21T08:38:16", "url": "https://files.pythonhosted.org/packages/5b/39/0a10b1e6781a7011bebc0edbe06571a89191473de6e88b6cfa107257bb28/postman2runner-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e6723c191f1ece9e69d1474c605b79b5", "sha256": "5ef26e4c53e5cb0ef3de2284ae801530048dbb80ad60084789b7a7e32dc00253" }, "downloads": -1, "filename": "postman2runner-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e6723c191f1ece9e69d1474c605b79b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7369, "upload_time": "2019-06-21T08:38:18", "url": "https://files.pythonhosted.org/packages/c0/11/7b102b861017fc2f52b72e612773a5a16343bac3f6de44a57d9daab6af21/postman2runner-0.0.2.tar.gz" } ] }