{ "info": { "author": "Gemfield", "author_email": "gemfield@civilnet.cn", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development :: Testing" ], "description": "# STF\n- A Simple Test Framework.\n- STF is an automation test framework implemented with Python;\n- STF can be installed via pip install command;\n\n-------\n\n## STF key features:\n- Use directory/file to represent a test case/test steps, great benefit writing cases with script(shell, python, Expect);\n- Generate Html report and JUnit xml report for test cases;\n- Get case info from Testcase Management System(e.g. zephyr) and report the case status back to TMS;\n- Reuse code by various modules rather than functions;\n- Can wrap other automation frameworks (e.g. Ansible, Robot...) and user's own private automation framework, easily and intuitively;\n\n--------\n## STF Arch\n![STF Arch](https://github.com/nokia/STF/blob/master/images/STF_arch.PNG)\n\n--------\n## STF test view\nSTF test view usage:\n\n`stf test -c `\n\nSTF test view provide 3 kinds of cases: \n1. case directory with case step files;\n2. case directory without case step files;\n3. one single file as a test case;\n\nA STF case must be independent, since other cases may be omitted after apply filter and will not run during test.\n\n--------\n### STF test view - case directory with case step files\n\n- In this situation, STF test case use 1-level directory to represent a test case, and use the files in this directory to represent the test steps;\n- STF case directory name format : stf__\\__\n- Case step file name format: s\\\\__\\\\[~\\]__\\\n\n--------\n### STF test view - case directory without case steps\n- In this situation, STF test case use a directory to represent a test case, and you can put any files in this directory;\n- STF case directory name format : stfs\\\\__\\\\_\\_\\__\\\n\n--------\n### STF test view - one single file as a test case\n- In this situation, STF test case use a single file to represent a test case;\n- STF case file name format : stfs\\\\__\\\\_\\_\\__\n\n--------\n### STF format explanation\n- \\ is [1-99999], but the number itself has no special meaning;\n- \\ is