session objectives how to create a library test script how to use the library test script in main...

14
Session Objectives How to create a Library Test Script w to use the Library Test Script in main PTF Script • Object Types – Test/Exec • Usage of Object Type 2

Upload: claude-norman

Post on 02-Jan-2016

231 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Session Objectives• How to create a Library Test Script

• How to use the Library Test Script in main PTF Script

• Object Types – Test/Exec

• Usage of Object Type

2

Page 2: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Library

• A library test is a test that cannot be executed on its own andneeds to be called by another test to run.

• A library test is useful to record a set of sequences whichneeds to be run repeatedly in a test.

• These sequences can be recorded as a library test inisolation.

• Any test can be converted to LIB, by checking the library testcheck box.

• A library test can be called in Multiple tests.

Session 7 - Lib and Shell Slide 3

Page 3: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Advantages

• Reduced recording effort• Reduced debugging effort• Reduced maintenance effort

Session 7 - Lib and Shell Slide 4

Page 4: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Steps to create and use Library Test

Record a test online

Open Test Editor and mark the Library test checkboxand save it

Open the test in which the library test needs to beadded

In the test editor, inset a new row and fill in thefollowing

Test/Exec – Test Name - Test Case Name

Session 7 - Lib and Shell Slide 5

Page 5: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Step 1 – Library Test

Library test check box is checked.

The value present in the TestCase Information box is added

Session 7 - Lib and Shell Slide 6

Page 6: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Step 2 – Save Library

• A library test can be saved under any folder, but is shown with

a different icon than the usual PS icon for a test.

Library Test saved and it hasdifferent Icon

Session 7 - Lib and Shell Slide 7

Page 7: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Folder View

• A library test can be saved under any folder, but is shown with

a different icon than the usual PS icon for a test.

Library Test is differentiated througha different icon from other PTF tests

Session 7 - Lib and Shell Slide 8

Page 8: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

PeopleSoft Online – Usage of Library

Generate NIDLibrary Test is differentiated througha different icon from other PTF tests

Session 7 - Lib and Shell Slide 9

Page 9: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Object Type – Test Exec

• Test is an Object Type, and Exec is an Action associatedwith it.

• Calls another library.• Specify the test name in the ID field and the test case

name in the value field.

Test/Exec to Call the Library

Session 7 - Lib and Shell Slide 10

Page 10: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Business Usage

Library Test can be used in the following scenarios:

• To reduce developmental effort while recording

• To record a process which may be used in multiplescenarios

Ex.: Generate BEMS ID process needs to be run beforeevery new hire and rehire without history

Session 7 - Lib and Shell Slide 11

Page 11: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Shell Test

• A shell test is the script that is used to call another test in PTF.

• A shell test only supports the following actions:

• Data Mover - Calling data mover scripts

• Query – Running Queries

• Test - Calling other tests

• Variable – Manipulating variables

• Variables in the called script and the shell script can be used

interchangeably

Session 7 - Lib and Shell Slide 12

Page 12: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Create a Shell Test

• Test is an Object Type, and Exec is an Action associatedwith it.

Select Shell Test in explorer

Shell Test in Editor

Session 7 - Lib and Shell Slide 13

Page 13: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Training

• Hand out the Training Material

• To be completed in 15 minutes

Discussion

• Walk through the Log

• Explaining the log results

• Highlight the key words and lesson learned

Session 7 - Lib and Shell Slide 14

Page 14: Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type

Q & A and Comments

Session 7 - Lib and Shell Slide 15