Test Cases
What Is A Test Case And How To Write Test Cases?
Writing effective cases is a skill. You can learn it from the experience and knowledge of the application under test.
For basic instructions on how to write tests, please check the following video:
The above resources should give us the basics of the test writing process.
Levels of Test writing process:
- Level 1: In this level, you will write the basic cases from the available specification and user documentation.
- Level 2: This is the practical stage in which writing cases depend on the actual functional and system flow of the application.
- Level 3: This is the stage in which you will group some cases and write a test procedure. The test procedure is nothing but a group of small cases, maybe a maximum of 10.
- Level 4: Automation of the project. This will minimize human interaction with the system and thus the QA can focus on the currently updated functionalities to test rather than remaining busy with Regression testing.
Why do we Write Tests?
The basic objective of writing cases is to validate the test coverage of an application.
If you are working in any CMMi organization, then the test standards are followed more closely. Writing cases brings some sort of standardization and minimizes the ad hoc approach in testing.
How to Write Test Cases?
Fields:
- Test case id
- Unit to test: What to be verified?
- Assumptions
- Test data: Variables and their values
- Steps to be executed
- Expected Result
- Actual result
- Pass/Fail
- Comments
Basic Format of Test Case Statement
Verify
Using [tool name, tag name, dialog, etc]
With [conditions]
To [what is returned, shown, demonstrated]
Verify: Used as the first word of the test statement.
Using: To identify what is being tested. You can use ‘entering’ or ‘selecting’ here instead of using depending on the situation.
For any application, you need to cover all types of tests as:
- Functional cases
- Negative cases
- Boundary value cases
While writing these, all your TC’s should be simple and easy to understand.
Resource : https://www.softwaretestinghelp.com/how-to-write-effective-test-cases-test-cases-procedures-and-definitions/
Howdy! I could have sworn I’ve been to this site before but after reading through some of the post I realized it’s new to me. Nonetheless, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!
Hey I am so delighted I found your blog, I really found you by error, while I was searching on Aol for something else, Anyhow I am here now and would just like to say cheers for a fantastic post and a all round entertaining blog (I also love the theme/design), I don’t have time to look over it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the awesome job.
Thanks for your valuable comment.
Have you ever thought about including a little bit more than just your articles?
I mean, what you say is important and everything.
But think of if you added some great images or video
clips to give your posts more, “pop”! Your content is excellent but with images and videos,
this blog could definitely be one of the greatest in its
field. Good blog!