13: def capture_system_state
14:
15:
16:
17: begin
18: retrieve_remote_control_logs
19: rescue Exception => e
20: STDERR.puts "WARNING: Could not retrieve remote control logs: #{e}"
21: end
22: begin
23: capture_html_snapshot
24: rescue Exception => e
25: STDERR.puts "WARNING: Could not capture HTML snapshot: #{e}"
26: end
27: begin
28: capture_page_screenshot
29: rescue Exception => e
30: STDERR.puts "WARNING: Could not capture page screenshot: #{e}"
31: end
32: begin
33: capture_system_screenshot
34: rescue Exception => e
35: STDERR.puts "WARNING: Could not capture system screenshot: #{e}"
36: end
37: end