Creating Runtime Options

You can configure new runtime options through the command line. To do this you will need to create a response file.

A response file is a text file with parameters. It is a secured way to pass parameters to the command line while creating runtime options.

Create a response file for example, c:\resp_file.txt with the parameters described further. Then run PsTestFw "C:\resp_file.txt" to create an runtime option.

If validation fails, the runtime options are not created.

PeopleSoft Test Framework provides a template to generate a response file. The response file template includes the following:

Parameters Description

-CS

Server:Port

-CO

User name

-CP

Password

-CNO

(Optional) Node name

-CUA

(Optional) Action on the SSL error. Values are:

  • True– Continue with unsecured connection.

  • False– Cancel the login.

-Action

Runtime option migration type. Values are:

  • rtoimp for importing runtime options.

  • rtoexp for exporting runtime options.

  • rtogen for generating runtime options.

  • testrun for running a test.

-Log

(Optional) Specify the name for the test runtime log. The default is unattended.log.

The following table describes the parameters to create runtime options, included in the response file.

Parameters Descriptions

EXECOPTNAME

Name of runtime options

Note that:

  • It is a required field.

  • Do not use special characters such as: “&”, “\”, “*”, “<”, “?”.

URL

URL

(Optional) It cannot be validated like the URL configured in the PTF client.

TOOLSPATH

DMSINPUT

DMSOUTPUT

DMSWORKING

LOGEXPPATH

File paths

(Optional) PTF checks for special characters in the file path such as: “|”, “<”, “*”, “?”

PERSISTVARIABLES

If value is set to Yes, then following parameters are also required.

BYEONAME

BYUSERID

BYMACHINE

BROWSER

Browser type where values can be:

  • Chrome

  • Firefox

  • Microsoft Edge

NOWINDOW

Set the value to Yes (Y) to enable the Run In Background option.

Note: Use this parameter only if you have selected the Chrome or Microsoft Edge browser.

FORMFACTOR

Form factor type where values can be:

  • L

  • M

  • N

  • S

  • X

PROMPT

SKIPLANGUAGE

VERBOSE

SKIPPAGESAVE

SKIPRUNREQUEST

LOGEXPUSE

LOGEXPDTTMSTAMP

LOGEXPIMAGE

These parameters accept Yes or No values.

Here is an example of a response file.

# Specify the server:port to connect to.
-CS=example.us.abc.com:8001
# Specify the user name
-CO=XY
# Specify the user password
-CP=XY
# Specify the node name
-CNO=
# Please keep this item as it is
-ACTION=rtogen
#Specify action of SSl error
-CUA=
# Specify the file path of runtime options creation log
-LOG=eo-create.log
# Following items are the fields of runtime options.
# The field EXECOPTNAME is required.
[EXECOPT]
EXECOPTNAME=TESTNK
PROMPT= No
URL=http://example.us.abc.com:8000/h92vknewx/signon.html
BROWSER= Chrome
USER=XY
PASSWORD=XY
VERBOSE= No
NOWINDOW= Y
# Add multiple instances of the runtime options
PORTAL_NAME_1= CUSTOMER
PORTAL_VALUE_1= http://example.com:8000/psp/database/CUSTOMER/FSCM/
PORTAL_NAME_2= EMPLOYEE
PORTAL_VALUE_2= http://example.com:8000/psp/database/EMPLOYEE/ERP/

Note:

To define multiple instances of runtime options settings, suffix an index for each runtime options instance. Specify the instance with the parameters PORTAL_NAME and PORTAL_VALUE.