Documentation ¶
Index ¶
- Constants
- func AddStep(s *core.Session, step *core.Step)
- func DialStep(expect string) *core.Step
- func Execute()
- func ExecuteStep(s *core.Step, session *core.Session) (string, error)
- func NewInteractiveSession(d core.DialogussConfig) *core.Session
- func NewStep(i int, text string, expect string) *core.Step
- func Run(s *core.Session) error
- func RunInteractive(s *core.Session) error
- func UnexpectedResultError(want string, have string) error
- type Dialoguss
- type DialogussCLI
- type Globals
- type RunCmd
- type SimulateCmd
- type VersionFlag
Constants ¶
View Source
const ( ApiTypeAfricastalking = "AT_USSD" ApiTypeTruroute = "TR_USSD" InteractiveDialTemplate = `Dialing app using: Phone: %s Url: %s SessionID:%s API Type: %s ` )
Variables ¶
This section is empty.
Functions ¶
func ExecuteStep ¶
Execute executes a step and returns the result of the request may return an empty string ("") upon failure
func NewInteractiveSession ¶
func NewInteractiveSession(d core.DialogussConfig) *core.Session
NewInteractiveSession creates a new interactive session that should be run using RunInteractive
func RunInteractive ¶
RunInteractive runs and interactive session that prompts ufor user input
func UnexpectedResultError ¶
UnexpectedResultError unexpected result from the USSD application
Types ¶
type Dialoguss ¶
Dialoguss the main type for interacting with dialoguss sessions
func (*Dialoguss) LoadConfig ¶
LoadConfig loads configuration from YAML
func (*Dialoguss) RunAutomatedSessions ¶
RunAutomatedSessions Loads the sessions for this application
type DialogussCLI ¶
type DialogussCLI struct { Globals Run RunCmd `cmd:"" help:"Run a dialoguss test from a file"` Simulate SimulateCmd `cmd:"" help:"Simulate interaction with a USSD server in the command-line from a file"` }
type SimulateCmd ¶
type SimulateCmd struct{}
func (*SimulateCmd) Run ¶
func (simCmd *SimulateCmd) Run(globals *Globals) error
type VersionFlag ¶
type VersionFlag string
Click to show internal directories.
Click to hide internal directories.