## Scenarios

Status | Progress
--- | ---
Passed | 40.00 %
Failed | 60.00 %

## Steps

Status | Progress
--- | ---
Passed | 50.00 %
Failed | 25.00 %
Skipped | 25.00 %

@File_Operations @File_Moving

## Scenario Outline: Move a file to another folder

- 2

| Given | I move the file /src/main/resources/test.docx to the folder destinationFolder in less than 5 seconds |  |
| Then | It is moved again to the origin folder |  |

@File_Operations @File_Moving

## Scenario Outline: Move a file to another folder

- 2

| Given | I move the file /src/main/resources/test.docx to the folder destinationFolder1 in less than 5 seconds |  |
| Then | It is moved again to the origin folder |  |

@File_Operations @File_Copying

## Scenario Outline: Copy a file to another folder

- 1

- 1

| Given | I copy the file /resources/test.docx to the folder destinationFolder in less than 5 seconds | + Show Error |
                            java.nio.file.NoSuchFileException: /mnt/ARCHIVING/GIT/serenity-automation/resources/destinationFolder
    	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
    	at java.nio.file.Files.createDirectory(Files.java:674)
    	at com.serenity.ui.StepsDef.FileOperationsStepsDefs.iCopyTheFileFileNameToTheFolderDestinationFolderInLessThanTimeoutSeconds(FileOperationsStepsDefs.java:77)
    	at ✽.I copy the file /resources/test.docx to the folder destinationFolder in less than 5 seconds(src/test/resources/features/ui/FileOperations.feature:17)
| Then | It is deleted from the destination folder |  |

@File_Operations @File_Copying

## Scenario Outline: Move a file to another folder v2

- 1

- 1

| Given | I copy the file /resources/test.docx to the folder destinationFolder in less than 5 seconds | + Show Error |
                            java.nio.file.NoSuchFileException: /mnt/ARCHIVING/GIT/serenity-automation/resources/destinationFolder
    	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
    	at java.nio.file.Files.createDirectory(Files.java:674)
    	at com.serenity.ui.StepsDef.FileOperationsStepsDefs.iCopyTheFileFileNameToTheFolderDestinationFolderInLessThanTimeoutSeconds(FileOperationsStepsDefs.java:77)
    	at ✽.I copy the file /resources/test.docx to the folder destinationFolder in less than 5 seconds(src/test/resources/features/ui/FileOperations.feature:17)
| Then | It is deleted from the destination folder |  |

@File_Operations @pdfCompare

## Scenario: Compare two pdf files and return a pdf with the results

- 1

- 1

- 2

| Given | I have the pdf file: document1.pdf in the resources folder |  |
| And | the pdf: document2.pdf in the resources folder |  |
| When | I compare them | + Show Error |
                            java.lang.RuntimeException: java.io.FileNotFoundException: /mnt/ARCHIVING/GIT/serenity-automation/resources/comparison_results.pdf (No such file or directory)
    	at de.redsix.pdfcompare.CompareResult.writeTo(CompareResult.java:61)
    	at com.serenity.ui.StepsDef.FileOperationsStepsDefs.iCompareThem(FileOperationsStepsDefs.java:125)
    	at ✽.I compare them(src/test/resources/features/ui/FileOperations.feature:28)
    Caused by: java.io.FileNotFoundException: /mnt/ARCHIVING/GIT/serenity-automation/resources/comparison_results.pdf (No such file or directory)
    	at java.io.FileOutputStream.open0(Native Method)
    	at java.io.FileOutputStream.open(FileOutputStream.java:270)
    	at java.io.FileOutputStream.(init)(FileOutputStream.java:213)
    	at java.io.FileOutputStream.(init)(FileOutputStream.java:162)
    	at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1249)
    	at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1237)
    	at de.redsix.pdfcompare.CompareResult.writeTo(CompareResult.java:59)
    	at com.serenity.ui.StepsDef.FileOperationsStepsDefs.iCompareThem(FileOperationsStepsDefs.java:125)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at cucumber.runtime.Utils$1.call(Utils.java:40)
    	at cucumber.runtime.Timeout.timeout(Timeout.java:16)
    	at cucumber.runtime.Utils.invoke(Utils.java:34)
    	at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:37)
    	at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:40)
    	at cucumber.api.TestStep.executeStep(TestStep.java:78)
    	at cucumber.api.TestStep.run(TestStep.java:61)
    	at cucumber.api.TestCase.run(TestCase.java:28)
    	at cucumber.runner.Runner.runPickle(Runner.java:80)
    	at cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:140)
    	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)
    	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)
    	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)
    	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:99)
    	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)
    	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    	at cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:108)
    	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
    	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
    	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
    	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
| Then | a pdf is created in the folder: src/main/resources with the result of the comparison |  |

Created by yon cuadrado. Find me on: