peoplesoft test framework walkthrough

46
PeopleSoft Test Framework – Walkthrough 1

Upload: sreekanth-mukalla

Post on 18-Dec-2014

556 views

Category:

Software


2 download

DESCRIPTION

PeopleSoft Test Framework automates Application System Testing for Functional Users. It reduces the cost of Test Development with simple “Record and Playback” feature, requires no Coding and all the Tests and Test Cases are put together in a easy to use GUI environment

TRANSCRIPT

Page 1: PeopleSoft Test Framework Walkthrough

PeopleSoft Test Framework – Walkthrough

1

Page 2: PeopleSoft Test Framework Walkthrough

Author(s): Sreekanth Mukalla Mohan Sareddy Project Details · H/W Platform: Windows · S/W Environment: PeopleSoft FSCM 9.1 · Application Type: ERP Application · Project Type: Re-Implementation & Support

Author(s)

2

Page 3: PeopleSoft Test Framework Walkthrough

3

Introduction

Target readers PeopleSoft Functional and Technical Users Keywords PeopleSoft Test Framework, Functional Testing Introduction PeopleSoft Test Framework automates Application System Testing for Functional Users. It reduces the cost of Test Development with simple “Record and Playback” feature, requires no Coding and all the Tests and Test Cases are put together in a easy to use GUI environment. On a high level, the presentation covers the below topics • Configuration & Setup of PTF • Walkthrough of the PTF • Best Practices Involved • Provide Illustrative Examples for Quick Reference Reference(s): 1.PeopleBook : PeopleSoft Test Framework http://docs.oracle.com/cd/E18377_01/psft/acrobat/pt851tptf-b0810.pdf

Page 4: PeopleSoft Test Framework Walkthrough

Agenda

Configuration and Setup

PTF Walkthrough

Best Practices

Illustrative Examples

4

Page 5: PeopleSoft Test Framework Walkthrough

Integration Broker – Local Gateway Setup

5

Page 6: PeopleSoft Test Framework Walkthrough

Integration Broker – Local Gateway Setup

6

Page 7: PeopleSoft Test Framework Walkthrough

Integration Broker – Gateway Properties

7

Page 8: PeopleSoft Test Framework Walkthrough

Integration Broker – Node Configuration

• Note: Here we have only one database connection to the web server. Else, we have to specify the Node Name as shown below.

8

Page 9: PeopleSoft Test Framework Walkthrough

Node Configuration

This User should have any of PTF Roles

Also, check for PSFT_EP Node Name

9

Page 10: PeopleSoft Test Framework Walkthrough

Node Configuration

10

Page 11: PeopleSoft Test Framework Walkthrough

Node Configuration

11

Page 12: PeopleSoft Test Framework Walkthrough

Configuration Options

12

Page 13: PeopleSoft Test Framework Walkthrough

Security

13

Page 14: PeopleSoft Test Framework Walkthrough

Installing PTF Client

• Locate the setup.exe in the PS_HOME>\setup\PsTestFramework and Install the same.

• Check for Microsoft .NET Framework and Internet Explorer Security Settings

• Common Error while installing PTF within Infosys is given below.

• Solution : • 1)Create the corresponding folders as mentioned in the path • 2)Copy the Configuration XML files provided in the attachments • 3)Try logging in again and edit as per your settings

14

Page 15: PeopleSoft Test Framework Walkthrough

Agenda

Configuration and Setup

PTF Walkthrough

Best Practices

Illustrative Examples

15

Page 16: PeopleSoft Test Framework Walkthrough

Log into PTF

Just an alias name, preferably the name of the database

Server Name and Secure Port number

Integration Broker Node ID.

Leave BLANK to refer to the default Node ID.

New/Previous – To browse through the list of

saved connections

16

Page 17: PeopleSoft Test Framework Walkthrough

Local Options

• Proceed with the Default options

• Consider changing the Output Folder and format

17

Page 18: PeopleSoft Test Framework Walkthrough

Execution Options

• Update the Execution Options • Fill in the URL Details, Username and Password • Select the default Process Server and specify Date Format • Note: URL need not be HTTPS • Update the PSHome Tools Path and other details in the PeopleTools tab • You can use Insert to connect and configure to multiple Instances

18

Page 19: PeopleSoft Test Framework Walkthrough

PeopleSoft Test Framework Client

Connection Alias Name

Database Name

User ID

myFolder : Store tests that you

do not want to share with others

Folder

Tests

19

Page 20: PeopleSoft Test Framework Walkthrough

Tests , Test Cases and Logs

Logs : Displays the Status of the previous

runs with the help of flags

Test Cases: DEFAULT is the base Test Case

that is automatically created.

We can create Multiple Test Cases by

associating different sets of data to a test

• PTF Explorer provides a Tree Structure View • Open ,Create, Delete, Copy and Move Folders and Test

Assets

20

Page 21: PeopleSoft Test Framework Walkthrough

Sample Test Case

Record the Test Case

Run Existing Test Case

Various Debug Options :

Break Point, Step by Step Processing

21

Page 22: PeopleSoft Test Framework Walkthrough

Getting Started

Click on the Home Icon to Activate the Internet Browser

And Open the PeopleSoft Login Page

Click on the IExplorer Icon

Drag the IExplorer Icon on to the Internet Explorer Browser

Click on the Record Icon

Click on the Stop Recording Icon

Recording has been completed . Now, go back to PTF Explorer

And identify and review the Individual Steps

22

Page 23: PeopleSoft Test Framework Walkthrough

Test Steps

• Every User Action will be captured as a Test Step • Example : A User Entering the UserID Field will get Translated to a Test Case as a Step

23

Page 24: PeopleSoft Test Framework Walkthrough

Test Object Properties

Drag and Point the Icon to display the Object Properties

• Make Use of the Object Properties to further refine the Test Case

24

Page 25: PeopleSoft Test Framework Walkthrough

PTF Log Viewer

25

Displays the Results of the Tests

Page 26: PeopleSoft Test Framework Walkthrough

Copying Test Cases

Note: We cannot open these objects in App Deisgner

26

Page 27: PeopleSoft Test Framework Walkthrough

Saving your work in a project

27

Import Object Type Tests and Test Cases

Page 28: PeopleSoft Test Framework Walkthrough

Backing up your Tests and Test Cases

28

Page 29: PeopleSoft Test Framework Walkthrough

Agenda

Configuration and Setup

PTF Walkthrough

Best Practices

Illustrative Examples

29

Page 30: PeopleSoft Test Framework Walkthrough

PTF Best Practices

• Record First

• Try to Record Each and Every Step.

• Even if some of the values are defaulting on the page, Blank them out and re-enter the value

• Run through the Test Case once it is completed and Activate or Inactivate any Step if required to suit your scenario.

• Use the Debugging Mode

• Also, you can start and stop recording at any step that you require instead of manually editing or creating a Test Step.

• Document tests

• Use proper Naming Convention

• No Duplicate Test Case names

• Create Folders by Module or Functional Classification

• Please fill in Test description, Test properties ,Test case description ,Test case properties

• Use Log Message wherever appropriate

30

Page 31: PeopleSoft Test Framework Walkthrough

PTF Best Practices . . . ( Contd.)

• Clean up tests

• Immediately after Recording, Review the Test and Perform Corrective Action by removing unnecessary clicks, Incorrect

Data Entry etc.

• Use execution options

• Logon Information can be Stored under Execution Option.

• Also, If you want to avoid saving or running processes, use the Skip PageSave/RunRequest functionality

• Ex: Avoid new Vouchers being created each time you run the Test Case

• Use page prompting

• Avoid unnecessary steps for navigation

• Navigate directly to the Page . Type = Page, Action = Prompt/ PromptOK

31

Page 32: PeopleSoft Test Framework Walkthrough

PTF Best Practices . . . ( Contd.)

• Use of Process Object Type

• Use Process.Run step to directly run a process

• Make Tests Dynamic

• Logical Variables

• Conditional logic

• Scroll handling

• Reserved Words like #TODAY

• Finally – Some Caution

• Generally, some of the input fields will have some values which are already defaulted. However, we must explicitly enter or set that value when using the recording feature.

• While recording a date field that has a calendar object, you must enter the date explicitly. Also, you must not use the calendar to select a date. Hint: Use #TODAY if the field has to be dynamic.

• Scroll Handling requires a bit of programmatic approach and additional effort

32

Page 33: PeopleSoft Test Framework Walkthrough

Agenda

Configuration and Setup

PTF Walkthrough

Best Practices

Illustrative Examples

33

Page 34: PeopleSoft Test Framework Walkthrough

When to Use PTF

• Flexible and Useful for New Implementations / Upgrades / Bundle Applications

• Less Dependency on Functional Resources

• Limited Time and Highly Customized Application

• Accelerates Testing when it has to be performed in Multiple Environments – DEV, QA, CRP1, CRP2, UAT

• Simplifies Impact Analysis when regularly applying Patches / Fixes

• Supports Data Mover and Query

Difference in Approach – Savings in Cost and Time

34

Page 35: PeopleSoft Test Framework Walkthrough

PTF Limitations

• Not Designed for Load / Performance Testing

• Not Designed for Running Concurrent Tests and simulate Multi User Scenarios

• Works with Internet Explorer Only

• Works only with PeopleSoft Objects.

• Cannot work with Flash/Flex, External Objects, data in HTML Regions, etc.

• Cannot validate images or relative positioning of data and online objects.

• Cannot simulate drag and drop

35

Page 36: PeopleSoft Test Framework Walkthrough

Calling Tests

The Test that we are calling should be a Library Test

Test Name in Recognition and Test Case Name in Value

36

Page 37: PeopleSoft Test Framework Walkthrough

Page Prompt

The Page Navigation

37

Page 38: PeopleSoft Test Framework Walkthrough

Error Handling

Use Error Handling Checkbox is selected

The Corresponding Error Message and Actions can be defined

38

Page 39: PeopleSoft Test Framework Walkthrough

Conditional Logic

If Then Logic and the Corresponding Output

39

Page 40: PeopleSoft Test Framework Walkthrough

Run Process

Name of the Process along with Wait instructions

40

Page 41: PeopleSoft Test Framework Walkthrough

Run Query

Query Name

Parameters to be passed

41

Page 42: PeopleSoft Test Framework Walkthrough

Run Data Mover Scripts

42

Location of DMS Script

Page 43: PeopleSoft Test Framework Walkthrough

Scroll Handling

43

Note: Scroll ID field is required and is populated manually in this case.

Page 44: PeopleSoft Test Framework Walkthrough

Scroll Handling … (Contd.)

Searching for the Role PTF Administrator and

Displaying the result in the Log Message

44

Page 45: PeopleSoft Test Framework Walkthrough

Key Tables

Main Tables

PSPTTSTCASE

PSPTTSTCASEDEL

PSPTTSTCASEVAL

PSPTTSTCMD_VW

PSPTTSTCOMMAND

PSPTTSTCONFIG

PSPTTSTDEFN

PSPTTSTDEFNDEL

PSPTTSTDEFNTREE

PSPTTSTERROR

PSPTTSTLOGIN

PSPTTSTMAINTPAR

PSPTTSTMESSAGES

PSPTTSTOPTIONS

PSPTTSTSTEPS

PSPTTSTSVCPARMS

PSPTTSTSVCREPLY

PSPTTSTTASKS

PSPTTSTANLRULES

Log Info

PSPTTSTLOG_IMG

PSPTTSTLOG_LIST

PSPTTSTLOG_LNS

PSPTTSTLOG_OPTS

PSPTTSTLOG_XTRA

Reports

PSPTTSTMAINTRPT

PSPTTSTCOVRGRPT

45

Page 46: PeopleSoft Test Framework Walkthrough

THANK YOU

46