Tiny changes.
authorNatasa Kapravelou <akapravelou@gmail.com>
Fri, 25 Feb 2011 08:42:06 +0000 (10:42 +0200)
committerNatasa Kapravelou <akapravelou@gmail.com>
Fri, 25 Feb 2011 08:42:06 +0000 (10:42 +0200)
test/gr/ebs/gss/client/selenium/ide/tests/IDERightClick.java
test/gr/ebs/gss/client/selenium/tests/TestFolderBasics.java

index 611a4be..7e83287 100644 (file)
@@ -33,14 +33,17 @@ import org.junit.Test;
 public class IDERightClick extends SeleneseTestCase{
        
        /**
-        * TIP: Start the Selenium RC serve using
-        * in the dependencies directory
+        * TIP: 
+        * 1. First kill an already-running instance of the Selenium server.
+        * netstat -anp | grep 4444 /  kill -9 <pid> 
+        * 2. Start the Selenium RC serve in the dependencies directory
         * java -jar selenium-server-standalone-2.0b1.jar
+        * 3. The third argument can be either "*firefox" or "*chrome",
         */
        
        @Before
        public void setUp() throws Exception {
-               selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/");
+               selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/");
 //             setUp("http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/", "*firefox");
 
                selenium.start();
@@ -57,8 +60,9 @@ public class IDERightClick extends SeleneseTestCase{
                selenium.open("http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/");
                selenium.waitForPageToLoad("300000");
                selenium.click("lakis@ebs.gr");         
-               selenium.contextMenuAt("Trash", "");            
-               selenium.click("folderContextMenu.restore");
+               selenium.contextMenuAt("Trash", "");    
+//             selenium.click("folderContextMenu.restore");    
+               selenium.click("folderContextMenu.emptyTrash");
        
        }
 
index b602eb4..4ad507f 100644 (file)
@@ -94,7 +94,7 @@ public class TestFolderBasics extends FolderUtils{
        public void testExpand() throws InterruptedException{
                expandFolder();
                System.out.println("ssss");
-               Thread.sleep(2000);
+               Thread.sleep(5000);
                selectSubFolder("hasta luego", "abburido");
                Thread.sleep(1000);
                selectTopMenu("file");