1!** 2! * Sahi - Web Automation and Test Tool 3! * 4! * Copyright 2006 V Narayan Raman 5! * 6! * Licensed under the Apache License, Version 2.0 (the "License"); 7! * you may not use this file except in compliance with the License. 8! * You may obtain a copy of the License at 9! * 10! * http://www.apache.org/licenses/LICENSE-2.0 11! * 12! * Unless required by applicable law or agreed to in writing, software 13! * distributed under the License is distributed on an "AS IS" BASIS, 14! * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15! * See the License for the specific language governing permissions and 16! * limitations under the License. 17! ** 18# Sahi configuration file 19 20proxy.port=9999 21 22script.extension=sah;sahi;inc 23 24# dirs. Relative paths are relative to userdata dir. Separate directories with semi-colon 25scripts.dir=scripts; 26# default log directory. 27logs.dir=logs 28# Directory where auto generated ssl cerificates are stored 29certs.dir=certs 30 31 32# Use external proxy server for http 33ext.http.proxy.enable=true 34ext.http.proxy.host= 35ext.http.proxy.port= 36ext.http.proxy.auth.enable=false 37ext.http.proxy.auth.name=kamlesh 38ext.http.proxy.auth.password=password 39 40# Use external proxy server for https 41ext.https.proxy.enable=true 42ext.https.proxy.host= 43ext.https.proxy.port= 44ext.https.proxy.auth.enable=false 45ext.https.proxy.auth.name=kamlesh 46ext.https.proxy.auth.password=password 47 48# There is only one bypass list for both secure and insecure. 49ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.internaldomain.com 50 51# Set the size of buffer for buffered input streams 52io.buffer_size=8192 53 54# Sets the hotkey which when pressed and doubleclicked, 55# will open the Sahi controller window. 56# Can specify ALT, SHIFT, CTRL or META 57controller.hotkey=ALT 58 59# Time (in milliseconds) between tests. Increase this if you get random connection refused exceptions or if tests hang after some time. units milliseconds 60suite.time_between_tests=1000 61# Inactive time in SECONDS after which browser should be killed. Will happen if browser has hung or page load has been manually aborted. 62suite.max_inactive_time_for_script=60 63# set suite.global_variables to true if you want variables set via _setGlobal to be accessible across tests in a suite. Advisable to keep false. 64suite.global_variables=true 65 66# Script execution params 67 68#Time (in milliseconds) delay between steps 69script.time_between_steps=100 70#Time (in milliseconds) delay between retries once an error occurs 71script.time_between_steps_on_error=2000 72#Number of retries once an error occurs 73script.max_reattempts_on_error=5 74#Number of cycles Sahi will wait for the page to load before it proceeds with execution 75#Time spent is (script.max_cycles_for_page_load x script.time_between_steps) milliseconds 76script.max_cycles_for_page_load=1200 77#No of times Sahi should wait for stability of AJAX and page loads before continuing. min value is 1 78script.stability_index=5 79 80# For automatic SSL keystore creation. 81ssl.auto_create_keystore=true 82# Set the algorithm. Example: For Sun's JDK use SunX509, for IBM use IbmX509 83ssl.algorithm=SunX509 84ssl.password=sahipassword 85# Full file path to keytool utility if not in the system path 86# This is generally in the <java_home>/bin directory 87# On windows, keytool path, if specified, should have double backslashes without encompassing quotes. Eg. 88# keytool.path=D:\\java path\\bin\\keytool.exe 89keytool.path=/usr/local/openjdk8/bin/keytool 90 91http.keep_alive=true 92 93proxy.remote_socket_timeout=120000 94 95ff.profiles.template=config/ff_profile_template 96ff.profiles.dir=browser/ff/profiles 97ff.profiles.prefix=sahi 98ff.profiles.max_number=10 99 100response.modify_activex=true 101 102debug.traffic.log.unmodified=false 103debug.traffic.log.modified=false 104 105# Set this to true if Sahi should not click or do other actions on 106# elements (like menu items) which are not visible 107element.visibility_check.strict=false 108 109# Set this to true if files should automatically be downloaded when the Content-disposition response header is "attachment" 110download.download_if_contentdisposition_is_attachment=false 111 112# Set this to 2 if browser seems to be idle for a long time during to AJAX calls. 113# Use 1,2,3 for ZK apps. Just 2 for gmail (and comet based applications). 114# Can be controlled in the script using _sahi.waitWhenReadyState1, _sahi.waitWhenReadyState2, _sahi.waitWhenReadyState3 115xhr.wait_ready_states=1,2,3 116 117# This is the first n bytes of response data used to determine response type. 118# Change this to some other nearby value if you get "java.io.IOException: Resetting to invalid mark" errors on the console 119response.sample_length=400 120 121# Uncomment the following lines to use a client certificate. 122# If there is no password, do not uncomment the password line. 123# keystore type can be JKS, PKCS12 etc. 124#ssl.client.keystore.type=JKS 125#ssl.client.cert.path=certs/sahi_example_com 126#ssl.client.cert.password=sahipassword 127 128# Specifies the controller to be used 129# Takes java, ruby and sahi as valid values; default is sahi 130# Set this to java for recorder in java mode. 131controller.mode=sahi 132 133# Set Rhino optimizationLevel. 134# Change to -1 to beat 64K script limit. This will reduce performance though. 135rhino.optimization_level=-1 136 137# Set to true to escape unicode characters to \u00xx syntax 138script.escape_unicode=false 139 140# Turns on/off some filters. Used for debugging pages which do not render properly through proxy. 141filters.addCharacterFilter=true 142filters.addJSModifierFilter=true 143filters.addHTMLModifierFilter=true 144 145# Common domain on which cookies are set. Use sahi.example.com 146sahi.common_domain=sahi.example.com 147 148# Patterns of auto generated ids can be added here. If an id matches this expression Sahi will not consider it for its accessor. 149recorder.ignorable_ids.pattern=^z_|^j_id|[:]j_id|^ext[-]gen|^[:]|^zk_comp_|^gwt[-]uid 150 151# Simulation specific properties 152simulation.chrome.explicit_checkbox_radio_toggle=true 153 154# Injection point 155sahi.inject.force_treat_as_xhtml=false 156 157##