Package org.sikuli.remote.client

Source Code of org.sikuli.remote.client.TestRemoteScreen

package org.sikuli.remote.client;

import java.io.File;

import org.junit.BeforeClass;
import org.junit.Test;
import org.sikuli.remote.client.RemoteScreen;



public class TestRemoteScreen {
 
  private static String psc;
 
  private static int timeout;
 
  @BeforeClass
  public static void setUp() throws Exception {
    psc = new File(Thread.currentThread().getContextClassLoader().getResource("image/start.png").toURI()).getAbsolutePath();
    timeout = 5000;
  }
 
  @Test
  public void testClick() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
    rs.click(psc);
  }
 
  @Test
  public void testFind() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
    rs.find(psc);
  }
 
  @Test
  public void testDoubleClick() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
    rs.doubleClick(psc);
  }
 
  @Test
  public void testWaitUntil() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
    rs.waitUntil(psc, timeout);
  }
 
  @Test
  public void testSetMinSimilarity() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
    rs.setMinSimilarity(0.9);
  }
 

}
TOP

Related Classes of org.sikuli.remote.client.TestRemoteScreen

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.