What does it mean extractor children scope in Taurus?

不想你离开。 提交于 2021-01-28 19:52:49

问题


JMeter extractor in taurus have property scope(to check sub-samples)

https://gettaurus.org/docs/JMeter/#Extractors
scope: 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 to children
  • if you want to apply your extractor to the main sample and the children - set the scope to all

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!