Documentation ¶
Index ¶
- type Test
- func (ct *Test) NewHTTPClient(name string) *testclient.TestClient
- func (ct *Test) NewRestClient(name string) *testclient.TestClient
- func (ct *Test) NewTelnetClient(name string) *testclient.TestClient
- func (ct *Test) Run()
- func (ct *Test) SetCommands(n int)
- func (ct *Test) SetHTTPClients(n int)
- func (ct *Test) SetHTTPIP(ip string)
- func (ct *Test) SetHTTPPort(port string)
- func (ct *Test) SetRestClients(n int)
- func (ct *Test) SetRooms(n int)
- func (ct *Test) SetTelnetClients(n int)
- func (ct *Test) SetTelnetIP(ip string)
- func (ct *Test) SetTelnetPort(port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test represents a particular test.
func (*Test) NewHTTPClient ¶
func (ct *Test) NewHTTPClient(name string) *testclient.TestClient
NewHTTPClient returns a new TestClient using HTTP.
func (*Test) NewRestClient ¶
func (ct *Test) NewRestClient(name string) *testclient.TestClient
NewRestClient returns a new TestClient using the REST interface.
func (*Test) NewTelnetClient ¶
func (ct *Test) NewTelnetClient(name string) *testclient.TestClient
NewTelnetClient returns a new TestClient using telnet.
func (*Test) SetCommands ¶
SetCommands is for setting the number of client actions the test will run. The default number is 100.
func (*Test) SetHTTPClients ¶
SetHTTPClients is for setting the number of HTTP clients to be used in the test. The default number is 5.
func (*Test) SetHTTPIP ¶
SetHTTPIP is for setting the IP address that HTTP clients will try to connect to during the test. The default is localhost.
func (*Test) SetHTTPPort ¶
SetHTTPPort is for setting the port that HTTP clients will try to connect to during the test. The default is 8080.
func (*Test) SetRestClients ¶
SetRestClients is for setting the number of Rest clients to be used in the test. The default number is 1.
func (*Test) SetRooms ¶
SetRooms is for setting the number of chat rooms the test can create. The default number is 5.
func (*Test) SetTelnetClients ¶
SetTelnetClients is for setting the number of Telnet clients to be used in the test. The default number is 5.
func (*Test) SetTelnetIP ¶
SetTelnetIP is for setting the IP address that Telnet clients will try to connect to during the test. The default is localhost.
func (*Test) SetTelnetPort ¶
SetTelnetPort is for setting the port that Telnet Clients will try to connect to during the test. The default is 8000.