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 7775483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:38:34+00:00 2026-06-01T17:38:34+00:00

I would like to write some integration test for my application. I wasn’t able

  • 0

I would like to write some integration test for my application. I wasn’t able to find some relevant information with examples on this subject so I’m asking here.

Let’s have a controller with a simple CRUD scenario.

There is a create method, edit method and delete method.

My question is how to design the test case.

I was thinking of two ways how to test it.

1.

  • Test 1 Create item – just insert an item
  • Test 2 Edit item – load the item from the first test and edit it
  • Test 3 Delete item – delete the item used in Test 2 and 3.

In this case all tests are more like one big test case.

    • Test 1 Create item – insert an item, check if it’s there and delete it.
    • Test 2 Edit item – insert an item,load the item, edit it and delete the item.
    • Test 3 Delete item – insert an item and delete the item

In this case the tests looks independent but they have some repetitive parts (inserts)

  • 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-06-01T17:38:35+00:00Added an answer on June 1, 2026 at 5:38 pm

    For the CRUD scenario you described, the test can be implemented with three separate database transactions and their associated assertions.

    Step 1 – Insert an item

    Step 2 – Assert that the item was inserted successfully

    Step 3 – Edit the item

    Step 4 – Assert that the item as edited successfully

    Step 5 – Delete the item

    Step 6 – Assert that the item was deleted successfully

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

Sidebar

Related Questions

I would like to write an simple application able to retrieve some certain data
I am using Specflow (http://specflow.org/) to write some integration tests and I would like
I would like to write some data to a file in Ruby. What is
I would like to write some scripts in python that do some automated changes
I would like to write some Objective-C code for distribution. What is the best
I have a quad core machine and would like to write some code to
I would like to write a command line tool that passes some formatted text
I'm trying to write some LINQ To SQL code that would generate SQL like
I would like to have some functionality by which if I write <textarea maxlength=50></textarea>
I'd like to write a function that would have some optional code to be

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.