This plugin provides support for Writing/Running Chutney scenarios files in IntelliJ IDEA based IDEs.
![welcome](./docs/Screenshot 2020-09-06 at 16.54.55.png)
- Go to File -> Settings (IntelliJ IDEA -> Preferences) and select Plugins.
- Click Install plugin from disc button and select the deployed plugin zip file. Please make sure to install the Zip file, not the extracted Jar files. This zip contains an additional library as well. Without this library, the plugin will not work properly.
- Restart IDEA.
In order to take part in Chutney plugin development, you need to:
-
Install IntelliJ IDEA 2019.3 or higher
-
Clone this repository to your computer
$ git clone https://github.com/chutney-testing/chutney-idea-plugin.git
-
Open IntelliJ IDEA, select
File -> New -> Module from existing sources
, point to the directory where Chutney plugin repository is and then import the Chutney-idea.iml. -
When importing is finished, in order to run the plugin fix the Intellij Idea Plugin SDK
- Select the IDEA run configuration and select the
Run
orDebug
button to build and start a development version of IDEA with the Scala plugin.
use the *.chutney.json as name pattern for your scenarios
The plugin use custom Chutney JSON Schemas to enable code completion in your JSON Scenarios files and validate them.
targets
SpEL
Right click on a scenario
Edit Configuration ADD/EDIT
Configure the server
You can use an embedded or a remote Chutney server.
you can open the ChutneyConfig file from the IDE by invoking Open Chutney config file action to configure your targets
The embedded server will run on a toolWindow wher you can see the logs
Show the results
click to see the difference for assertions
In the same way you can run all scenarios on a directory.
In the same way you can run multiple scenarios by selecting scenarios.
invoke [ctrl] + [j] and filter by cht-
If you copy paste HJSON content the IDE will automatically transform it to json!
if you want to paste without transformation click the cancel Button.
Configure your remote server on the setting(ctrl+alt+s) Tools>Chutney
On an empty directory call the action Get scenarios from Campaign
notification you can open the scenario on remote after successful update
When you open an Chutney Scenario File and if the scenario is different from the remote version, a notification with action is shown as below.