Skip to main content

Test Cases in Software Testing Examples PDF By QA Company in USA

Page 1

Test Cases in Software Testing


www.TestrigTechnologies.com

What is a Test Case? What is the standard format of Test Cases? How to Write Test Cases Manually? Best Practices to define good Test Cases? Top Test Case Management Tools Sample Test Case Example

Highlights


01

What is a Test Case?

03

www.TestrigTechnologies.com

Performing software testing without test cases is just not possible. To ensure high-quality software testing, writing a good test case is important. A test case refers to the documented set of prerequisites, procedures, as well as post conditions, developed for a specific test scenario. The test case is mainly used by the testers to check whether the software is in line with the requirements and works in the desired manner. In simple terms, it is a single executable test carried out by the testers during software testing. It can even be considered as the step-by-step instructions essential for verifying the behavior of the software.


www.TestrigTechnologies.com

What is the Standard Format of Test Cases?

02


TEST CASE ID A unique ID is essential for each of the test cases. Testers usually follow a particular naming convention for enhanced understanding.

TEST CASE DESCRIPTION It states a summary of the test case

PRE-CONDITIONS Preconditions include the conditions that need to be fulfilled before the execution of the test case.

TEST STEPS It includes the actions or the steps required for executing the test cases.

TEST DATA Test data serves as an input for the test cases.


EXPECTED RESULT It indicates the results that are expected after the execution of the test case.

POST CONDITION The condition that needs to be achieved when test cases have been successfully executed.

ACTUAL RESULT The result that is shown by the system after the execution of the test case.

STATUS If the actual results match the expected results, the status is pass, it is failing.


www.TestrigTechnologies.com

03

TIPS: HOW TO WRITE TEST CASES MANUALLY? www.testrigtechnologies.com

-Write a test case ID that is unique

- Have a clear description of the test case

- Write the preconditions essential for the test case

- Clearly and concisely state the test steps

- Write the test data

- Indicate the expected results precisely

- Write down the postconditions of the test case

- Include the actual result

-Show the status of the test case


www.TestrigTechnologies.com

04

Best Practices to Define Good Test Cases?


Practices Develop test cases keeping the perspective of the end-users in mind. Write the test case in easy to understand and simple language. Make use of active voice. Use consistent and exact names. Avoid repetition in test cases. Utilize testing techniques. Write reusable and accurate test cases. Get the test cases peer-reviewed.

www.TestrigTechnologies.com


Test Case Management Tools

01 Qase

02

03

Test Rail

Test Collab

04

05

06

Testpad

TestLodge

Klaros

07 TestCaseLab

www.TestrigTechnologies.com

05


www.TestrigTechnologies.com

06

Title: Login - 1 Description: A registered user must be able to log in at gmail.com successfully. Precondition: A valid user account. Test Step: Go to gmail.com Enter a valid email address in the email field Click on the Next button Enter password Click on ‘Sign in’ Expected Result: Login success Actual Result: Login success Status: Pass

Sample Test Case Examples


Contact us

EMAIL ADDRESS info@testrigtechnologies.com

PHONE NUMBER +1 (347) 464-1241


Turn static files into dynamic content formats.

Create a flipbook