Test script

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.

## Contents

* 1 Types of test scripts
* 2 Usage and functionality
* 3 See also
* 4 References

## Types of test scripts

There are various means for executing test scripts. These last two types are also done in manual testing.

* Manual testing.[1][2] These are more commonly called test cases.
* Automated testing.
* Short program written in a programming language used to test part of the functionality of a software system. Test scripts written as a short program can either be written using a special automated functional GUI test tool (such as HP QuickTest Professional, Borland SilkTest, IBM TPNS and Rational Robot) or in a well-known programming language (such as C++, C#, Tcl, Expect, Java, PHP, Perl, Powershell, Python, or Ruby). As documented in IEEE, ISO and IEC.[3][4]
* Extensively parameterized short programs a.k.a. Data-driven testing
* Reusable steps created in a table a.k.a. keyword-driven or table-driven testing.

## Usage and functionality

Automated testing 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.[5]

Automated tests can, like any piece of software, be poorly written or simply break during playback.[6] 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

* Software testing
* Unit test
* Test plan
* Test suite
* Scenario testing
* Session-based testing

## References

1. ↑ "Help - IBM Rational Software". https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.rational.test.qm.doc/topics/t_construct_scripts.html&scope=null.
2. ↑ Kaner, Cem (2003). "Fundamental Challenges in Software Testing". Florida Tech. p. 35. http://www.testingeducation.org/articles/fundamental_challenges_in_software_testing_presentation.pdf.
3. ↑ "BS 7925-1". http://www.testingstandards.co.uk/bs_7925-1.htm.
4. ↑ "ISO/IEC/IEEE 29119 Software Testing Standard". http://www.softwaretestingstandard.org/.
5. ↑ Dingsøyr, Torgeir; Dybå, Tore; Moe, Nils Brede (2010-05-26) (in en). Agile Software Development: Current Research and Future Directions. Springer Science & Business Media. ISBN 978-3-642-12575-1. https://books.google.com/books?id=JRhGAAAAQBAJ&dq=Test+script+broken+tests&pg=PA194.
6. ↑ Brambilla, Marco; Chbeir, Richard; Frasincar, Flavius; Manolescu, Ioana (2021-05-11) (in en). Web Engineering: 21st International Conference, ICWE 2021, Biarritz, France, May 18–21, 2021, Proceedings. Springer Nature. ISBN 978-3-030-74296-6. https://books.google.com/books?id=J5EtEAAAQBAJ&dq=Test+script+broken+tests&pg=PA385.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Test script. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Test_script&oldid=214710"