LoginSignup
4
2

More than 5 years have passed since last update.

sbtからGatling

Last updated at Posted at 2016-06-18

sbtからGatlingによる負荷テストが実施できるようにするための手順

なぜsbtからGatlingによるテスト実施がしたかったか

テストシナリオをブラウザ操作記録ではなく、自力作成する際にIDEで作成したかったのが大きな動機でした

環境準備

デモプロジェクト取得

gatling-sbt-plugin-demo が公開されているのでこのプロジェクトを利用しました。

今回はデモプロジェクトをforkし作業を進めます。
作業に利用したプロジェクトはこちらです。作業用プロジェクト

テスト実行

以下コマンドでテスト実行できれば環境構築は完了です。

$ sbt
> gatling:test

代表的なコマンド

ブラウザ操作記録開始

> startRecorder

テスト結果レポート表示

> lastReport

configファイル作成

gatling.conf、recorder.confが存在しない場合、作成してくれます。

> copyConfigFiles

ログ設定フィアル作成

デフォルト設定のlogback.xmlを作成してくれます。

> copyLogbackXml
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2