-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added more code with D and while with feet in water
- Loading branch information
Sharma
authored and
Sharma
committed
Sep 18, 2022
0 parents
commit 419f6cd
Showing
27 changed files
with
1,866 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" output="target/classes" path="src/main/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="test" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>nocommerceCucumber</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
eclipse.preferences.version=1 | ||
encoding//src/test/java=UTF-8 | ||
encoding/<project>=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
org.eclipse.jdt.core.compiler.compliance=1.8 | ||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore | ||
org.eclipse.jdt.core.compiler.release=disabled | ||
org.eclipse.jdt.core.compiler.source=1.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
browser=chrome | ||
chromepath=./Drivers\\chromedriver.exe | ||
iepath=./Drivers\\IEDriverServer.exe | ||
firefoxpath=./Drivers\\geckodriver.exe |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Feature: Customers | ||
|
||
Background: backround steps | ||
Given User Launch Chrome browser | ||
When User opens URL "http://admin-demo.nopcommerce.com/login" | ||
And User enters Email as "admin@yourstore.com" and Password as "admin" | ||
And Click on Login | ||
Then User can view Dashboad | ||
|
||
|
||
@sanity | ||
Scenario: Add new Customer | ||
When User click on customers Menu | ||
And click on customers Menu Item | ||
And click on Add new button | ||
Then User can view Add new customer page | ||
When User enter customer info | ||
And click on Save button | ||
Then User can view confirmation message "The new customer has been added successfully." | ||
And close browser | ||
|
||
@regression | ||
Scenario: Search Customer by EMailID | ||
When User click on customers Menu | ||
And click on customers Menu Item | ||
And Enter customer EMail | ||
When Click on search button | ||
Then User should found Email in the Search table | ||
And close browser | ||
|
||
@regression | ||
Scenario: Search Customer by Name | ||
When User click on customers Menu | ||
And click on customers Menu Item | ||
And Enter customer FirstName | ||
And Enter customer LastName | ||
When Click on search button | ||
Then User should found Name in the Search table | ||
And close browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Feature: Login | ||
|
||
@sanity | ||
Scenario: Successful Login with Valid Credentials | ||
Given User Launch Chrome browser | ||
When User opens URL "http://admin-demo.nopcommerce.com/login" | ||
And User enters Email as "admin@yourstore.com" and Password as "admin" | ||
And Click on Login | ||
Then Page Title should be "Dashboard / nopCommerce administration" | ||
When User click on Log out link | ||
Then Page Title should be "Your store. Login" | ||
And close browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
2019-10-19 06:59:22,049 INFO [main] nopcommerce:39 - ********* Launching browser*************** | ||
2019-10-19 06:59:22,115 INFO [main] nopcommerce:45 - ********* Opening URL*************** | ||
2019-10-19 06:59:26,022 INFO [main] nopcommerce:53 - ********* Proving user info *************** | ||
2019-10-19 06:59:36,257 INFO [main] nopcommerce:67 - *********Login Validation starts *************** | ||
2019-10-19 06:59:36,653 INFO [main] nopcommerce:76 - *********Login successfull *************** | ||
2019-10-19 06:59:39,675 INFO [main] nopcommerce:84 - *********Logout from application*************** | ||
2019-10-19 06:59:41,279 INFO [main] nopcommerce:67 - *********Login Validation starts *************** | ||
2019-10-19 06:59:41,330 INFO [main] nopcommerce:76 - *********Login successfull *************** | ||
2019-10-19 06:59:44,350 INFO [main] nopcommerce:90 - *********Closing application *************** | ||
2019-10-19 07:12:43,399 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:12:43,481 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:13:19,074 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:13:27,624 INFO [main] nopcommerce:93 - *********Login Validation starts *************** | ||
2019-10-19 07:13:27,650 INFO [main] nopcommerce:102 - *********Login successfull *************** | ||
2019-10-19 07:15:23,911 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:15:24,011 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:15:26,136 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:15:37,895 INFO [main] nopcommerce:93 - *********Login Validation starts *************** | ||
2019-10-19 07:15:37,943 INFO [main] nopcommerce:102 - *********Login successfull *************** | ||
2019-10-19 07:15:42,959 INFO [main] nopcommerce:110 - *********Logout from application*************** | ||
2019-10-19 07:15:44,606 INFO [main] nopcommerce:93 - *********Login Validation starts *************** | ||
2019-10-19 07:15:44,660 INFO [main] nopcommerce:102 - *********Login successfull *************** | ||
2019-10-19 07:15:49,676 INFO [main] nopcommerce:116 - *********Closing application *************** | ||
2019-10-19 07:21:12,040 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:21:12,119 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:21:15,927 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:21:27,995 INFO [main] nopcommerce:126 - ********* Adding Customer Scenario started *************** | ||
2019-10-19 07:21:27,996 INFO [main] nopcommerce:128 - ********* Dashboard Display validation *************** | ||
2019-10-19 07:21:37,169 INFO [main] nopcommerce:160 - ********* Providing Customer details *************** | ||
2019-10-19 07:21:47,008 INFO [main] nopcommerce:186 - ********* Add customer validation *************** | ||
2019-10-19 07:21:47,316 INFO [main] nopcommerce:116 - *********Closing application *************** | ||
2019-10-19 07:21:50,582 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:21:50,584 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:21:54,212 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:22:06,579 INFO [main] nopcommerce:126 - ********* Adding Customer Scenario started *************** | ||
2019-10-19 07:22:06,580 INFO [main] nopcommerce:128 - ********* Dashboard Display validation *************** | ||
2019-10-19 07:22:13,297 INFO [main] nopcommerce:195 - ********* Search Customer by Email ID Scenario started *************** | ||
2019-10-19 07:22:17,054 INFO [main] nopcommerce:209 - ********* Search customer by email validation *************** | ||
2019-10-19 07:22:17,146 INFO [main] nopcommerce:116 - *********Closing application *************** | ||
2019-10-19 07:22:20,327 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:22:20,329 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:22:24,590 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:22:36,115 INFO [main] nopcommerce:126 - ********* Adding Customer Scenario started *************** | ||
2019-10-19 07:22:36,116 INFO [main] nopcommerce:128 - ********* Dashboard Display validation *************** | ||
2019-10-19 07:22:43,047 INFO [main] nopcommerce:217 - ********* Seqarch custoemr by Name Scenario started *************** | ||
2019-10-19 07:22:43,390 INFO [main] nopcommerce:224 - ********* Providing customer name *************** | ||
2019-10-19 07:22:46,708 INFO [main] nopcommerce:231 - ********* Search customer by name validation *************** | ||
2019-10-19 07:22:46,809 INFO [main] nopcommerce:116 - *********Closing application *************** | ||
2019-10-19 07:25:26,238 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:25:26,326 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:25:29,915 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:25:41,081 INFO [main] nopcommerce:126 - ********* Adding Customer Scenario started *************** | ||
2019-10-19 07:25:41,083 INFO [main] nopcommerce:128 - ********* Dashboard Display validation *************** | ||
2019-10-19 07:25:49,862 INFO [main] nopcommerce:160 - ********* Providing Customer details *************** | ||
2019-10-19 07:25:59,679 INFO [main] nopcommerce:186 - ********* Add customer validation *************** | ||
2019-10-19 07:25:59,968 INFO [main] nopcommerce:116 - *********Closing application *************** | ||
2019-10-19 07:29:18,905 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:29:19,030 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:29:22,837 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:29:36,416 INFO [main] nopcommerce:126 - ********* Adding Customer Scenario started *************** | ||
2019-10-19 07:29:36,420 INFO [main] nopcommerce:128 - ********* Dashboard Display validation *************** | ||
2019-10-19 07:29:44,762 INFO [main] nopcommerce:160 - ********* Providing Customer details *************** | ||
2019-10-19 07:29:55,215 INFO [main] nopcommerce:186 - ********* Add customer validation *************** | ||
2019-10-19 07:29:55,695 INFO [main] nopcommerce:116 - *********Closing application *************** | ||
2019-10-19 07:39:27,592 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:39:27,674 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:39:31,584 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:39:43,098 INFO [main] nopcommerce:126 - ********* Adding Customer Scenario started *************** | ||
2019-10-19 07:39:43,100 INFO [main] nopcommerce:128 - ********* Dashboard Display validation *************** | ||
2019-10-19 07:39:51,411 INFO [main] nopcommerce:160 - ********* Providing Customer details *************** | ||
2019-10-19 07:40:01,144 INFO [main] nopcommerce:186 - ********* Add customer validation *************** | ||
2019-10-19 07:40:01,427 INFO [main] nopcommerce:116 - *********Closing application *************** | ||
2019-10-19 07:53:26,474 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:53:26,520 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:54:12,836 INFO [main] nopcommerce:65 - ********* Launching browser*************** | ||
2019-10-19 07:54:13,056 INFO [main] nopcommerce:71 - ********* Opening URL*************** | ||
2019-10-19 07:54:17,060 INFO [main] nopcommerce:79 - ********* Proving user info *************** | ||
2019-10-19 07:54:29,774 INFO [main] nopcommerce:126 - ********* Adding Customer Scenario started *************** | ||
2019-10-19 07:54:29,778 INFO [main] nopcommerce:128 - ********* Dashboard Display validation *************** | ||
2019-10-19 07:54:42,666 INFO [main] nopcommerce:160 - ********* Providing Customer details *************** | ||
2019-10-19 07:54:52,504 INFO [main] nopcommerce:186 - ********* Add customer validation *************** | ||
2019-10-19 07:54:52,880 INFO [main] nopcommerce:116 - *********Closing application *************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#Set level | ||
log4j.rootCategory=debug, console, file | ||
|
||
# Appender which writes to console | ||
log4j.appender.console=org.apache.log4j.ConsoleAppender | ||
log4j.appender.console.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.console.layout.ConversionPattern=%d{MM-dd-yyyy HH:mm:ss} %F %-5p [%t] %c{2} %L - %m%n | ||
|
||
|
||
# Appender which writes to a file | ||
log4j.appender.file=org.apache.log4j.RollingFileAppender | ||
log4j.appender.file.File=./Logs/automation.log | ||
|
||
# Defining maximum size of a log file | ||
log4j.appender.file.MaxFileSize=10mb | ||
log4j.appender.file.MaxBackupIndex=10 | ||
log4j.appender.file.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %5p [%t] %c{1}:%L - %m%n | ||
log4j.appender.file.Append=true | ||
log4j.appender.Stdout.threshold=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>CucumberBDDWithJava</groupId> | ||
<artifactId>CucumberBDDWithJava</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
<encoding>UTF-8</encoding> | ||
</configuration> | ||
|
||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
|
||
<dependencies> | ||
|
||
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-core --> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-core</artifactId> | ||
<version>4.7.1</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-html --> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-html</artifactId> | ||
<version>0.2.7</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/net.sourceforge.cobertura/cobertura --> | ||
<dependency> | ||
<groupId>net.sourceforge.cobertura</groupId> | ||
<artifactId>cobertura</artifactId> | ||
<version>2.1.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java --> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-java</artifactId> | ||
<version>4.7.1</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit --> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-junit</artifactId> | ||
<version>4.7.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
|
||
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-jvm-deps --> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-jvm-deps</artifactId> | ||
<version>1.0.6</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/net.masterthought/cucumber-reporting --> | ||
<dependency> | ||
<groupId>net.masterthought</groupId> | ||
<artifactId>cucumber-reporting</artifactId> | ||
<version>4.9.0</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core --> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-core</artifactId> | ||
<version>2.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/io.cucumber/gherkin --> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>gherkin</artifactId> | ||
<version>5.1.0</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java --> | ||
<dependency> | ||
<groupId>org.seleniumhq.selenium</groupId> | ||
<artifactId>selenium-java</artifactId> | ||
<version>3.141.59</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/log4j/log4j --> | ||
<dependency> | ||
<groupId>log4j</groupId> | ||
<artifactId>log4j</artifactId> | ||
<version>1.2.17</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.sun</groupId> | ||
<artifactId>tools</artifactId> | ||
<version>1.7</version> | ||
<scope>system</scope> | ||
<systemPath>C:\TESTING\CucumberBDDWithJava\tools.jar</systemPath> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
Oops, something went wrong.