继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Jmeter源码之响应断言分析

ajax快速入门培训基础
关注TA
已关注
手记 284
粉丝 176
获赞 719

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

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP