|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.pageobjects.util.TraceContext
public class TraceContext
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. |
boolean |
exists(Tracer tracer,
String key)
|
List<Map<String,Object>> |
getArguments(Tracer tracer,
String key)
|
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 |
---|
public TraceContext()
Method Detail |
---|
public Tracer checkpoint()
public void waitFor(Tracer tracer, String key)
tracer
- checkpoint. Only traces after this checkpoint will be inspected.key
- tracer key to watch forpublic boolean exists(Tracer tracer, String key)
public List<Map<String,Object>> getArguments(Tracer tracer, String key)
public com.atlassian.pageobjects.elements.query.TimedCondition condition(Tracer tracer, String key)
tracer
- checkpoint. Only traces after this checkpoint will be inspected.key
- tracer key to watch for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |