Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7165063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:10:43+00:00 2026-05-28T14:10:43+00:00

First I will describe my application and what you can do with it, then

  • 0

First I will describe my application and what you can do with it, then I will show you the technical relations between my entities at the end comes the question of course.

My applications workflow:

1.) A user can create a “ReleaseVersion” object and give it a name like “MyApp_v7.5.0.132”.
2.) For this ReleaseVersion he will create a Template with a name like “BookingTest” which consists of a many OrganisationUnit objects (hierarchical structure) where each OrganisationUnit can have many TemplateTeststep objects.

3.) A TemplateTeststep object consists of these fields:

 a) PreCondition
 b) Teststep
 c) ExpectedResult

4.) After he created the Template object he is creating a Testplan object basing on the former created Template.
5.) A Testplan SHOULD display in the userinterface the same OrganisationUnits but instead of the TempalteTeststep objects I need to display additional fields which are related ONLY to the Testplan named:

 d) Error/Exception
 e) TestStatus

So in the Testplan there is the OrganisationUnit TreeView and a DataGrid with the 5 fields a,b,c,d,e.

5.)
When I click the save Testplan button the fields a,b,c are updated with the fields belonging to the Template.
When I click the save Testplan button the fields d and e are updated with the fields belonging to the XXX.

The unknown component is XXX. I already thought about a table named “TestplanTeststep” with 2 fields.

But to which other table should this be related?

Above all I have to be very carefull, that a TemplateTeststep and a TestplanTeststep has the same Id when I save them to database and retrieve them the next time else I could mix up data.

Thats the entity relation “description” so far:

1 ReleaseVersion has N Testplan (that seems right to me because a Testplan is only valid for a certain ReleaseVersion)

N Testplan has M Unit (here is something wrong)

1 Unit has N TestplanTeststep (here is something wrong)

1 Template has N Testplan (that seems right to me because a Testplan can not belong to another Template, after its creation its used in no other context as just open it)

1 Template has N Unit (that seems right to me because a certain UnitId can`t be used in another template no need for it, every template has its own tree/OrganisationUnit data)

1 Unit has N TemplateTeststep (that seems right to me because these 3 fields a,b,c belong to a certain UnitId and in the TreeView are only the OrganisationUnits loaded related to the Template of a Testplan)

Final question:

What needs to be done in my entity relations that all makes sense?

The stupid thing is the separation of the TemplateTeststep and the TestplanTeststep because they could be actually ONE object or ONE table. But then I would save lots of duplicate data with the fields a,b,c which are the same for every template thus for every Testplan too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:10:44+00:00Added an answer on May 28, 2026 at 2:10 pm

    The main question I see here is: If each template has TemplateTeststeps, but each of those can also feature as a part of a TestPlan, how do we track the results? It looks like you’re considering letting each TestPlan hold a copy of those TestSteps, with extra result fields, but that’s not the way to go.

    The way I’d handle this is with a many-to-many table (foreign keys to TestPlan and to TemplateTeststep) that also holds these extra result fields (Error and TestStatus). So you’re not duplicating the info about the test step (fields a-c), but you do get an opportunity to put each of those steps into many TestPlans and record their results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will first describe the problem and then what I currently look at, in
Why are circular references in Visual Studio a bad practice? First, I will describe
I have two desktop applications. After closing the first application, the first application will
First I will try to explain what I want to do. The app loads
I have a CSV file. The first row will always contain column headers. Depending
I want to display a UITableView with Multiple Columns. The first column will have
Which command will executed first,If a stored procedure have individual multiple select commands;
I am writing my first project that will use autoconf and teaching it to
I know one awkward solution for this taks will be : first use ct
For example, will the first piece of code perform a full search twice, or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.