<% require "toaster/model/automation" require "toaster/test/test_suite" $session = session message = nil backups = [] testresult_collections = [] $session['db.host'] = $session['db.host'] || DB.instance.db_host $session['db.port'] = $session['db.port'] || DB.instance.db_port $session['db.name'] = $session['db.name'] || DB.instance.db_name if param('saveSettings') != "" connection_changed = param('dbHost') != $session['db.host'] || param('dbPort') != $session['db.port'] || param('dbDB') != $session['db.name'] $session['db.host'] = param('dbHost') if param('dbHost') != "" $session['db.port'] = param('dbPort') if param('dbPort') != "" $session['db.name'] = param('dbDB') if param('dbDB') != "" $session['service.host'] = param('serviceHost') $session['service.port'] = param('servicePort') message = "Settings successfully applied." if connection_changed #load_cache() Toaster::Cache.clear() message += " Cache has been cleaned due to changes in connection settings." end end %>

Settings

<% if message %>
<%= message %>
<% end %> <% if !Toaster::Config.get("testing.hosted_mode") %>

Test Agent Service

Service Host:
Service Port:
<% end %>