I wanted to talk about how to setup your Eclipse IDE to work with
Selenium , Maven , and TestNG . For those who do not know what
those are you can click on the link to learn more. I will be making some more
posts/tutorials on how to use these items. Eclipse can run on Mac, Linux, and
or Windows. You need to have Java installed and if you want to work with SVN
then you need the command line SVN client.
From the video below here is the list of the sites that you will need to add
to Eclipse:
Maven = http://m2eclipse.sonatype.org/sites/m2e
TestNG = http://beust.com/eclipse
Subclipse = http://subclipse.tigris.org/update_1.6.x
Here is the video. Below video I will paste the code that you want to add to
the pom.xml
Here is the code that is remaining
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<build>
<testResources>
</testResources>
<plugins>
<plugin>
<groupId> org.apache.maven.plugins</groupId>
<artifactId> maven-surefire-plugin</artifactId>
<version> 2.4.3</version>
<configuration>
<systemProperties>
<property>
<name> app.env</name>
<value> ${app.env}</value>
</property>
</systemProperties>
<excludes>
<exclude> **/TestUtilities.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId> org.apache.maven.plugins</groupId>
<artifactId> maven-compiler-plugin</artifactId>
<configuration>
<source> 1.5</source>
<target> 1.5</target>
</configuration>
</plugin>
<plugin>
<groupId> org.apache.maven.plugins</groupId>
<artifactId> maven-checkstyle-plugin</artifactId>
<version> 2.2</version>
<configuration>
<configLocation> checkstyle.xml</configLocation>
<skip> true</skip>
<failsOnError> true</failsOnError>
<consoleOutput> true</consoleOutput>
<includeTestSourceDirectory> true</includeTestSourceDirectory>
</configuration>
<executions>
<execution>
<phase> validate</phase>
<goals>
<goal> check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId> net.sf.jacob-project</groupId>
<artifactId> jacob</artifactId>
<version> 1.14.3</version>
</dependency>
<dependency>
<groupId> org.springframework</groupId>
<artifactId> spring</artifactId>
<version> 2.5.5</version>
</dependency>
<dependency>
<groupId> org.springframework</groupId>
<artifactId> spring-webmvc</artifactId>
<version> 2.5.5</version>
</dependency>
<dependency>
<groupId> org.springframework</groupId>
<artifactId> spring-test</artifactId>
<version> 2.5.3</version>
</dependency>
<dependency>
<groupId> javax.servlet.jsp</groupId>
<artifactId> jsp-api</artifactId>
<version> 2.1</version>
</dependency>
<dependency>
<groupId> log4j</groupId>
<artifactId> log4j</artifactId>
<version> 1.2.14</version>
<scope> runtime</scope>
</dependency>
<dependency>
<groupId> javax.servlet</groupId>
<artifactId> servlet-api</artifactId>
<version> 2.4</version>
</dependency>
<dependency>
<groupId> oracle</groupId>
<artifactId> oracle</artifactId>
<version> 14</version>
<scope> test</scope>
</dependency>
<dependency>
<groupId> org.testng</groupId>
<artifactId> testng</artifactId>
<version> 5.11</version>
<classifier> jdk15</classifier>
<scope> test</scope>
</dependency>
<dependency>
<groupId> org.seleniumhq.selenium</groupId>
<artifactId> selenium</artifactId>
<version> 2.0a2</version>
</dependency>
<dependency>
<groupId> org.seleniumhq.selenium</groupId>
<artifactId> selenium-server</artifactId>
<version> 2.0a2</version>
</dependency>
</dependencies>