use of com.owncloud.android.test.ui.models.FileListView in project android by owncloud.
the class MoveFileTestSuite method tearDown.
@After
public void tearDown() throws Exception {
common.takeScreenShotOnFailed(name.getMethodName());
FileListView fileListView = new FileListView(driver);
driver.sendKeyEvent(android.view.KeyEvent.KEYCODE_BACK);
Actions.deleteElement(FOLDER_WHERE_MOVE, fileListView, driver);
Actions.deleteElement(FILE_NAME, fileListView, driver);
driver.removeApp("com.owncloud.android");
driver.quit();
}
use of com.owncloud.android.test.ui.models.FileListView in project android by nextcloud.
the class Actions method uploadFile.
public static FileListView uploadFile(String elementName, FileListView fileListView) throws InterruptedException {
fileListView.clickOnUploadButton();
UploadFilesView uploadFilesView = fileListView.clickOnFilesElementUploadFile();
uploadFilesView.clickOnFileName(elementName);
FileListView fileListViewAfterUploadFile = uploadFilesView.clickOnUploadButton();
// TO DO. detect when the file is successfully uploaded
Thread.sleep(15000);
return fileListViewAfterUploadFile;
}
use of com.owncloud.android.test.ui.models.FileListView in project android by nextcloud.
the class DeleteFolderTestSuite method tearDown.
@After
public void tearDown() throws Exception {
common.takeScreenShotOnFailed(name.getMethodName());
if (folderHasBeenCreated) {
FileListView fileListView = new FileListView(driver);
Actions.deleteElement(FOLDER_NAME, fileListView, driver);
}
driver.removeApp("com.owncloud.android");
driver.quit();
}
use of com.owncloud.android.test.ui.models.FileListView in project android by nextcloud.
the class DeleteFolderTestSuite method testDeleteFolder.
@Test
@Category({ NoIgnoreTestCategory.class, SmokeTestCategory.class })
public void testDeleteFolder() throws Exception {
FileListView fileListView = Actions.login(Config.URL, Config.user, Config.password, Config.isTrusted, driver);
common.assertIsInFileListView();
// TODO. if the folder already exists, do no created
// create the folder
WaitAMomentPopUp waitAMomentPopUp = Actions.createFolder(FOLDER_NAME, fileListView);
Common.waitTillElementIsNotPresentWithoutTimeout(waitAMomentPopUp.getWaitAMomentTextElement(), 100);
fileListView.scrollTillFindElement(FOLDER_NAME);
assertTrue(folderHasBeenCreated = fileListView.getFileElement().isDisplayed());
// delete the folder
Actions.deleteElement(FOLDER_NAME, fileListView, driver);
assertFalse(folderHasBeenCreated = fileListView.getFileElement().isDisplayed());
}
use of com.owncloud.android.test.ui.models.FileListView in project android by nextcloud.
the class MoveFileTestSuite method tearDown.
@After
public void tearDown() throws Exception {
common.takeScreenShotOnFailed(name.getMethodName());
FileListView fileListView = new FileListView(driver);
driver.sendKeyEvent(android.view.KeyEvent.KEYCODE_BACK);
Actions.deleteElement(FOLDER_WHERE_MOVE, fileListView, driver);
Actions.deleteElement(FILE_NAME, fileListView, driver);
driver.removeApp("com.owncloud.android");
driver.quit();
}
Aggregations