session objectives object type – scroll purpose and usage how to use it in ptf session 9 -...

15
Session Objectives • Object Type – Scroll • Purpose and Usage • How to use it in PTF Session 9 - Scroll Slide 2

Upload: cynthia-mckinney

Post on 03-Jan-2016

229 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

Session Objectives

• Object Type – Scroll

• Purpose and Usage

• How to use it in PTF

Session 9 - Scroll Slide 2

Page 2: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 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

Page 3: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 4: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

Scroll in PeopleSoft Online Page

Text Box andCheck Box

Session 9 - Scroll Slide 5

Page 5: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 6: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 7: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 8: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 9: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

Object Type – Scroll

Index VariableIndexVariable

Session 9 - Scroll Slide 10

Page 10: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 11: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 12: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

Object Type – Scroll - Log

Session 9 - Scroll Slide 13

Page 13: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 14: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

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

Page 15: Session Objectives Object Type – Scroll Purpose and Usage How to use it in PTF Session 9 - ScrollSlide 2

Q & A and Comments

Session 9 - Scroll Slide 16