text = result.bundle_output.split("\n").join("
") + result.console_output.split("\n").join("
") unless result.console_output.nil? if text.empty? lines = [] begin File.open("ls_#{result.id}.out","r").each_line do |line| lines << line end rescue lines << "Could not get console output" end text = lines.join("
")
end
suite = Kaya::Suites::Suite.get(result.suite_id)
custom_params = result.custom_params.empty? ? 'Not Defined' : result.custom_params_values.gsub('kaya_custom_params=',"")
execution_name = result.execution_name.empty? ? 'Not Defined' : result.execution_name.gsub('-_-',' ')
git_log = result.git_log.split('Author').first
javascript = Mote.parse(File.read("#{Kaya::View.path}/javascript.mote"), self, []).call()
?>
There is no changes in this execution since more than {{elapsed}}. If the suite you asked is still running, you can stop it by pressing the following buttonResult for {{result.suite_name}} execution {{result.stopped? ? '(Stopped)' : ''}}
Result ID: {{result.id}}
% if Kaya::Support::Configuration.use_git?
Git log: {{git_log}}
% end
Status: {{result.status}}
% if result.timeout
Timeout: Stopped After {{result.timeout}} seconds
% end
% if result.started_at
Duration: {{result.elapsed_time}} seconds
% end
Execution Name: {{execution_name}}
Custom parameters:{{custom_params}}
% if (result.process_running? or result.running?) and (result.seconds_without_changes > Kaya::Support::Configuration.inactivity_timeout) and Kaya::Support::Configuration.reset_execution_availability?
% elapsed = Kaya::View.formatted_for(result.seconds_without_changes)
Console Output
{{text}}