Load test vaadin 7.0.4 return error No UIProvider

ぐ巨炮叔叔 提交于 2019-12-06 14:05:57

It looks like that jMeter example is for Vaadin 6. Vaadin 7 refactored the servlet class, and the Application class is now the UI class. So instead of that section of the web.xml looking like this:

<servlet>
    <servlet-name>FeatureBrowser</servlet-name>
    <servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
    <init-param>
        <param-name>application</param-name>
        <param-value>com.vaadin.demo.featurebrowser.FeatureBrowser</param-value>
    </init-param>

    <init-param>
        <param-name>disable-xsrf-protection</param-name>
        <param-value>true</param-value>
    </init-param>
</servlet>

It would look like this:

<servlet>
    <servlet-name>FeatureBrowser</servlet-name>
    <servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
    <init-param>
        <param-name>UI</param-name>
        <param-value>com.vaadin.demo.featurebrowser.FeatureBrowserUI</param-value>
    </init-param>

    <init-param>
        <param-name>disable-xsrf-protection</param-name>
        <param-value>true</param-value>
    </init-param>
</servlet>

Assuming the FeatureBrowser class is renamed to FeatureBrowserUI, and subclasses the UI class, and all the other little changes Vaadin 7 introduced, as explained in the migration guide: link.

Vaadin uses a lot of technical ids, so in order to create a realistic simulation you need to correlate those ids. XSRF protection is only part of the correlation.

You can read this blog which illustrate the use of a commercial plugin for JMeter that does auto correlation for you. You just record and you can replay, all correlation is done by plugin.

Disclaimer : We are provider of this solution

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