chowdary896 / bobcat-gradle-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

If you are working on Windows please note Git Bash console is not supporting gradle by default. On Windows you can use CMD.

  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!

About

License:Apache License 2.0


Languages

Language:Java 97.7%Language:Gherkin 2.3%