cancel
Showing results for 
Search instead for 
Did you mean: 

Test scripts and Test cases

Former Member
0 Kudos

Hi Team,

Kindly can you let em know what is the difference between Test Scripts and Test cases with example if possible.

Regards,

Vimal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vimal,

A test case is a set of conditions or variables under which a tester will determine if a requirement or use case upon an application is partially or fully satisfied. It may take many test cases to determine that a requirement is fully satisfied.

Test cases are often incorrectly referred to as test scripts. Test scripts are lines of code used mainly in automation tools.

Test script

A test script is a short program written in a programming language used to test part of the functionality of a software system. A written set of steps that should be performed automatically can also be called a test script, however this is more correctly called a test case.

Any test that is written as a short program is regarded as an automated test. Test scripts written as a short program can either be written using a special manual functional GUI test tool or in a well-known programming language (such as C++, C#, Tcl, Expect, Java, Perl, Python, or more recently, Ruby). Automated test tools can test many areas of system functionality such as the user interface, performance of the system, the system code and the requirements.

Automated testing has the advantage over manual testing in that it is easily repeatable, and thus is favoured when doing regression testing. This however is not always the case as automated tests may be poorly written and can break during playback. Since most systems are designed with human interaction in mind, it is good practice that a human tests the system at some point.

Test Script defines the actions and pass/fail criteria. For example, if the action is "to enter a valid account number," the expected result is that the data are accepted. Entering an invalid number should yield a particular error message.

Award Points accordingly.

Regards,

Kitchlu

Former Member
0 Kudos

Hi Kitchlu,

I am bit confused by the above difference between test scripts and Test cases.

Is Test script related to Test case or they both are no where related.

Who writes the test scripts and who writes the Test case.

Cheers,

Vimal

sikindar_a
Active Contributor
0 Kudos

yes they are related and we as Func consultant will do it

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vimal,

let me give u some other meaning to both

Test Case

A test case is a document that defines the input, action or event and the corresponding expected output or response, to determine if a certain feature of an application is working correctly.

Test Script

A test script is a logical group of test cases which when taken together, test a particular function or a unit of the system.

They both are related to eachother.Normally Functional Consultants do that job.

Regards,

Kitchlu

Former Member
0 Kudos

Hi Kitchlu,

Thanks very much for your explanation.I got it now.Kindly can you help with a some sample Test scripts and Test cases.

It will help.

Cheers,

Vimal