com.atlassian.jira.pageobjects.util
Class TraceContext

java.lang.Object
  extended by com.atlassian.jira.pageobjects.util.TraceContext

public class TraceContext
extends Object

Provides utility methods for waiting for ajax results. To send events from the javascript side, call JIRA.trace(key, args...). To turn on logging:

org.apache.log4j.Logger.getLogger(TraceContext.class).setLevel(org.apache.log4j.Level.DEBUG);


Constructor Summary
TraceContext()
           
 
Method Summary
 Tracer checkpoint()
          Returns a tracer containing the current state of trace list.
 com.atlassian.pageobjects.elements.query.TimedCondition condition(Tracer tracer, String key)
          Waits for the occurrence of a trace with the given key after the given tracer.
 void waitFor(Tracer tracer, String key)
          Waits for the occurrence of a trace with the given key after the given tracer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceContext

public TraceContext()
Method Detail

checkpoint

public Tracer checkpoint()
Returns a tracer containing the current state of trace list.


waitFor

public void waitFor(Tracer tracer,
                    String key)
Waits for the occurrence of a trace with the given key after the given tracer.

Parameters:
tracer - checkpoint. Only traces after this checkpoint will be inspected.
key - tracer key to watch for

condition

public com.atlassian.pageobjects.elements.query.TimedCondition condition(Tracer tracer,
                                                                         String key)
Waits for the occurrence of a trace with the given key after the given tracer.

Parameters:
tracer - checkpoint. Only traces after this checkpoint will be inspected.
key - tracer key to watch for


Copyright © 2002-2013 Atlassian. All Rights Reserved.