Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteFileFixture(fileFixtureUID string, organization string) (string, error)
- func (c *Client) DownloadFileFixture(organization string, fileFixtureUID string, version string) ([]byte, error)
- func (c *Client) GetFileFixture(organization string, fileUID string) ([]byte, error)
- func (c *Client) Har(fileName string, data io.Reader) (string, error)
- func (c *Client) ListFileFixture(organization string) ([]byte, error)
- func (c *Client) ListOrganisations() ([]byte, error)
- func (c *Client) ListTestCases(organization string) (bool, []byte, error)
- func (c *Client) Login(email string, password string) (string, error)
- func (c *Client) MoveFileFixture(organization string, fileFixtureUID string, newName string) (string, error)
- func (c *Client) Ping() (bool, error)
- func (c *Client) PushFileFixture(fileName string, data io.Reader, organization string, ...) (string, error)
- func (c *Client) TestCaseCreate(organization string, testCaseName string, fileName string, data io.Reader) (bool, string, error)
- func (c *Client) TestCaseUpdate(organization string, testCaseUID string, fileName string, data io.Reader) (bool, string, error)
- func (c *Client) TestCaseValidate(organization string, fileName string, data io.Reader) (bool, string, error)
- func (c *Client) TestRunAbort(testRunUID string) (bool, string, error)
- func (c *Client) TestRunCallLog(pathID string, preview bool) (io.ReadCloser, error)
- func (c *Client) TestRunCreate(testCaseUID string, title string, notes string) (bool, string, error)
- func (c *Client) TestRunList(testCaseUID string) (TestRun, error)
- func (c *Client) TestRunShow(uid string) (TestRun, error)
- func (c *Client) TestRunWatch(uid string) (TestRun, string, error)
- type FileFixtureParams
- type TestRun
- type TestRunList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents the API client
func (*Client) DeleteFileFixture ¶ added in v0.3.0
DeleteFileFixture deletes a file fixture
func (*Client) DownloadFileFixture ¶ added in v0.3.0
func (c *Client) DownloadFileFixture(organization string, fileFixtureUID string, version string) ([]byte, error)
DownloadFileFixture retrieves the originally uploaded file
func (*Client) GetFileFixture ¶ added in v0.3.0
GetFileFixture returns a list of the organizations fixtures
func (*Client) Har ¶
Har converts the given HAR archive file into a StormForger test case definition
func (*Client) ListFileFixture ¶ added in v0.3.0
ListFileFixture returns a list of the organizations fixtures
func (*Client) ListOrganisations ¶ added in v0.3.0
ListOrganisations returns a list of organisations
func (*Client) ListTestCases ¶ added in v0.6.0
ListTestCases returns a list of test cases
func (*Client) Login ¶ added in v0.0.2
Login acquires a JWT access token for the given email/password
func (*Client) MoveFileFixture ¶ added in v0.3.0
func (c *Client) MoveFileFixture(organization string, fileFixtureUID string, newName string) (string, error)
MoveFileFixture renames a filefixtures
func (*Client) Ping ¶
Ping performs an authenticated ping to check if the API is working and the user is properly authenticated.
FIXME would be nice to return a struct
where we see the status and in case of success also the email address of the authenticated user (useful) to check if we are authenticated as the correct user
func (*Client) PushFileFixture ¶ added in v0.3.0
func (c *Client) PushFileFixture(fileName string, data io.Reader, organization string, params *FileFixtureParams) (string, error)
PushFileFixture uploads (insert or update) a file fixture
func (*Client) TestCaseCreate ¶ added in v0.6.0
func (c *Client) TestCaseCreate(organization string, testCaseName string, fileName string, data io.Reader) (bool, string, error)
TestCaseCreate will send a test case definition (JS) to the API to create it.
func (*Client) TestCaseUpdate ¶ added in v0.6.0
func (c *Client) TestCaseUpdate(organization string, testCaseUID string, fileName string, data io.Reader) (bool, string, error)
TestCaseUpdate will send a test case definition (JS) to the API to update an existing test case it.
func (*Client) TestCaseValidate ¶ added in v0.4.0
func (c *Client) TestCaseValidate(organization string, fileName string, data io.Reader) (bool, string, error)
TestCaseValidate will send a test case definition (JS) to the API to validate.
func (*Client) TestRunAbort ¶ added in v0.6.0
TestRunAbort will send a test case definition (JS) to the API to update an existing test case it.
func (*Client) TestRunCallLog ¶ added in v0.2.0
TestRunCallLog will download the first 10k lines of the test run's call log
func (*Client) TestRunCreate ¶ added in v0.6.0
func (c *Client) TestRunCreate(testCaseUID string, title string, notes string) (bool, string, error)
TestRunCreate will send a test case definition (JS) to the API to update an existing test case it.
func (*Client) TestRunList ¶ added in v0.6.0
TestRunList will list all test runs for a given test case
func (*Client) TestRunShow ¶ added in v0.6.0
TestRunShow will show some basic information on a given test run
type FileFixtureParams ¶ added in v0.3.0
FileFixtureParams represents params BLA TODO
type TestRun ¶ added in v0.6.0
type TestRun struct { ID string `jsonapi:"primary,test_runs"` Title string `jsonapi:"attr,title,omitempty"` Notes string `jsonapi:"attr,notes,omitempty"` State string `jsonapi:"attr,state,omitempty"` StartedBy string `jsonapi:"attr,started_by,omitempty"` StartedAt string `jsonapi:"attr,started_at,omitempty"` EndedAt string `jsonapi:"attr,ended_at,omitempty"` EstimatedEnd string `jsonapi:"attr,estimated_end,omitempty"` }
TestRun represents a single TestRun
type TestRunList ¶ added in v0.6.0
type TestRunList struct {
TestRuns []*TestRun
}
TestRunList is a list of TestRuns, used for index action