Jump to content

Test script

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 97.77.39.130 (talk) at 12:56, 12 September 2018. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A test script in software testing is a set of instructions that will be performed on the system under test to test that the system functions as expected. The proper definition is called Test Plan or Test Case, however, many people use the terms interchangeably, but that can be confusing.

A test script, is in fact, an automated script that runs and tests software components, objects, etc. and reports its findings. These are configurable. (IEEE, SWEBOK --Software Engineering Book of Knowledge) Younger testers commonly misuse this term "test case" due to lack of experience or not knowing that this has been defined many years ago, and it is documented in IEEE, ISO and IEC.(BS 7925-1; ISO/IEC/IEEE 29119 "International Software Standard"[1]

There are various means for executing test scripts.

These last two types are also done in manual testing.

Automated testing is advantageous for a number of reasons: tests may be executed continuously without the need for human intervention, they are easily repeatable, and often faster. Automated tests are useful in situations where the test is to be executed several times, for example as part of regression testing. Automated tests can be disadvantageous when poorly written, leading to incorrect testing or broken tests being carried out.

Disadvantages of automated testing are that automated tests can — like any piece of software — be poorly written or simply break during playback. They also can only examine what they have been programmed to examine. Since most systems are designed with human interaction in mind, it is good practice that a human tests the system at some point. A trained manual tester can notice that the system under test is misbehaving without being prompted or directed; automated tests can only examine what they have been programmed to examine. When used in regression testing, manual testers can find new bugs while ensuring that old bugs do not reappear while an automated test can only ensure the latter. Mixed testing, with automated and manual testing, is often used; automating what needs to be tested often and can be easily checked by a machine, and using manual testing to do test design and exploratory testing.

One should consider the return on investment for automating any given test script, i.e. does the cost to build and maintain that script cost less than it would take to simply execute it manually. Where cost can be measured in terms of time and/or money but also the opportunity cost of not freeing up people to do other work.[citation needed]

See also

  1. ^ Cite error: The named reference undefined was invoked but never defined (see the help page).