com.atlassian.jira.webtest.framework.impl.selenium.query
Class ScriptExecutionQuery

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
      extended by com.atlassian.jira.webtest.framework.core.query.AbstractTimedQuery<T>
          extended by com.atlassian.jira.webtest.framework.impl.selenium.query.AbstractSeleniumTimedQuery<String>
              extended by com.atlassian.jira.webtest.framework.impl.selenium.query.ScriptExecutionQuery
All Implemented Interfaces:
ClockAware, PollingQuery, TimedQuery<String>

public class ScriptExecutionQuery
extends AbstractSeleniumTimedQuery<String>

Query that returns an evaluation of a script in the current test context.

Since:
v4.3

Nested Class Summary
static class ScriptExecutionQuery.Builder
           
 
Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.query.AbstractSeleniumTimedQuery
client, context
 
Fields inherited from class com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
defaultTimeout, interval
 
Constructor Summary
ScriptExecutionQuery(ScriptExecutionQuery.Builder builder)
           
 
Method Summary
protected  String currentValue()
          Current evaluation of the query.
protected  boolean shouldReturn(String currentEval)
          If the current evaluated query value should be returned.
 
Methods inherited from class com.atlassian.jira.webtest.framework.core.query.AbstractTimedQuery
by, by, byDefaultTimeout, clock, expirationHandler, now, resetLastRun, toString
 
Methods inherited from class com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
defaultTimeout, interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.query.TimedQuery
by, by, byDefaultTimeout, now
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PollingQuery
defaultTimeout, interval
 

Constructor Detail

ScriptExecutionQuery

public ScriptExecutionQuery(ScriptExecutionQuery.Builder builder)
Method Detail

shouldReturn

protected boolean shouldReturn(String currentEval)
Description copied from class: AbstractTimedQuery
If the current evaluated query value should be returned.

Specified by:
shouldReturn in class AbstractTimedQuery<String>
Parameters:
currentEval - current query evaluation expires
Returns:
true, if the current query evaluation should be returned as a result of this timed query

currentValue

protected String currentValue()
Description copied from class: AbstractTimedQuery
Current evaluation of the query.

Specified by:
currentValue in class AbstractTimedQuery<String>
Returns:
current evaluation of the query


Copyright © 2002-2013 Atlassian. All Rights Reserved.