Free Essay

How to Write Effective Test Cases

In:

Submitted By vinayak
Words 479
Pages 2
Writing effective test cases is a skill and that can be achieved by some experience and in-depth study of the application on which test cases are being written.

Here I will share some tips on how to write test cases, test case procedures and some basic test case definitions.

What is a test case?
“A test case has components that describes an input, action or event and an expected response, to determine if a feature of an application is working correctly.” Definition by Glossary

There are levels in which each test case will fall in order to avoid duplication efforts.
Level 1: In this level you will write the basic test cases from the available specification and user documentation.
Level 2: This is the practical stage in which writing test cases depend on actual functional and system flow of the application.
Level 3: This is the stage in which you will group some test cases and write a test procedure. Test procedure is nothing but a group of small test cases maximum of 10.
Level 4: Automation of the project. This will minimize human interaction with system and thus QA can focus on current updated functionalities to test rather than remaining busy with regression testing.

So you can observe a systematic growth from no testable item to a Automation suit.

Why we write test cases?
The basic objective of writing test cases is to validate the testing coverage of the application. If you are working in any CMMi company then you will strictly follow test cases standards. So writing test cases brings some sort of standardization and minimizes the ad-hoc approach in testing.

How to write test cases?
Here is a simple test case format

Fields in test cases:

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:

So here is a 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 case 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 basically you will cover all the types of test cases including functional, negative and boundary value test cases.

Keep in mind while writing test cases that all your test cases should be simple and easy to understand. Don’t write explanations like essays. Be to the point.

Try writing the simple test cases as mentioned in above test case format. Generally I use Excel sheets to write the basic test cases. Use any tool like ‘Test Director’ when you are going to automate those test cases.

Feel free to comment below any query regarding test case writing or execution.

Similar Documents

Premium Essay

Waterfall

...software. First, the overall scope of the design effort is described. Much of the information presented here is derived from the System Specification and the analysis model (Software Requirements Specification). Next, the data design is specified. Database structure, any external file structures, internal data structures, and a cross reference that connects data objects to specific files are all defined. The architectural design indicates how the program architecture has been derived from the analysis model. In addition, structure charts are used to represent the module hierarchy (if applicable). DSD IS PRODUCED AT THE END OF THE DESIGN PHASE. IMPLEMENTATION(PHASE) PROTOTYPE (PROCESS) PROCEDURE: TO CREATE THE GUI FOR EACH FUNCTION ON SCREEN. ACTIVITY: CHOOSING THE CORRECT SOFTWARE LIKE ADOBE FLASH. CODING (PROCESS) PROCEDURE: TO CODE ALL THE FUNCTIONS AND DESIGN A COMPLETE SOFTWARE. ACTIVITY: USING THE APPROPRIATE IDE FOR THE SOFTWARE TESTING: PHASE Unit Testing PROCESS Procedure: The target of unit tests is a small piece of...

Words: 1028 - Pages: 5

Free Essay

English Questions and Answer

...Business Messages 10-16 Organizing Your Message 10-13 Understanding the Need for Organization 14 Composing and Shaping Your Message 15-16 Answer Key 17-20 Lesson 2a 17 Lesson 2b 18 Lesson 2c 18-19 Lesson 3a 19-20 Introduction W elcome to the Underwriting Training Course. This course will help you to determine the relevance of effective business communications in your Underwriting job. Good communication skills are important in any business because these skills help the organization succeed. “Only through effective communication can you anticipate problems, make decisions, coordinate work flow, supervise others, develop relationships, and promote products and services” ( Thill and Bovee 4). While only a portion of the Underwriter’s responsibility is to write correspondence to various audiences such as mortgage companies and the general public, you must be able to write effective business messages because you are helping to shape the reputation of the U.S. Department of Housing and Urban Development. (HUD). As a public servant, the general public as well as mortgage companies depend on your expertise in the area...

Words: 3391 - Pages: 14

Free Essay

Lesson Plan and Outline

...Web-Based Training Course OBJECTIVE: Learn how to deploy your site to Yahoo! GeoCities EDUCATION LEVEL: DeVry University Higher Education (Undergraduates) OVERVIEW: Audience participants (student/teams) will build and document a professional Web site on a weekly basis. MATERIALS & EQUIPMENT: Desktop or laptop, Microsoft Office 2007, XP or Vista operating system, high speed or dial up connection, (http://geocities.yahoo.com/) and Yahoo! GeoCities online tools. ACTIVITIES AND PROCEDURES: Weekly to do’s and graded assignments and quizzes CONCLUSIONS: A final exam, which is a live Web site, globalized step-by-step guide, and a single source document. EXTRA CREDIT: No extra credit will be awarded. EXTENSIONS: May be granted in emergency cases only. Extensions do not cover the final exam. GOALS – STUDENTS WILL LEARN: • • • • • • • • • • • • • • • • • • • • • • • • How to create step-by-step instructions on how to deploy a Web site utilizing Yahoo! GeoCities a Web hosting service. How to spare no expense and write with a holding ones hand approach. It will create creditability and make the targeted audience feel more at ease: How to write global content in an active voice. Learn how to write in a step-by-step mode. Do not group more than one set of instructions per numbered paragraph. How to use numbered step-by-step instructions. How to add copy right information. It conveys ownership of the written graphics, logo, and content. How to incorporate APA citations when quoting...

Words: 1045 - Pages: 5

Premium Essay

Epidemiology Study Summary

...Epidemiology Study Summary 1. Write the purpose of your study along with 2-3 sentences elaborating on the problem and significance of the problem related to the purpose. You may use supporting evidence from other published work to explain or support the problem you are describing. The primary purpose of this study is to determine if long-term, direct exposure to agricultural pesticides results in a higher probability of developing lung cancer. “The widespread use of pesticides in the agricultural industry to control the insects, pests and fungus and to enhance the crop and fruit production is recognized as a major chemical hazard” (Bhat, Wani, & Kirmani, 2010, p. 78). A study by the National Cancer Institute revealed that the use of agriculture...

Words: 969 - Pages: 4

Premium Essay

Business

...COURSE DESCRIPTION Provides a foundation in business operations through a survey of major business functions (management, production, marketing, finance and accounting, human resource management, and various support functions). Offers an overview of business organizations and the business environment, strategic planning, international business, and quality assurance. INSTRUCTIONAL MATERIALS Required Resources Kelly, M., McGowen, J., & Williams, C. (2014). BUSN (6th ed.). Mason, OH: South-Western Cengage Learning. (Note: This is a textbook uniquely created for Strayer and can only be purchased via Strayer’s Virtual Bookstore, available through iCampus. The chapters within this custom textbook are the same as those from the national title, only rearranged in a different order.) Note: There are slides, audio chapter summaries, flashcards, workplace videos, and games located in the course shell to be used as additional resources to assist you in understanding the course material. Supplemental Resources Asare, S. K., & Wright, A. M. (2012). Investors’, auditors’, and lenders’ understanding of the message conveyed by the standard audit report on financial statements. Accounting Horizon, 26(2), 193-217. Aytaç, G., & Turan, O. Z. (2012). Issues of business ethics in domestic and international businesses: A critical study. International Journal of Business Administration, 3(5), 82-88. Bulu, I., Radojicic, M., & Nesic, Z. (2012). Some considerations...

Words: 3599 - Pages: 15

Premium Essay

Novy Dokument

...7%, to be exact. In fact, 55% of communication is visual (body language, eye contact) and 38% is vocal (pitch, speed, volume, tone of voice.) This means that 93% of message is taken from how a person uses voice, body and non-verbal communication. This fact demonstrates why email is very limited form of communication and why it is necessary to adjust communication while interacting via email. Written communication generally increases the likelihood of conflict and miscommunication. Studies have shown that some 44 percent of e-mails are incorrectly interpreted in some way by the receiver of the message. So what can be done to enhance clarity of emails and decrease the likelihood of email being misunderstood? There are several principles that should be respected while writing an email. First of all I would like to mention is to keep the message short, clear and specific. People are overwhelmed by all kinds of emails every day therefore it is important to be sure that you are not wasting receiver’s time. Most people find it difficult to pay attention to long emails. They only have limited time to dedicate and don’t have time to try to find out exactly what you want. You have to tell them, in as short an email as possible. 3Jayson DeMers recalls some rules to keep email communication effective: adhere to a focal...

Words: 1670 - Pages: 7

Free Essay

Driver License

...Before The Test Before you take the test reviewing is important like different kinds of review like: Daily review. It includes short preclass and postclass review of lecture notes and also textbooks. Do weekly reviews. It includes reviewing at least 1 hour per subject once a week. Do major review. It helps when conducted the week before finals or other critical exams. Schedule reviews. Schedule specific times in your calendar for review. Take a practice test. Take a practice test before the actual test. Get copies of Old exams. Old test can help to review stratify. During The Test Prepare self for test by arriving early. Used scratch paper to make quick note in the margins of test sheet. Read direction slowly and answer the easiest, shortest question first. Follow your time and plan your time. Read the entire question, read all possible answer and eliminate incorrect answer. Find out what is asking and make outline on essay writing question, make a point and write legibly. After The Test After the tests take a few minute to write discovery statement related to your experience of taking test. Describe how effective your review strategies were. Do differently to prepare for the next test. When test is returned look the test items that you missed. Carefully analyze the source of errors and find a solution. 2) Test score measure your accomplishment in a course is false because test score is measure what student scored on test. If you anxious about a test and blank...

Words: 484 - Pages: 2

Premium Essay

Case Study

...2016 Assignment 2 Weight: 35% Total Marks: 100 Due time and date: 23.59AEST, Sunday, 31 July, 2016 Submission instructions: 1. Maximum word length: 3000 words (excluding references, tables and figures). 2. Submit a soft copy in Word format via Turnitin (with an assignment cover sheet). 3. Assignments submitted by other means (e.g. email) or forms (scanned copy, Excel document) will attract no marks. Late submissions: The mark for an assessment item submitted after the designated time on the due date, without an approved extension of time, will be reduced by 10% of the possible maximum mark for that assessment item for each day or part day that the assessment item is late. Note: this applies equally to week and weekend days. Case Study – Computers R Us Computers R Us, a computer manufacturer and retailer has recently launched a service and repair division, CompleteCare, for its portable/laptop/notebook computers. This division promises to provide a rapid response to customer technical enquiries and warranty repairs. However, the division is experiencing: - a shortage of trained technical operators in its telephone centre; Page 1 of 6 - distribution problems; and - parts availability problems. As a result, Computers R Us has received multiple complaints about CompleteCare at the Computers R Us call centre. To address these issues, a research proposal was prepared (Assignment 1) and the research overseen by the management of Computers R Us...

Words: 1381 - Pages: 6

Premium Essay

Yahoo Consumer Direct

...research aims to observe and describing the usage of Yahoo without influencing the public in any way, to determine the effectiveness of the advertising on Yahoo. This design includes describing any behaviors, performing a case study, observing the amount of advertises being bought or look at through Yahoo, and lastly a questionnaire or presentation. The goal is to be more effective and efficient in Internet adverting. Yahoo wants to target ads that costumers would want to purchase. 2. Discuss the strengths and weaknesses of the research design. * The strengths include the fact they observed two test groups, the tester can zero in on what is desired by the consumers. It deals with the effectiveness and the pervasiveness of the advertising. Search patterns were a strength used to pinpoint major target preferences. An additional strength was the length of the study, which seemed to fit the product. Yahoo alone is already a popular search engine, which rivals the Google search engine. Feedback was instrumental in regard to working out the kinks in the product pushed. * The weaknesses include the point that the test may become long and tester may just write down or say anything just to get it done. Also if offered a gift, the tester may say or write anything down to get the prize and do not care of the results. Also estimating the number of households that use Yahoo, the numbers, and results may not be truly representative of the way that Yahoo users would respond...

Words: 500 - Pages: 2

Premium Essay

Elements of Clinical Psychology Paper

...Elements of Clinical Psychology Paper Leah Syberg PSY/480 October 5, 2015 Tara Thompson Introduction There are different approaches and disciplines in psychology (Plante, 2010). The different approaches have different understandings of how people develop cognitively, and how personality (including behavior) is formed. For example, some people can be treated sufficiently with pharmacology (medication), while others can benefit from a psychoanalytical approach to thinking and behavior (uncovering unconscious thoughts and feelings). In this way, each perspective and form of treatment has its own benefits. Clinical psychology, on the other hand, can use all perspectives and approaches (Plante, 2010). This is true because clinical psychology is an art- using all researches, methods, and approaches to define the problems a person can have. In addition to defining the problem, clinical psychology can offer different forms of treatment. For example, one person’s depression can be best treated with medication, and another person can benefit from cognitive-behavioral therapy. Also, people with multiple problems can benefit from the treatment of a clinical psychologist. This is true because the clinical psychologist can offer different forms of treatments for the many problems one person can face. This paper will discuss the field of clinical psychology, the history, research methods, and the differences in different fields of psychology. Clinical Psychology ...

Words: 1753 - Pages: 8

Free Essay

Research Methodology

...prove his case in favour of his plaintiff.” Discuss the statement pointing out the objectives of research. Q4. Briefly describe the different steps involved in a research process. Q5. Explain the criteria of a good research. Q6. “Research is much concerned with proper fact finding, analysis and evaluation.” Do you agree with this statement? Give reason in support of your answers. Q7. Explain the types of research in detail. Q8. “Empirical research in India in particular creates so many problems for researchers.” State the problems that are usually faced by such researchers. Q9. Why is it important to define research problem appropriately? Q10. Explain in detail techniques involved in defining a research problem. Q11. “The task of defining the research problem is often follows a sequential pattern.” Explain. Q12. Write short notes on following: a. Ex post facto research b. Motivation in research c. Pilot survey UNIT-2: Research Design Q1. Explain the meaning and significance of research design. Q2. How does formulating a research design differ from developing an approach to a problem? Q3. “Research design in exploratory studies must be flexible but in descriptive studies, it must minimize bias and maximize reliability.” Discuss. Q4. Differentiate between exploratory and descriptive research. Q5. Write short notes on following: a. Extraneous variable b. Confounded relationship c. Research hypothesis d. Experimental and control group. Q6. Write short note...

Words: 3245 - Pages: 13

Premium Essay

Course Description

... | |Instructor: Chansoo Park |Effective Date: 2. April 2013 | |Contact Info: |Class Hours: Tuesdays, 1:30-5:00 pm (3 and ½ hours) | |chansoo.park@ubc.ca | | |chansoop@sprott-shaw.com | | COURSE DESCRIPTION In today’s information-oriented environment, a manager cannot succeed a thorough understanding of the research process. A manger should understand that adequate and timely information supports business decision making. The student should be able to discuss and explain the basic kinds of research design (exploratory, descriptive, causal / longitudinal, cross-sectional) and their major sources of error; explain database marketing and how it makes use of secondary data; identify the advantages and disadvantages of the major types of qualitative research; discuss how survey and observational methods can be used and their major sources of error; define and differentiate between internal and external validity; explain how measurement and scaling relate to the various steps of research; outline the steps in constructing a questionnaire...

Words: 1557 - Pages: 7

Premium Essay

Psy 480 Complete Class

...com/shop/elements-of-clinical-psychology/ Elements of Clinical Psychology   PSY 480 Week 1 Clinical Psychology Paper Write a 1,050- to 1,400-word paper in which you examine clinical psychology. Address the following items: Discuss the history and evolving nature of clinical psychology. Explain the role of research and statistics in clinical psychology. Discuss the differences between clinical psychology and other mental health professions, including social work, psychiatry, and school psychology. Include a minimum of two sources from peer-reviewed publications. Format your paper consistent with APA guidelines. Discussion Questions How does research affect clinical practice? Is all research equally trustworthy? Explain your answer. What are some of your biases about mental health? How do you think you formed these biases? Week 2 Discussion Questions Can effective therapy happen without administering psychological testing? Explain why or why not. Under what circumstances is testing useful? In what ways does culture influence psychological testing? PSY 480 Week 3 Psychological Testing Article Individual Assignment: Psychological Testing Article Analysis Resources: Electronic Reserve Readings, the University Library, or other resources Locate an article concerning the use of psychological testing in the workplace (e.g., the use of personality tests during the interview process). Write a 1,050- to 1,400-word paper in which you analyze your selected article. Address the following: ...

Words: 530 - Pages: 3

Premium Essay

Don't Know the Author

...Unit 2 Need identification The Bank of Boston Official from the Bank of Boston recently discuss how the firm create a effective, all encompassing request for proposal. Kevin Roden, director of consumer banking system, George Swick, project manager of retail workstation infrastructure, indicate that their focus is on business requirements. They conduct a cost-benefit analysis and examine available products and services only after they ensure that a project will meet business requirements. If the project does not directly support the business, it is not pursued. The Bank of Boston had a goal: improve sale and customer service and increase the range of products, such as mutual funds and small business loans, in the bank’s branches. Given their resources and availability resources, they found that it would be more cost effective to outsource much of the work. So they developed two comprehensive requests for proposal (RFPs). The first was for procurement, and installation of the system. The second was for support and maintenance. There were 11 responses to the two RFPs, which were reviewed by more than twenty of various technology and business committees within the bank. IBM and Anderson Consulting were chosen to help with the procurement, deployment, and installation, and IBM was chosen to help with the support and maintenance. The Bank of Boston Branches will be getting a complete facelift: new client/server-based local area net works, new customer service and sales applications...

Words: 2110 - Pages: 9

Premium Essay

Sada

...Course Description: Human Resource Management is a course designed to make the students familiar with the concepts of managing human resources. It is rightly said that the organizations need effective people not efficient people. The course also describes the bench mark practices of Human Resource Management Course Objectives: This course has been designed keeping the following objectives in mind: 1. Demonstrate an in-depth knowledge of the activities and decisions that inform the employment relationship and management including recruitment, selection, training, health and safety, employment laws, motivation, and productivity of employees. 2. Develop and design different forms and memos for recruitment, selection, TNA and performance appraisal of employees 3. Demonstrate and assess leadership in a professional context, by selecting and appraising appropriate styles for situations, and contributing and discussing relevant expertise, liaising with and assessing professional colleagues, and managing and evaluating a supporting team. 4. Conduct internal research on HR-related problems at work, and communicate results effectively to colleagues and peers. Learning Outcomes: At the end of this course, students should be able to: 1. Explain what human resource management is and how it relates to the management process 2. Illustrate the human resources responsibilities of line and staff (HR) managers 3. Discuss and illustrate each of the important trends influencing...

Words: 1260 - Pages: 6