drundanibel / gradle-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Katalon Studio's Gradle Plugin

This Gradle plugin helps simplify/automate some tasks in Katalon Studio. It is published at https://plugins.gradle.org/plugin/com.katalon.gradle-plugin.

Gradle Tasks

  • katalonCopyDependencies
  • katalonListTestCases
  • katalonListTestSuites

Sample

Please see https://github.com/katalon-studio-samples/framework-integration.

Tutorial: Automatically download dependencies for Katalon Studio projects

Install Gradle

Please follow this guide to install Gradle on your machine.

Add build.gradle file

Add a build.gradle file inside Katalon Studio project contains the below code. Dependencies can be changed or modified based on your libraries prerferences.

plugins {
  id 'java'
  id "com.katalon.gradle-plugin" version "0.0.4"
}

repositories {
  mavenCentral()
}

dependencies {
  // sample dependencies
  // rest-assured
  compile 'io.rest-assured:rest-assured:3.2.0'
  // JsonPath
  compile 'io.rest-assured:json-path:3.2.0'
  // XmlPath
  compile 'io.rest-assured:json-path:3.2.0'
  // JSON Schema Validation
  compile 'io.rest-assured:json-schema-validator:3.2.0'
}

Download the dependencies

Due to the way Java loading libraries, please close all Katalon Studio applications before execute the following command, and re-open it after the command has been completed.

gradle katalonCopyDependencies 

About


Languages

Language:Java 100.0%