-
Notifications
You must be signed in to change notification settings - Fork 281
Initial setup
hursevich edited this page Sep 19, 2016
·
7 revisions
- Install and configure JDK 1.7
- Install and configure Apache Maven 3.3.1+
- Download and start latest Selenium standalone server
- Download the latest version of Eclipse and install TestNG plugin
- Link Eclipse workspace with Maven repo:
mvn -Dworkspace=<path_to_workspace> eclipse:configure-workspace
The easiest way to initialize new project is to you Carina archetype, you will get correct project structure along with test samples. First clone archetype repo:
git clone https://github.com/qaprosoft/carina-archetype.git
Navigate to cloned repo and execute:
mvn install
Now go to folder where you need to generate new project and execute (do not forget to set groupId, artifactId, name, url, version):
mvn archetype:generate -DarchetypeGroupId=com.qaprosoft \
-DarchetypeArtifactId=carina \
-DarchetypeVersion=1.0 \
-DgroupId=<your_groupId> \
-DartifactId=<your_artifactId> \
-Dname="<you_proj_name>" \
-Durl=<your_proj_url> \
-Dversion=<your_proj_version>
Generate eclipse workspace using command:
mvn clean eclipse:eclipse
Now you are ready to import project into eclipse.