Python Automated test development tool sublime environment to build the actual combat

Source: Internet
Author: User
Tags sublime text

Original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://xqtesting.blog.51cto.com/4626073/1912371

Baidu Search: Xiao Qiang test brand

Feel the article is good, remember to forward the HA

Introduction

Using code to have a good IDE is very important, some people always go to despise the tool, I think is completely three view is not positive. In fact, the tool itself is not wrong, wrong is the person with tools, so please do not despise tools, otherwise please do not use the computer ... Because the computer is also a tool!

Well, back to the point, Python code is often used by people may be pycharm,eclipse, these tools are too cumbersome, resource consumption is too large, and also uncomfortable, in fact, small and easy to use is the king.

Before I introduced a Python writing tool called Ulipad, interested can be viewed on my blog http://xqtesting.blog.51cto.com. Today we introduce another tool: Sublime 3

Download and install

Many online tutorials ... But the basic is copy, this installation for the author's own practice, applicable to the latest version of Sublime 3. The required installation packages and plugins can be followed by the public number "test Help journal" to reply to sub acquisition.

1 Installing Sublime 3

Sublime 3 can be installed directly after download. When installing, be careful to check the Add to Explorer context menu so that sublime text can be added to the right button, and when you right-click the file, you can open it directly using sublime text. And then set it down,

2 Installing the Package Control

Many of the online installation methods, but most do not work, I also do not chicken road why. So here we tell you the way of manual installation, the simplest success rate is also high.

First, download the plugin, get the method above said. The remaining operation steps please look at the picture

Put the plugin into the directory, and then restart the sublime to complete the installation, this time to the following location you can see

Plug-in installation related to Python

Introduce several plugins first:

Sublimecodeintel: Code hint plugin (required)

Sidebarenhancements: Expands the number of menu options in the sidebar to increase your productivity (must be installed)

Sublimetmpl: New file template plug-in

Autopep8:python Development Specification PEP8

Anaconda: Automatic matching keywords and other practical functions, effectively improve development efficiency. Set up after installation

Preferences>package control to find the corresponding plug-in Settings Settings-user

{

"Python_interpreter": "C:/python33/python.exe",//location of the system where Python is installed

"Anaconda_linting": false,

"Swallow_startup_errors": True

}

SUBLIMEREPL: Directly run the current file, you can easily debug (must be installed, after loading directly press CTRL+B to run)

All plug-in installation methods are the same, so here are only a few to explain!

The plugin Sublimecodeintel installation method is as follows:

1 Select Preferences>package Control in Sublime

2 Enter install to select the associated install package

3 Enter Sublimecodeintel, and then select Install

4 after the installation is complete, you can see the installed plugins through the Preferences>package settings

Plugin sidebarenhancements you need to re-select your working directory after installation is complete, as shown below (if you don't see it, set it in View>side bar)

Plug-in Sublimetmpl installed after the preferences>package settings by selecting Key Bindings-user to set, as follows (meaning to press ctrl+alt+p to quickly create a python file)

[

{

"caption": "Tmpl:create python", "command": "Sublime_tmpl",

"Keys": ["Ctrl+alt+p"], "args": {"type": "Python"}

},

]

Summary

Now that the environment has been built, you are free to play with Python! Welcome into Group Discussion 229390571

This article is from "Xiao Qiang performance test brand product Manager" blog, please be sure to keep this source http://xqtesting.blog.51cto.com/4626073/1912371

Python Automated test development tool sublime environment to build the actual combat

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.