Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

wttech/bobcat-gradle-template

Repository files navigation

Build Status

Bobcat Gradle Template

This repository contains a Gradle template that can be used to generate Bobcat projects.

This template replaces previous Maven archetypes.

Usage guide

  1. Download or clone this project

  2. In just created local version of Bobcat Gradle Template run:

gradlew generate -i -Ptarget=<directory_for_project> -Ptemplate=<template_to_use>

Note: on Mac (or other Unix consoles, like Git Bash on Windows), use the below:

./gradlew generate -i -Ptarget=<directory_for_project> -Ptemplate=<template_to_use>

Both parameters are optional:

  • target - directory where the Bobcat project will be generated (by default it will be created inside this cloned/downloaded repository - which we don't recommend as it will be deleted each time project is generated)

  • template - determines which template from the ones available will be used to generate the project (the default template is bobcat-junit)

Available templates:

  • bobcat-junit5 - default and recommended template
  • bobcat-bdd
  • bobcat-aem-junit
  • bobcat-aem-bdd
  • bobcat-appium - still working on 1.6.0

AEM templates use the latest AEM modules available. If you would like to use earlier versions, please modify the dependency in your build.gradle

  1. Enter required variables (group name, project name, version name) in interactive mode. Package name will be created from concatenation of group and project name.

  2. Include the location of your browser driver (chromedriver/geckodriver/etc.) executable in system's PATH.

  3. Start writing your tests in Bobcat!

Templates description

Please refer to documentation available here.

How to verify if everything works?

  1. Choose your way how to run Bobcat test
  2. Run sample test (i.e. WikipediaTest from default template)

Now you are ready to write your Bobcat tests!