Documentation
¶
Overview ¶
Package postman implements a library that configures tester.Tester from Postman collections.
Instructions:
- Create a new collection in Postman
- Create your requests in Postman. Request name will be imported as tester.TestCategory
- Execute your requests and save as Example. These examples will become tester.TestScenario
- Export your collection from Postman (right click/Export) as Collection v2.1
This library will replace variables in the request/example with variables defined on the collection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTester ¶
NewTester returns a Tester initialized from a Postman collection
Example:
tester, err := postman.NewTester("testdata/sample_collection.json")
if err != nil {
t.Fatal(err)
}
defer tester.Close()
tester.Setup("user", "create_success")
_, err = c.CreateUser("user1")
if err != nil {
t.Fatal(err)
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.