Skip to content

Commit

Permalink
Working tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DJema committed Mar 1, 2019
1 parent 2e81758 commit b388df3
Show file tree
Hide file tree
Showing 38 changed files with 3,428 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="lib" path="libs/cucumber/cucumber-junit-4.2.3.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="libs/client-combined-3.141.59-sources.jar"/>
<classpathentry exported="true" kind="lib" path="libs/client-combined-3.141.59.jar"/>
<classpathentry exported="true" kind="lib" path="libs/libs/byte-buddy-1.8.15.jar"/>
<classpathentry exported="true" kind="lib" path="libs/libs/commons-exec-1.3.jar"/>
<classpathentry exported="true" kind="lib" path="libs/libs/guava-25.0-jre.jar"/>
<classpathentry exported="true" kind="lib" path="libs/libs/okhttp-3.11.0.jar"/>
<classpathentry exported="true" kind="lib" path="libs/libs/okio-1.14.0.jar"/>
<classpathentry exported="true" kind="lib" path="libs/cucumber/cobertura-2.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="libs/cucumber/cucumber-core-4.2.3.jar"/>
<classpathentry exported="true" kind="lib" path="libs/cucumber/cucumber-java-4.2.3.jar"/>
<classpathentry exported="true" kind="lib" path="libs/cucumber/cucumber-jvm-deps-1.0.6.jar"/>
<classpathentry exported="true" kind="lib" path="libs/cucumber/cucumber-reporting-4.4.0.jar"/>
<classpathentry exported="true" kind="lib" path="libs/cucumber/junit-4.2.jar"/>
<classpathentry exported="true" kind="lib" path="libs/cucumber/mockito-all-2.0.2-beta.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="lib" path="libs/cucumber/gherkin-2.12.2.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>assignment-b</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Binary file not shown.
Binary file added bin/test/java/com/ecse428/cucumber/dog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/test/java/com/ecse428/cucumber/egg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions bin/test/resources/gmail.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Feature: gmail

Scenario: Send an email with an attachment to a recipient
Given I am logged in to gmail on my homepage
When I click on Compose
And I add a recipient to my message
And I add a subject to my message
And I add an attachment to my message
And I click Send
Then the recipient receives the message with the right subject and attachment

Scenario: Send email on google chrome with different attachment and subject
Given I am logged in to gmail on my homepage
When I click on Compose
And I add a different recipient to my message
And I add a different subject to my message
And I add a different attachment to my message
And I click Send
Then the recipient receives the message with the right subject and attachment

Scenario: Send an email with no subject to a recipient
Given I am logged in on the gmail homepage
When I click on Compose
And add a recipient to my message
And add an alternate attachment to my message
And I click Send
And I accept the prompt window
Then the recipient receives the message with no subject and an attachment

Scenario: Send an email without specifying a recipient
Given I am logged in on the gmail homepage
When I click on Compose
And I add a subject to my message
And I add an attachment to my message
And I click Send
Then an error message is displayed specifying to add a recipient

Scenario: Send an email with an attachment that is too large
Given I am logged in on the gmail homepage
When I click on Compose
And I add a subject to my message
And I add a large attachment to my message
And I click Send
Then an error message is displayed specifying the attachment is too large








Binary file added cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chromedriver.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[0226/223327.753:ERROR:file_io.cc(134)] WriteFile: There is not enough space on the disk. (0x70)
[0226/223327.754:ERROR:crash_report_exception_handler.cc(111)] WriteEverything failed
[0226/223327.755:ERROR:filesystem_win.cc(148)] DeleteFile C:\Users\Rami\AppData\Local\Temp\scoped_dir15712_17235\Crashpad\reports\132f410f-8b87-4491-9024-832e445cc027.dmp: The process cannot access the file because it is being used by another process. (0x20)
[0226/223420.201:ERROR:filesystem_win.cc(148)] DeleteFile C:\Users\Rami\AppData\Local\Temp\scoped_dir16252_23646\Crashpad\reports\6ac03a78-7e98-4d95-9526-6df48fea6ecd.dmp: The process cannot access the file because it is being used by another process. (0x20)
Binary file added dog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added egg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added large_file.pdf
Binary file not shown.
Loading

0 comments on commit b388df3

Please sign in to comment.