chattest

package
Version: v0.0.0-...-4f83aec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 New

func New(t *testing.T) *Test

New creates a new test with default values.

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) Run

func (ct *Test) Run()

Run starts the test.

func (*Test) SetCommands

func (ct *Test) SetCommands(n int)

SetCommands is for setting the number of client actions the test will run. The default number is 100.

func (*Test) SetHTTPClients

func (ct *Test) SetHTTPClients(n int)

SetHTTPClients is for setting the number of HTTP clients to be used in the test. The default number is 5.

func (*Test) SetHTTPIP

func (ct *Test) SetHTTPIP(ip string)

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

func (ct *Test) SetHTTPPort(port string)

SetHTTPPort is for setting the port that HTTP clients will try to connect to during the test. The default is 8080.

func (*Test) SetRestClients

func (ct *Test) SetRestClients(n int)

SetRestClients is for setting the number of Rest clients to be used in the test. The default number is 1.

func (*Test) SetRooms

func (ct *Test) SetRooms(n int)

SetRooms is for setting the number of chat rooms the test can create. The default number is 5.

func (*Test) SetTelnetClients

func (ct *Test) SetTelnetClients(n int)

SetTelnetClients is for setting the number of Telnet clients to be used in the test. The default number is 5.

func (*Test) SetTelnetIP

func (ct *Test) SetTelnetIP(ip string)

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

func (ct *Test) SetTelnetPort(port string)

SetTelnetPort is for setting the port that Telnet Clients will try to connect to during the test. The default is 8000.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL