hudson.plugins.selenium
Class JenkinsCapabilityMatcher

java.lang.Object
  extended by hudson.plugins.selenium.JenkinsCapabilityMatcher
All Implemented Interfaces:
org.openqa.grid.internal.utils.CapabilityMatcher

public class JenkinsCapabilityMatcher
extends Object
implements org.openqa.grid.internal.utils.CapabilityMatcher

CapabilityMatcher that adds "jenkins.label" support.

Author:
Kohsuke Kawaguchi

Field Summary
static String LABEL
          Can be used as a capability when WebDriver requests a node from Grid.
static String NODE_NAME
          RC uses this to register, to designate its origin.
 
Constructor Summary
JenkinsCapabilityMatcher(hudson.remoting.Channel master, org.openqa.grid.internal.utils.CapabilityMatcher base)
           
 
Method Summary
 boolean matches(Map<String,Object> currentCapability, Map<String,Object> requestedCapability)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL

public static final String LABEL
Can be used as a capability when WebDriver requests a node from Grid. The value is a boolean expression over labels to select the desired node to run the test.

See Also:
Constant Field Values

NODE_NAME

public static final String NODE_NAME
RC uses this to register, to designate its origin.

See Also:
Constant Field Values
Constructor Detail

JenkinsCapabilityMatcher

public JenkinsCapabilityMatcher(hudson.remoting.Channel master,
                                org.openqa.grid.internal.utils.CapabilityMatcher base)
Method Detail

matches

public boolean matches(Map<String,Object> currentCapability,
                       Map<String,Object> requestedCapability)
Specified by:
matches in interface org.openqa.grid.internal.utils.CapabilityMatcher


Copyright © 2004-2011. All Rights Reserved.