## Scenarios

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

## Steps

Status | Progress
--- | ---
Passed | 60.00 %
Failed | 10.00 %
Pending | 10.00 %
Skipped | 20.00 %

@File_Operations @File_Moving

## Scenario Outline: Move a file to another folder

## 00:00:13.067

- 1

- 3

Given | I move the file <fileName> to the folder <destinationFolder> in less than <timeout> seconds |  |
Then | It is moved again to the origin folder |  |

| fileName | destinationFolder | timeout |
--- | --- | --- | --- | ---

/src/main/resources/test.docx

destinationFolder

5

- 2

## Scenario Outline: Move a file to another folder

## 00:00:12.760

- 2

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

/src/main/resources/test.docx destinationFolder1 5

- 1

- 1

## Scenario Outline: Move a file to another folder

## 00:00:00.306

- 1

- 1

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

@File_Operations @File_Copying

## Scenario Outline: Copy a file to another folder

## 00:00:00.325

- 1

- 1

00:00:00.325 |  | 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)

00:00:00.000 |  | Then | It is deleted from the destination folder |  |

@File_Operations @pdfCompare

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

## 00:01:41.485

- 1

- 3

00:00:00.479 |  | Given | I have the pdf file: document1.pdf in the resources folder |  |
00:00:00.072 |  | And | the pdf: document2.pdf in the resources folder |  |
00:01:40.933 |  | 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)

00:00:00.000 |  | Then | a pdf is created in the folder: src/main/resources with the result of the comparison |  |

Created by yon cuadrado. Find me on: