oracle forms generic utp
DESCRIPTION
Testing forms is quite hard, and it's a good idea to use a generic unit test plan to get the things that always need testing out of the way. Then you can spend the time saved on the non-standard functionality. This document was designed for Oracle forms but should apply to other forms-based user interface.TRANSCRIPT
![Page 1: Oracle Forms Generic UTP](https://reader031.vdocument.in/reader031/viewer/2022020720/5527fe43497959780b8b4635/html5/thumbnails/1.jpg)
Forms Generic UTP.doc
Author: Brendan Furey ([email protected])Date: 29 January 2008Version: 1.4
Contents1 Introduction............................................................................................................22 Block Tests – for each block..................................................................................2
2.1 Block Properties.............................................................................................22.2 Query Find.....................................................................................................22.3 Insert...............................................................................................................32.4 Querying.........................................................................................................32.5 Update............................................................................................................42.6 Keys................................................................................................................42.7 Item Tests – for each item in block................................................................5
3 Forms Level Tests..................................................................................................63.1 Tab/Window Tests – for each in form...........................................................63.2 Navigation Tests.............................................................................................63.3 Version Tests..................................................................................................6
Page 1 of 7
![Page 2: Oracle Forms Generic UTP](https://reader031.vdocument.in/reader031/viewer/2022020720/5527fe43497959780b8b4635/html5/thumbnails/2.jpg)
1 Introduction
This test plan is intended for use on any new form. It takes the form of a check list for testing standard forms functionality, and should be executed in addition to (or as part of) a test plan specific to the form.
2 Block Tests – for each blockCopy the table below for each block, filling in the desired properties, before executing the block tests.
Q QF I U D Order By Uniqueness
2.1 Block Properties# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Queryable S
1 Do Enter and Execute Query
Succeeds Check function allowed/not as expected
2 Query Find S1 Do Query Find Succeeds Check function
allowed/not as expected3 Insert S
1 Insert a record and save
Succeeds Check function allowed/not as expected
2 Requery the record Insert saved4 Update S
1 Update a record and save
Succeeds Check function allowed/not as expected
2 Requery the record Updates saved5 Delete S
1 Delete a record and save
Succeeds Check function allowed/not as expectedIf allowed, check not allowed when detail record exists
2 Requery the record Record gone6 Order By S
1 Query records Order matches expected order
7 Uniqueness S1 Insert duplicate record Rejected Check rejected at
item/record level or at save as appropriate
8 Dynamic property setting Where applicable S1 Go to block where
properties set to off conditionally
Verify non-updateable or deletable as applicable
2 Go to block where properties not set conditionallyy
Check that properties do not remain at settings from previous block
2.2 Query Find# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments
Page 2 of 7
![Page 3: Oracle Forms Generic UTP](https://reader031.vdocument.in/reader031/viewer/2022020720/5527fe43497959780b8b4635/html5/thumbnails/3.jpg)
1 Query Find – single field – repeat for each field S1 Enter a single field and
click FindResult set matches criterion Range pairs tested
below in #4.Enter %string% for wildcard fields
2 Query Find – several fields S1 Enter several fields and
click FindResult set matches criteria
2 Check ordering Order matches expected order
3 Clear button clears block (but not list block) S1 Run query with at least
one criterion to obtain records in target block
2 Click Clear Query block cleared, but not target block
4 Check range criteria - repeat for each range S1 Enter invalid pair Error message2 Enter valid pair and
queryResult set matches criterion
5 Visible Field dependencies S1 Set both fields2 Null the master field Dependent field nulls
6 Hidden Field dependencies S1 Set descriptive field2 Click Find Record number of records3 Change descriptive field Dependent field nulls4 Click Find Check if number of records
changes
2.3 Insert# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Insert - minimal S
1 Insert new record entering mandatory fields only and save
Succeeds
2 Requery the record Insert saved3 Check fields Fields match those input
2 Insert - maximal S1 Insert new record
entering all fields possible and save
Succeeds
2 Requery the record Insert saved3 Check fields Fields match those input
3 Who columns S1 Check values using
Help/Record HistoryShould be current user, date
2.4 Querying# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Enter Query – single field – repeat for each queryable
field May use maximal insert record from above
S
1 Enter a single field and Execute Query
Result set matches criterion Check case-insensitivity by mixing case if
Page 3 of 7
![Page 4: Oracle Forms Generic UTP](https://reader031.vdocument.in/reader031/viewer/2022020720/5527fe43497959780b8b4635/html5/thumbnails/4.jpg)
possible2 Enter Query – several fields S
1 Enter several fields and Execute Query
Result set matches criteria
4 Querying does not update records S1 Execute Query from an
unchanged form stateRecords returned
2 Exit form No save changes prompt
2.5 Update# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Update - maximal S
1 Update record entering all fields possible and save
Succeeds
2 Requery the record Update saved3 Check fields Fields match those input
2 Record locking S1 Open form twice2 Query same record in
each instance3 Try to update record in
both instancesSecond attempt gives locking error
Should offer to retry
3 Who columns S1 Check values using
Help/Examine
2.6 KeysFunction Key Unavailable Note
Block Menu Ctrl+B XClear Block F7Clear Field F5Clear Form F8Clear Record F6Commit Ctrl+SCount Query F12Delete Record Ctrl+UpDisplay Error Shift+Ctrl+EDown DownDuplicate Field Shift+F5Duplicate Record Shift+F6 XEdit Ctrl+EEnter Query F11Execute Query Ctrl+F11Exit F4Help Ctrl+H Key works, but page
problemInsert Record Ctrl+DownList of Values Ctrl+LList Tab Pages F2Next Block Shift+PageDown
Page 4 of 7
![Page 5: Oracle Forms Generic UTP](https://reader031.vdocument.in/reader031/viewer/2022020720/5527fe43497959780b8b4635/html5/thumbnails/5.jpg)
Next Primary Key Shift+F7 X SuppressNext Record DownPrevious Block Shift+PageUpPrint Ctrl+PScroll Down PageDownScroll Up PageUpShow Keys Ctrl+KUp Up
# Test Case Result / Comments St# Execution Steps Expected / Obtained Results Result / Comments
1 All keys work S1 Try each function
key/menu itemWorks as expected Try all on at least one
normal and one modal block
2 Check function availability
Expected functions only available
2.7 Item Tests – for each item in block# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Tab order S
1 Tab through the block Fields visited in logical order2 Tab backwards through
the blockFields visited in logical order
2 Insertable S1 Enter field in new
recordAllowed/not allowed Per design
3 Updateable S1 Update field in queried
recordAllowed/not allowed Per design
4 Queryable S1 Enter field in Enter
Query modeAllowed/not allowed Per design
5 Mandatory S1 Leave field null and
change record or saveAllowed/not allowed Per design
6 LOV S1 Check availability Available/not available Per design. Query Find
may have wildcards instead of LOV
2 Check title Meaningful3 Check columns Correct columns, widths,
titles4 Check ordering Sensible5 Check inactive records
excluded on LOVsPoplists, inactive included but listed last with INACTIVE identifier
Except Query Find blocks
6 Check records restricted by any master fields set
7 Validation S1 Check validation Per design
8 Format mask S1 Check mask Amounts 2dp
Page 5 of 7
![Page 6: Oracle Forms Generic UTP](https://reader031.vdocument.in/reader031/viewer/2022020720/5527fe43497959780b8b4635/html5/thumbnails/6.jpg)
appropriate Dates standard 11-char9 Field length S
1 Enter as many characters as possible and try to save
Should not get Oracle error
10 Case S1 Check appropriate Codes UC
11 Dependent fields S1 Check nulled when
master setSee LOV tests. Other forms of dependency in specific UTP
12 Description fields with hidden code S1 Check code nulled
when description nulledUse Help/Examine See LOV tests. Other
forms of dependency in specific UTP
3 Forms Level Tests
3.1 Tab/Window Tests – for each in form# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Button functionality S
1 Check enabled/disabled As required May be conditional, per design
2 Layout S1 Check prompts Sensible and consistent
system-wide2 Check all fields present Per design3 Object appearance Apps property classes used
3 Modal window S1 Function keys
unavailable Ok and Cancel only (usually)
3.2 Navigation Tests# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Next Block/Previous Block S
1 Do Next Block sequentially starting at first
Should navigate (logically) only within window or tab
2 Do Previous Block sequentially starting at last
Should navigate (logically) only within window or tab
2 Tab changing from valid item S1 Click new tab Should navigate to first block
in new tab3 Tab changing from invalid item S
1 Click new tab Should remain in current item with current tab still visible
3.3 Version Tests# Test Case Result / Comments St
# Execution Steps Expected / Obtained Results Result / Comments1 Version info correct S
Page 6 of 7
![Page 7: Oracle Forms Generic UTP](https://reader031.vdocument.in/reader031/viewer/2022020720/5527fe43497959780b8b4635/html5/thumbnails/7.jpg)
1 Click Help/About Oracle Applications
Form version and date should be sensible
Not copied from template form
Page 7 of 7