add new changes
[pub/Android/ownCloud.git] / automationTest / src / test / java / androidtest / tests / CreateFolderTestSuite.java
index 61294da..ad72e36 100644 (file)
@@ -5,6 +5,7 @@ import org.junit.Before;
 import org.junit.runners.MethodSorters;
 import org.junit.FixMethodOrder;
 import org.junit.Test;
 import org.junit.runners.MethodSorters;
 import org.junit.FixMethodOrder;
 import org.junit.Test;
+
 import androidtest.actions.Actions;
 import androidtest.models.MainView;
 import androidtest.models.WaitAMomentPopUp;
 import androidtest.actions.Actions;
 import androidtest.models.MainView;
 import androidtest.models.WaitAMomentPopUp;
@@ -17,7 +18,6 @@ public class CreateFolderTestSuite extends Common{
        private final String FOLDER_NAME = "testCreateFolder";
        private String CurrentCreatedFolder = "";
 
        private final String FOLDER_NAME = "testCreateFolder";
        private String CurrentCreatedFolder = "";
 
-
        @Before
        public void setUp() throws Exception {
                setUpCommonDriver();
        @Before
        public void setUp() throws Exception {
                setUpCommonDriver();
@@ -44,6 +44,7 @@ public class CreateFolderTestSuite extends Common{
 
        @After
        public void tearDown() throws Exception {
 
        @After
        public void tearDown() throws Exception {
+               takeScreenShotOnFailed(getName());
                if (folderHasBeenCreated) {
                        MainView mainView = new MainView(driver);
                        Actions.deleteElement(CurrentCreatedFolder, mainView, driver);
                if (folderHasBeenCreated) {
                        MainView mainView = new MainView(driver);
                        Actions.deleteElement(CurrentCreatedFolder, mainView, driver);