Took a day to install the next most basic Python+pychram for API testing, below this can guide yourself to get started: Basic development level also need to learn
1. Python:
https://www.python.org/about/
Current download version: Python 2.7.12
2, the download completes the environment variable configuration
Configure Python environment variables: E:\Python27\python\; E:\Python27\python\Scripts (according to your own installation address)
3. Using PIP
CMD into the E:\Python27\python\Scripts.
Use the command pip-v to display the following information:
Pip 8.1.1 from E:\python27\python\lib\site-packages (Python 2.7)---on behalf of PIP available
PS: The new version of Python has its own pip, in the script directory can be seen, do not need to go to the official website to download Setuptools and pip files
4. Download Pychram
pycharm--test tool for writing Python scripts
https://www.jetbrains.com/pycharm/download/
Download complete configuration and create a project
1) Enter the Welcome page for the first time and click Configuration-setting (if not set at this time, you can go through file-setting when you enter project)
2) Click Create New Project.
3) Import the Python editor and import the path to the path you have installed
4), configure the completion of the project to enter the main page
5) Create a new. py file to test
6) The initial use of requests in the above code will be an error, because there is no import requests package, then step 5 to solve the problem
5. Using PIP for requests import
Command: Windows->PIP install requests
When the import requests is successful, the import requests of the project code will not appear in the Red error area.
6, the completion of the preparation of the API test, for reference to the following documents:
http://blog.csdn.net/freewebsys/article/details/46228421
http://blog.csdn.net/u013088062/article/details/50332873
http://blog.csdn.net/chenggong2dm/article/details/9365437
If there are changes in the subsequent application, the article will be updated continuously ....
Using Python+pychram for API testing (interface Testing) Beginner Step 1