VirPong/human-pong — Issue #139: Test Case 4.4: Desired Communication Time
Author: garrettdieckmann
Created: 2011-11-11 02:37:43+00:00
State: open
Labels: Server

Version: 1.0
Description: This test will quantify the latency between issuing a paddle movement on the website,
and when the client receives a gameUpdate event corresponding to the paddle movement issued.
Pre-conditions: Server is running Pong code, two clients are connected to a Pong game, a Pong
game is in progress.
Test structure: A timing-event start is placed at the updatePaddleToServer method, and a timing-
event stop is placed at the updateGame event listener.
Scenario:
1. A client moves their pong Paddle
2. The client code sends updated paddle location to server
3. The client code starts a timer
4. The system sends updated game information to the client code
5. The client code stops the timer
Outcome: Average time for 25 time-points is 29.52milliseconds with standard deviation of 14.08
milliseconds
Comments:
1. Server code has a hard-coded response interval of 50 milliseconds
2. In the test, the client machine was able to ping the server and get an average response of 1
millisecond