1, understand the software testing technology:
-Software testing technology is an important part of software development process, it is the activity process of verifying and confirming software products (including staged products) throughout the software development life cycle, and the aim is to find out the problems in software products as soon as possible-with the user requirement, or the pre-defined inconsistency. The process is generally: check the SOFTWARE PRODUCT bugs, written test reports, submitted to developers to modify.
-Software testing techniques include: black-box testing, white-box testing, unit testing, stress testing, and other tests.
A, black box test:
-Black-Box testing is also known as functional testing, and it is tested to see if each feature is working properly. In the test, the program as a black box can not be opened, regardless of the internal structure of the program and internal characteristics of the case, in the program interface testing, it only checks whether the program function in accordance with the requirements of the specification of the normal use, the program can properly receive input data and produce the correct output information. Black box testing focuses on the external structure of the program, regardless of the internal logical structure, mainly for the software interface and software function testing. The black box test is based on the user's point of view, from the input data and output data corresponding to the relationship between the test.
B, white box test:
-The software's white-box test is a detailed examination of the procedural details of the software. The method is to think of the test object as an open box, which allows the tester to design or select test Cases and test all the logical paths of the program, using the logical structure within the program and its related information. Determine whether the actual state is consistent with the expected state by checking the program state at different points. So the white-box test is also called a structural test or a logic-driven test. White box testing is usually tested by a dedicated white box tester.
C, Unit Test (unit testing), refers to the software in the smallest testable unit to check and verify. As to the meaning of the unit in the Unit test, in general, we should judge its specific meaning according to the actual situation, such as the unit in Java refers to a class. In general, the unit is the minimum measured function module that is artificially defined. Unit testing is the lowest level of test activity to be performed during the software development process, and the independent unit of the software will be tested in isolation from other parts of the program. Unit tests are typically done by the programmer himself. and a unit test report is required after the test is complete.
D, pressure test:
-The stress test is part of the performance test and tests the system's maximum load.
E, other tests: usability testing, safety testing, etc.
-Common software Testing related tools: Software error Management tool Bugzilla, functional test tool WinRunner, load test tool LoadRunner, test management tool
2, Java Unit Testing has a dedicated open source project, such as: Juint.
-Test requires JUnit to download the JUnit related jar package, here is the junit4-4.12, the network disk is: Http://pan.baidu.com/s/1o7S5zOe, when used to add the jar package to the classpath. (You can also choose not to add a jar package, use the Ecplise tool to test the junittestcase)
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/08/1C/wKiom1nbalSgp-lxAABHLzl1Qps808.png "title=" 00. PNG "alt=" Wkiom1nbalsgp-lxaabhlzl1qps808.png "/>
-You need to add a @test comment before the method is used for unit testing.
3. What is the URL and URL to understand? The relationship between them?
-The URL (Uniform Resource Locator) is a uniform resource locator, such as a request path entered directly on the browser address bar http://127.0.0.1:8080/oa/index.html is a URL through which you can locate a resource on the network.
-The URI (Uniform Resource Identifier) is a Uniform resource identifier that simply represents the name of the resource in the network, does not have a location function, or the URI is part of the URL, such as/oa/index.html is a URI in the above URL.
4. Learn about loggers:
-Logging is required in project development, and logs generally include many levels, such as error errors, warning warn, information info, etc., and have open source projects dedicated to logging, such as log4j to complete log management.
5, the server side of the small Java program English is: Server Applet, so we put the server side of the small Java program called: Servlet.
6, the use of Java code for simple Web server development and preparation work
-Use JDK version: JDK1.6 or later.
-Integrated development environment ide:myeclipse.
-Install browser: FireFox.
-Install the database management system: MySQL.
-WEB server name: Httpserver.
7, the development of the Source network address: (because there is a detailed explanation in the source code, so do not repeat the instructions)
Http://pan.baidu.com/s/1nuK0iCh
This article is from the "12392717" blog, please be sure to keep this source http://12402717.blog.51cto.com/12392717/1972084
J2SE's comprehensive use of Java code for simple Web server development (software testing techniques, unit tests, and Log Manager concept notes)