Skip to content

Write separate test scripts for signalling server #1

@Raghav-B

Description

@Raghav-B

Create 2 scripts that simulate traffic from robots and clients to test whether the signalling server is queuing things properly.

I imagine this is easiest to do using 2 Python scripts, one for robots and one for clients. In these scripts, make it so that multiple threads can be create to simulate concurrent user connections. These scripts will connect to the signalling server through port 49621.

Basically you are trying to look out for the following issues/problems

  • Race conditions when it comes to the connectedUsers, connectedRobots, userBattleQueue and userShootingQueue data structures.
  • Check if queuing of users is working correctly. Remember that there will usually be more users requesting to connect than robots. Ensure that a user is unable to overwrite another user's connection to the robot unless the previous user has terminated the connection using the leaveHandler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions