Skip to content

Commit 8fd32d2

Browse files
authored
Merge pull request #36 from mindstix-labs/dev_kalpeshc
Mail notifications for test output
2 parents 19d4a69 + 41d0880 commit 8fd32d2

File tree

9 files changed

+339
-101
lines changed

9 files changed

+339
-101
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,26 @@ And you can drill down into tag specific reports:
127127
128128
# License
129129
> Licensed under [MIT license](https://github.com/mindstix-labs/qa-automation-accelerator/blob/master/LICENSE)
130+
```
131+
MIT License
132+
133+
Copyright (c) 2018 Mindstix Software Labs, Inc.
134+
135+
Permission is hereby granted, free of charge, to any person obtaining a copy
136+
of this software and associated documentation files (the "Software"), to deal
137+
in the Software without restriction, including without limitation the rights
138+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
139+
copies of the Software, and to permit persons to whom the Software is
140+
furnished to do so, subject to the following conditions:
141+
142+
The above copyright notice and this permission notice shall be included in all
143+
copies or substantial portions of the Software.
144+
145+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
146+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
147+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
148+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
149+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
150+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
151+
SOFTWARE.
152+
```

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ dependencies {
3232
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: jacksonDataformatVersion
3333
compile group: 'org.yaml', name: 'snakeyaml', version: snakeYamlVersion
3434
compile group: 'io.github.bonigarcia', name: 'webdrivermanager', version: webDriverManagerVersion
35+
compile group: 'javax.mail', name: 'mail', version: javaMailVersion
36+
compile group: 'org.freemarker', name: 'freemarker', version: freemarkerVersion
3537
}
3638

3739
test {

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ snakeYamlVersion = 1.8
1616
courgettVersion = 1.4.3
1717
webDriverManagerVersion = 2.0.1
1818
restAssuredVersion = 3.0.6
19+
javaMailVersion = 1.4.1
20+
freemarkerVersion = 2.3.27-incubating

pom.xml

Lines changed: 101 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,55 @@
1-
<!--
2-
~ Copyright (c) 2017 Mindstix Inc.
3-
-->
1+
<!-- ~ Copyright (c) 2017 Mindstix Inc. -->
42

5-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
6-
<modelVersion>4.0.0</modelVersion>
7-
<groupId>com.mindstix.automation</groupId>
8-
<artifactId>selenium-accelerator</artifactId>
9-
<version>0.0.1-SNAPSHOT</version>
3+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.mindstix.automation</groupId>
7+
<artifactId>selenium-accelerator</artifactId>
8+
<version>0.0.1-SNAPSHOT</version>
109

11-
<properties>
12-
<env.browser>chrome</env.browser>
13-
<env.driverPath>drivers/linux/chromedriver_2_33</env.driverPath>
14-
<env.urlPrefix>www</env.urlPrefix>
15-
<env.targetDomain>.automationpractice.com</env.targetDomain>
16-
<env.mode>normal</env.mode>
17-
<env.hubIP>172.17.0.2:4444</env.hubIP>
18-
<env.threadCount>4</env.threadCount>
19-
</properties>
20-
21-
<repositories>
22-
<repository>
23-
<id>jcenter</id>
24-
<url>https://jcenter.bintray.com/</url>
25-
</repository>
26-
</repositories>
27-
28-
<dependencies>
29-
<dependency>
30-
<groupId>io.github.prashant-ramcharan</groupId>
31-
<artifactId>courgette-jvm</artifactId>
32-
<version>1.4.0</version>
10+
<properties>
11+
<env.browser>chrome</env.browser>
12+
<env.driverPath>drivers/linux/chromedriver_2_33</env.driverPath>
13+
<env.urlPrefix>www</env.urlPrefix>
14+
<env.targetDomain>.automationpractice.com</env.targetDomain>
15+
<env.mode>normal</env.mode>
16+
<env.hubIP>172.17.0.2:4444</env.hubIP>
17+
<env.threadCount>4</env.threadCount>
18+
</properties>
19+
20+
<repositories>
21+
<repository>
22+
<id>jcenter</id>
23+
<url>https://jcenter.bintray.com/</url>
24+
</repository>
25+
</repositories>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>io.github.prashant-ramcharan</groupId>
30+
<artifactId>courgette-jvm</artifactId>
31+
<version>1.4.0</version>
3332
</dependency>
3433
<dependency>
3534
<groupId>junit</groupId>
3635
<artifactId>junit</artifactId>
3736
<version>4.12</version>
3837
</dependency>
3938
<dependency>
40-
<groupId>org.apache.maven.plugins</groupId>
41-
<artifactId>maven-compiler-plugin</artifactId>
42-
<version>3.5</version>
43-
<type>maven-plugin</type>
39+
<groupId>org.apache.maven.plugins</groupId>
40+
<artifactId>maven-compiler-plugin</artifactId>
41+
<version>3.5</version>
42+
<type>maven-plugin</type>
4443
</dependency>
4544
<dependency>
4645
<groupId>org.seleniumhq.selenium</groupId>
4746
<artifactId>selenium-java</artifactId>
4847
<version>3.4.0</version>
4948
</dependency>
5049
<dependency>
51-
<groupId>io.github.bonigarcia</groupId>
52-
<artifactId>webdrivermanager</artifactId>
53-
<version>2.0.1</version>
50+
<groupId>io.github.bonigarcia</groupId>
51+
<artifactId>webdrivermanager</artifactId>
52+
<version>2.0.1</version>
5453
</dependency>
5554
<dependency>
5655
<groupId>info.cukes</groupId>
@@ -71,14 +70,14 @@
7170
<scope>test</scope>
7271
</dependency>
7372
<dependency>
74-
<groupId>org.slf4j</groupId>
75-
<artifactId>slf4j-api</artifactId>
76-
<version>1.7.13</version>
73+
<groupId>org.slf4j</groupId>
74+
<artifactId>slf4j-api</artifactId>
75+
<version>1.7.13</version>
7776
</dependency>
7877
<dependency>
79-
<groupId>org.slf4j</groupId>
80-
<artifactId>slf4j-log4j12</artifactId>
81-
<version>1.7.13</version>
78+
<groupId>org.slf4j</groupId>
79+
<artifactId>slf4j-log4j12</artifactId>
80+
<version>1.7.13</version>
8281
</dependency>
8382
<dependency>
8483
<groupId>org.seleniumhq.selenium</groupId>
@@ -91,76 +90,85 @@
9190
<version>3.4.0</version>
9291
</dependency>
9392
<dependency>
94-
<groupId>com.googlecode.json-simple</groupId>
95-
<artifactId>json-simple</artifactId>
96-
<version>1.1.1</version>
93+
<groupId>com.googlecode.json-simple</groupId>
94+
<artifactId>json-simple</artifactId>
95+
<version>1.1.1</version>
9796
</dependency>
98-
97+
9998
<!-- https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-mapper-asl -->
10099
<dependency>
101-
<groupId>org.codehaus.jackson</groupId>
102-
<artifactId>jackson-mapper-asl</artifactId>
103-
<version>1.5.0</version>
100+
<groupId>org.codehaus.jackson</groupId>
101+
<artifactId>jackson-mapper-asl</artifactId>
102+
<version>1.5.0</version>
104103
</dependency>
105104
<!-- https://mvnrepository.com/artifact/org.json/json -->
106105
<dependency>
107-
<groupId>org.json</groupId>
108-
<artifactId>json</artifactId>
109-
<version>20090211</version>
106+
<groupId>org.json</groupId>
107+
<artifactId>json</artifactId>
108+
<version>20090211</version>
110109
</dependency>
111110
<!-- Snakeyaml Dependancies -->
112111
<dependency>
113-
<groupId>org.yaml</groupId>
114-
<artifactId>snakeyaml</artifactId>
115-
<version>1.8</version>
112+
<groupId>org.yaml</groupId>
113+
<artifactId>snakeyaml</artifactId>
114+
<version>1.8</version>
115+
</dependency>
116+
<dependency>
117+
<groupId>javax.mail</groupId>
118+
<artifactId>mail</artifactId>
119+
<version>1.4.1</version>
120+
</dependency>
121+
<dependency>
122+
<groupId>org.freemarker</groupId>
123+
<artifactId>freemarker</artifactId>
124+
<version>2.3.27-incubating</version>
116125
</dependency>
117126

118-
119127
</dependencies>
120-
<build>
121-
<resources>
122-
<resource>
123-
<directory>src/test/resources</directory>
124-
<filtering>true</filtering>
125-
</resource>
126-
</resources>
127-
<plugins>
128+
<build>
129+
<resources>
130+
<resource>
131+
<directory>src/test/resources</directory>
132+
<filtering>true</filtering>
133+
</resource>
134+
</resources>
135+
<plugins>
128136
<plugin>
129137
<groupId>org.apache.maven.plugins</groupId>
130-
<artifactId>maven-compiler-plugin</artifactId>
131-
<version>3.7.0</version>
138+
<artifactId>maven-compiler-plugin</artifactId>
139+
<version>3.7.0</version>
132140
<configuration>
133141
<source>1.8</source>
134142
<target>1.8</target>
135143
</configuration>
136144
</plugin>
137145
<plugin>
138-
<groupId>org.apache.maven.plugins</groupId>
139-
<artifactId>maven-surefire-plugin</artifactId>
140-
<version>2.14.1</version>
141-
<configuration>
142-
<systemPropertyVariables>
143-
<env.hubIP>${env.hubIP}</env.hubIP>
144-
<env.urlPrefix>${env.urlPrefix}</env.urlPrefix>
145-
<env.mode>${env.mode}</env.mode>
146-
<env.browser>${env.browser}</env.browser>
147-
<env.driverPath>${env.driverPath}</env.driverPath>
148-
<env.baseURL>https://${env.urlPrefix}${env.targetDomain}</env.baseURL>
149-
</systemPropertyVariables>
150-
<skip>false</skip>
151-
<forkCount>${env.threadCount}</forkCount>
152-
<reuseForks>true</reuseForks>
153-
<argLine>-Duser.language=en</argLine>
154-
<argLine>-Xmx1024m</argLine>
155-
<argLine>-XX:MaxPermSize=256m</argLine>
156-
<argLine>-Dfile.encoding=UTF-8</argLine>
157-
<useFile>false</useFile>
158-
<includes>
159-
<include>**/*Runner.java</include>
160-
</includes>
161-
</configuration>
162-
</plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-surefire-plugin</artifactId>
148+
<version>2.14.1</version>
149+
<configuration>
150+
<systemPropertyVariables>
151+
<env.hubIP>${env.hubIP}</env.hubIP>
152+
<env.urlPrefix>${env.urlPrefix}</env.urlPrefix>
153+
<env.mode>${env.mode}</env.mode>
154+
<env.browser>${env.browser}</env.browser>
155+
<env.driverPath>${env.driverPath}</env.driverPath>
156+
<env.baseURL>https://${env.urlPrefix}${env.targetDomain}</env.baseURL>
157+
</systemPropertyVariables>
158+
<skip>false</skip>
159+
<forkCount>${env.threadCount}</forkCount>
160+
<reuseForks>true</reuseForks>
161+
<argLine>-Duser.language=en</argLine>
162+
<argLine>-Xmx1024m</argLine>
163+
<argLine>-XX:MaxPermSize=256m</argLine>
164+
<argLine>-Dfile.encoding=UTF-8</argLine>
165+
<useFile>false</useFile>
166+
<includes>
167+
<include>**/*Runner.java</include>
168+
</includes>
169+
</configuration>
170+
</plugin>
163171
</plugins>
164172
</build>
165-
173+
166174
</project>

readme.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
NOTE: This document may be outdated - Please refer README.md or Wiki
2+
13
------------------------------Pre-Requisites---------------------------------------------
24
- Java 8 (lower version will not work since Selenium 3.5.3 needs Java 8)
35
- docker, docker-compose - If utilizing the selenium-grid features, then need latest version of docker, docker-compose
@@ -8,15 +10,15 @@
810

911
------------------------Project Setup --------------------------------------------------
1012

11-
1. Open terminal and run the following command to pull down a copy of the 'selenium-accelerator' repo :
13+
1. Open terminal and run the following command to pull down a copy of the 'qa-automation-accelerator' repo :
1214

13-
git clone https://github.com/mindstix-labs/selenium-accelerator.git
15+
git clone https://github.com/mindstix-labs/qa-automation-accelerator.git
1416

15-
2. Navigate to 'selenium-accelerator' directory and run following command to generate project structure based on your IDE:
17+
2. Navigate to 'qa-automation-accelerator' directory and run following command to generate project structure based on your IDE:
1618

1719
./gradlew eclipse OR ./gradlew idea
1820

19-
3. Open 'selenium-accelerator' in Eclipse by doing : File > Import > Existing Projects into Workspace and browse to the ‘selenium-accelerator’ folder and open it.
21+
3. Open 'qa-automation-accelerator' in Eclipse by doing : File > Import > Existing Projects into Workspace and browse to the ‘qa-automation-accelerator’ folder and open it.
2022

2123
4. To download gradle on system and to build project execute the following command :
2224

0 commit comments

Comments
 (0)