test case format style

31 May

unique-test-case-id: Test Case Title


Short sentence or two about the aspect of the system is being tested. If this gets too long, break the test case up or put more information into the feature descriptions.


Assumptions that must be met before the test case can be run. E.g., “logged in”, “guest login allowed”, “user testuser exists”.

Test Data:

List of variables and their possible values used in the test case. You can list specific values or describe value ranges. The test case should be performed once for each combinationof values. These values are written in set notation, one per line. E.g.:loginID = {Valid loginID, invalid loginID, valid email, invalid email, empty}password = {valid, invalid, empty}


Steps to carry out the test. See step formating rules below.

  1. visit LoginPage
  2. enter userID
  3. enter password
  4. click login
  5. see the terms of use page
  6. click agree radio button at page bottom
  7. click submit button
  8. see PersonalPage
  9. verify that welcome message is correct username

Notes and Questions:

  • NOTE

Format of test steps

Each step can be written very tersely using the following keywords:

login [as ROLE-OR-USER]

Log into the system with a given user or a user of the given type. Usually only stated explicitly when the test case depends on the permissions of a particular role or involves a workflow between different users.


Visit a page or screen. For web applications, LOCATION may be a hyperlink. The location should be a well-known starting point (e.g., the Login screen), drilling down to specific pages should be part of the test.


Fill in a named form field. VALUE can be a literal value or the name of a variable defined in the “Test Data” section. The FIELD-NAME itself can be a variable name when the UI field for that value is clear from context, e.g., “enter password”.

enter FIELDS

Fill in all fields in a form when their values are clear from context or when their specific values are not important in this test case.


Follow a labeled link or press a button. The screen location can be a predefined panel name or English phrase. Predefined panel names are based on GUI class names, master template names, or titles of boxes on the page.


Press a named button. This step should always be followed by a “see” step to check the results.


The tester should see the named GUI screen or web page. The general correctness of the page should be testable based on the feature description.


The tester should see that the condition has been satisfied. This type of step usually follows a “see” step at the end of the test case.

verify CONTENT [is VALUE]

The tester should see the named content on the current page, the correct values should be clear from the test data, or given explicitly. This type of step usually follows a “see” step at the end of the test case.


This is like a subroutine call. The tester should perform all the steps of the named test case and then continue on to the next step of this test case.

Every test case must include a verify step at the end so that the expected output is very clear. A test case can have multiple verify steps in the middle or at the end. Having multiple verify steps can be useful if you want a smaller number of long tests rather than a large number of short tests.

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

10 responses to “test case format style

  1. Jerrod Gearhart

    June 23, 2012 at 10:04 AM

    Helpful data shared. I am quite pleased to read this article. thanks for giving us good info. Fantastic walk-through. I appreciate this post.

  2. Sharon Suttle

    June 25, 2012 at 8:21 AM

    I really delighted to find this website on bing, just what I was looking for 😀 also saved to favorites.

  3. Krysta Chamberland

    June 26, 2012 at 4:21 PM

    I used to be able to find good info from your blog posts.

  4. cialis

    June 26, 2012 at 5:08 PM

    you’re actually a excellent webmaster. The web site loading velocity is incredible. It kind of feels that you’re doing any distinctive trick. Moreover, The contents are masterpiece. you’ve performed a excellent job on this subject!

  5. gurgaon apartments

    June 27, 2012 at 12:09 AM

    Nothing against the article, but I disagree with a couple of points to some extenct. I’m probably a minority though, lol. Thanks for sharing.

  6. cialis

    June 27, 2012 at 2:03 PM

    The following time I read a blog, I hope that it doesnt disappoint me as a lot as this one. I mean, I know it was my option to read, however I really thought youd have something interesting to say. All I hear is a bunch of whining about one thing that you can fix if you werent too busy on the lookout for attention.

  7. viagra

    June 27, 2012 at 4:54 PM

    One important issue is that when you find yourself searching for a student loan you may find that you’ll need a cosigner. There are many circumstances where this is correct because you might find that you do not possess a past credit score so the financial institution will require that you’ve someone cosign the financing for you. Thanks for your post.

  8. Translator Interpreter Job

    June 29, 2012 at 3:02 AM

    The other day, while I was at work, my cousin stole my iPad and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is completely off topic but I had to share it with someone!

  9. Yvette Hammette

    June 29, 2012 at 4:34 AM

    After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.

  10. Swizz Beatz

    July 11, 2012 at 5:21 PM

    Heya! I’m at work surfing around your blog from my new iphone 3gs! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the outstanding work!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: