2 * Copyright 2011 Electronic Business Systems Ltd.
4 * This file is part of GSS.
6 * GSS is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GSS. If not, see <http://www.gnu.org/licenses/>.
19 package gr.ebs.gss.client.selenium.file;
22 import gr.ebs.gss.client.selenium.folder.ActionUtils;
24 import org.junit.After;
25 import org.junit.Before;
26 import org.openqa.selenium.By;
27 import org.openqa.selenium.WebDriver;
28 import org.openqa.selenium.firefox.FirefoxDriver;
35 public class TestFileBasics {
41 String url = "http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/";
45 String groupName = "Wookiees";
47 String userName = "past@ebs.gr";
49 String addUserName = "lakis@ebs.gr";
52 * @throws java.lang.Exception
55 public void setUp() throws Exception {
57 driver = new FirefoxDriver();
59 action = new ActionUtils(driver);
63 // Necessary delay in order all dom elements to be created
68 * @throws java.lang.Exception
71 public void tearDown() throws Exception {
75 public void clickAFile(String aFileName){
76 action.click(By.id(""));
78 public void selectFileMenu(){
83 * TODO: Download a file below in a folder
85 * > select File > 'Download'
86 * > save file from the popup window to your hdd
91 * **** This action performs the same results to the above 'Download' option
96 * > select File > 'Empty Trash'
97 * *** Notice: There is no confirmation before performing this action
103 * > select File > 'Refresh'
109 * > select Edit > 'Cut'
110 * > select a destination folder
111 * > click Edit > Paste on the destination folder
114 /** TODO: . Copy file
116 * > select Edit > 'Copy'
117 * > select a destination folder
118 * > click Edit > 'Paste' on the destination folder
122 /** TODO: . Move to Trash
124 * > select Edit > 'Move to Trash'
125 * > select Trash folder and your file is in the Trash
129 * > select Edit > 'Move to Trash'
130 * > click Delete to confirm
133 /** TODO:. Select All
135 * > select Edit > 'Select All' this action results to select all files that are inside home folder
138 /** TODO:. Unselect All
140 * > select Edit > 'Unselect All' this action results to unselect all files that are inside home folder