mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 14:59:38 +08:00
init HttpBommer ✨🍰✨
This commit is contained in:
25
extract.go
Normal file
25
extract.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package httpboomer
|
||||
|
||||
// implements IStep interface
|
||||
type StepRequestExtraction struct {
|
||||
*TStep
|
||||
}
|
||||
|
||||
func (req *StepRequestExtraction) WithJmesPath(jmesPath string, varName string) *StepRequestExtraction {
|
||||
req.TStep.Extract[varName] = jmesPath
|
||||
return req
|
||||
}
|
||||
|
||||
func (req *StepRequestExtraction) Validate() *StepRequestValidation {
|
||||
return &StepRequestValidation{
|
||||
TStep: req.TStep,
|
||||
}
|
||||
}
|
||||
|
||||
func (req *StepRequestExtraction) ToStruct() *TStep {
|
||||
return req.TStep
|
||||
}
|
||||
|
||||
func (req *StepRequestExtraction) Run() error {
|
||||
return req.TStep.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user