mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
26 lines
533 B
Go
26 lines
533 B
Go
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()
|
|
}
|