Skip to content

BlazeMeterUtils guide

Artem Fedorov edited this page Nov 24, 2017 · 12 revisions

Constructor parameters

  • apiKeyId and apiKeySecret - BlazeMeter Api Key Id and BlazeMeter Api Key Secret. You can find it under your Settings => API Keys.

  • address - BlazeMeter app address: http://a.blazemeter.com/

  • dataAddress - BlazeMeter data address: http://data.blazemeter.com/

  • notifier - user notifier. Notify to user about main steps of your workflow.

  • logger - logger, for log events of http requests / response etc.

User Notifications

While your application in working you want to notify user about main stages of your process. For it you can implements UserNotifier interface and in notifyAbout() method write in which place you want to write this messages. Also, if you unneeded user notifiers you can keep this method empty. For example write these messages in console:


public class ConsoleUserNotifier implements UserNotifier {
    @Override
    public void notifyAbout(String info) {
        System.out.println(info);
    }
}

Logging

HTTP Client

If you use proxy server see instructions how to set up proxy.

Clone this wiki locally