Home > @holochain/tryorama > TryCpScenario
A test scenario abstraction with convenience functions to manage TryCP clients and players (agent + conductor).
Clients in turn help manage conductors on TryCP servers. Clients can be added to a scenario to keep track of all server connections. When finishing a test scenario, all conductors of all clients can be easily cleaned up and the client connections closed.
Signature:
export declare class TryCpScenario
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Property |
Modifiers |
Type |
Description |
---|---|---|---|
URL | undefined | |||
string | |||
ChildProcessWithoutNullStreams | undefined | |||
URL | undefined |
Method |
Modifiers |
Description |
---|---|---|
Creates a TryCP client connection and add it to the scenario. | ||
Creates client connections for all passed in URLs and, depending on the options, creates multiple players with apps. Adds all clients to the scenario. If no number of agents per conductor is specified, it defaults to 1. | ||
Creates and adds multiple players with an installed app to the scenario. | ||
Creates and adds a single player with an installed app to the scenario, | ||
Shut down and delete all conductors and close all client connections in the scenario. | ||
Registers all agents of all passed in conductors to each other. This skips peer discovery through gossip and thus accelerates test runs. | ||
Shut down all conductors of all clients in the scenario. |