| | |
Creating a Database for an application
Please support our Database Design advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2008
Posts: 33
Reputation:
Solved Threads: 0
Hey Guys,
I was hoping someone could help me with designing a database?
Basically, I want to design a database that will hold a bunch of test cases. For those of you that don't know, a test case simply documents a test that is to be executed on an application.
A test case lists a number of screens within the application, and each screen lists a number of fields, and each field has a corresponding value that is to be entered during that test, so it looks something like:
Test Case 1
----Details Screen
--------Name|Mary J
--------Age|40
--------Location|Home
----Contact Screen
--------Email|123@abc.com
--------Phone|12345678
--------Address|123 Fake Street
Test Case 2
----Details Screen
--------Name|Joe Bloggs
--------Age|50
--------Location|Away
----Contact Screen
--------Email|456@def.com
--------Phone|87654321
--------Address|321 Fake Street
So I need to design a database to hold the above. So I'm thinking I'll have the following tables:
TestCase{tc_id,tc_name,tc_author,tc_date}
Screen{sc_id,sc_tc_id,sc_name}
Fields{f_id,f_sc_id,f_tc_id,f_name}
Values{v_id,v_sc_id,v_tc_id,v_value}
And they would be joined as follows:
TestCase.tc_id ---> Screen.sc_tc_id
Screen.sc_id ---> f_sc_id
Screen.sc_tc_id ---> f_tc_id
Fields.f_sc_id ---> Values.v_sc_id
Fields.f_tc_id ---> Values.v_tc_id
But I'm not convinced it's the best way to go about things.
Can anyone offer me any pointers on a better design?
Thanks very much for any help!
I was hoping someone could help me with designing a database?
Basically, I want to design a database that will hold a bunch of test cases. For those of you that don't know, a test case simply documents a test that is to be executed on an application.
A test case lists a number of screens within the application, and each screen lists a number of fields, and each field has a corresponding value that is to be entered during that test, so it looks something like:
Test Case 1
----Details Screen
--------Name|Mary J
--------Age|40
--------Location|Home
----Contact Screen
--------Email|123@abc.com
--------Phone|12345678
--------Address|123 Fake Street
Test Case 2
----Details Screen
--------Name|Joe Bloggs
--------Age|50
--------Location|Away
----Contact Screen
--------Email|456@def.com
--------Phone|87654321
--------Address|321 Fake Street
So I need to design a database to hold the above. So I'm thinking I'll have the following tables:
TestCase{tc_id,tc_name,tc_author,tc_date}
Screen{sc_id,sc_tc_id,sc_name}
Fields{f_id,f_sc_id,f_tc_id,f_name}
Values{v_id,v_sc_id,v_tc_id,v_value}
And they would be joined as follows:
TestCase.tc_id ---> Screen.sc_tc_id
Screen.sc_id ---> f_sc_id
Screen.sc_tc_id ---> f_tc_id
Fields.f_sc_id ---> Values.v_sc_id
Fields.f_tc_id ---> Values.v_tc_id
But I'm not convinced it's the best way to go about things.
Can anyone offer me any pointers on a better design?
Thanks very much for any help!
![]() |
Similar Threads
- Beginners Guide To Creating Database Driven Website (Site Layout and Usability)
- PHP help in creating profile thingy (PHP)
- database problem (C#)
- MSSQL - MySql Database Connectivity (MS SQL)
- database or csv (Java)
- Sql support for databse application on client machine (C#)
- HOWTO: Run a Query on a Database using ODBC and return all Results into a DGV Object (C#)
- database application on cd (JavaScript / DHTML / AJAX)
- Building a database application (C++)
Other Threads in the Database Design Forum
- Previous Thread: Problem with MySQL Query
- Next Thread: Simple Problem Relating 3 Small Tables
| Thread Tools | Search this Thread |





