📜  测试用例和测试脚本的区别

📅  最后修改于: 2021-09-14 02:23:45             🧑  作者: Mango

1. 测试用例:
在软件测试中,测试用例是指包含测试软件产品必须执行的步骤的文档。它主要用于测试开发软件的任何特定函数或任何特定方面。测试用例表明在测试后完全满足了必要性。测试用例是测试人员根据应用程序执行测试并确认功能是否部分或完全满足的条件安排。换句话说,测试用例是测试的“内容”。

2. 测试脚本:
在软件测试中,测试脚本是指一组指令或短程序,用于测试软件产品的某些部分功能。它也被称为自动化测试脚本,因为它会自动测试应用程序。如果任何测试被组成一个小程序,它被视为自动测试脚本。 Java、Perl、 Python、Ruby、VB 脚本是一些用于自动测试的脚本语言。换句话说,测试脚本是测试的“方式”。

测试用例和测试脚本可以互换使用。它们都是验证应用程序任何功能的步骤。但它们之间的区别主要在于它们的代表和工作程序。

测试用例和测试脚本之间的区别 –

S.NO. Test Case Test Script
1. Test Case is a step by step procedure to test any functionality of the software application/product. Test Script is set of instructions or a short program to test any functionality of software application/product.
2. Test Case is a manual approach of software testing. Test Script is an automatic approach of software testing.
3. It is a set up that is used by the tester to test any specific function of the software product. It is a program developed by the tester, intended to test any specific function of the software product.
4. Point by point test case configuration encourages tester to test viably. Automatic testing approach is beneficial for constant execution.
5. Test Cases are written manually. Test Scripting is done by scripting format.
6. Test case is developed in form of templates. Test script is developed in form of scripting.
7. If the tester does not have a good understanding of how the program is used or about the recent risks to the program, then it will be difficult to use the test cases properly. Active software projects frequently change. So testers have to make a continuous effort to update the scripts to match the changes of the new product.
8. Test Case is used in manual testing environment. Test Script is used in automatic testing environment.
9. Test Cases are classified as delegated, positive, reusable, negative and UI test cases. Test Script are characterized as manual test script and automation test scripts.
10. Test Case comprises of many test qualities like conditions, test data, environment, test suite id, name and others. In Test Script different commands can be used to develop scripts which is used as a part of performing repeatable and regression testing.