<% require "toaster/model/automation" require "toaster/test/test_suite" $session = session 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') msg = "Settings successfully applied." flash[:notice] ? (flash[:notice] << msg) : flash[:notice] = [msg] if connection_changed #load_cache() Toaster::Cache.clear() msg = "Cache has been cleaned due to changes in connection settings." flash[:notice] ? (flash[:notice] << msg) : flash[:notice] = [msg] end end %>

Settings

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

Test Agent Service

Service Host:
Service Port:
<% end %>