class UIAuto::Listeners::BaseListener

Public Instance Methods

element_tree(element_tree) click to toggle source

UI Automation's logElementTree was called. element_tree contains the entire tree.

# File lib/uiauto/listeners/base_listener.rb, line 57
def element_tree(element_tree)
end
element_tree_finish() click to toggle source

After an element tree is finished.

# File lib/uiauto/listeners/base_listener.rb, line 69
def element_tree_finish
end
element_tree_line(line) click to toggle source

A line from an element tree.

# File lib/uiauto/listeners/base_listener.rb, line 65
def element_tree_line(line)
end
element_tree_start() click to toggle source

Before an element tree starts.

# File lib/uiauto/listeners/base_listener.rb, line 61
def element_tree_start
end
instruments_line(line) click to toggle source

Raw instruments output.

# File lib/uiauto/listeners/base_listener.rb, line 85
def instruments_line(line)
end
load_simulator_data(path) click to toggle source

Called if a script contains a comment header to load simulator data.

# File lib/uiauto/listeners/base_listener.rb, line 13
def load_simulator_data(path)
end
log_debug(message) click to toggle source

Message printed by UI Automation's logDebug. Also prints actions such as tap, typeString, etc…

# File lib/uiauto/listeners/base_listener.rb, line 33
def log_debug(message)
end
log_default(message) click to toggle source

Message printed by UI Automation's logMessage.

# File lib/uiauto/listeners/base_listener.rb, line 41
def log_default(message)
end
log_error(message) click to toggle source

Message printed by UI Automation's logError.

# File lib/uiauto/listeners/base_listener.rb, line 37
def log_error(message)
end
log_fail(message) click to toggle source

Message printed by UI Automation's logFail.

# File lib/uiauto/listeners/base_listener.rb, line 25
def log_fail(message)
end
log_issue(message) click to toggle source

Message printed by UI Automation's logIssue.

# File lib/uiauto/listeners/base_listener.rb, line 29
def log_issue(message)
end
log_none(message) click to toggle source

An uncategorized log type. Typically uncaught javascript errors.

# File lib/uiauto/listeners/base_listener.rb, line 49
def log_none(message)
end
log_pass(message) click to toggle source

Message printed by UI Automation's logPass.

# File lib/uiauto/listeners/base_listener.rb, line 21
def log_pass(message)
end
log_start(message) click to toggle source

Message printed by UI Automation's logStart.

# File lib/uiauto/listeners/base_listener.rb, line 17
def log_start(message)
end
log_stopped(message) click to toggle source

Typically reports a script was stopped by user, but is caused by a failed import

# File lib/uiauto/listeners/base_listener.rb, line 53
def log_stopped(message)
end
log_warning(message) click to toggle source

Message printed by UI Automation's logWarning.

# File lib/uiauto/listeners/base_listener.rb, line 45
def log_warning(message)
end
run_finish() click to toggle source

After a run finished.

# File lib/uiauto/listeners/base_listener.rb, line 89
def run_finish
end
run_start() click to toggle source

Before a run is started. A run contains one or more scripts.

# File lib/uiauto/listeners/base_listener.rb, line 5
def run_start
end
script_finish(script) click to toggle source

After a script is finished.

# File lib/uiauto/listeners/base_listener.rb, line 77
def script_finish(script)
end
script_start(script) click to toggle source

Before a script is started.

# File lib/uiauto/listeners/base_listener.rb, line 9
def script_start(script)
end
script_summary(duration, trace_location) click to toggle source

After a script is finished. Duration and trace location as reported by instruments.

# File lib/uiauto/listeners/base_listener.rb, line 73
def script_summary(duration, trace_location)
end
unknown(line) click to toggle source

Misc lines from instruments that are not called in above methods.

# File lib/uiauto/listeners/base_listener.rb, line 81
def unknown(line)
end