---
title: "Discussion on \"Make your test AAA using proper structure\" | Hashnode"
description: "Discussion on \"Make your test AAA using proper structure\". The advantages of arrange-act-assert"
url: "https://hashnode.com/posts/make-your-test-aaa-using-proper-structure/620fc2238f26523301cb51d5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Make your test AAA using proper structure](https://kiminoboku.hashnode.dev/make-your-test-aaa-using-proper-structure?utm_source=hashnode&utm_medium=feed)

The advantages of arrange-act-assert

Feb 18, 2022 · 3 min read · kiminoboku.hashnode.dev  
Read the article

-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Radosław Lewandowski](https://hashnode.com/@kiminoboku)

@kiminoboku · Gdansk, Poland

  
[View profile](https://hashnode.com/@kiminoboku)

Software developer in love with automated tests

I've been interested in computers and programming since I can remember. So far I've worked mostly as a backend developer, and few years back I've fell in love with everything test-automation related. High quality software through high quality automated tests &amp; CI/CD is my main area of technical interest.

## Responses 1

Markdown supported · ⌘↵ to post

[Miki Szeles](https://hashnode.com/@mszeles)

[Feb 18, 2022](https://hashnode.com/posts/make-your-test-aaa-using-proper-structure/620fc2238f26523301cb51d5/comment/620fe6e49375bf259a97b985)

Thanks for the article Radoslaw. I think there is a more popular name for this: Given-When-Then.

[Radosław Lewandowski](https://hashnode.com/@kiminoboku)

[Feb 18, 2022](https://hashnode.com/posts/make-your-test-aaa-using-proper-structure/620fc2238f26523301cb51d5/comment/620fe6e49375bf259a97b985#reply-620fe8cb9375bf259a97b9af)

Agree, that's the other name for it, but I think that given-when-then is more focusing on the bdd & functional context of test in terms of the state transition of the SUT whereas AAA relates more to the structure of the test code itself. But still, I think the terms are interchangeable.
