API testing with Python+pychram (interface test) Beginner Step 1

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.