问题
JMeter extractor in taurus have property scope
(to check sub-samples)
https://gettaurus.org/docs/JMeter/#Extractorsscope: children
Could you explain what does it mean in example?
回答1:
When redirect is happening or if there are embedded resources JMeter generates so called "sub-samples" for them:
- if you want to apply your extractor to the main sample only - leave the
scope
empty - if you want to apply your extractor to children only - set the
scope
tochildren
- if you want to apply your extractor to the main sample and the children - set the
scope
toall
The above are just Taurus equivalents of JMeter's Post-Processors settings:
回答2:
EDIT
From previous post the context is to include page(s) after redirect
Main/Sub samples are JMeter extractors concept
This is for use with samplers that can generate sub-samples, e.g. HTTP Sampler with embedded resources, Mail Reader or samples generated by the Transaction Controller.
- Main sample only - only applies to the main sample
- Sub-samples only - only applies to the sub-samples
- Main sample and sub-samples - applies to both.
- JMeter Variable Name to use - assertion is to be applied to the contents of the named variable
Corresponding values in taurus
Possible value for targets are:
- all - main sample and sub-samples
- children - sub-samples
- variable for search in JMeter variables Default value of scope is empty, it means search in main sample only.
来源:https://stackoverflow.com/questions/62768906/what-does-it-mean-extractor-children-scope-in-taurus