Skip to content

PerfectoMobileSA/MavenCircleCISample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perfecto + Maven + Testng + Java Sample Project: CircleCI status

This sample project is designed to get you up and running within few simple steps.

Begin with installing the dependencies below, and continue with the Getting Started procedure below.

Dependencies

There are several prerequisite dependencies you should install on your machine prior to starting to work with this project:

Eclipse users should also install:

  1. Maven Plugin

  2. TestNG Plugin

IntelliJ IDEA users should also install:

  1. Maven Plugin for IDEA

TestNG Plugin is built-in in the IntelliJ IDEA, from version 7 onwards.

Optional Installations

  • For source control management, you can install git.

Downloading the Sample Project

  • Clone this repository.

  • After downloading and unzipping the project to your computer, open it from your IDE by choosing the folder containing the pom.xml

Getting Started

  • Configure the name of your Perfecto cloud as a system variable by passing your cloud name as a -DcloudName=<> from Maven system property while running the install goal of Maven or simply hardcode your cloud name in the script.

  • Configure your security token from Maven by passing the -DsecurityToken=<> system property while running the install goal of Maven or simply hardcode it.

  • Run pom.xml with the below maven goals & properties

      clean
      install
      -DcloudName=${cloudName}
      -DsecurityToken=${securityToken}
    
  • Maven will take care of kick starting the parallel execution of different examples inside perfecto package in parallel.

Circle CI Integration:

  • This project contains a .yml file under .circleci / config.yml which will help CircleCI’s webhooks to listen for git updates.
  • It will also print the suite level report at the end of execution.
  • It is configured to schedule everyday at 12:00am UTC.
  • The current build status of CircleCI in github will be showcased in readme.md file. Here's how to set it up.