Two languages required for testing: Java,python
Test development: Develop test scripts, develop test frameworks
Java needs to master the content: Basic syntax, Java object-oriented concepts, Java common classes, basic test framework
Java Common classes:
BYTE stream Inputstream,outputstream, audio video, etc.
Character Stream Reader,writer
InputStreamReader, byte-to-character bridge
OutputStreamWriter, character-to-byte bridge
Collection (interface)->list-> (ArrayList, linkedlist,vector->stack), Set
Map (interface) (Hashtable, HashMap, Weakhashmap)
Includes ArrayList implements a variable-size array that allows all elements, including null,arraylist non-synchronous
Vector similar to ArrayList, synchronous
Hashtable inherits the map interface, implements a hash table of key-value mappings, and any non-empty object can be a key or value, which is synchronous
HashMap is similar to Hashtable, except that HashMap is non-synchronous and allows NULL, which is null value and NULL key
Class Name extends Thread
Class name implements Runnable
Recommendation: Using interfaces
Benefits: Avoid single inheritance restrictions, not conducive to resource sharing
Basic Test Framework
JUNIT3: The purpose of junit design is to analyze code units
JUNIT4: Supports annotation compared to JUNIT3
TestNG: Intended use for advanced testing, support labeling, surface notation similar to JUNIT4
Common assertions: Assertequals,asserttrue/false,assertnull/notnull
This article from "Sunny" blog, reproduced please contact the author!
Java common knowledge points of test and Development Department classes