2 Test Framework in PeopleSoft PeopleTools 8 Test Framework in PeopleSoft PeopleTools 8.52 Test Creation, Optimization and MaintenanceDing Gang Oracle University Principal Instructor
3 The following is intended to outline our general product direction 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.
4 Program Agenda Feature Overview Testing Types Optimization 8.52 enhancements
6 Feature OverviewPeopleTools Test Framework is tied to PeopleTools Metadata
7 PeopleSoft Test Framework Tables PSPTTSTOPTIONS- Identifies the profiles of high level sign-on information for the test framework.Test DefinitionPSPTTSTDEFN- Identifies the tests and the folder in which the test is organized.PSPTTSTCOMMAND- Identifies each step of a test case.
8 PeopleSoft Test Framework Tables 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 LogPSPTTSTLOG_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).
9 Feature Overview Record and Playback feature Used by Users, Super-Users and Developers
10 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.
11 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.
12 PeopleSoft Test Framework Log entries in the Logs folder of PTF Explorer:
18 Types of Tests Testing Strategies Unit System Validates data, business rules, and business process requirements.SystemTests all processes, including online functionality, batch functionality, inbound and outbound interfaces, conversions, customizations, and reports.
19 Types of Tests Testing Strategies Integration Parallel Regression all business processes and groups of related business processes within the application to determine whether they function as designed.ParallelOptionally performed throughout all testing stages.RegressionRetests the previous tests.
20 Types of Tests Testing Strategies Performance User Acceptance Measures your current system performance against the new release-level performance.User AcceptanceValidates data, business rules, and business process requirements in the test move to production phase.
22 PeopleSoft Test Framework Test OptimizationModify your steps within your test, these four steps log you onto the PeopleSoft application.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.
23 PeopleSoft Test Framework When you record a test you often record unneeded stepsYou might need to correct typos that might appear in your test
24 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.
25 PeopleSoft Test Framework Test OptimizationMessage ToolbarDisplays details about an object in the application, including name, object type, and value.
26 PeopleSoft Test Framework Test OptimizationVariablesStore a value for a variable in a parameter in the Recognition field on the step.
27 PeopleSoft Test Framework Test OptimizationRefer to the values stored in a variable in two ways:Use a Conditional.If_Then stepUse the variable in the value field of a step that sets or verifies the value.
28 PeopleSoft Test Framework Test Optimization#LIST#Reserved word LIST will check for the values of a ComboBox. It works either on full text entries or translation values.
29 PeopleSoft Test Framework Test Optimization – Reserved Words#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.
30 PeopleSoft Test Framework Test Optimization – Reserved Words#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.
31 PeopleSoft Test Framework Test OptimizationPage PromptingPTF page prompting steps make tests more robust and repeatable by simplifying test data and replacing it with intelligence built into the step.
32 PeopleSoft Test Framework Test OptimizationApplication MessagingUse the Message Recognition feature to indicate that PTF should click OK whenever that specific message appears in the application
33 PeopleSoft Test Framework Test OptimizationMessage Recognition Dialog Box
34 PeopleSoft Test Framework Test OptimizationProcess Execution Prior to OptimizationProcess Execution After Optimization
35 PeopleSoft Test Framework Test OptimizationTEST.EXEC calling other tests
36 PeopleSoft Test Framework Shell TestsA type of test that you use primarily to call other tests.Shell Tests support the following options:Test.Exec - calling other testsDataMover.Exec – calling data mover scriptsQuery.Exec – running queriesVariable.Set_Value – manipulating variables
37 PeopleSoft Test Framework Test OptimizationSHELL TESTS using TEST.EXEC to call other tests
38 PeopleSoft Test Framework Scroll HandlingData in a PeopleSoft component is organized hierarchically using rowsets, or scrolls, and rows.
39 PeopleSoft Test Framework Scroll HandlingPeopleSoft Test Framework (PTF) references a field in a scroll by the field name and the row number.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.
41 PeopleSoft Test Framework Move Test Assets using a Project
42 PeopleSoft Test Framework Change ImpactsWhen 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 reportsTest coverage reports
43 PeopleSoft Test Framework The Maintenance ProcessThe 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.
44 PeopleSoft Test Framework The Maintenance Process1. Define analysis rules.
45 PeopleSoft Test Framework Test Maintenance ReportsUse the Create Test Maintenance Report wizard to run test maintenance reports. The wizard consists of three steps:Step 1: Manual StepsStep 2: Analyze Compare DataStep 3: Generate Report.
46 PeopleSoft Test Framework Test Maintenance ReportsStep 1: Manual Steps
47 PeopleSoft Test Framework Test Maintenance ReportsStep 2: Analyze Compare Data
48 PeopleSoft Test Framework Test Maintenance ReportsStep 3: Generate Report
49 PeopleSoft Test Framework A test maintenance report in BI Publisher format:
50 PeopleSoft Test Framework Test Coverage Report format:
51 PeopleSoft Test Framework A test coverage report in PIA format:
57 PeopleSoft Test Framework Persistent VariablesIf 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.
58 PeopleSoft Test Framework System variables are predefined variables that PTF populates at runtimeSystem Variables
64 PeopleSoft Test Framework Oracle UniversityCheck out Oracle University’s website at:LVC- Live Virtual Classes Onsite Offerings/Private EventsILT- Instructor Lead Training Classes*for additional offerings contact your OU educational sales representative.
66 2013 leader in IT Education According to Industry Analyst Firm IDC “With an ever-expanding portfolio of tools and applications, Oracle University is strongly oriented toward the individual learner.”2013 leader in IT Education According to Industry Analyst Firm IDC“Of the vendors evaluated, Oracle is most adept at describing the value of training at multiple parts of the technology deployment life cycle.”According to the latest IDC Marketscape report for IT Education and Training Market, Oracle University is a leading education provider.Source:“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.”
67 One of the World’s Largest Training Organizations Worldwide classrooms: 200+ in 89 countriesLanguages supported: 28Courses: 2000+Classes per week: 600+, 90+ Virtual ClassesOn Demand Courses: 100 and growingStudents trained per year: 400,000+We continue to have one of the largest footprints in the IT training industry and are continuing to expand our portfolio to include more curriculum areas to align with Oracle’s expanding product stack and offer more on demand training courses that will help organizations train their teams more quickly and cost-effectively.****Countries supported: 89Languages supported: 28Instructor-led course titles: 2,723Students trained per year: 300,000+Worldwide locations: 297In-Class training sessions per week: 600Live Virtual Classes per week: 90Oracle education partners: 2,479Oracle certified professionals: 1.3 millionGlobal education partnerships: 500+Oracle certified professionals: 1.6+ million
68 Training & Certification for the Entire Stack ROLE-BASED TRAININGArchitectsImplementersDevelopersAdministratorsBusiness UsersWHEN AND HOW YOU NEED ITIn-ClassLive Virtual ClassTraining On DemandPrivateVALIDATED BY INDUSTRY-RECOGNIZED CERTIFICATIONSTraining Solutions are available for Oracle’s complete hardware and software stackWe coordinate development of our courses across all of our engineering teams responsible for different layers of our stack.Our training is based on real-world Oracle implementations offering you the most relevant training available for Oracle technologyOracle Certified AssociateOracle Certified ProfessionalOracle Certified ExpertOracle Certified Master
69 More than 2000 Courses Across 50+ Products DatabaseFusion MiddlewareApplicationsServer & Storage SystemsIndustriesOracle Database 11g, Database 10g, 12cReal Application ClustersGrid InfrastructureEnterprise Manager for DatabaseSQL and PL/SQLMySQLData WarehousingExadata and Engineered SystemsDatabase SecurityData GuardApplication ExpressEmbedded DatabaseIn-Memory Database CacheSpatialSecure Enterprise SearchJava Application Server and Infrastructure ExalogicExalyticsService-Oriented Architecture and Process Management WebCenterBusiness Intelligence Identity ManagementDeveloper Tools Data IntegrationTransaction ProcessingEnterprise ManagementOracle Cloud ServicesFusion ApplicationsOracle E-Business SuitePeopleSoft EnterpriseSiebelJD Edwards EnterpriseOneHyperionPrimaveraApplication Integration ArchitectureUser Productivity KitOracle CRM On DemandJD Edwards WorldGovernance, Risk, and Compliance ManagementAgile Product Lifecycle ManagementAutoVue Enterprise VisualizationOracle Policy AutomationDemantraATG Commerce SuiteTransportation ManagementTutorOracle SolarisOracle Solaris ClusterVirtualizationLinuxSecurityEnterprise Manager Ops CenterSun Oracle Database MachineSun ServersSun Storage and TapeCommunicationsLife SciencesInsuranceRetailUtilitiesHigher EducationOracle University’s training portfolio covers every Oracle product and technology and we offer learning paths for all key roles.
70 160+ Certification Credentials Available ProductsAdministrators, Developers & ArchitectsImplementers & ConsultantsDatabasePL/SQL SQLOracle Database MySQLRAC & Grid Performance TuningOracle Database Enterprise ManagerRAC SecurityData WarehousingMiddlewareJava Development Java ArchitectureWebLogic WebCenterSOA Identity ManagementCloud Application FoundationServer & Storage SystemsOracle Solaris Oracle Solaris ClusterLinux Oracle VMExadata ExalogicStorage SPARCPillar AxiomApplicationsSiebelOracle HyperionFusion Applications E-Business SuiteUser Productivity Kit Oracle HyperionJD Edwards Siebel CRMPeopleSoft Enterprise PeopleToolsPrimavera Oracle CloudIn addition to our training, industry-recognized certifications are available for administrators, developers, implementers and consultants
71 Contact Oracle University at: Telephone:orWebsite:2013 leader in IT Educationeducation.oracle.comTraining is critical component of any IT strategy – be it implementing and integrating new technology, upgrading to newer versions of your technology or migrating to your workforce now will prepare you for success in the futureOracle University Training can prepare your teams to implement and use Oracle technology resulting in:Achievement of project objectivesTimely delivery of projectsReduced costsLower riskFewer service callsNot to mention, it will help improve retention of your highly skilled staff members.