Skip to content

Commit 2bd39f5

Browse files
committed
latest commit with reports and more utilities
1 parent b962230 commit 2bd39f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3008
-214
lines changed

.gitignore

+65
Original file line numberDiff line numberDiff line change
@@ -1 +1,66 @@
11
/target/
2+
/target/
3+
/target/
4+
/target/
5+
/target/
6+
/target/
7+
/target/
8+
/target/
9+
/target/
10+
/target/
11+
/target/
12+
/target/
13+
/target/
14+
/target/
15+
/target/
16+
/target/
17+
/target/
18+
/target/
19+
/target/
20+
/target/
21+
/target/
22+
/target/
23+
/target/
24+
/target/
25+
/target/
26+
/target/
27+
/target/
28+
/target/
29+
/target/
30+
/target/
31+
/target/
32+
/target/
33+
/target/
34+
/target/
35+
/target/
36+
/target/
37+
/target/
38+
/target/
39+
/target/
40+
/target/
41+
/target/
42+
/target/
43+
/target/
44+
/target/
45+
/target/
46+
/target/
47+
/target/
48+
/target/
49+
/target/
50+
/target/
51+
/target/
52+
/target/
53+
/target/
54+
/target/
55+
/target/
56+
/target/
57+
/target/
58+
/target/
59+
/target/
60+
/target/
61+
/target/
62+
/target/
63+
/target/
64+
/target/
65+
/target/
66+
/target/

ChromeDriver/chromedriver.exe

6.06 MB
Binary file not shown.

Screenshots/Login.png

1.16 KB
Loading

TestExtentReports/TestExtentReport.html

+511
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/* cyrillic-ext */
2+
@font-face {
3+
font-family: 'Source Sans Pro';
4+
font-style: normal;
5+
font-weight: 400;
6+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lqDY.woff2) format('woff2');
7+
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
8+
}
9+
/* cyrillic */
10+
@font-face {
11+
font-family: 'Source Sans Pro';
12+
font-style: normal;
13+
font-weight: 400;
14+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lqDY.woff2) format('woff2');
15+
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
16+
}
17+
/* greek-ext */
18+
@font-face {
19+
font-family: 'Source Sans Pro';
20+
font-style: normal;
21+
font-weight: 400;
22+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lqDY.woff2) format('woff2');
23+
unicode-range: U+1F00-1FFF;
24+
}
25+
/* greek */
26+
@font-face {
27+
font-family: 'Source Sans Pro';
28+
font-style: normal;
29+
font-weight: 400;
30+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lqDY.woff2) format('woff2');
31+
unicode-range: U+0370-03FF;
32+
}
33+
/* vietnamese */
34+
@font-face {
35+
font-family: 'Source Sans Pro';
36+
font-style: normal;
37+
font-weight: 400;
38+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lqDY.woff2) format('woff2');
39+
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
40+
}
41+
/* latin-ext */
42+
@font-face {
43+
font-family: 'Source Sans Pro';
44+
font-style: normal;
45+
font-weight: 400;
46+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lqDY.woff2) format('woff2');
47+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
48+
}
49+
/* latin */
50+
@font-face {
51+
font-family: 'Source Sans Pro';
52+
font-style: normal;
53+
font-weight: 400;
54+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2');
55+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
56+
}
57+
/* cyrillic-ext */
58+
@font-face {
59+
font-family: 'Source Sans Pro';
60+
font-style: normal;
61+
font-weight: 600;
62+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmhduz8A.woff2) format('woff2');
63+
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
64+
}
65+
/* cyrillic */
66+
@font-face {
67+
font-family: 'Source Sans Pro';
68+
font-style: normal;
69+
font-weight: 600;
70+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwkxduz8A.woff2) format('woff2');
71+
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
72+
}
73+
/* greek-ext */
74+
@font-face {
75+
font-family: 'Source Sans Pro';
76+
font-style: normal;
77+
font-weight: 600;
78+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmxduz8A.woff2) format('woff2');
79+
unicode-range: U+1F00-1FFF;
80+
}
81+
/* greek */
82+
@font-face {
83+
font-family: 'Source Sans Pro';
84+
font-style: normal;
85+
font-weight: 600;
86+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlBduz8A.woff2) format('woff2');
87+
unicode-range: U+0370-03FF;
88+
}
89+
/* vietnamese */
90+
@font-face {
91+
font-family: 'Source Sans Pro';
92+
font-style: normal;
93+
font-weight: 600;
94+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmBduz8A.woff2) format('woff2');
95+
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
96+
}
97+
/* latin-ext */
98+
@font-face {
99+
font-family: 'Source Sans Pro';
100+
font-style: normal;
101+
font-weight: 600;
102+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmRduz8A.woff2) format('woff2');
103+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
104+
}
105+
/* latin */
106+
@font-face {
107+
font-family: 'Source Sans Pro';
108+
font-style: normal;
109+
font-weight: 600;
110+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu.woff2) format('woff2');
111+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
112+
}

TestExtentReports/TestExtentReport_files/extent.css

+619
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TestExtentReports/TestExtentReport_files/extent.js.download

+507
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* fallback */
2+
@font-face {
3+
font-family: 'Material Icons';
4+
font-style: normal;
5+
font-weight: 400;
6+
src: url(https://fonts.gstatic.com/s/materialicons/v36/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
7+
}
8+
9+
.material-icons {
10+
font-family: 'Material Icons';
11+
font-weight: normal;
12+
font-style: normal;
13+
font-size: 24px;
14+
line-height: 1;
15+
letter-spacing: normal;
16+
text-transform: none;
17+
display: inline-block;
18+
white-space: nowrap;
19+
word-wrap: normal;
20+
direction: ltr;
21+
-webkit-font-feature-settings: 'liga';
22+
-webkit-font-smoothing: antialiased;
23+
}

extent-config.xml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extentreports>
3+
<configuration>
4+
<!-- report theme -->
5+
<!-- standard, dark -->
6+
<theme>standard</theme>
7+
8+
<!-- document encoding -->
9+
<!-- defaults to UTF-8 -->
10+
<encoding>UTF-8</encoding>
11+
12+
<!-- protocol for script and stylesheets -->
13+
<!-- defaults to https -->
14+
<protocol>https</protocol>
15+
16+
<!-- title of the document -->
17+
<documentTitle>Extent</documentTitle>
18+
19+
<!-- report name - displayed at top-nav -->
20+
<reportName>Automation Report</reportName>
21+
22+
<!-- location of charts in the test view -->
23+
<!-- top, bottom -->
24+
<testViewChartLocation>bottom</testViewChartLocation>
25+
26+
<!-- settings to enable/disable views -->
27+
<!-- professional version only -->
28+
<enableCategoryView>true</enableCategoryView>
29+
<enableAuthorView>false</enableAuthorView>
30+
<enableExceptionView>true</enableExceptionView>
31+
<enableTestRunnerLogsView>true</enableTestRunnerLogsView>
32+
33+
<!-- custom javascript -->
34+
<scripts>
35+
<![CDATA[
36+
$(document).ready(function() {
37+
38+
});
39+
]]>
40+
</scripts>
41+
42+
<!-- custom styles -->
43+
<styles>
44+
<![CDATA[
45+
46+
]]>
47+
</styles>
48+
</configuration>
49+
</extentreports>

pom.xml

+15-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
<scope>test</scope>
2020
</dependency>
2121

22+
<dependency>
23+
<groupId>xml-apis</groupId>
24+
<artifactId>xml-apis</artifactId>
25+
<version>1.4.01</version>
26+
</dependency>
27+
2228
<dependency>
2329
<groupId>info.cukes</groupId>
2430
<artifactId>cucumber-junit</artifactId>
@@ -33,10 +39,10 @@
3339
</dependency>
3440

3541
<dependency>
36-
<groupId>org.testng</groupId>
37-
<artifactId>testng</artifactId>
38-
<version>6.13.1</version>
39-
<scope>test</scope>
42+
<groupId>org.testng</groupId>
43+
<artifactId>testng</artifactId>
44+
<version>6.14.3</version>
45+
<scope>test</scope>
4046
</dependency>
4147

4248
<dependency>
@@ -88,6 +94,11 @@
8894
<version>1.1.5</version>
8995
</dependency>
9096

97+
<dependency>
98+
<groupId>com.aventstack</groupId>
99+
<artifactId>extentreports</artifactId>
100+
<version>3.1.5</version>
101+
</dependency>
91102

92103
</dependencies>
93104

src/test/java/cucumberStepDefinitionPackage/loginStepDefinition.java

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
public class loginStepDefinition {
1111

12+
//BrowserFactory browserObj;
13+
1214
@Given("^I have launched the browser and entered the URL$")
1315
public void i_have_launched_the_browser_and_entered_the_URL() throws Throwable {
1416
//Initiate driver and launch url
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package helperPackage;
2+
3+
import java.util.ArrayList;
4+
import java.util.List;
5+
6+
import org.testng.TestNG;
7+
8+
public class RetryFailedTests {
9+
10+
//This method will execute the failed test cases from the TestNG test output
11+
public void executeFailedTests()
12+
{
13+
TestNG runner = new TestNG();
14+
15+
List<String> list = new ArrayList<String>();
16+
17+
list.add("C:\\Users\\Kumar\\workspace\\SampleProject\\com.sampleAutomationFramework\\test-output\\Suite\\testng-failed.xml");
18+
19+
runner.setTestSuites(list);
20+
21+
runner.run();
22+
}
23+
24+
25+
}

src/test/java/pagesPackage/HomePage.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import helperPackage.BrowserFactory;
1212

1313
public class HomePage {
14-
14+
//BrowserFactory browserObj;
15+
1516
//POM constructor
1617
public HomePage()
1718
{

src/test/java/pagesPackage/LoginPage.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
import utilityPackage.ScreenShot;
1414

1515
public class LoginPage {
16-
16+
//BrowserFactory browserObj;
1717
//driver constructor for the page
1818
public LoginPage()
1919
{
20+
//browserObj = new BrowserFactory();
2021
PageFactory.initElements(BrowserFactory.driver, this);
2122
}
2223

@@ -39,7 +40,7 @@ public LoginPage()
3940
public void loginSteps()
4041
{
4142

42-
ExcelDataConfig excel = new ExcelDataConfig(ConfigReader.getExcelPath());
43+
ExcelDataConfig excel = new ExcelDataConfig("./TestData/TestData.xlsx");
4344

4445
//Send Value to the UserName textBox
4546
Username.sendKeys(excel.getData("Login", 1, 0));

0 commit comments

Comments
 (0)