This repository contains a Gradle template that can be used to generate Bobcat projects.
This template replaces previous Maven archetypes.
-
Download or clone this project
-
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 isbobcat-junit
)
Available templates:
bobcat-junit5
- default and recommended templatebobcat-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
-
Enter required variables (group name, project name, version name) in interactive mode. Package name will be created from concatenation of group and project name.
-
Include the location of your browser driver (chromedriver/geckodriver/etc.) executable in system's PATH.
-
Start writing your tests in Bobcat!
Please refer to documentation available here.
- Choose your way how to run Bobcat test
- Run sample test (i.e. WikipediaTest from default template)