A Command Line Reference

This appendix lists the parameters for running OpenScript scripts from the command line. All OpenScript scripts may be run from the command line assuming that:

To run a script from the command line, type:

[OpenScript Install Dir]/runScript.bat Path/ScriptName.jwg [options]

If OpenScript is not installed, but the OATS agent is installed, type:

[OATS Install Dir]/agent/runScript.bat Path/ScriptName.jwg [options]

Path is the full drive and directory path of the file location. When specifying file paths, use forward-slash (/) instead of back-slash (\) to ensure the back-slash notation is not misinterpreted in Java. If you must use back-slash notation, use double back-slashes (\\) in the file paths. For example, [OATS Install Dir]\\agent\\runScript.bat.

[options] may consist of any number of agent command line settings.

A.1 Specifying Command Line Settings

This section describes how to use the command line settings.

  • Zero or more agent command line settings may be specified using the following format:

    -settingId settingValue

    Example:

    runScript "C:/OracleATS/OpenScript/DefaultRepository/Default!/script1/script1.jwg" -iterations 5 -iterationDelay 5
    
  • If a settingValue contains spaces, the value may be enclosed inside double-quotation marks.

  • If a setting specifies a boolean true/false value, and no settingValue is specified, then a true value is assumed.

  • Except where specifically noted, all settingId values are NOT case-sensitive. For example, -iterations 10 means the same thing as -ITERATIONS 10.

  • It is possible to view all settings passed to a script by typing the following code inside an OpenScript script:

    info(getSettings().toString());
    
  • Custom settings may be used in a script and specified on the command line. For example, consider a script with a setting "todaysURLToTest":

    public void run() throws Exception {
        info("Today we will test the URL " + getSettings().get("todaysURLToTest"));
      }
    

    The setting may be specified on the command line using:

    -todaysURLToTest "http://www.oracle.com/"
    

    The following are reserved keywords that cannot be used as custom setting names:

    -noUpdate
    -boot
    -classloaderProperties
    -plugins
    -firstUse
    -newUpdates 
    -update
    -password
    -keyring
    
  • The runScript program can only accept 9 command line arguments. Use the -propertiesPath setting to specify a file containing a larger number of properties. Select Export Playback Settings from the Tools menu to generate a .properties file for the script. See the -propertiesPath setting in the General Settings for additional information.

A.2 Supported Agent Command Line Settings

Certain settings only apply to scripts that have a particular module applied. For example, HTTP load test script settings do not apply to Web functional test scripts.

A.2.1 General Settings

The following table lists the General command line settings.

Setting Description
-ENCRYPTION_PROPERTIES_FILE path\encryption.properties Specify the full path and file name to use for encrypted password authentication. The file name is C:\Documents and Settings\username\osworkspace\.metadata\.plugins\oracle.oats.scripting.utilities\encryption.properties.
-databank_preparation_timeout timeout Specifies how much time to spend preparing a databank for use before timing out. The value is in seconds. If this option is not specified, the default value of 30 seconds will be used. This setting includes the total time to do all of the following activities:

If using a Database-backed databank:

  • Connect to the database

  • Query

  • Read records, write into the file

  • Create the index simultaneously

  • Disconnect

If using a CSV-backed databank:

  • Time required to parse the CSV file and create the index

If using Random Unique:

  • Time to shuffle the index

Example usage:

-databank_preparation_timeout 60

-dbopts "dboption, dboption, ..." Specify which databank records to use when playing back the script, where dboption exists for each databank being configured. One or more dboption may be specified. Each dboption has the form:

"settingName=settingValue:settingName=settingValue:..."

At least one setting name=value pair must be specified. Only the alias setting is required. All other settings are optional. The following setting names are valid for a dboption:

alias=alias - (Required) Specify the alias of the databank being configured.

startIndex=startIndex - Specify the starting databank record to use. First record is 1. Default value is 1.

rangeMin=rangeMin - Specify the starting databank record range (inclusive). First record is 1. Default value is 1.

rangeMax=rangeMax - Specify the ending databank record range (inclusive). First record is 1. Specify -1 to indicate that the range max is equal to the number of databank records. Default is -1.

advance=advance_mode - Specify the Advance to Next Record setting. advance_mode value may be one of the following:

  • advance=WHEN_SCRIPT_REQUESTS - Corresponds to the option, "Advance to Next Record: When Script Requests a Record". This is the default value if no setting specified.

  • advance=EACH_OCCURRENCE - Corresponds to the option, "Advance to Next Record: Each Occurrence". Optionally use advance-column to specify a column name. If no column is specified, then any column will trigger record advancement.

  • advance=EACH_ITERATION - Corresponds to the option, "Advance to Next Record: Each Iteration".

  • advance=KEEP_FIRST_RECORD - Corresponds to the option, "Advance to Next Record: Keep the First Record Assigned".

Example inputs:

  • advance=WHEN_SCRIPT_REQUESTS

  • advance=EACH_OCCURRENCE

  • advance=EACH_OCCURRENCE:advance-column=firstName

  • advance=EACH_ITERATION

  • advance=KEEP_FIRST_RECORD

advance-column=columnName - Specify the name of a databank column. If no column is specified, then any column will trigger record advancement.

-dbopts (cont'd) select=select_mode - Specify the Select Next Record setting. select_mode value may be one of the following:
  • select=SEQUENTIAL - Corresponds to the option, "Select Next Record: Sequentially". This is the default selection mode if no setting specified.

  • select=RANDOM - Corresponds to the option, "Select Next Record: Randomly".

  • select=SHUFFLE - Corresponds to the option, "Select Next Record: By Shuffling".

select-seed=seed_number - Specify a seed to use when choosing a random record. This setting is optional, and is only used when select=RANDOM or when select=SHUFFLE. select_mode value is any non-negative long value. Specify 0 to let OpenScript generate a seed using the current system time. Default value is 0.

Example inputs:

  • select=RANDOM:select-seed=437292634

  • select=SHUFFLE:select-seed=372389237

  • select=RANDOM:select-seed=0

  • select=SHUFFLE:select-seed=0

whenOut=whenOut_mode - Specify the When Out of Records setting. whenOut_mode value may be one of the following:

  • whenOut=LOOP_FOREVER - Corresponds to the option, "When Out of Records: Loop Over Range". Default value if none specified.

  • whenOut=STOP_USER - Corresponds to the option, "When Out of Records: Stop the User".

  • whenOut=KEEP_SAME - Corresponds to the option, "When Out of Records: Keep the First Record Assigned".

Example inputs:

  • whenOut=LOOP_FOREVER

  • whenOut=STOP_USER

  • whenOut=KEEP_SAME

independentCursors=true|false - Specify the Let Each User Iterate Over Records Independently setting. This setting is not recommended for command-line playback, because it is only useful for scenarios with more than one virtual user. Value may be one of the following:

  • independentCursors=FALSE - Default if not specified.

  • independentCursors=TRUE

Example usage of -dbopts:

-dbopts alias=fmstocks_data:startIndex=2:rangeMin=2:rangeMax=5:whenOut=STOP_USER

-dbopts alias=fmstocks_data:select=SHUFFLE:iterations=10

-dbopts (cont'd) -dbopts alias=fmstocks_data:select=RANDOM:select-seed=4728292:iterations=10:advance=EACH_ITERATION

-dbopts alias=products:select=SEQUENTIAL:advance=EACH_ITERATION:iterations=100,alias=prices:select=SEQUENTIAL:advance=EACH_OCCURRENCE:advance-column=price

Notes and Limitations

Certain setting combinations are not allowed, or may cause exceptions when the script is run. The following are situations to be aware of when using -dbopts.

  1. The whenOut and independentCursors options are not available when select=RANDOM. When random is selected, an infinite supply of random records exists, and it requires that independentCursors=FALSE.

  2. Virtual users may still request an individual record using getRecord(n) after all records are used up, and whenOut=KEEP_SAME.

  3. The getRecord(n), getFirstRecord(), and getLastRecord() Java code methods do not advance the record cursor used by getNextDatabankRecord(). Therefore:

    getNextDatabankRecord();// returns 1
    getRecord(7);// returns 7
    getNextDatabankRecord();//returns 2, not 7
    
  4. The getRecord(n), getFirstRecord(), and getLastRecord() Java code methods throw an exception when they are invoked if select=SHUFFLE or select=RANDOM.

  5. The getRecord(n), getFirstRecord(), and getLastRecord() Java code methods throw an exception if they are invoked and the databank is not indexed.

  6. select-seed is only available when select=RANDOM or select=SHUFFLE.

  7. When individualCursors=true and select=SHUFFLE, all virtual users will get the same set of random records in the same order.

  8. A specific databank range and starting index may not be set if the databank cannot be indexed.

  9. select=RANDOM or select=SHUFFLE is only allowed when the databank can be indexed.

  10. select=SHUFFLE is only allowed when the databank can be indexed and when there are fewer than 200,000 records.

  11. individualCursors=true is only allowed when a databank can be indexed.

-dboptions alias:index:mode:range,alias:index:mode:range,... (Deprecated - used for version 9.10) Specify which databank records to use when playing back the script. Use

-dboptions alias:index:mode:range,alias:index:mode:range,... where alias is a databank alias, index is the first databank record to retrieve (first record is 1), and mode is one of the following strings:

  • FIRST_RECORD_ONLY - The Virtual User will only use the first record assigned to it.

  • USE_ALL_RECORDS - Stop after all records are used.

  • STOP_AFTER_LAST_RECORD - Stop after the last record in the databank file is used.

  • LOOP_FOREVER - Loop over all records for as many iterations are specified in -iterations. This is the default mode if no mode is specified.

range (optional) specifies which range of records to retrieve, in the format: rangeMin:rangeMax. For example, 5:10 means the range of records starting at record 5 and ending at record 10. If not specified, assumes all records in the databank.

Regardless of the databank setting, the VU will never run for more iterations than specified in the -iterations setting.

Example 1: To loop over records starting at the 5th row in the databank with alias "fmstocks_data", use:

-dboptions fmstocks_data:5:LOOP_FOREVER

Example 2: A databank with alias "fmstocks_data" contains 15 records. To iterate over records 5 through 10, starting at record 7 (i.e. 7,8,9,10,5,6,7,8,9,10,5,6...), for at most 100 iterations, use:

-iterations 100 -dboptions fmstocks_data:7:LOOP_FOREVER:5:10
-delayPercentage mode Specify how long to delay between steps in a script. Depending on the mode, this setting may be used in conjunction with other settings. mode should be one of the following numbers:

-2 No Delay.

1 Use Recorded Delay. Optionally specify a minimum and maximum amount of delay using -delayMin n and -delayMax m, where n and m are given in seconds. If unspecified, the default minimum and maximum amount of delay to use are 0 and 5 seconds, respectively.

-1 Delay for a random number of seconds. Optionally specify a minimum and maximum amount of delay using -delayMin n and -delayMax m, where n and m are given in seconds. If unspecified, the default minimum and maximum amount of delay to use are 0 and 5 seconds, respectively.

0 Delay for a random number of seconds using a percentage threshold range around the recorded delay. Optionally specify a lower and upper percentage delay range using -delayLower p and -delayUpper q, where p and q are a decimal value between 0 and 1. If unspecified, 0 will be used for the percentage threshold, resulting in the actual recorded delay being used.

-iterationDelay n Pause for n seconds between iterations.
-iterations n Run n iterations of the script.
-loglocalvudisplay true|false Create VUDisplay.txt and VUDisplay.csv result output files in the folder from which the agent was launched. The Virtual User Display output is not supported by functional test modules. The loglocalvudisplay setting is case-sensitive and must be exactly loglocalvudisplay.
-noReport true|false Set to true to disable generation of the results report. The default is false.
-portnumbermaximum portNumber Specifies the port number to use as the maximum port number for the record and playback port range to avoid port conflicts when multiple users run OpenScript from a single installation using multiple concurrent interactive desktop sessions (for example, Terminal Server or Remote Desktop sessions). The default is 7888.
-portnumberminimum portNumber Specifies the port number to use as the minimum port number for the record and playback port range to avoid port conflicts when multiple users run OpenScript from a single installation using multiple concurrent interactive desktop sessions (for example, Terminal Server or Remote Desktop sessions). The default is 7777.
-preserveVariables true|false Set to true to preserve variables between iterations, false to clear variables between iterations. Variables refer to variables set using the Variables service, i.e. getVariables().set(), not local Java code variables.
-propertiesPath path Specify the full path of a Java .properties file containing additional command line setting name=value pairs to add.

Example usage:

-propertiesPath "C:/additionalSettings.properties"
-replaceURLs originalURL1= replacementURL1,originalURL2=replacementURL2,[...] Specifies the URL replacement string. During playback, anytime the agent makes a request to a URL starting with a segment, originalURL, the agent replaces the original URL segment with replacementURL. This feature is only supported for Load Test scripts.
  • originalURL - Specify the starting segment of the URL:port that appears in the script that should be replaced. This value is case-sensitive.

  • replacementURL - Specify the new starting segment URL:port that the agent requests instead of originalURL.

For both parameters, if the protocol is omitted, HTTP protocol is assumed. If no port is specified after the host, port 80 is assumed for HTTP protocol, and port 443 is assumed for HTTPS protocol. URLs are replaced after all correlations are applied. One or more URL replacement pairs may be specified, separating each replacement pair with a comma. The following examples show the format of strings:

-replaceURLs "test_server:7789=production_server:7789"

-replaceURLs "test_server:7789=production_server:7789,https://staging.oracle.com/main=https://production.oracle.com/welcome"
-reportName name Override the file name used when generating the result report HTML file. Specify the name of the report including an extension, but excluding any path information. For example:
-reportName results.html

If not specified, OpenScript will determine a meaningful name for the result report HTML file based on the type of script being run. For example, an HTTP load test script calls its report httpReport.htm. A functional test script such as a Web functional test script calls its report FTReport.htm.

-repository repositoryString Specify the physical locations of one or more named repositories. repositoryString takes the form repositoryName=fullPathToRepository,repositoryName2=fullPathToRepository2,... This setting is required.

When you run Version 9.0 OpenScript scripts from the Version 9.10 Command Line Interface, you must use the -repository command line argument to pass to the Oracle Load Testing Virtual User Agent all repositories used by the script. This includes all repositories used for all Databanks, Object Libraries, and Child Scripts X levels deep.

In Version 9.0, The Oracle Load Testing Virtual User Agent would use the default repository (C:/<installdir>/OFT) if the repository command line argument was not specified. In Version 9.10, the multi-user environment default repository changed to <yourmachinename>.<your username>.Default in the <user.home> location. This change requires that the repositoryName= repositoryPath string be specified as a command line argument for all repositories including the default repository.

Always specify the repositoryString inside double-quotes.

Example usage:

-repository "JohnComputer.johndoe.Default=D:/OracleATS/OFT,SharedRepository=\\testserver/OurScripts"
-resultReportFolder path Specify the output folder for all result report files.

If it is not specified, the default output folder will be: [script folder]/SessionId

Example usage:

-resultReportFolder "C:/result"

The output folder would be: C:/result/SessionId

-stopVUserOnFailure true|false Specify whether or not the virtual user will continue running more iterations after a fatal error. Use the Error Recovery settings to control which errors should be fatal.

A.2.2 Browser Settings

The following table lists the Browser command line settings.

Setting Description
-browser.type type Specify the browser type to use for script playback where type is one of the following (use exact case and no spaces):
  • InternetExplorer

  • Firefox

The default is InternetExplorer.

-browser.startupTimeout n Specify n seconds to wait for the browser to start before timing out. The default is 15 seconds.
-browser.overridePath path OpenScript automatically detects where Internet Explorer and Firefox browser processes physically exist in the file system. In case the path to one of these browsers is incorrect, specify an alternative path to use when launching the specified browser type. This setting is not intended to be used to specify the path to an unsupported browser.

Example usage:

-browser.pathOverride "D:/Programs/Firefox/firefox.exe"
-browser.extraArgs args Specify any additional startup arguments that OpenSript should use when launching the browser process on playback. The default is no additional arguments other than what OpenScript may require internally.
-browser.hide true|false For Internet Explorer browser only, specify true to hide the browser during playback. This setting has no effect on Firefox. If certain actions in the script require the browser to be visible, such as key presses and physical mouse clicks, the script will not playback correctly. The default is false; browser is visible.

A.2.3 HTTP Settings

The following tables list the HTTP command line settings.

A.2.3.1 Proxy

The following table lists the proxy command line settings.

Setting Description
-http.proxyHost host Set the proxy host to the specified host. If no proxy host is specified, then no proxy is used.

Example usage:

-http.proxyHost "proxyserver.mycompany.com"
-http.proxyPort port_number Set the proxy port to the specified port_number.

Example usage:

-http.proxyPort 1234
-http.proxyUsername username If the proxy host requires authentication, provide the username. Ignored if http.proxyHost and http.proxyPort are not set.
-http.proxyPassword password If the proxy host requires authentication, provide the password. Ignored if http.proxyHost and http.proxyPort are not set. The password is not encrypted when provided on the command line.
-http.nonProxyHosts hostsList Specify a list of host names that the agent should not forward through the specified proxy defined by http.proxyHost and http.proxyPort. Separate multiple host names by a | delimeter. The host name must match the host being requested, as seen in the Host HTTP request header.

A.2.3.2 Compression

The following table lists the compression command line settings.

Setting Description
-http.useGzip true|false Enable GZIP compression. The client will add gzip to every Accept-Encoding HTTP request header. If the server responds with GZIP-compressed data, OpenScript will decompress it. The default value is true.
-http.useDeflate true|false Enable Deflate compression. The client will add deflate to every Accept-Encoding HTTP request header. If the server responds with Deflate-compressed data, OpenScript will decompress it. The default value is false.

A.2.3.3 Headers

The following table lists the header command line settings.

Setting Description
-http.userAgentHeader Browser Emulation. Specify the User-Agent header string to use when making requests. It is not required and harmless to include the User-Agent: prefix in the value itself. Most OpenScript scripts override this setting with the User-Agent header value found during recording.

Example usage:

-http.userAgentHeader "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
-http.globalHeaders headersList Specify any custom "Global Headers: string to use in the Request header for script playback. The format is in the form: name1:value1;name2:value2;name3:value3. For example: x-oracle-slm-message-id: bcn=<beacon_name>; svc=<service_name>;test=<test_name>;step={{@getTopLevelStepName())}}.
-http.language language Set the value of the Accept-Language HTTP header. If no value specified, the agent tries to determine the language header by looking at the system language.
-http.version version Specify the HTTP version string to append to each request, i.e. HTTP/1.1 or HTTP/1.0. If no value specified, agent will use HTTP/1.1
-http.accept acceptString Specify the HTTP Accept header to send by default for all requests.
-http.requestInOne true|false Specify if the HTTP request is sent as one TCP package or two TCP packages. An HTTP request may contain two parts: headers and postdata. If the setting is set to true, the headers together with the postdata is sent in one TCP package. If false, the headers and post data are sent in order in two TCP packages. The default is false.

Example usage:

getSettings().set("http.requestInOne", true);
http.post(...);
getSettings().set("http.requestInOne", false);

A.2.3.4 Connections

The following table lists the connection command line settings.

Setting Description
-http.useKeepAlive true|false Specify whether or not to keep HTTP connections alive after using them. Default is true to enable keep-alive connections.
-http.maxKeepAliveRequests n Specify an integer n number of requests to make before closing a keep-alive connection. Must be used together with http.useKeepAlive.
-http.maxConnections n Specify an integer n maximum number of connections a single virtual user may have open concurrently before blocking (waiting) for a new connection to become available. This setting only applies in OpenScript when concurrent sections are used in the script. The default value if not set is 2 connections per virtual user.
-http.connectionSpeed n Specify the number of bytes/sec n to limit the download speed. For example, to download at 56KBps, specify 56000. If no value specified, or an empty string is specified, this method assumes true line speed should be used.

A.2.3.5 Other

The following table lists other HTTP command line settings.

Setting Description
-http.ignoredUrls list_of_urls Specify a comma-separated list of case-insensitive URLs not to request during playback. The URLs only need to be the ENDS of URLs, not the entire URLs.

Example usage:

-http.ignoredUrls ".jpg,.gif,.css."
-http.cacheEmulation mode Specify if/how the browser should cache downloaded contents. Each virtual user maintains its own cache. The mode value is one of the following values:
  • 1 - Repeat User; use a cache and do not clear the cache after each iteration.

  • 2 - First Time User; use a cache and clear the cache after each iteration.

  • 3 - Disable "Cache download pages" (do not cache).

  • 4 - Enable "Cache download pages" and "Automatically".

  • 5 - Enable "Cache download pages" and "Every Visit to the page".

The default value is 3, do not cache.

-http.clearCacheAfterIteration true|false Specify whether or not the browser's cache should be cleared after the script completes each iteration of its run() section. This setting only applies when the cache is enabled using http.cacheEmulation. The default value is true, clear cache.
-http.maxCacheSize size Specify the maximum amount of in-memory storage to allocate for cached document contents. This setting applies to all virtual users in the process, even though each virtual user keeps its own cached documents. After the in-memory cache is exhausted, document contents will be cached to a temporary folder on disk in <installDir>\agent\cache. There is no upper bound on how much disk storage may be used to store cached documents. The disk cache is cleared every time the agent process starts. The default value for OpenScript is 16MB. The default value for Oracle Load Testing is 128MB.
-http.useCookies true|false Specify whether or not to allow the browser to remember and use session or persistent cookies during playback. The default value is true, use cookies.
-http.downloadLocalFiles true|false Specify whether or not the agent should download files that exist in the local file system. When local files are not downloaded, the contents are not displayed in the Oracle Load Testing Virtual User Display, and it is not possible to solve variables against the contents, for example. The default value is false, do not download local files.
-http.preserveCookies true|false Set to true if cookies should be preserved between iterations. Set to false if cookies will be cleared between iterations. The default value is false, do not preserve cookies between iterations.
-http.preserveConnections true|false Set to true if the browser should attempt to reuse any open browser connections if possible between iterations. Each virtual user maintains its own set of connections that it never shares with other virtual users. The default value is true, preserve connections between iterations.
-http.maxContentSize n Specify the maximum number of kilobytes (KB) to download from a server for a given request. Set to -1 to mean unlimited download size. The default value is -1, unlimited.
-http.socketTimeout n Specify the socket timeout in n seconds. The default value is 120 seconds.

A.2.3.6 Download Manager

The following table lists the Download Manager command line settings.

Setting Description
-http.useDownloadManager true|false Specify if the Download manager is enabled during playback. The default is false.
-http.downloadManager.css true|false Specify if css resources in <Link> tags are downloaded during playback. The default is false.
-http.downloadManager.Image true|false Specify if image resources in <Img> tags, in the "background" attribute of a tag, or in <style> tags with "background:url" patterns are downloaded during playback. The default is false.
-http.downloadManager.embededobject true|false Specify if object resources in <Embed> tags or in <Object> tags are downloaded during playback. The default is false.
-http.downloadManager.script true|false Specify if script resources in <Script> tags are downloaded during playback. The default is false.
-http.downloadManager.applet true|false Specify if applet resources in <Applet> tags are downloaded during playback. The default is false.
-http.ignoredUrlRegexps string Specify the Regular Expression(s) string to use to ignore specific resources. For example, the expression Login_Banner(.+?) would not download resources such as Login_Banner1.gif and Login_Banner2.gif. Multiple Regular Expressions can be separated using a comma (,).

A.2.4 Functional Test Settings

The following table lists the functional test command line settings.

Setting Description
-ft.smartMatch format Specifies which format to use to match attributes in an object path. The match format can be a wildcard-formatted or a regular-expression-formatted expression. format is one of the following settings:

wildcard - (default) Attributes in the given path may contain wildcards for unknown characters. For example, title="Welcome, user *". An asterisk "*" matches any number of characters. A question mark "?" matches any single character.

wildcardThenRegex - Attributes in the given path may contain a wildcard-formatted expression, or a regular-expression-formatted expression. During playback, an attempt is first made to find the object assuming a wildcard format, then an attempt is made to find the object assuming a regular-expression format.

regex - Attributes in the given path may contain a regular expression.

-ft.smartMatch true|false When true, the OpenScript Smart Match object identification ranking feature is enabled. The default value is true, enabled.

A.2.5 Oracle EBS/Forms Functional Test Settings

The following table lists the Oracle EBS/Forms functional test command line settings.

Setting Description
-formsft.startup_timeout n Specify n seconds to wait for the Forms applet to start up before failing the script due to a timeout. The default value is 30 seconds.
-formsft.action_timeout n Specify n seconds to wait when trying to play an action before timing out because the object required could not be found. The default value is 30 seconds.
-formsft.capture_screenshot true|false Set to true to capture screenshots of the Forms applet during playback. The default value is true.
-formsft.SUPPRESS_JPSECURITY_DIALOG true|false Set to true to supress "Java Security Windows" and "Warning - Security" pop up windows during either script recording or play back when the client machine has Java Runtime Environement (JRE) that is 1.6.0_24 or newer. If the client machine has JRE that is 1.6.0_23 or older, no matter if this setting is enabled or disabled, "Java Security Windows" and "Warning - Security" pop up windows will not show during either script recording or play back. The default value is true.

A.2.6 Oracle EBS/Forms Load Test Settings

The following table lists the Oracle EBS/Forms load test command line settings.

Setting Description
-formslt.disconnect_forms_auto true|false Set to true to automatically disconnect the Forms connection. When true, the script finish event of each script is monitored to disconnect forms automatically if the Forms connection is not closed after all steps are executed to avoid invalid server forms sessions.

Set to false if you have any chained Forms Load Test scripts and you do not want the Forms connection closed automatically in the child scripts.

-formslt.capture_message_details true|false Set to true to capture message details during playback. When true, OpenScript captures and stores Forms message requests, responses, and information about all loaded Forms components during playback. This information is useful to have when debugging the script.

OpenScript displays captured details in the "Messages" and "Object Details" tabs of the Details view. Oracle Load Testing displays this information in the Virtual User Display based on the "Virtual User Display" settings.

Capturing message details is a memory-intensive operation. During heavy load testing, it is recommended to clear this setting to reduce the amount of heap space required by the agent.


A.2.7 Shared Data Settings

The following table lists the shared data command line settings.

Setting Description
-sharedData.actionTimeout timeout Specify the maximum time in seconds to wait for the requested data to return.
-sharedData.Address address Specify the address of the Oracle Load Testing for Web Application server to use for the shared data service. For example: t3//:localhost:8088 or t3://machinename.us.oracle.com:8088.
-sharedData.Password password Specify the password to use for authentication. Note that this is a clear text password that is not secure.
-sharedData.encryptedPassword encryptedPassword Specify the encrypted password to use for authentication. To generate an encryptedPassword value for use in this command:
  1. In OpenScript, set the password encryption to Encrypt script data in the General Encryption Preferences.

  2. Select Add from the Script menu, expand the Shared Data folder and select Set Connection Parameters.

  3. Specify the connection parameters then copy the encrypted password from the Java Code view to your command line settings. For example, an encrypted password may look similar to the following example:

    gLM7NB+n7Yba0FlspMDX8A
    

This setting must also be used in conjunction with the -ENCRYPTION_PROPERTIES_FILE command-line setting.

Example usage:

--sharedData.encryptedPassword gLM7NB+n7Yba0FlspMDX8A -ENCRYPTION_PROPERTIES_FILE C:/Documents and Settings/username/osworkspace/.metadata/.plugins/oracle.oats.scripting.utilities/encryption.properties
-sharedData.obfuscatedPassword obfuscatedPassword Specify the obfuscated password to use for authentication. To generate an obfuscatedPassword value for use in this command:
  1. In OpenScript, set the password encryption to Obfuscate script data in the General Encryption Preferences.

  2. Select Add from the Script menu, expand the Shared Data folder and select Set Connection Parameters.

  3. Specify the connection parameters then copy the obfuscated password from the Java Code view to your command line. For example, an obfuscated password may look similar to the following example:

    RG5CE6b1u8cG9VzbbnW6cQ==
    

Example usage:

-sharedData.obfuscatedPassword RG5CE6b1u8cG9VzbbnW6cQ==
-sharedData.UserName name Specify the user name to use for authentication. The default name is oats unless changed in the Oracle Application Testing Suite configuration.

A.2.8 Web Functional Test Settings

The following table lists the Web functional test command line settings.

Setting Description
-web.event_time_out n Specify the Object Timeout n in seconds. If an object cannot be found in n seconds, the action will fail. The default value is 60.
-web.capture_html true|false Specify whether or not to capture the browser HTML during playback. The default value is true.
-web.capture_screenshot true|false Specify whether or not to capture screenshots during playback. The default value is true.
-web.capture_screenshot_interval n Specify the number of milliseconds to wait after a new page is detected and the screenshot is captured. The default value is 500.
-web.clear_persistent_cookies true|false Specify whether or not to clear browser persistent cookies between iterations. The default value is false.
-web.clear_persistent_cookies_before true|false Specify whether or not to clear browser persistent cookies before starting playback. The default value is false.
-web.clear_persistent_cookies_before true|false Specify whether or not to clear browser persistent cookies before starting playback. The default value is false.
-web.clear_session_cookies true|false Specify whether or not to clear browser session cookies between iterations. The default value is false.
-web.clear_session_cookies_before true|false Specify whether or not to clear browser session cookies before starting playback. The default value is false.
-web.clear_cache true|false Specify whether or not to clear the browser cache between iterations. The default value is false.
-web.date_format date_format_string Specify a date format string to override the default date format string used when performing date validation tests.
-web.webdom_proxy_port n Specify the port used for communication between the web browser and the agent. The default value is 7666.

A.2.9 Error Recovery Settings

All Error Recovery settings are specified using the form:

-errorRecoverySettingId action

action is one of the following constants (case-sensitive):

  • Ignore - proceed with the script as if the error did not occur. The error will still be logged to the console/log file.

  • Warn - report the error, but continue running the script.

  • Fail - report the error and fail the current iteration of the script.

  • ReportErrorAndContinue- Report the error to the results log and continue script execution.

  • Pause - Pause playback and wait for user's decision to continue or abort script execution.

A.2.9.1 General

The following table lists the general error recovery settings.

Setting Description
err.basic.BINARY_DECODING_EXCEPTION Binary Decode Failed
err.basic.CHILD_SCRIPT_EXCEPTION Child Script Failed
err.basic.CREATE_VARIABLE_ERROR Create Variable Failed
err.basic.ENCRYPTION_SERVICE_NOT_INITIALIZED Encryption Service Not Initialized
err.basic.FILE_NOT_FOUND File Not Found
err.basic.FUNCTION_EXCEPTION Function Failed
err.basic.GENERAL_SCRIPT_EXCEPTION Unexpected Script Error
err.basic.SEGMENT_PARSER_ERROR Segment Parser Failed
err.basic.VARIABLE_NOT_FOUND Variable Not Found.
err.basic.ENCRYPTION_SERVICE_NOT_INITIALIZED Encryption Service Not Initialized

A.2.9.2 Flex Load Testing (AMF)

The following table lists the Flex load testing (AMF) error recovery settings.

Setting Description
err.amfLT.OPERATION_INVOCATION_ERROR An operation on an object failed
err.amfLT.PLAYBACK_ERROR Playback failed

A.2.9.3 Functional Testing

The following table lists the functional testing error recovery settings.

Setting Description
err.functionalTest.FT_MATCH_ERROR Text Matching Test failed
err.functionalTest.OBJECT_TEST_ERROR Object Test failed
err.functionalTest.TABLE_TEST_ERROR Table Test failed

A.2.9.4 HTTP

The following table lists the HTTP error recovery settings.

Setting Description
err.http.HTML_PARSING_ERROR HTML Parsing error
err.http.INTERNET_INVALID_URL Invalid URL
err.http.INVALID_HTTP_RESPONSE_CODE Invalid HTTP Response Code
err.http.KEYSTORE_LOAD_ERROR Client Certificate Keystore error
err.http.MATCH_ERROR Text Matching Test failed
err.http.NODE_NOT_FOUND_EXCEPTION Element node not found with xpath exception
err.http.RESPONSE_TIME_ERROR Response Time error
err.http.SOLVE_ERROR Solve Variable failed
err.http.ZERO_LENGTH_DOWNLOAD Zero Length Downloads

A.2.9.5 Oracle EBS/Forms Functional Testing

The following table lists the Oracle EBS/Forms Functional Testing error recovery settings.

Setting Description
err.formsFT.FORMS_FT_ERROR Oracle Forms Error
err.formsFT.STATUSBAR_TEST_ERROR Status Bar Test Error

A.2.9.6 Oracle EBS/Forms Load Testing

The following table lists the Oracle EBS/Forms Load Testing error recovery settings.

Setting Description
err.formsLT.CONNECT_ERROR Forms Connect Error
err.formsLT.IO_ERROR Forms Input/Output Communication Error
err.formsLT.MATCH_ERROR Forms Content Match Failed
err.formsLT.PLAYBACK_ERROR Forms Playback Error
err.formsLT.COMPONENT_NOT_FOUND Forms Component Not Found

A.2.9.7 Web Functional Testing

The following table lists the Web Functional Testing error recovery settings.

Setting Description
err.webdom.FAIL_TO_PLAYBACK Playback Failed
err.webdom.HTML_TEST_ERROR HTML Test Failed
err.webdom.OBJECT_NOT_FOUND_ERROR Object Not Found
err.webdom.RESPONSE_TIME_ERROR Response Time Error
err.webdom.TITLE_TEST_ERROR Title Test Failed
err.webdom.WAIT_FOR_PAGE_TIMEOUT_ERROR Wait for Page Timeout
err.webdom.WEBDOM_SOLVE_ERROR Solve Variable Failed

A.2.9.8 Utilities

The following table lists the Utilities error recovery settings.

Setting Description
err.utilities.SQL_ERROR SQL Execute Error
err.utilities.XML_PARSING_ERROR XML Parsing Error
err.utilities.VALIDATION_ROWCOUNT_ERROR SQL Validation Row Count Error
err.utilities.CSV_LOADING_ERROR CSV Loading Error