# How do \*you\* write test cases?

**URL:** <https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590>\
**Category:** Discussions\
**Tags:** strategy, new-to-testing, test-cases\
**Created:** [4 April 2023 17:54 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590 "2023-04-04T17:54:29Z")\
**Posts on this page:** 7\
**Page:** 3

<div class="post-metadata">

**Author:** ![xbartels](https://avatars.discourse-cdn.com/v4/letter/x/46a35a/32.png) [@xbartels](https://club.ministryoftesting.com/u/xbartels)\
**Post date:** [26 April 2023 06:20 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590/42 "2023-04-26T06:20:20Z")

</div>

I see test / use cases as high level test ideas during the design and (test) development phase. I would recommend don’t be too detailed. I have seen too often that designs changes in the development phase so that you need to rework it.

Tests are mainly executed to reduce and/or identify business risks. Test automation (assert checks if tests are giving the expected response) are important to identify that behavior didn’t change.

Exploratory tests are quite important since you need your brains (knowledge) and eyes for that.  
Manual tests doesn’t exist, since you also don’t have manual development steps,  
Following a test scripts with steps is not testing, but it is checking.

Read the blogs from Michael Bolton / James Bach

---

<div class="post-metadata">

**Author:** ![sles12](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/sles12/32/11314_2.png) [@sles12](https://club.ministryoftesting.com/u/sles12)\
**Post date:** [26 April 2023 11:37 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590/43 "2023-04-26T11:37:41Z")

</div>

I think test cases can be very useful. We didn’t do them as much in the past and that caused issues.

- supports testing by showing what you have done and what is still open, easy handover
- documentation of new features
- documentation of testing (helps spot coverage issues and remember what was done)
- repeatable tests for hotfixes in older versions
- easier onboarding of new testers

We write our test cases while we are testing. They are not a script that is followed. Of course we start by planning roughly what we want to test, but then you might have additional ideas during testing. They are medium detailed, I would say. Mostly each step is a scenario. When the setup is more complex one scenario can be multiple steps. Basic knowledge is not written down. If you want to edit a user everyone knows that you need to open the client and log in first.

---

<div class="post-metadata">

**Author:** ![andrewkelly2555](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@andrewkelly2555](https://club.ministryoftesting.com/u/andrewkelly2555)\
**Post date:** [10 May 2023 05:04 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590/44 "2023-05-10T05:04:28Z")

</div>

> [@sles12](#):
>
> easier onboarding of new testers

This one I’d be very wary of.

I’ve seen teams do this purely because they have not prepared properly or have time to spend with the new tester and have convinced themselves its a good way for someone new to learn the product. An other reason is they have manual scripted regression tests that are no fun at all that they can cast off to the new person.

In my experience test cases for the new person have been more harmful than good and can have a long term negative impact on the way that person will work and enjoy their role.

It may work in some cases but just wanted to flag to be very wary of this.

---

<div class="post-metadata">

**Author:** ![testerfromliverpool](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/testerfromliverpool/32/11946_2.png) [@testerfromliverpool](https://club.ministryoftesting.com/u/testerfromliverpool)\
**Post date:** [13 June 2023 11:30 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590/45 "2023-06-13T11:30:14Z")

</div>

I tell you what - this got to be one of the most polarising topics in testing 😃 .

I’ve mentioned in earlier post but this is something I’ve flip flopped a lot on and still do - I’ve been having internal battle with this topic very recently as well 😃

I see the test cases as an _aid_ to learning. Something for me that is quite important as testers come and go and we need to have good artefacts for people to use and learn.

One of the apps I work on as an e-commerce type thing - so imagine a feature around Tax (item prices are “pre-tax” then tax is displayed on the basket screen/checkout screen).

An “automaton” type approach here is to have a test case, with specific results.

Steps: “Add items A, B, C to the basket. Proceed to basket”  
“Expected Result: Tax value of X is displayed”

(In this example, items A, B, C have been set up specifically for this test)

So in this I’ve given the reader some examples of items to use. In this case it is confirming functionality is correct. I think have a supporting wiki/doc which might give a bit more info as to _why_ the tax is X.

The question is what is more useful in the short term -

The example with the specific data, or just a statement “Check tax is displayed correctly”.

I hate this topic 😃

---

<div class="post-metadata">

**Author:** ![ipstefan](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/ipstefan/32/8279_2.png) [@ipstefan](https://club.ministryoftesting.com/u/ipstefan)\
**Post date:** [10 July 2023 20:14 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590/46 "2023-07-10T20:14:50Z")

</div>

I was looking for practical examples here on the actual writing of test-cases, didn’t find it in this thread.

I, too, didn’t write test cases but went with models, mind-maps, XBTM, charters, testing notes, exploration and experimentation, risk-based testing, deep testing, etc…

Unfortunately, I got into a corner now.  
I found myself without a job and for the past months I’ve only found roles where test-cases based on checking the written requirements are a must: European institutions, banks, financial institutions, insurance, aviation/airlines.  
I have no choice but to apply to join those. I have refused a couple already but I’m running out of money to survive unemployed.  
Now, in each of these:

- there’s already a process established(Tmap+ISTQB or close to it),
- a manager that keeps people in check, and who most probably is not a serious professional tester - most of the times someone who hasn’t even been a tester; Btw, I haven’t met yet in 7 years here someone aware even of CDT, RST, BBST;
- thousands of test cases, with testers & automation engineers already following those rules;
- the job’s expectation is to do this and only this.

In my initial years of testing and when trying to be a good employee/slave, I made attempts to write or follow test cases (about 10 years ago) I froze and ended up either:

- trying to fake that I’m doing it;
- or update/write only the title of a charter(which annoyed people);
- or delete half of the cases(as I thought they were too obvious);
- or re-write the steps with a dozen of variations(or if X, or if Y, or if Z …then expected is maybe A, or B, Or C, or anything weird might happen and look around…);
- or get into arguments with people about them;

My goal now is to get a job and try to keep it for several months.  
Does anyone have any suggestions on how to make it work? or actually, how to turn off my thinking process to write test cases? how to keep my motivation and sanity working 40 hours/week doing just this?

---

<div class="post-metadata">

**Author:** ![katepaulk](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/katepaulk/32/8469_2.png) [@katepaulk](https://club.ministryoftesting.com/u/katepaulk)\
**Post date:** [10 July 2023 20:37 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590/47 "2023-07-10T20:37:46Z")

</div>

Oh, I sympathize. How I sympathize.

I recommend the passive-aggressive/malicious compliance approach here. You do precisely what the ISTQB etc. guidelines say. In painstaking, make your eyes bleed detail. If there’s a step that can go either X or Y, that’s two test cases. And so on.

Sadly, if you take this path you won’t get much actual testing done in that 40 hours/week because you’ll be so busy writing the test cases you’re asked to write. You can cheat somewhat with a good template (if you’re lucky, the job will have one).

For your sanity, take lots of micro-breaks. About once an hour or thereabouts, get up and spend around 5-10 minutes doing something else marginally work-related. Take a trip to the bathroom, check out the break room, read up on company policies and whatnot (or appear to - this kind of workplace is likely to have a LOT of printed documentation that you can appear to be reading while you let your mind go to more pleasant places).

In a more serious vein, it helps to remember that many of these places have regulatory requirements they have to follow, and they have to have evidence of having followed said requirements. They also often have a long history of doing things a certain way, and a great deal of inertia. Those who work in these environments often view it was “it’s working: why risk breaking it?” - and believe me, finance, insurance, airlines and the like are very risk-averse.

Of course, the more you bother your superiors asking how they handle the multiple variations that can come into play when navigating the software (questions like “Do you write a separate test case for someone who navigates the system entirely by keyboard shortcuts? What about navigating half by mouse and half by keyboard? Going back once? Twice? Three times?” Eventually someone will get your point, especially if you’re asking sincerely. After all, you’re still thinking about how to find the gaps in the software.

(If you can, using something that will record your testing/exploration sessions and using those to seed your test plans will save you a lot of pain - you’ll still have to write the wretched things in the approved format, but at least you’ll have a record of exactly what you did to get there - and yes, most of my test plans got written while I tested the software or afterwards. Thankfully I don’t work anywhere with such heavy regulatory requirements)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/system/32/14378_2.png) [@system](https://club.ministryoftesting.com/u/system)\
**Post date:** [3 April 2025 17:54 UTC](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590/48 "2025-04-03T17:54:45Z")

</div>

This topic was automatically closed after 730 days. New replies are no longer allowed.

[Previous page](https://club.ministryoftesting.com/t/how-do-you-write-test-cases/66590.md?page=2)
