29
Session Objectives Object Types – Text, Check Box and Combo Box Purpose/Usage of the Object Type • Hands-on Exercise Session 3 & 4 - Set Values

Session Objectives Object Types – Text, Check Box and Combo Box Purpose/Usage of the Object Type Hands-on Exercise Session 3 & 4 - Set Values

Embed Size (px)

Citation preview

Session Objectives

• Object Types – Text, Check Box and Combo Box

• Purpose/Usage of the Object Type

• Hands-on Exercise

Session 3 & 4 - Set Values

Object Types

1. Each object type allows only certain actions.

2. Each action can only be used with certain objecttypes.

3. For example, if a step has the Type field set to Textand the Action field set to Set_Value, you canchange/add the value or data

Session 3 & 4 - Set Values Slide 3

Object Type – Text / Check Box/ Comb Box

• Text Box

• Check Box

• Combo Box

Slide 4Session 3 & 4 - Set Values

Set Value – PeopleSoft Online

Concept: Populate values to Text box, Combo box and Check box.

Text Box (EnterData)

Combo Box(EnterData)

Check Box(EnterData)

Session 3 & 4 - Set Values Slide 5

Object Type – Text

Populate/Validate DataSet_Value: Sets a data

Exists: Check or variable value towhether the objects the action typeexists on the page

Get_property: Get theproperty Verify: Compares thevalue(prop=value) and value in the browserassigns to variable in to the expected value(ret=value).

Session 3 & 4 - Set Values Slide 6

Object Type – Text

Text Box Actions

Session 3 & 4 - Set Values Slide 7

Object Type – Check Box

This object type is used to check or click on a link in an online page

Exists: Check Set_Value: Sets a datawhether the objects or variable value toexists on the page the action type

Get_property: Get theproperty

Verify: Compares thevalue(prop=value) andvalue in the browserassigns to variable into the expected value(ret=value).

Session 3 & 4 - Set Values Slide 8

Object Type – Check Box

Check Box Actions

Session 3 & 4 - Set Values Slide 9

Object Type – Combo Box

This object type is used to bring the available value or Pulldown values

Set_Value: Sets a dataExists: Check or variable value towhether the objects the action typeexists on the page

Get_property: Get theVerify: Compares thepropertyvalue in the browservalue(prop=value) andto the expected valueassigns to variable in

(ret=value).

Session 3 & 4 - Set Values Slide 10

Object Type – Combo Box

Combo Box Actions

Session 3 & 4 - Set Values Slide 11

How to Check Object Properties

In PTF, Click Tools->Message

Click Menu and select HTML Browser And Show

List of Properties

Get_Property - Get the property value(prop=value) and assigns tovariable in (ret=value).

Session 3 & 4 - Set Values Slide 12

Object Type – Page

Action

• Save - This Object Type / Action performs actions on the

online pages to open or save the pages

• This statement is generated when we click the save

button on the online Page.

Slide 13Session 3 & 4 - Set Values

Object Page – Action : Save

Save Button

Session 3 & 4 - Set Values Slide 14

Object Type – Page and Action Save

• Save - This Object Type / Action performs actions on theonline pages to open or save the pages

Save: Save thecurrent page.

Session 3 & 4 - Set Values Slide 15

Object Type – Text, Check Box, Combo Box

Concept: Object: Text, Check Box, Combo Box are in use in the PTF

Text Box andCheck Box

Combo Box andCheck box,Page Save

Session 3 & 4 - Set Values Slide 16

Set Values in Log

Concept: How to use the Object Types : Text, Check Box, Combo Box

Session 3 & 4 - Set Values Slide 17

HR – PeopleSoft Test Framework

Session 4

Additional Object Types

Session Objectives

• Object Type –Radio Box, Variable, Image and Span

• Purpose / Usage of the Object Type/Actions

Session 3 & 4 - Set Values Slide 19

Object Type – Radio Box

Actions• Exists - Check whether the objects exists on the page

• Get_Property - Gets the property value based on the

prop=value parameter and assigns it to the variable in ret=&variable.

• Set_Value - Sets a data or variable value to the action type

• Verify - Compares the value in the browser to the expected

value, and adds a pass or fail log entry for the validation.

Session 3 & 4 - Set Values Slide 20

Object Type – Variable

Variable is declared to hold value. Format for the Variableis ‘&var ’.

• Set_Value - Sets a data or variable valueVariable Declared /Assigns Value toVariable

Variable assignvalue to Field

Session 3 & 4 - Set Values Slide 21

Object Type – Image

• Pictorial Object

• Image can act on following actions:

• Click – Performs click on Picture/Link/Icon objects.

• Exists – Check whether the objects exists on thepage.

• Get_Property – Get the property value for the Object.

Session 3 & 4 - Set Values Slide 22

Object Type – Image

Object type : Image

Session 3 & 4 - Set Values Slide 23

Object Type – SPAN

Span has the following actions:• Exists – Check whether the objects exists on the page.

• Get_Property – Get the property value for the Object.

• Verify - Compares the value in the browser to the

expected value, and adds a pass or fail log entry forthe validation.

Session 3 & 4 - Set Values Slide 24

Function – Sum

• Perform numeric sum• Works with HTMLTable Index

SyntaxSum(text, sum_value, index_part, delimiter)

Parameter Description

Text Text that need to thecomputation

Sum_value Add or Subtract.

Index_part The index on the section thatshould be computed.

Delimiter Delimits each section in thetext value.

Session 3 & 4 - Set Values Slide 25

Function – Sum

ExampleExpression Result

Sum(2/5/4, 2, 1, /) 4/5/4( 2 is added to the first part of the string.)

Sum(&index, -4, 3, /) 4 is subtracted from the third part of the string inthe variable &index.

Sum(&nvar, 2, 1, ) 2 is added to the value in &nvar. Assuming thevalue in &nvar is 5, the result would be 7.

Session 3 & 4 - Set Values Slide 26

Reserved word – #TODAY

• Substitutes the current date.

Example

Enter the current date in the Effective Date Field

Reserve Word#Today

Compute date

Session 3 & 4 - Set Values Slide 27

Reserved Word – #NOTHING

Deletes a value from a text box, selects a blank value from a drop-down list box, or verifies that a text box or drop-down list box field isblank.

Example• In the first step in screenshot the Desig Work Location Field is set to

blank.

• In the second step it is verified if the Desig Work Location Field isblank.

Reserve Word#NOTHING

Session 3 & 4 - Set Values Slide 28

Training

• Handout the Training Material

• To be completed in 45 minutes

Discussion

• Walk through the Log

• Explaining the Log Results

• Highlight the Key words and Lesson learned

Session 3 & 4 - Set Values Slide 29

Q & A and Comments

Session 1 Slide 30