Showing posts with label PTF. Show all posts
Showing posts with label PTF. Show all posts

Thursday, 8 May 2014

PeopleSoft Test Framework Installation and Configuration - Part 2

In this follow up post, we will take a look at the configurations we need to do once the PTF client is installed.

Once the application is launched, the Local options and the Execution options need to be configured.

Configuring Local Options

Local Options and Execution options can be accessed by clicking the database name with a '@' symbol prefixed to it on the top left corner of the PTF client.


The local options are specific to the machine where the PTF client is installed. The process run options define the settings for timeout for each process status. With the configuration below, if a process invoked by PTF is in queued or posting status for 1 min, then the test will log a warning message.

Similarly, the output folder and the output format can be defined if PSQuery is run from PTF.


Configuring Execution Options

Unlike Local options which are specific to a machine where it is installed, execution options once defined – are stored in the application database, and are available for anyone who logins to that application database to create, modify test assets. Only the administrator (who has PTF Administrator role) can configure the execution options for a database.

An execution option is for a specific application – so if two applications are to be tested from the same PTF client, then we would require two execution options, one for each application.
           
Basic Options
Under the basic options tab, the URL for the application needs to be given along with the default user ID and password. This URL is used to launch the application when a recorded test is played back.
The process server and the date format can also be defined in this section.
Skip PageSave will skip the step in the test case which attempts to save the component.

       
      
Advanced Options       
Advanced Options tab provides the option to enable persistent variables in the environment. Persistent variables store information that can be accessed whenever the application database is used in PTF client. They are similar to registry variables.

           
PeopleTools Options
It is in PeopleTools Options tab, we provide the database user ID and password. This is very important – as this information is used to retrieve test assets already stored in the database.


Log Export
In this tab, we define where the log files generated by the test cases are to be posted. A test case log can also have snapshots of the PeopleSoft screens, and 'Export Images' option in this tab will export the screenshots as images in the log export file.       


Note: The installation and the screenshots in this post are from PeopleTools version 8.53. This might be different from the earlier version of tools. 

Contributed by Karthik and Swetanshu

PeopleSoft Test Framework Installation and Configuration - Part 1

Introduction

PeopleSoft Test Framework (PTF) is a functional testing tool delivered by Oracle starting from PeopleTools version 8.51. This tool employs record and playback approach, and is meant to simulate one user working on a system at any point of time. This is not a load testing tool and the test assets created using the PTF tool are PeopleSoft managed objects - similar to records, pages and components.


The development instance of PTF should have:

1.   PTF client instance
2.   Connection to PeopleSoft application where we conduct tests
3.   Microsoft Internet Explorer browser (preferably IE8 and above)
4.   Connection to PeopleSoft application database where the test assets are stored 

The scope of this post is to explain the steps involved in the installation of the PTF client, and the configuration of the same.


Prerequisites

Verify Integration Broker Setup 
·         Go to Main Menu > PeopleTools > Integration Broker > Configuration > Gateways
·         Ping Gateway and see if it is active

   
·         Click the Gateway Setup Properties link on the same page. Sign on to integration gateway properties file, and verify if the default app server URL is specified.

Configuring the Web Profile
·         Go to Main Menu > Peopletools > Web Profile > Web Profile Configuration
·         Select the profile name of the environment and click on Debugging tab.


·      As shown in the above screenshot, check the 'Show Connection & Sys Info' and 'Generate HTML for testing' checkboxes. If the 'Show Connection & Sys Info' checkbox is not checked, PTF will not record the component, page and menu names in the test assets. Also, if the 'Generate HTML for testing' is not checked, PTF will not record HTML objects correctly.

 Defining Configuration Options
·         Go to Main Menu > Peopletools > Lifecycle Tools > Test Framework > Define Configuration Options
·         Specify whether untrusted SSL certificates can be allowed, and also specify record options.

Internet Explorer Options
·         Add the PeopleSoft application URL and related domain names to the safe list (Internet Options > Security tab > Local Intranet > Sites button), so that there will not be any issues in launching the application when the PTF test scripts are played back.

Installation

PTF client is a software installed in user's machines, where they can create, modify and execute test assets. The assets that are created in PTF client are stored directly in the application database. This client is similar to Application Designer.

The executable file for PTF is usually available from the path <PS_HOME>\setup\PsTestFramework. Before executing this file, make sure Microsoft .NET framework v3.5 and above is installed in your system.

Step1: Double click the executable file 'setup.exe' available in the path mentioned above. That launches the installation wizard.


Step 2: After providing the path where the application needs to be installed, click Next till the installation completes.



Step 3: Once the installation is complete, go to Start Menu and launch the PTF application



Step 4:  When the application starts, create a new instance (environment where the test assets are to be stored) by clicking the 'New' button.


Step 5:  Provide the database name (where the test assets are to be stored), application server URL and port, the node ID of the application.

Also, the user ID and password need to be provided during this setup – and it should be ensured that the user ID provided should have any of these 3 delivered roles provided by PeopleSoft for PTF.

·         PTF User
·         PTF Editor
·         PTF Administrator

After providing the details, click OK.


Step 6: This will open the PTF client as below



Note: The installation and the screenshots in this post are from PeopleTools version 8.53. This might be different from the earlier version of tools. 

Please take a look at the Part 2 for details on the configuration.

Contributed by Karthik and Swetanshu.

Thursday, 17 April 2014

Give your functional testers a break


PeopleSoft has lot of tools to work on – some of the very popular tools include Application Designer, Application Engine, Component Interface, etc.., When PeopleSoft releases a new PeopleTools version, generally it comes up with some new tools, and also provides updates/upgrades to their existing tools. Tools like Integration Broker, Upgrade Manager, XML publisher, etc.., are very handy, but somehow they are not so common to entry level technical consultants. We recently explored a new tool for functional testing which has been delivered by PeopleSoft from the tools version 8.51. This tool proves to be so easy to access, and even entry level consultants found it easy to work on it.

This relatively new tool – PeopleSoft Test Framework seems to be slowly catching up in the functional testing space of PeopleSoft applications. It employs record and playback approach. When we record the test, it translates each of our activity into small steps, and these steps together make up a test. When we playback, the steps are executed sequentially. PTF has a test editor where we can modify the existing tests and clone them into new ones. The editor also provides options to delete or inactivate steps.


The idea behind the launch of this tool is primarily to reduce the effort spent on functional testing. The tests created in this tool are PeopleSoft managed objects, so it is easy to migrate these test assets to different PeopleSoft environments. In those instances, we need to just play it back. This is an interesting concept. As a functional tester, one can be relieved to get rid of mundane tasks to be done in each of the instances – thanks to PTF tool. No need to maintain bulky excel sheets with test cases. PTF generates the test logs and they can be viewed from PTF client along with the screenshots. We also can go ahead and create dashboard reports out of these test case results, since all the data we require for the report are already stored in the database.


This tool can also be used for regression testing. This means, we can create a test today, and use the same script after couple of years when an application upgrade is done – to see if your business processes are still intact. Organizations that have implemented PeopleSoft can very well utilize this tool for their testing needs. In the long run, customers can very well realize that the testing costs have drastically reduced.


If your organization has implemented PeopleSoft, it’s high time you try PTF.



Leave your comments below on what do you think about this tool from PeopleSoft. If you are already using this, please comment on what kind of value addition this tool has brought to you and your team.

Contributed by Karthik