copyright © 2013, oracle and/or its affiliates. all rights reserved. confidential - oracle...

Post on 30-Mar-2015

217 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted1

Test Framework in PeopleSoft PeopleTools 8.52Test Creation, Optimization and Maintenance

Ding GangOracle University Principal Instructor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted3

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted4

Program Agenda

Feature Overview

Testing Types

Optimization

8.52 enhancements

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted5

PeopleSoft Test Framework:

Feature Overview

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted6

Feature Overview

PeopleTools Test Framework is tied to PeopleTools Metadata

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted7

Framework

PSPTTSTOPTIONS- Identifies the profiles of high level sign-on information for the test framework.

Test Definition

PSPTTSTDEFN- Identifies the tests and the folder in which the test is organized.

PSPTTSTCOMMAND- Identifies each step of a test case.

PeopleSoft Test Framework Tables

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted8

Test Data “Test Case”

PSPTTSTCASE- Header table for test cases. PSPTTSTCASEVAL- The detail data for each test case - data values for each command/step.

Test Log

PSPTTSTLOG_LIST - The header table for the logs of test case runs. Identifies the test, the test case, and the high level results.

PSPTTSTLOG_LNS - The detail results of each step of a test case run. PSPTTSTLOG_IMG – Stores image captures of each page when a test step is logged as failing. PSPTTSTLOG_OPTS – Stores the options used to run a test, such as URL and user id. PSPTTSTLOG_XTRA - Stores information about the environment that was used to run a specific test

(part of log).

PeopleSoft Test Framework Tables

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted9

Feature Overview

Record and Playback featureUsed by Users, Super-Users and Developers

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted10

Robust Test Development Platform

A PTF test consists of a series of steps. When you record a test, PTF creates one step for each action you take against the target application.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted11

PeopleSoft Test Framework Log Whenever you run a test, PTF creates an execution log entry. The log is located in PTF Explorer under the test name, in the log folder specified in Execution Options.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted12

PeopleSoft Test Framework Log entries in the Logs folder of PTF Explorer:

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted13

Feature Overview Interaction with Rowsets

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted14

Feature Overview

Interface with other PeopleTools

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted15

Feature Overview

Integrated Maintenance and Coverage Reports

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted16

Feature Overview

DEMO

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted17

PeopleSoft Test Framework:

Testing Types

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted18

Types of Tests

Unit– Validates data, business rules, and business process requirements.

System– Tests all processes, including online functionality, batch functionality,

inbound and outbound interfaces, conversions, customizations, and reports.

Testing Strategies

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted19

Types of Tests

Integration– all business processes and groups of related business processes within the

application to determine whether they function as designed.

Parallel– Optionally performed throughout all testing stages.

Regression– Retests the previous tests.

Testing Strategies

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted20

Types of Tests

Performance– Measures your current system performance against the new release-level

performance.

User Acceptance– Validates data, business rules, and business process requirements in the test move

to production phase.

Testing Strategies

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted21

PeopleSoft Test Framework:

Optimization

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted22

Test Optimization

Using Test Optimization you can replace these four steps listed above with one step using Browser.Start_Login.

This action opens the browser instance where the test will be executed and logs into the PeopleSoft application using the URL, user ID, and password from the selected execution option.

Modify your steps within your test, these four steps log you onto the PeopleSoft application.

PeopleSoft Test Framework

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted23

PeopleSoft Test FrameworkWhen you record a test you often record unneeded steps

You might need to correct typos that might appear in your test

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted24

PeopleSoft Test Framework Test Optimization

#PREFIX#

Reserved word substitutes the text in the Prefix field for the string in the Value field.

You can run the test again with a different value, only needing to change the value in the Prefix field.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted25

PeopleSoft Test Framework

Message Toolbar– Displays details about an object in the application, including name, object type, and

value.

Test Optimization

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted26

PeopleSoft Test Framework

Variables– Store a value for a variable in a parameter in the Recognition field on the step.

Test Optimization

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted27

PeopleSoft Test Framework

Refer to the values stored in a variable in two ways:– Use a Conditional.If_Then step

– Use the variable in the value field of a step that sets or verifies the value.

Test Optimization

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted28

PeopleSoft Test FrameworkTest Optimization

#LIST#

Reserved word LIST will check for the values of a ComboBox. It works either on full text entries or translation values.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted29

PeopleSoft Test Framework

#CHECK# - Checks a value in an object against the expected value defined in the PTF test. Updates the value if no match exists.

#DIS#- Checks whether an object is display-only. #DTTM - Enters the current date and time into an application. #EXIST# and #NOTEXIST# - Checks whether a field exists or does not exist

on a page. #FAIL# and #WARN# - Same as #CHECK# but does not update the value. If

the values do not match, PTF logs a Fail or Warning. #IGNORE - Place the #IGNORE reserved word in the Value field of a

Test.Exec step to skip the call to the child test.

Test Optimization – Reserved Words

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted30

PeopleSoft Test Framework

#LIKEF# and #LIKEW#- Matches strings using LIKE. If no match exists, PTF logs a Fail or Warning. PTF does not update the value.

#LIST#- Checks the values in a drop-down list box. Use a | to separate items in the Value field.

#NOTHING- Deletes a value in the object or verifies that it is blank. If the object is a ComboBox and the action is Set_Value, then PTF selects a blank item.

#PREFIX#- Substitutes the text in the Prefix field in the Test Editor for #PREFIX# in the Value field.

#TODAY- Enters the current date.

Test Optimization – Reserved Words

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted31

PeopleSoft Test FrameworkTest Optimization

Page Prompting

PTF page prompting steps make tests more robust and repeatable by simplifying test data and replacing it with intelligence built into the step.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted32

PeopleSoft Test FrameworkTest Optimization

Application Messaging

Use the Message Recognition feature to indicate that PTF should click OK whenever that specific message appears in the application

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted33

PeopleSoft Test FrameworkTest Optimization

Message Recognition Dialog Box

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted34

PeopleSoft Test FrameworkTest Optimization

Process Execution After Optimization

Process Execution Prior to Optimization

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted35

PeopleSoft Test FrameworkTest Optimization

TEST.EXEC calling other tests

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted36

PeopleSoft Test Framework

Shell Tests

A type of test that you use primarily to call other tests.

Shell Tests support the following options:

Test.Exec - calling other tests

DataMover.Exec – calling data mover scripts

Query.Exec – running queries

Variable.Set_Value – manipulating variables

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted37

PeopleSoft Test FrameworkTest Optimization

SHELL TESTS using TEST.EXEC to call other tests

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted38

PeopleSoft Test Framework

Scroll Handling

Data in a PeopleSoft component is organized hierarchically using rowsets, or scrolls, and rows.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted39

PeopleSoft Test Framework

Scroll Handling

You can use the Scroll.Key_Set action and a Scroll.Action step to locate a row by key and generate a dynamic position index variable.

You can use the dynamic position index variable to reference a row or a field reliably and repeatedly because the variable is regenerated each time the test is run.

PeopleSoft Test Framework (PTF) references a field in a scroll by the field name and the row number.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted40

PeopleSoft Test Framework

Log Administration

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted41

PeopleSoft Test Framework

Move Test Assets using a Project

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted42

PeopleSoft Test Framework

When an application is upgraded, testers face two major challenges:

– Identifying which tests will fail because of changes in the target application.

– Identifying gaps in test coverage where new functionality was introduced.

PeopleSoft Test Framework (PTF) delivers two tools that enable test developers to help in determining the effect of changes:

– Test maintenance reports

– Test coverage reports

Change Impacts

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted43

PeopleSoft Test Framework

The maintenance process consists of these steps: 1. Define analysis rules. 2. Create a compare report based on an upgrade project. 3. Analyze the compare data. 4. Generate a maintenance report. 5. Identify tests that reference changed objects. 6. Modify impacted tests. 7. Generate a test coverage report. 8. Create or modify tests to cover coverage gaps.

The Maintenance Process

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted44

PeopleSoft Test Framework

1. Define analysis rules.

The Maintenance Process

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted45

PeopleSoft Test Framework

Use the Create Test Maintenance Report wizard to run test maintenance reports. The wizard consists of three steps:

Step 1: Manual Steps Step 2: Analyze Compare Data Step 3: Generate Report.

Test Maintenance Reports

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted46

PeopleSoft Test Framework

Step 1: Manual Steps

Test Maintenance Reports

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted47

PeopleSoft Test Framework

Step 2: Analyze Compare Data

Test Maintenance Reports

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted48

PeopleSoft Test Framework

Step 3: Generate Report

Test Maintenance Reports

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted49

PeopleSoft Test Framework

A test maintenance report in BI Publisher format:

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted50

PeopleSoft Test Framework

Test Coverage Report format:

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted51

PeopleSoft Test Framework

A test coverage report in PIA format:

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted52

Feature Overview

DEMO

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted53

PeopleSoft Test Framework:

8.52 Enhancements

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted54

PeopleSoft Test Framework

With the new Test Recorder Toolbar you now have the ability to record some of your optimization steps while you are recording the test script.

Test Recorder Toolbar

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted55

PeopleSoft Test FrameworkTest Cases

You can export and import your test cases to a file to work with large amounts of test case manipulation.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted56

PeopleSoft Test FrameworkTest Cases

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted57

PeopleSoft Test Framework

If you need to store variables between tests, use persistent variables. PTF stores persistent variables to the database so that subsequent test executions can use them.

Enable persistent variables in execution options, on the Advanced Options tab. You must also enable persistent variables in the test properties for each test. Once a persistent variable is read from the database, it is a Global variable,

and its value is available to any other test, regardless of whether the test is enabled to read persistent variables.

Persistent Variables

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted58

PeopleSoft Test Framework

System Variables

 System variables are predefined variables that PTF populates at runtime

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted59

PeopleSoft Test Framework

Functions

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted60

PeopleSoft Test Framework

Recording Get_Property Steps

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted61

PeopleSoft Test Framework

Recording Get_Property Steps

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted62

PeopleSoft Test Framework

Recording Message Recognition

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted63

Feature Overview

DEMO

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted64

PeopleSoft Test Framework

Oracle University

Check out Oracle University’s website at:http://education.oracle.com

LVC- Live Virtual ClassesOnsite Offerings/Private Events

ILT- Instructor Lead Training Classes

*for additional offerings contact your OU educational sales representative.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted65

Q&A

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted66

2013 LEADER INIT EDUCATION

According toIndustry Analyst Firm IDC

“With an ever-expanding portfolio of tools and applications, Oracle University is strongly oriented toward the individual learner.”

“This decentralized control [of the curricula development] helps maximize the relevance of the training offering to the elements that are most useful to end users.”

“Of the vendors evaluated, Oracle is most adept at describing the value of training at multiple parts of the technology deployment life cycle.”

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted67

One of the World’s Largest Training Organizations

Worldwide classrooms: 200+ in 89 countries

Languages supported: 28

Students trained per year: 400,000+

Courses: 2000+

Classes per week: 600+, 90+ Virtual Classes

Global education partnerships: 500+

Oracle certified professionals: 1.6+ million

On Demand Courses: 100 and growing

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted68

ROLE-BASED TRAINING

VALIDATED BY INDUSTRY-RECOGNIZED CERTIFICATIONS

Architects Implementers Developers Administrators Business Users

WHEN AND HOW YOU NEED ITTraining On DemandIn-Class Live Virtual Class Private

Training & Certification for the Entire Stack

Oracle Certified Master

Oracle Certified Expert

Oracle Certified

Professional

Oracle Certified

Associate

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted69

More than 2000 Courses Across 50+ Products Database Fusion Middleware Applications Server & Storage

SystemsIndustries

• Oracle Database 11g, Database 10g, 12c

• Real Application Clusters

• Grid Infrastructure• Enterprise Manager

for Database• SQL and PL/SQL• MySQL• Data Warehousing• Exadata and

Engineered Systems• Database Security • Data Guard• Application Express• Embedded Database • In-Memory Database

Cache• Spatial• Secure Enterprise

Search

• Java • Application Server 

and Infrastructure • Exalogic• Exalytics• Service-Oriented

Architecture and Process Management 

• WebCenter• Business Intelligence  • Identity Management• Developer Tools  • Data Integration• Transaction Processing• Enterprise Management• Oracle Cloud Services

• Fusion Applications• Oracle E-Business Suite• PeopleSoft Enterprise• Siebel• JD Edwards EnterpriseOne• Hyperion• Primavera• Application Integration Architecture • User Productivity Kit• Oracle CRM On Demand• JD Edwards World• Governance, Risk, and Compliance

Management• Agile Product Lifecycle Management• AutoVue Enterprise Visualization• Oracle Policy Automation• Demantra• ATG Commerce Suite• Transportation Management• Tutor

• Oracle Solaris• Oracle Solaris Cluster • Virtualization• Linux• Security• Enterprise Manager

Ops Center• Sun Oracle Database

Machine• Sun Servers • Sun Storage and Tape

• Communications

• Life Sciences• Insurance• Retail• Utilities• Higher

Education

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted70

160+ Certification Credentials Available

Products Administrators, Developers & Architects Implementers & Consultants

DatabasePL/SQL SQLOracle Database MySQLRAC & Grid Performance Tuning

Oracle Database Enterprise Manager RAC SecurityData Warehousing

Middleware Java Development Java ArchitectureWebLogic WebCenterSOA Identity ManagementCloud Application Foundation

Server &Storage Systems

Oracle Solaris Oracle Solaris ClusterLinux Oracle VM

Exadata ExalogicStorage SPARCPillar Axiom

Applications Siebel Oracle Hyperion

Fusion Applications E-Business Suite User Productivity Kit Oracle HyperionJD Edwards Siebel CRM PeopleSoft Enterprise PeopleToolsPrimavera Oracle Cloud

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted71

2013 LEADER IN IT EDUCATION

education.oracle.com

Contact Oracle University at:

Telephone: 800 810 9931

orEmail: OUChina_CN@oracle.com

Website:

www.oracle.com/cn/education

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted72

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential - Oracle Restricted73

top related