![]() |
Testcover.com |
| ||
| Tutorial - Database Table Example | ||||
|
Home Existing User Login Brochure Sign up for Risk-Free Trial About Testcover.com Frequently Asked Questions Tutorial with Examples ->Need for the Service ->Submitting Requests ->Reading Results ->Configuration Example ->Constraints Example ->Calendar Example ->Database Table Example ->Finite State Machine ->UML State Machine ->Definitions of Terms Performance WSDL Interface Background Partners Registrations Contact Information |
The Database Table Example shows how to use the generator to create records for testing a reservation system.
In this example multiple blocks are used to accommodate dependencies among the factor values.
The GreatM Motel Chain (a fictional company) is implementing an expansion program.
It is building three new motels with innovative features and amenities.
GreatM also is updating its reservation system to reflect these improvements.
The software engineers working on the reservation system have migrated the old database to the new system for testing.
However they need additional data to represent the motels under construction and their new features.
The motel room database table has columns (factors) as follows.
The engineers will use three Location ID values to represent the new motels.
They will generate rows of data including all pairs of values for all the columns except the Room ID.
(Each Room ID value should appear only once in the table.)
The engineers will assign a single value as a Room ID placeholder to generate the rows.
Then they will assign unique values to the Room IDs in the resulting rows (test cases).
The three Room types define the allowed values for the other columns as follows.
These rules are described in the three blocks (one for each Room type) in the request below.
The results table follows. All allowed pairs of factor values are included in the 15 test cases.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#1.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
After the unique Room ID values are set, the new rows for the database table are as given below. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||