Automated Gameplay Testing with Multiplayer Play Mode?

Hi, I would like to set up Multiplayer Play Mode (MPPM) for automated gameplay testing. I would like to record some gameplay from multiple players (as inputs/actions), and to then take a screenshot from each player, which I would check manually to ensure the test succeeded. There are some networking abnormalities which this would help me to stay on top of.

My concern right now is that I see no way to control the virtual players when they are not connected into a session. This scenario will occur at the start of testing, and between each test. I guess I could look at pipes, but is there any built-in consideration for this?

Hi! That’s a very interesting use case.

We don’t have a built-in solution available at the moment, but internally we do some automated testing in a similar way. We’re actively exploring the possibilities to improve the mppm flows and will definitely share more once we have something concrete.

As of now, you’ll need to find a way to establish a connection between the players. Pipes, sockets or even Unity Transport could be good options.