Create a script by using Maven Build framework for following steps:
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Java JDK installed
- Eclipse or IntelliJ IDEA installed
- Apache Maven installed
A step by step series to get a Development Environment running
Download Java JDK
- Download the installer program from Oracle "Download Java" page: https://www.oracle.com/java/technologies/javase-jdk15-downloads.html
- Download the correspondents JDK executable file to your OS (Operating System).
- Start the Java JDK Installer executable
- Select your installation folder
Set up Java JDK environment or change the PATH system variable
- In Search, search for and then select: System (Control Panel)
- Click the Advanced system settings link.
- Click Environment Variables.
- Click new and give the follwing name: JAVA_HOME, specify the value of the environment variable to Java JDK file in the Operating System.
- In the section System Variables find the PATH environment variable and select it.
- Click Edit.
- In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable to the "bin" file of Java JDK path in the OS.
- Click OK. Close all remaining windows by clicking OK.
- Reopen Command prompt window, and run the command line: java --version
Download Eclipse Installer
- Download Eclipse Installer from http://www.eclipse.org/downloads
- Start the Eclipse Installer executable
- Select the package to install
- Select your installation folder
- Launch Eclipse
Installing Apache Maven on Windows
- Check Java Make sure you have a JDK installed on your system. Refer to Apache Maven System Requirements for details.
- Download Apache Maven
- Extract the Archive
- Create M2_HOME, MAVEN_HOME System variable (with the path to Apache Maven bin file in your System directory).
- In order to run Apache Maven, it is necessary to set up Path variable for M2_HOME, MAVEN_HOME: %M2_HOME% and %MAVEN_HOME%\bin
- Verify Apache Maven Installation In the opened CMD window, type the following command and press Enter: mvn --version
Installing Cucumber plugin in eclipse
- Cucumber plugin & Natural plugin (optional) from Eclipse Marketplace
- The Cucumber Eclipse plugin is a plugin that allows eclipse to understand the Gherkin syntax.
- The Cucumber Eclipse Plugin highlights the keywords present in Feature File.
Installing Cucumber plugin in IntelliJ
Add the following dependencies to the pom.xml file
- Cucumber-core
- Cucumber-html
- Cucumber-java
- Cucumber-junit
- Cucumber-jvm-deps
- Cucumber-reporting
- Cobertura code coverage
- Hamcrest-core
- Gherkin
- Junit
- Selenium-java
- Log4j
For the versions available, see the tags on this repository.
- Hassen Hannachi - Initial work - HassenHannachi
This project is not under any License - Open source