What is the difference between the test case and a test script

Editorial / Best Answer

Answered by: siddharth

  • Oct 16th, 2006


Test Case:

  • Test Case is a commonly used term for a specific test. This is usually the smallest unit of testing. A Test Case will consist of information such as requirements testing, test steps, verification steps, prerequisites, outputs, test environment, etc.
  • A set of inputs, execution preconditions, and expected outcomes developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement.

Test Script: Commonly used to refer to the instructions for a particular test that will be carried out by an automated test tool

Showing Answers 1 - 61 of 61 Answers

Mkp

  • Oct 29th, 2005
 

Difference is Test case is a set of different conditions which are valid/invalid but with valid output. Where Test script works only for the working conditions which are valid for the test

TBB

  • Sep 21st, 2006
 

unable to understand ur explanation

  Was this answer useful?  Yes

siddharth

  • Oct 15th, 2006
 

Test Case:

  • Test Case is a commonly used term for a specific test. This is usually the smallest unit of testing. A Test Case will consist of information such as requirements testing, test steps, verification steps, prerequisites, outputs, test environment, etc.
  • A set of inputs, execution preconditions, and expected outcomes developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement.

Test Script: Commonly used to refer to the instructions for a particular test that will be carried out by an automated test tool

Hi,

Test Case: Test case is a document that describes an input, action or event and an expected response to determine if a feature of an application is working correctly and meets the user requirements.

Test Script: Commonly used to refer to the instructions for a particular test that will be carried out by an automated test tool.

Regards

Prasad

Radhika

  • May 9th, 2007
 

Test Case: It is a Step by step Description of how to test.

Test Script:It is a group of test cases that should be performed automatically.it is a automation programming language.

Ravi

  • Nov 12th, 2007
 

Test Case: It is a condition written step by step whether the expected result met with the actual result.

Test Script:it is a automation programming.

  Was this answer useful?  Yes

alhardan

  • Jul 3rd, 2008
 

Test cases:


1- defines test area.
2- Writing the expected users scenarios (which are valid or invalid).
3- Show the accepted result for each scenario (User requirements).


using test cases: -*- access test area then applied scenarios to show system response for correct/ incorrect users scenarios, if the response meet the user specification there's no bug else the system have a bug in this case.


Test script:


*-* Scenario which can we take it from complete happy scenario (scenario that applied on the system and refers no bugs). Scenario which confirm the valid scenario that written in the test case where that applied by using proper automation tool that generate a scrip file, which we can apply this script to confirm the happy scenario.


Using test scripts: -*- it's using to make an automation testing.


best regards,
Haider Hardan

psh2008

  • Sep 11th, 2008
 

Test Case:

A description, purpose and set of steps including pass/fail criteria to test a function as specified in a Functional Design Specification document. The test case reflects the behavior of the functions as written in the design doc, so there is traceability, from the design doc to the test case, 1:1, one-for-one, so a good thorough testing of the function can occur.

Test Script:

Implementation of the exact test case described above, in a scripting language (code), like Perl, Tcl or Unix shell.

  Was this answer useful?  Yes

Srinidhi

  • Aug 22nd, 2011
 

Test Case consists of the detailed description and its validation points.

The test scripts are generated with ref. to the validation in terms of statements using a automation tool like QTP, Win Runner,etc.

  Was this answer useful?  Yes

The classic definition of a test case has three components:
1. a test condition
2. an expected response
3. a process used to perform the test condition and evaluate the result so a test case is very small and stand alone in nature or it can combine with other test caes to acheive an overall result that's where the idea of test script comes.

Test script is a sequential collection of test caes and expected result to validate a process performing in using a application. You can visualize a test scipt as a sequential collection of test cases.
If what you are testing is a process based, then a test script is useful otherwise you will probably just want to use a test case.

  Was this answer useful?  Yes

mithr17

  • Oct 14th, 2011
 

Please refer to ISTB material; by no means a test script is for automation purpose because it contain the work 'script'.
Test case and test script are used interchangeability with little fluidity with structure difference. Meaning, the format of writing test case and test script is different.
Test script is written when the project doesn't support test case protocol. SaaS (software as a service) or vendor hosted applications are the best candidates for writing test scripts. In this case, you cannot sit and write test case. That's the trade off because you rely on the vendor support reps to make changes for you. In some cases it could be 40% vendor support + 60% in house Dev.
Test script is written for a (test) scenario instead of a requirement. As someone mentioned in above, 2-3 test cases could be clubbed and ran as a test script.

Both test script and test cases can be managed via excel files. The representation/format is different. I wish I could include images here; or someone please tell me how to, it would be easy for you to visually see what structure each one has.

Typical 'Test case' structure:
Title, pre-condition, description, steps, expected result, actual result (optional), post-condition (optional), requirement ID (optional)

Typical test script structure:
columns are used instead of rows
Column titles: step #, step description, data entry, expected result (yes for each step..and here lies the big difference), status - pass/fail/not application, comments/actual result.
Other data capture is the iteration #, date, by whom, why; and script title etc.



  Was this answer useful?  Yes

FarhanaB

  • Nov 1st, 2011
 

Test Case: step by step instructional procedure on how to get to any end result. Its a document that includes the action, input, output, expected results, actual results, and id number...etc.

Test script: usually referred to a specific kind of testing that will give instructions and usually carried out by automation tools.

  Was this answer useful?  Yes

sadhvi

  • Jul 20th, 2012
 

hi,
Test cases are implementation of test design which describe business flow of the single unit or feature of a system.
test case contains brief description of functionality of a single module of a system for example Login functionality of an application which also includes test data,Execute column which help us to know whether the functionality is tested manually or automation .

Test script is instruction documented to attain that functionality.for example In our case of login functionality

set of steps 1>enter URL
2>enter username
3>enter password
4>click ok

these steps can be documented manually and run manually OR steps can be recorded/scripted using any automation tool and run automatically.



correct me if i am wrong

  Was this answer useful?  Yes

mohammad ali

  • Feb 2nd, 2013
 

Test case term is used in manual test.
Test script term is used in automation test.

  Was this answer useful?  Yes

dimple

  • Feb 16th, 2013
 

Test case is step by step method to validate requirements for manual testing.

Test script is step by step method to validate requirements for Automation testing.

  Was this answer useful?  Yes

inayat Ali Khan

  • Dec 7th, 2013
 

Test Case is a document which contains Test Case number, Description of the functionality to be tested, test script, Expected Result, Actual Result and Pass/Fail Columns.
Test Script is a part of Test Case which contains step by step instructions to carry out the test.

  Was this answer useful?  Yes

Eugene Serman

  • Jul 23rd, 2014
 

Test Case is a specific test - smallest unit of testing. A Test Case will consist of information such as requirements testing, test steps, verification steps, prerequisites, outputs, test environment, etc.

Test Script: Commonly used to refer to the instructions for a particular test that will be carried out by an automated test tool

  Was this answer useful?  Yes

Muhammad Tarek

  • Jul 23rd, 2014
 

Test Case is a document which contains Test Case number, Description of the functionality to be tested, test script, Expected Result, Actual Result and Pass/Fail Columns.

  Was this answer useful?  Yes

roman kim

  • Jul 25th, 2014
 

Test Cases:
1 - Defines test area.
2 - Writing the expected users scenarios (which are valid or invalid).
3 - Show the accepted result for each scenario (User requirements).

Using test cases: Access test area then applied scenarios to show system response for correct/ incorrect users scenarios, if the response meet the user specification there is no bug else the system have a bug in this case.

Test Script:
Scenario which can we take it from complete happy scenario (scenario that applied on the system and refers no bugs). Scenario which confirm the valid scenario that written in the test case where that applied by using proper automation tool that generate a scrip file, which we can apply this script to confirm the happy scenario.

Using test scripts: Its using to make an automation testing.

Best Regards,
Haider Hardan

  Was this answer useful?  Yes

Ramgopal

  • Nov 14th, 2014
 

test case: it specifies how to test an application. it is a step by step process with valid and invalid inputs and test case table contain test case id,test description,test steps,expected and actual result,test pass/f.
test script: test script is prepared by manual test engineer.it contain group of test cases that should performed automatically.it is a automation.

  Was this answer useful?  Yes

Umesh Kumar

  • Feb 9th, 2015
 

Test case and Test Script are same. Major difference is , Test case term used in Manual testing and Test script terms used for automation testing. Both are having the Precondition , Procedure , Actual and expected result also.

  Was this answer useful?  Yes

keerthi

  • Feb 11th, 2015
 

Test case is in which we write the functionality of each step in a process with valid expected output.Test cases can be both positive and negative test cases.

The positive test case in which the function of each step(I.e actual process or result) is according to the expected result.

The Negative test case in which the function of each step(I.e actual process or result) is not according to the expected result.

Test script is the set of instructions written in programming or coding language that is performed on system under test conditions to verify the result as expected.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions