Unit Test Tool Summary and Group division of work.

Source: Internet
Author: User

Group name: Nikko Ripples

Github Warehouse:https://github.com/yangleiwangximin/

Group leader: Yang Lei ( 13-3, Gao Ke)201303014107

Members : Wang Ximin (High school 13-3)201303014099, Chao Linlin (High School of Science and Education 13-3 ), 201303014112

Zhao Shu (Department of Higher vocational 13-1)201303014020

Name

Blog Address

Managed code Address

Zhao Shu

http://www.cnblogs.com/zhsh/

First question Https://github.com/yangleiwangximin/test/blob/master/Test1.java

Chao Linlin

http://www.cnblogs.com/zhaolinlin/

The second question Https://github.com/yangleiwangximin/test/blob/master/Test2.java

Yang Lei

http://www.cnblogs.com/yangdaxia/

Introduction to Unit testing tools and links

The third question Https://github.com/yangleiwangximin/test/blob/master/Test3.java

Wang Ximin

http://www.cnblogs.com/wangximin/

Question Fourth Https://github.com/yangleiwangximin/test/blob/master/TestMoveString.java

Summary of Unit test tools

Reprinted 2015-04-08 22:40:32

Unit testing is the lowest level of test activity to be performed during the software development process, in which the independent unit of the software is tested in isolation from other parts of the program. Unit testing is not only used as an auxiliary means of error-free coding in the one-time development process, unit testing must be repeatable, whether in software modification, or in the process of porting to a new operating environment. Therefore, all tests must be maintained throughout the lifecycle of the software system.

. Software Unit Description

Units associated with the unit being tested

Design of Unit requirement Unit for Subsystem

Filesender Sendthread Class

Client_rms. Con Nectionlogic

The ability to send files to the server correctly

Send files to the specified server based on the IP address of the server

Filereceive Receivethread Class

Client_rms. Con Nectionlogic

The ability to properly receive files sent by the server

Based on the IP address of the server, build the file storage and receive the files sent by the server

Soundsender Sendthread class client_rms. Con Nectionlogic

Ability to correctly send local sound files to the server

Sends a local sound file to the specified server based on the IP address of the server

Soundreceive Receivethread Class

Client_rms. Con Nectionlogic

Ability to properly receive sound files sent by the server

Build a sound file memory based on the IP address of the server and receive the files sent by the server

Umlsender Senderthread Class

Client_rms. Con Nectionlogic

Ability to send state information for each point when drawing UML graphics to the server

Sends the state information of each point to the specified server when drawing UML graphics, based on the IP address of the server

Umlreceive Receivethread Class

Client_rms. Con Nectionlogic

The ability to correctly receive state information for the points of each UML graphic sent by the server

Based on the IP address of the server, the local storage is built and the storage server sends every

State information for points of a UML graph

Capture Client client_rms. Mo del

Ability to drive local audio system, record audio received in microphone

Call some of the methods in Java.sound to record the audio received in the microphone

Playback Client client_rms. Mo del

Ability to drive local audio system to play the received audio format file

Call some of the methods in Java.sound to play out the received audio format file

Paint Client client_rms. Mo del

Ability to continuously receive status information for each point of a graph and translate that information into graphics

The Paint class in JPanel is rewritten to translate and plot the information of the graphic file in the desired form.

Audioserver Server server_rms. Co Nnectionlogic

Be able to receive the audio sent by the client and save

Write an audio construction container on the server side, save the audio file transmitted by the client in the construction container.

Downloadser ver

Server server_rms. Co Nnectionlogic

Ability to save chat and graphics files and provide download functionality to clients

Save client uploaded user files on server side, provide download method

Loginserver Server server_rms. Co Nnectionlogic

Determine the login information

Login logic decision layer written on server side

Serversounds End

Server server_rms. Co Nnectionlogic

Send the received audio file to the client

Audio compression received on the server side, providing a way to send to the client

Textserver Server server_rms. Co Nnectionlogic

Ability to receive text chat messages sent by clients

Provides the client with a text file that is received by the server side

Umlserver Server server_rms. Co Nnectionlogic

Ability to receive information about each point when a client draws a drawing

Send information to each client for each point of the UML that the server side receives

Uploadserver Server server_rms. Co Nnectionlogic

Receive various forms of file uploaded by the client

A file container is constructed on the server side, and the files uploaded by the client are stored in the constructed container.

test process   tested unit   test process  FileSender  in  Test  class, create  String  type object, call  FileSender  the method of transferring files to see if the number of transmissions received on the server side   according to  FileReceive  in the  Test  class, establish  string   type of object that receives  String  data from the server side   transmitted, to see if it can be received correctly  SoundSender  in the  Test  class, to establish an audio object, call  SounderSender  the method of transmitting   transmitting voice files to see if the transmission of the past   audio files is received on the server side  SoundReceive  in  Test  Class, create an audio object, receive audio data that is transferred from the server side  , see if it is properly received  UMLSender  in the  Test  class, create the data files needed for the  UML  drawing  ArrayList  object, the method that calls the transfer file in  UMLSender ,  see if the transfer of past  ArrayList  objects is received on the server side   umlreceive  in the  Test  class, set up  ArrayList  objects of the data files needed for  UML  drawing to see if they can be transmitted from the server side.  ArrayList  objects  Capture  in the  Test  class, write a method to play an audio file, invoke the recording method in  Capture , Play the recorded audio with the play method in Test,  to see if it will play successfully  Playback  in the  Test  class, call the locally recorded audio file, with  Playback  To play the audio in the playback, to see if you can successfully play the

paint  in the  Test  class, provide the various point objects required for drawing  UML  drawing,  Use the  Paint  method to see if the  UML can be plotted correctly   Graphics  AudioServer  in  Test  class, set up a  Socket  thread to connect to the server and   transfer fixed-format audio files to the server by this thread , see if the service   can receive and store the audio file  DownloadServer  in the  Test  class, set up a  socket  thread to connect to the server, and   By sending different types of files from this thread to the server, see if the server is   No can receive the client's files and test whether the available download methods are   available  LoginServer  in the  Test  class, Establish a connection to the server  socket  thread, and   build a server exists in the user name and the server does not exist   in the user name, respectively detect the correct server side and the wrong user name is   No can log on to the system  ServerSoundSend  in the  Test  class, establish a  socket  thread,  connected to the server side and build an audio container in the specified format to see if the service can be received Audio data transmitted over the   side  TextServer  in  Test  class, establish a  socket  thread,  connected to the server side and build an   string  type of variable, through the  socket, to see if   can receive the server transmitted over the  text  type file  UMLServer  in  test   class, create a connection to the server-side  socket  thread,  and call the local  paint  method to see if you can draw the required graphics from the server-side send   data.  uploadServer  in  In the test  class, create a  socket  thread,  connected to the server side and create a new variable of different types, which is passed through  socket  to the server,  See if you can receive different types of variables on the server side and store

Unit Test Tool Summary and Group division of work.

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.