What is a Test case?
A Test case is a document that contains various sets of data, conditions to be performed, and the expected result for the particular condition. Preparation of a test case is a document that consists of precondition, test data, expected result, and pet condition.
The test case is a document that contains all possible input, and navigation steps that are used for the test execution process. Test case we need to write only one time and we can execute it multiple times. In the Test case, there are 2 scenarios, positive test cases and negative test cases.
Test case parameters are as below.
Example of test case :
Number | Scenario | Test Step | Expected result | Actual result |
1 | Verify that the input field can accept only alphabet characters. | Log in to the application and enter alphabet characters. | The application should be able to accept alphabet characters. | The application accepts alphabet characters. |
2 | Verify that the input field cannot accept the numeric character. | Log in to the application and enter the numeric character. | The application should be able to accept the numeric character. | The application does not accept the numeric character. |
What is a test script?
A test script is a line of code written in a programming language. In other words, it is a bunch of instructions to test.
There are 3 different ways to create a test script:
Tips for creating test scripts
Number | Test Plan | Test Script |
1 | Test plan prepared by SRS(Software Requirement Specification) | It is a bunch of instructions to test the application. |
2 | Test plan prepared for manual testing. | Test scripts are prepared for automation script execution. |
3 | Test plan prepared by manager or test lead. | Test script prepared and used by the automation test engineer. |
4 | The test plan has the following components: Test plan ID features to be tested, test techniques, testing tasks, features pass or fail criteria, test deliverables, responsibilities, and schedule. | A test Script is a block of code written in a programming language to execute applications with the actual results. |
5 | It is prepared in the form of a tabular format document. | It is done in scripting format. |
6 | One pre-defined format a user needs to follow. | For creating a test script we can use a different- different commands. |
7 | Test plan prepared at the project level. | It is prepared for different – different functionalities. |
8 | The test plan needs to be updated according to requirement changes or feature changes. | Test scripts can be run many times until the requirement is changed. |
9 | It consists of how to test when to test, who will test, and what to test. | It consists of sequential instructions to execute any specific functionality. |
10 | A test Plan is a single document for a project. | There are many test scripts in a single project. |
Benefits of the Test Plan
Conclusion:
Test plan, Test Script, and Test case are core features of the testing procedure. Without this documented testing procedure random testing can be done which is known as Adhoc testing. Adhoc testing cannot give good quality results of testing. So it is good to use a documented testing procedure to have the expected result.
Risha works as a QA engineer at QACraft. She is a computer science engineer and has 2+ years of experience in manual and automation testing. In her free time, she loves to indulge in books and make paintings
© Copyright 2024 QACraft Pvt. Ltd. All rights reserved.
Contact : +91 9157786796
Error: Contact form not found.
Risha Bhat