test function Points |
Start time |
Completion time |
Test personnel |
Description |
Software Run test |
6.14 |
6.14p |
Li Zhanzo |
1. The program runs normally, the IP connection is correct, send the information correctly, the other side can receive in time; 2. Disadvantage: The program can not break through the intranet, both sides must be in the same network segment. |
IP Connectivity Test |
Send a conversation test |
File Transfer test |
6.15 |
6.15 |
Zheng Dingpeng |
1. File transfer function is normal, all types of files can be transmitted normally; 2. Transmission speed is stable, the received files can run normally; 3. Disadvantages: Can not continue to pass the breakpoint; |
Transfer Status Test |
File Integrity Testing
|
- File received successfully
- Automated Test completion
This is the complete test code of the program, using fest-swing test, the user needs to import the package, the above test is not complete, please go to my github download the source code, test to see the animation effect Oh. Using fest-swing can quickly test your GUI program, automatic test function is very powerful, want to learn students can go to my blog address "use fest-swing test GUI" to learn.
1 Public classFilesendertest {2 3 PrivateFramefixture frame;//Defining the Framefixture variable (in Fest-swing.jar)4 @Before5 Public voidSetUp ()throwsException {6Frame=NewFramefixture (NewFilesender ());//instantiate Filesender () to frame7Frame.show ();//Display window8 }9 Ten @After One Public voidTearDown ()throwsException { AFrame.cleanup ();//Cleanup Window - } - the @Test - Public voidTest () - { -Connect ();//Test Connection +Message ();//Test Send Message -Send ();//Test Send file +Accept ();//Test receive file A } at Public voidConnect ()//Test Connection - { -Frame.textbox ("Iptext"). Entertext ("192.168.0.200");//automatically enter an IP address in the text box -Frame.button ("Connect"). Click ();//Auto-click connect button -Frame.label ("Status"). Requiretext ( -"//See if the connection is successful in } - to Public voidMessage () {//Test Send Message +Frame.textbox ("Input"). Entertext ("hello! We are duang~; now we are running the program automatic test function, all the operation of the program is completed automatically ");//Enter the information you want to send -Frame.button ("message"). Click ();//send button the } * Public voidSend ()//Test Send file $ {Panax Notoginseng Clear (); -Frame.textbox ("Input"). Entertext ("message sent successfully, next test file sent. "); theFrame.button ("Send"). Click ();//Click the Send File button +Frame.filechooser ("Open"). Filenametextbox (). Entertext (//Enter the file directory to send A"E:\\ learning \ \ assembly Language \\tools.zip"); theFrame.filechooser ("Open"). ApproveButton (). click ();//Click the OK button + } - Public voidAccept ()//Test receive file $ { $ Clear (); -Frame.textbox ("Input"). Entertext ("Receive File receive request, next test File receive. "); -Frame.button ("Accept"). Click ();//receive file Request Click the Receive button theFrame.filechooser ("Save"). Filenametextbox (). Entertext (//input File Save path -"C:\\users\\administrator\\desktop");WuyiFrame.filechooser ("Save"). ApproveButton (). click ();//Click the Save button the Clear (); -Frame.textbox ("Input"). Entertext ("File received successfully, can go to the desktop view!") "); WuFrame.textbox ("Input"). Entertext ("\ n automatic test succeeded, exiting soon ...) "); - About } $ voidClear ()//Empty text box contents - { -Frame.textbox ("Input"). DeleteText (); - } A +}
7. Testing and Commissioning