I am trying to run a test recorded as har script from browser and imported to the project in Intellij IDE. When I am running the project it is giving error:
object gatling is not a member of package io import io.gatling.app.Gatling
Below is the screenshot attached.
Any leads would be helpful.
As noted in my comment on your question, you need to add the Gatling package into your Maven build configuration in the pom.xml
file. The IntelliJ Idea help page on Maven has instructions to add a Maven package:
Add a new Maven module to an existing project
You can add a Maven module to the project in which you are already working.
- In the Project tool window, right-click the project folder and select New | Module.
- Alternatively, from the main menu, select File | New | Module to open the New Module wizard.
If you used main menu to add a module then the process of adding a module is the same as Creating a new Maven project.
If you are adding sub modules by right-clicking the root folder then the process of adding a new module is shorter.
- You need to specify the name of your module in the Name field. The rest of the information is added automatically and you can use either the default settings or change them according to your preferences.