码迷,mamicode.com
首页 > 其他好文 > 详细

Jmeter源码之响应断言分析(六)

时间:2018-03-23 13:03:18      阅读:141      评论:0      收藏:0      [点我收藏+]

标签: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

原文地址:http://blog.51cto.com/13566858/2090237

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!