Run Load Test


Edit gatling home path

  1. Download Gatling v3.6.0.

  2. Go to the Settings configuration page under Administration.

  3. Type your gatling installation path in Gatling Home Path.

Import a sample test project

  1. Click the Sample Project button in the project tab.

  2. Fill import form according to following table.

    Parameter Description
    Server Server environment
    Process App Process app list of the selected server, default value is “Hiring Sample”
    Selenium Hub Support chrome, firefox selenium node
  3. Click Import button.

  4. Click _Hring Sample from project list and enter into project dashboard.

    The default sample project contains two suites: Create Position Request CSHS and Standard HR Open New Position.

Edit engine properties

  1. Click the Edit button to edit project.

  2. Click Advance and type the following parameter in Engine Properties:

Replay a test case

  1. Click project name to get into this project, click the case1 under Create Position Request CSHS package. Click Record button on the right of case name to replay it.

  2. Do not click button. Let it run from the first step to last step.

  3. In the Debug step which has in front of it, the record will be stopped. You need to click button to resume.

  4. When all the steps are finished, the recorder will automatically close, and there will be an extra button on the page named Load Test. The Load Test button is only displayed after the test case is replayed from the first to the last step.

Run test case load test

  1. Click Load Test button on the right of case name.

  2. Pop up a strategy selection window. Here we use the atOnceUsers strategy and set proper the number of users.

    We provide two strategies for usage.

    • atOnceUsers(nbUsers): Injects a given number of users at once.

    • rampUsers(nbUsers) during(duration): Injects a given number of users distributed evenly on a time window of a given duration.

    In advance tab

    • Change the default assertion value to meet load case scenario statistic.If any assertion is failed,the whole load test case is failed.
    • Change the log level for the loading testing. You can download the load testing log in the performance report tab page.
    • Switch on Check BAW Product Requests to include BAW product internal requests(i.e JS/CSS/Image resources and Portal requests loaded by BAW) in the Load Test Report. The default value is off.

  3. Click Run button to start the load test.

  4. After the load test finished, click the small arrow next to Load Test button, switch the option to View Report.

  5. Click View Report button to see the Load Test Report.

Check load test case data

  1. Sometimes when you click Load Test button on the right of case name, you might see some warning on the page. If you see the below screenshot, it means the recorded network information is incorrect. You need to use IDA plug-in to replay the test case again.

  2. If you see the below error, it means your record load test data is out of sync. You also need to use IDA plug-in replay the test case again.

Note the Load Test feature currently has the following limitations:

  • Frequently used test commands in the BPM category are supported.
  • Most test commands in the UI category are supported.
  • Assertion and Utility commands are not supported yet.

Categories:

Updated: