Package org.openqa.grid.internal

Examples of org.openqa.grid.internal.Registry


                if (HubHolder.hub == null) {
                    return Collections.emptyList();
                }

                Registry registry = HubHolder.hub.getRegistry();
                if (registry != null) {
                    for (RemoteProxy proxy : registry.getAllProxies()) {
                        for (TestSlot slot : proxy.getTestSlots()) {
                            URL host = slot.getProxy().getRemoteHost();
                            SeleniumTestSlotGroup grp = groups.get(host);
                            if (grp == null) {
                                grp = new SeleniumTestSlotGroup(host);
View Full Code Here


                     */
                    private static final long serialVersionUID = -5805313572457450300L;
                    private String remoteUrl = url;

                    public Void call() throws Exception {
                        Registry registry = HubHolder.hub.getRegistry();
                        if (registry != null) {
                            Iterator<RemoteProxy> it = registry.getAllProxies().iterator();
                            while (it.hasNext()) {
                                RemoteProxy proxy = it.next();
                                if (remoteUrl.equals(proxy.getRemoteHost().toString())) {
                                    registry.removeIfPresent(proxy);
                                }
                            }
                        }
                        return null;
                    }
View Full Code Here

        servlets =
        Arrays.asList(new String[]{IOSProxyStateUpdaterServlet.class.getCanonicalName()});
    c.setServlets(servlets);

    hub = new org.openqa.grid.web.Hub(c);
    Registry registry = hub.getRegistry();

    proxyApi = new URL("http://" + hub.getHost() + ":" + hub.getPort() + "/grid/admin/IOSProxyStateUpdaterServlet/");
    host = new HttpHost(hub.getHost(), hub.getPort());

    hub.start();

    org.openqa.grid.common.RegistrationRequest
        req =
        new org.openqa.grid.common.RegistrationRequest();
    Map<String, Object> capability = new HashMap<String, Object>();
    capability.put(CapabilityType.BROWSER_NAME, "Mobile safari");
    req.addDesiredCapability(capability);

    Map<String, Object> config = new HashMap<String, Object>();
    config.put(org.openqa.grid.common.RegistrationRequest.REMOTE_HOST, "http://localhost:5555");
    req.setConfiguration(config);
    remoteProxy = new IOSMutableRemoteProxy(req, registry);

    registry.add(remoteProxy);

    Map<String, Object> cap = new HashMap<String, Object>();
    cap.put(CapabilityType.BROWSER_NAME, "app1");

  }
View Full Code Here

TOP

Related Classes of org.openqa.grid.internal.Registry

Copyright © 2018 www.massapicom. 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.