Test cases are written based on user's story to determine if the intended functionality exists, if so, developers write codes to introduce those functionalities to effortlessly clear the acceptance test.