Server Telnet Thread Unit Test Procedures - Telnet Project

EventHelix.com/EventStudio 2.0
Generated on 04-Jul-03 14:31

Code Reviewed By:

Unit Tested By:

Telnet

Test Procedures:

NumActionResultStatus
1.Create object Telnet_Thread (Created by Telnet_Server)
  1. Check if object Telnet_Thread has been initialized correctly
  2. Telnet_Thread should take action "Listen to Socket"

CR:

UT:

2.Send do_SUPRESS_GO_AHEAD to Telnet_Thread (Message from Telnet)
  1. do_SUPRESS_GO_AHEAD message handler should be called

CR:

UT:

3.Send will_TERMINAL_TYPE to Telnet_Thread (Message from Telnet) with parameters reply
  1. will_TERMINAL_TYPE message handler should be called
  2. Telnet_Thread should send do_TERMINAL_TYPE to Telnet with fields dont_reply
  3. Telnet_Thread should send SB_REQUEST_TYPE_SE to Telnet

CR:

UT:

4.Send SB_VT220_SE to Telnet_Thread (Message from Telnet)
  1. SB_VT220_SE message handler should be called
  2. Telnet_Thread should send will_SUPRESS_GO_AHEAD to Telnet with fields dont_reply
  3. Telnet_Thread should send will_ECHO to Telnet with fields reply

CR:

UT:

5.Send do_ECHO to Telnet_Thread (Message from Telnet) with parameters reply
  1. do_ECHO message handler should be called
  2. Telnet_Thread should send do_ECHO to Telnet with fields reply

CR:

UT:

6.Send wont_ECHO to Telnet_Thread (Message from Telnet) with parameters reply
  1. wont_ECHO message handler should be called
  2. Telnet_Thread should create object Shell

CR:

UT:

7.Send Welcome_Message to Telnet_Thread (Message from Shell)
  1. Welcome_Message message handler should be called
  2. Telnet_Thread should send Welcome_Message to Telnet
  3. Telnet_Thread should send wont_ECHO to Telnet with fields dont_reply

CR:

UT:

8.Send Login_Prompt to Telnet_Thread (Message from Shell)
  1. Login_Prompt message handler should be called
  2. Telnet_Thread should send Login_Prompt to Telnet

CR:

UT:

9.Send Login_Name to Telnet_Thread (Message from Telnet)
  1. Login_Name message handler should be called
  2. Telnet_Thread should send Login_Name to Shell

CR:

UT:

10.Send Password_Prompt to Telnet_Thread (Message from Shell)
  1. Password_Prompt message handler should be called
  2. Telnet_Thread should send Password_Prompt to Telnet

CR:

UT:

11.Send Password to Telnet_Thread (Message from Telnet)
  1. Password message handler should be called
  2. Telnet_Thread should send Password to Shell

CR:

UT:

12.Send InputText to Telnet_Thread (Message from Telnet)
  1. InputText message handler should be called
  2. Telnet_Thread should send InputText to Shell

CR:

UT:

13.Send OutputText to Telnet_Thread (Message from Shell)
  1. OutputText message handler should be called
  2. Telnet_Thread should send OutputText to Telnet

CR:

UT:

14.Send CONTROL_D to Telnet_Thread (Message from Telnet)
  1. CONTROL_D message handler should be called
  2. Telnet_Thread should send CONTROL_D to Shell

CR:

UT:

15.Send Signal to Telnet_Thread (Message from Shell)
  1. Signal message handler should be called
  2. Telnet_Thread should send Signal to Telnet_Server
  3. Object Telnet_Thread should delete itself
  4. Verify that object Telnet_Thread has released all resources

CR:

UT: