Session Objectives
• Object Type – Scroll
• Purpose and Usage
• How to use it in PTF
Session 9 - Scroll Slide 2
Scroll in PTF
• Scroll allow access to a field in the scroll area.
Individual rows of data within a scroll or grid are uniquely identified by a set of one
or more fields, or keys.
• The PTF scroll handling feature allow access to identify a Row
number/Row at test execution time based on the keys for thatrow.
• Using the Scroll.Key_Set action and a Scroll.Action step to
locate a row by key.
• Using the dynamic position index variable, reference of the
row or get the row number repeatedly.
Session 9 - Scroll Slide 3
Object Type – Scroll
Follow these steps to use a dynamic position index:
• Create Key_Set steps.
• Create an Action step.
• Use the index variable for other steps.
• Specify the Scroll ID.
Session 9 - Scroll Slide 4
Scroll in PeopleSoft Online Page
Text Box andCheck Box
Session 9 - Scroll Slide 5
Object Type – Scroll
Creating Key_Set steps
1. Create one Key_Set step for each field in the scroll key – usingdata to create a key to identify the row
2. Key_Set requires two parameters in the Recognition column:Type= and Name=.
Field andScroll Key_Set Assignment
Session 9 - Scroll Slide 6
Object Type – Scroll - Action
Action Step
• An Action Step attempts to locate a row defined by Key_Set.
• Based on the action that needs to be performed, such as Update,Insert, Select, and so on.
• The ret= parameter of the action step to populate an index variablewith the index value
• The Index of the row is populated to the index variable.
Scroll Ret ValueScroll Id Retrieve a rowto Index
Session 9 - Scroll Slide 7
Object Type – Scroll - Index
Index Variable
• Provides the row position that is located based on the Key_Set.
• Referencing fields on that row using index variable.
• Format of the Index Variable = Name&var1
Locating CorrespondingRow and Acting
Session 9 - Scroll Slide 8
Object Type – Scroll – Scroll ID
Specifying the Scroll ID
• Scroll ID is a required field.
• Assign a Scroll Id to group scroll actions for each scroll.
• Use a different scroll ID and scroll variable for each different scrollarea.
• Assign any unique integer.Scroll ID
Session 9 - Scroll Slide 9
Object Type – Scroll
Index VariableIndexVariable
Session 9 - Scroll Slide 10
Action – Values
• Ins – Insert a row. If the current row is the first row, then usethe existing row.
• Ins+ – Always Insert a row.• Delins – Delete all rows, and then insert into the first row.• Del – Delete the row specified by the Key_Set action.• Delall – Delete all rows.• Sel – Find a row specified.
Sel – Find a row usingvalue ‘ASG’
Session 9 - Scroll Slide 11
Action – Values
• Upd – Find a specified row to work with. If the row is notfound, insert a new row or use the first row for the first time.
• Upd+ – Find a specified row to work with. If is not found,always insert a new row.
• Find - Use the scroll Find link. Format: find=text_to_find
Find a row using Country &Tax Id and Update
Session 9 - Scroll Slide 12
Object Type – Scroll - Log
Session 9 - Scroll Slide 13
Business Usage
• Allows access to data in Grid, Table and Scroll Data
• Find/Populate/Manipulate data
• Delete Data from Grid/Scroll
Session 9 - Scroll Slide 14
Training
• Hand out the Training Material
• To be completed in 30 minutes
Discussion
• Walk through the Log
• Explaining the log results
• Highlight the Key words and lesson learned.
Session 9 - Scroll Slide 15
Q & A and Comments
Session 9 - Scroll Slide 16