Class: UIAuto::Listeners::BaseListener

Inherits:
Object
  • Object
show all
Defined in:
lib/uiauto/listeners/base_listener.rb

Instance Method Summary collapse

Instance Method Details

#element_tree(element_tree) ⇒ Object

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



57
58
# File 'lib/uiauto/listeners/base_listener.rb', line 57

def element_tree(element_tree)
end

#element_tree_finishObject

After an element tree is finished.



69
70
# File 'lib/uiauto/listeners/base_listener.rb', line 69

def element_tree_finish
end

#element_tree_line(line) ⇒ Object

A line from an element tree.



65
66
# File 'lib/uiauto/listeners/base_listener.rb', line 65

def element_tree_line(line)
end

#element_tree_startObject

Before an element tree starts.



61
62
# File 'lib/uiauto/listeners/base_listener.rb', line 61

def element_tree_start
end

#instruments_line(line) ⇒ Object

Raw instruments output.



85
86
# File 'lib/uiauto/listeners/base_listener.rb', line 85

def instruments_line(line)
end

#load_simulator_data(path) ⇒ Object

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



13
14
# File 'lib/uiauto/listeners/base_listener.rb', line 13

def load_simulator_data(path)
end

#log_debug(message) ⇒ Object

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



33
34
# File 'lib/uiauto/listeners/base_listener.rb', line 33

def log_debug(message)
end

#log_default(message) ⇒ Object

Message printed by UI Automation’s logMessage.



41
42
# File 'lib/uiauto/listeners/base_listener.rb', line 41

def log_default(message)
end

#log_error(message) ⇒ Object

Message printed by UI Automation’s logError.



37
38
# File 'lib/uiauto/listeners/base_listener.rb', line 37

def log_error(message)
end

#log_fail(message) ⇒ Object

Message printed by UI Automation’s logFail.



25
26
# File 'lib/uiauto/listeners/base_listener.rb', line 25

def log_fail(message)
end

#log_issue(message) ⇒ Object

Message printed by UI Automation’s logIssue.



29
30
# File 'lib/uiauto/listeners/base_listener.rb', line 29

def log_issue(message)
end

#log_none(message) ⇒ Object

An uncategorized log type. Typically uncaught javascript errors.



49
50
# File 'lib/uiauto/listeners/base_listener.rb', line 49

def log_none(message)
end

#log_pass(message) ⇒ Object

Message printed by UI Automation’s logPass.



21
22
# File 'lib/uiauto/listeners/base_listener.rb', line 21

def log_pass(message)
end

#log_start(message) ⇒ Object

Message printed by UI Automation’s logStart.



17
18
# File 'lib/uiauto/listeners/base_listener.rb', line 17

def log_start(message)
end

#log_stopped(message) ⇒ Object

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



53
54
# File 'lib/uiauto/listeners/base_listener.rb', line 53

def log_stopped(message)
end

#log_warning(message) ⇒ Object

Message printed by UI Automation’s logWarning.



45
46
# File 'lib/uiauto/listeners/base_listener.rb', line 45

def log_warning(message)
end

#run_finishObject

After a run finished.



89
90
# File 'lib/uiauto/listeners/base_listener.rb', line 89

def run_finish
end

#run_startObject

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



5
6
# File 'lib/uiauto/listeners/base_listener.rb', line 5

def run_start
end

#script_finish(script) ⇒ Object

After a script is finished.



77
78
# File 'lib/uiauto/listeners/base_listener.rb', line 77

def script_finish(script)
end

#script_start(script) ⇒ Object

Before a script is started.



9
10
# File 'lib/uiauto/listeners/base_listener.rb', line 9

def script_start(script)
end

#script_summary(duration, trace_location) ⇒ Object

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



73
74
# File 'lib/uiauto/listeners/base_listener.rb', line 73

def script_summary(duration, trace_location)
end

#unknown(line) ⇒ Object

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



81
82
# File 'lib/uiauto/listeners/base_listener.rb', line 81

def unknown(line)
end