Configuring Execution Options from the Command Line

You can create, export, import, and overwrite an existing execution option from the command line.

You can configure new execution 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 execution 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 execution option.

If validation fails the execution 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

Execution option migration type. Values are:

  • exoimp for importing execution options.

  • exoexp for exporting execution options.

  • exogen for generating execution options.

  • testrun for executing a test.

-Log

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

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

Parameters

Descriptions

EXECOPTNAME

Name of execution options

Please note:

  • 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:

  • Internet Explorer

  • Chrome

  • Firefox

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 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=exogen
#Specify action of SSl error
-CUA=
# Specify the file path of execution options creation log
-LOG=eo-create.log
# Following items are the fields of execution 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 execution 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 execution options settings, suffix an index for each execution options instance. Specify the instance with the parameters PORTAL_NAME and PORTAL_VALUE.

You can export execution options using command line. Enter PsTestFw "C:\export_exo.txt" where export_exo.txt is the response file. The response file will have following parameters:

Parameters

Description

-CS

Server:Port

-CNO

Node name

-CO

User name

-CP

Password

-CUA

(Optional) Specify the action of SSL error. Values are:

  • True—Continue with the unsecured connection.

  • False—Cancel the login.

-ACTION

Specify the migration type. For exporting execution options enter exoexp

-EXO

Specifies the name of the execution option, which is exported.

Add a comma Multiple execution options can be selected

-FILEPATH

Specifies the location and the file name where the execution option data file is stored. For example C:\PsTestFrameWork\eo-export.dat.

Here is an example of the response file for exporting execution options:

-CS=<Server> 
–CNO=<Nodeid> 
–CO=<username> 
-CP=<ConnectionPassword> 
–ACTION=exoexp
-EXO=LOCAL
-FILEPATH=<Path & exporting file name> 

On successful creation of the export file for the execution options, a log file with the name unattended.log is also created under the export folder. The location of the export folder is specified in the Local Options dialog box. See Export/Import Options.

You can import execution options from a data file to a database. The response file which is used to import the execution options include server name, node name, user name, password, instances of execution options to import, and the file path where the data file is located. See Exporting Execution Options.

Overwrite Parameter

The overwrite parameter allows overwrite of execution options with same name.

Field or Control

Definition

–OVW

Y/N

A sample response file for importing execution options and over writing existing execution option is as follows:

-CS=<Server> 
–CNO=<Nodeid> 
–CO=<username>
-CP=<ConnectionPassword> 
–ACTION=exoimp
#Over write exisitng execution option with same name.
-OVW=Y
-FILEPATH=<Path & importing file name>
-LOG= c:\temp\eo-import.log