Jmeter源码之响应断言分析

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jmeter源码之响应断言分析相关的知识,希望对你有一定的参考价值。

截图:
技术分享图片

类名:AssertionGui.java 它的祖宗是JPanel
数据结构:
{
Asserion.test_strings = [message ":"
success
],
TestElement.gui_class = org.apache.jmeter.assertions.gui.AssertionGui,
TestElement.test_class = org.apache.jmeter.assertions.ResponseAssertion,
TestElement.name = 响应断言,
TestElement.enabled = true,
Assertion.test_field = Assertion.response_data,
Assertion.assume_success = false,
Assertion.test_type = 16,
Assertion.custom_message =
}

布局代码:
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new BorderLayout());
Box box = Box.createVerticalBox();
setBorder(makeBorder());

    box.add(makeTitlePanel());
    box.add(createScopePanel(true));
    box.add(createFieldPanel());
    box.add(createTypePanel());
    add(box, BorderLayout.NORTH);
    add(createStringPanel(), BorderLayout.CENTER);
    add(createCustomAssertionMessagePanel(), BorderLayout.SOUTH);
}

以上是关于Jmeter源码之响应断言分析的主要内容,如果未能解决你的问题,请参考以下文章

性能测试-JMeter断言之响应断言精说

JMeter断言处理之响应断言

jmeter之beanshell断言---数据处理

JMeter 检查点之响应断言(Response Assertion)

Jmeter接口之响应断言详解

Jmeter之断言(3种)