{ "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": "# apidoc2runner\n\n\nConvert apidoc data to JSON testcases for HttpRunner.\n\n## apidoc\u89c4\u8303\n[apidoc2runner\u89c4\u8303](http://apidoc.b9bb.cn/)\n\n## usage\n\nTo see ``apidoc2runner`` 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 [apidoc_testset_file] [-- output_dir] [-- output_file_type]\n\nConvert apidoc testcases to JSON testcases for HttpRunner.\n\npositional arguments:\n apidoc_testset_file Specify apidoc 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 ``apidoc2runner`` like this:\n\n```shell\n$ python3 main.py tests/data/test.json --output_dir tests/apidoc2runner --output_file_type yaml\nINFO:root:Generate JSON testset successfully: output.json\n```\n\nAs you see, the first parameter is apidoc 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 apidoc 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/apidoc2case)\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/apidoc2runner", "keywords": "apidoc converter json", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "apidoc2runner", "package_url": "https://pypi.org/project/apidoc2runner/", "platform": "", "project_url": "https://pypi.org/project/apidoc2runner/", "project_urls": { "Homepage": "https://github.com/gerrywen/apidoc2runner" }, "release_url": "https://pypi.org/project/apidoc2runner/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Convert apidoc data to JSON testcases for HttpRunner.", "version": "0.0.1" }, "last_serial": 5460522, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "62e781452cb9e4889fcebbe6796735e9", "sha256": "d3063cb2a1543d6daac7d0ef9b21a0257b471c454eef2fe41aeb98bf36514679" }, "downloads": -1, "filename": "apidoc2runner-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "62e781452cb9e4889fcebbe6796735e9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10915, "upload_time": "2019-06-28T08:00:42", "url": "https://files.pythonhosted.org/packages/79/59/55bd7c0ee7866078628dad08073833fc01f1821798d8d73cd18c24f70f0c/apidoc2runner-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e93ceee66643632a02cdb2873c4aab93", "sha256": "40f87818b181d28e2e88a305e607a883065d134af2e31d90e2ffc212f4d54306" }, "downloads": -1, "filename": "apidoc2runner-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e93ceee66643632a02cdb2873c4aab93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7941, "upload_time": "2019-06-28T08:00:45", "url": "https://files.pythonhosted.org/packages/4c/78/761292a7d8d84205b5078ee40ffe1e4e0d6c0f6eaae4f889b5c1617fe498/apidoc2runner-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "62e781452cb9e4889fcebbe6796735e9", "sha256": "d3063cb2a1543d6daac7d0ef9b21a0257b471c454eef2fe41aeb98bf36514679" }, "downloads": -1, "filename": "apidoc2runner-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "62e781452cb9e4889fcebbe6796735e9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10915, "upload_time": "2019-06-28T08:00:42", "url": "https://files.pythonhosted.org/packages/79/59/55bd7c0ee7866078628dad08073833fc01f1821798d8d73cd18c24f70f0c/apidoc2runner-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e93ceee66643632a02cdb2873c4aab93", "sha256": "40f87818b181d28e2e88a305e607a883065d134af2e31d90e2ffc212f4d54306" }, "downloads": -1, "filename": "apidoc2runner-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e93ceee66643632a02cdb2873c4aab93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7941, "upload_time": "2019-06-28T08:00:45", "url": "https://files.pythonhosted.org/packages/4c/78/761292a7d8d84205b5078ee40ffe1e4e0d6c0f6eaae4f889b5c1617fe498/apidoc2runner-0.0.1.tar.gz" } ] }