session objectives how to create a library test script how to use the library test script in main...
TRANSCRIPT
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
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
Advantages
• Reduced recording effort• Reduced debugging effort• Reduced maintenance effort
Session 7 - Lib and Shell Slide 4
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
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
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
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
PeopleSoft Online – Usage of Library
Generate NIDLibrary Test is differentiated througha different icon from other PTF tests
Session 7 - Lib and Shell Slide 9
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
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
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
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
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
Q & A and Comments
Session 7 - Lib and Shell Slide 15