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

📅  最后修改于: 2021-08-25 16:30:46             🧑  作者: 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.