Multiple PeopleSoft customers use PeopleSoft test Framework to automate the testing of standard business processes to benefit them by

Reduce testing effort and duration (Reduced Time, Effort and Duration)

Ensure accurate test results

Reduce the overhead of Documentation

Overall, this enables Organizations to adopt a selective adoption strategy to consume latest delivered PeopleSoft updates.

PeopleTools 8.58 was initially released on Cloud and has been later released on premise. Details can be viewed at https://www.kovaion.com/blog/peopletools-858/.

More details on the features of 8.58 can be viewed from our blog – https://www.kovaion.com/blog/peopletools-8-58-highlights/.

With multiple enhancements released in PT 8.58, PeopleSoft Test Framework (PTF) is one of the major areas, which has considerable number of improvements that has been made in order to support developers to work with PTF in an effective way.

The same are discussed hereunder –

  1. Test Maintenance Report Creation via Process Scheduler

As per the PT 8.58 PeopleSoft Test Framework (PTF) enhancements, when a test maintenance report is created, the PSPTANALYSIS Application Engine program of the analysis step and the PSPTMAINTRPT Application Engine program of the report generation step are made to launch in the Process Scheduler. This help in eliminating any Page Timeout Issue.

What is a “Test Maintenance Report”?

While a PeopleSoft instance is upgraded or enhanced, multiple changes are made to the elements namely menus, components pages, records, fields, etc…The tests that are executed via PTF have a dependency on these elements. Those tests that have passed earlier may start to fail with the changes made.

It is a tedious task to identify and update each step. It is also time consuming and erroneous. There are two ways which PTF provides that may help testers to assess these changes.

One such tool delivered by PTF is “Test maintenance report”, wherein the PSPTANALYSIS Application Engine program of the analysis step and the PSPTMAINTRPT of the report generation step will run via Process Scheduler.

  1. Step Information

Step Information is key to identify the impact on existing test steps and to generate maintenance report.

With the release of enhancements with PeopleTools 8.58, step information is updated only for successful steps. To enable this feature – the “Overwrite Existing Step Info Check box” has to be checked in “Execution Options—Advanced tab”.

Step Information button is available on the Test Window Toolbox.

  1. Display Variables in Message Logs

The release of PeopleTools 8.58 enhancements for PeopleSoft Test framework, variables can be used instead of variable values, as a message in a test execution log. An additional “&” to the variable in the “Recognition” field of the selected test step will enable logging a variable.

Taking a step back, why are variables used? – Variables help us to store a value in one step and use the same in another upcoming step. Variables are useful storage pointers of a value, that will not be known until the test is executed. To denote a variable, (&) is prefixed. There may be some scenarios wherein variable need to be part of the message log. To Enable this, PTF has delivered this enhancement, wherein an additional “&” will enable logging a variable.

  1. Enabling Debug Options from the Command Line

PTF tests can be executed from the Command line using PsTestFW command. A text file argument is given to execute PTF via command line. The text file will usually contain these parameters for the command line execution.

-CS=<server>:<port>
-CUA=TRUE
-CO=<userID>
-CP=<password>
-TST=<TestNameFile>
-TC=DEFAULT
-ACTION=testrun /*testrun value is used for executing test.*/
-PFX=
-EXO=<ExecutionOptions>
-LOG=<logfile name>.log

Execution of the test will generate the output file in the PTF data directory.

“Stop on Error” is a text editor and shell test command which, with PT8.58 release can be given as a command line argument as well as “-SOE”.

[A key point to note while using this Command line argument is “If “-SOE” parameter in command line execution, this will override the StopOnError execution action in shell tests script.”]

Override precedence will be as follows:

Parameter Command Line ShellTest Result
SOE -SOE=True Execution.StopOnError = False If Failure is encountered, the command line test execution is stopped
SOE -SOE=False Execution.StopOnError = True or ALL If Failure is encountered, the command line test execution will continue
SOE Not Set Execution.StopOnError = False

OR

Execution.StopOnError = True or ALL

command line execution of the called test will continue based on the setting of Execution.StopOnError.

Sample:

-CS=<server>:<port>
-CUA=TRUE
-CO=<userID>
-CP=<password>
-TST=<TestNameFile>
-TC=DEFAULT
-ACTION=testrun /*testrun value is used for executing test.*/
-PFX=
-EXO=<ExecutionOptions>
-LOG=<logfile name>.log
-SOE=true

“Leave Browser Open” is an optional parameter that will enable PTF-launched browser window open after executing a test, to support the tester with debugging. With PT8.58 release, this parameter can be given from the command line as “-LBO”.

Default value for –LBO is “false” and the tester has options of setting it as “True” or “False” over the command line.

Sample:

-CS=<server>:<port>
-CUA=TRUE
-CO=<userID>
-CP=<password>
-TST=<TestNameFile>
-TC=DEFAULT
-ACTION=testrun /*testrun value is used for executing test.*/
-PFX=
-EXO=<ExecutionOptions>
-LOG=<logfile name>.log
-SOE=true
-LBO=true

All existing browsers will be terminated by default before execution when -LBO parameter is set in command line parameters, unless the -TL parameter is used in command line execution.

  1. Inserting Timestamp

With the release of the PeopleTools 8.58, on the test editor test window, a capability has been added to insert timestamp along with the comments in the comments editor. Timestamp displays the current date, time, and user ID.

On Clicking , the timestamp is added, wherein Date and time follows ISO 8601 format, and uses UTC time zone.

  1. Chrome Browser Version Compatibility

Playback feature via Chrome Browser is modified in PeopleTools 8.58 Test Framework. As the Chrome versions change, which is pretty often, each version requires a new driver. As part of the enhancement, the driver can be downloaded from the web and can be used instead of waiting it to be delivered as part of PTF.

This would be a solace for the testers as they can now play back test scripts in the latest version of Chrome by downloading a compatible driver and installing it in the PTF directory.

Author
Matheshwaran V,
Kovaion Consulting

Key References –

https://www.youtube.com/watch?v=aKKwQMckXwU

https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=122448653764179&id=2621182.1&_afrWindowMode=0&_adf.ctrl-state=3dn9pmut2_148

https://docs.oracle.com/cd/F25244_01/pt858pbr1/eng/pt/tptf/task_UnderstandingPeopleSoftTestFramework-ea7fd7.html?pli=ul_d106e22_tptf