1.web Test function characteristics
A. Functional logic test (functional test), this piece of all systems are consistent, such as the addition of data, deletion, modification, functional test case design is interested and time can be another topic discussion;
B. browser compatibility testing, more importantly, to experience this piece, to provide constructive advice, is based on business scenarios, users use a deep understanding of the basis, and then the product plan understanding is reasonable, and put forward their own views and ideas; Experience this piece, must have a relatively global concept, in other words, is to stand in the perspective of the product manager to see the system, see the system's sub-functions, the coordination of the sub-function is reasonable, whether there are better suggestions, and not only limited to an interface, a menu, a drop-down list, a button style and color;
C. page link test, validity link test and can jump link test (can jump link test, usually involves interface test);
D. Interface testing, interface testing effectiveness, business consistency, interface compatibility, etc.;
E.bi data statistics and data indicators accuracy verification, involving BI validation, there are two scenarios, one is to follow the data flow (flow test), which is particularly suitable for big data analysis and statistics, such as the use of Hadoop, Storm and other open source framework, the other is regardless of the data flow and processing process, Only the end-to-end data, specifically to test their own write statistics SQL or shell and interface display comparison, this is suitable for lightweight data statistics, such as general background data statistics, settlement, etc.;
F. Security testing, security for the Web, is a barrier to the past, first of all, look at the Web used: Transport protocol (HTTP, HTTPS), operating system (Linux, etc.), middleware (container, database, etc.), Application layer (business module), browser, each link can be a problem, Which leads to the disclosure of data information; Web security is also hot, https://www.owasp.org/(owasp) also published the annual web security issues Top10, interested to pay attention to and consult; Here is not a detailed discussion of the specific test methods and steps of the safety test, test words , it is very easy to say that those places are prone to problems, especially those that need attention and attention. (Use of cookies, token generation rules, login submissions, upload file background verification, file download control, interface input text box XSS cross-site screening and filtering, interface input text box SQL filter, Linux background to upload directory permission settings, Front-end or back-end mainstream framework struts2, jquery version issues, sensitive information Transfer Protocol selection, database cipher algorithms and mechanisms, etc.)
PS: This piece, the infiltration team has many, the water is very deep; interested children's shoes can be explored together with the exchange. Landlord is just a layman ~ ~
G. Performance testing, here is not elaborated in detail, the most can reflect the test personnel technical level of the topic.
2. Frame Design
Here, the main discussion is the Web to do automation this piece, mainly to solve what problems, to achieve what kind of goals, the front column of a, B, C, e All need to meet, can solve the framework is possible to calculate a good framework.
This set of framework objectives are clear, there are two types of framework ideas, one is based on data-driven thinking, one is based on the concept of keyword-driven; Here I have chosen data-driven.
3. What is the framework?
The main implementation of Web Automation automation, and browser-compatible; So to abstract out here, you can probably divide the following layers:
Page function (link, form query), page object, browser--web feature validation
Combined with automated operating environment and monitoring maintenance, in detail can be divided into several layers:
Page objects, browser--page features (links, form queries), page function verification, test results output, test report, automatic create defects, auto-validation
4. What the framework does
Environment & Language: selenium2.0+python2.7
A. Environment construction
B. Implementing a data-driven case
C. Detailed words, then a level of a post detailed description ~ ~
5. Follow-up
Do a lot of automation, can not use a lot of interface tools, can not be more common.
This year, for two goals, complete this set of automation frameworks and go live, plus launch a system complete test topic or complete an interface testing tool.
Note: Because they are the current code, may not be too organized and clear thinking, said, are their own knowledge or views, there will be narrow or not detailed place, said the wrong place to welcome correct ~ ~ Also welcome students attention ~ ~
Construction of Web automation framework--Preface