ITPub博客

首页 > IT职业 > IT生活 > Jmeter源码之响应断言分析

Jmeter源码之响应断言分析

IT生活 作者:danielliu 时间:2021-09-09 09:52:43 0 删除 编辑

类名: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);}

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/866/viewspace-2813940/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: android设备唯一id
下一篇: 整数阶乘
请登录后发表评论 登录
全部评论

注册时间:2019-08-19

  • 博文量
    119
  • 访问量
    808