Test script: Difference between revisions

Content deleted Content added
top: Added 'IBM TPNS'.
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5
 
(30 intermediate revisions by 15 users not shown)
Line 1:
{{Multiple issues|
{{Unreferenced stub|auto=yes|date=December 2009}}
{{Original research|date=July 2009}}
<!-- This article has alot of weasel words, please amend where you can -->
{{OriginalMore Researchcitations needed|date=JulyDecember 2009}}
}}
 
<!-- This article has alota lot of weasel words, please amend where you can -->
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.
 
There== areTypes various means for executingof test scripts. ==
There are various means for executing test scripts. These last two types are also done in manual testing.
* [[Manual testing]]. These are more commonly called [[test case]]s.
* [[Manual testing]].<ref>{{cite web|url=https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.rational.test.qm.doc/topics/t_construct_scripts.html&scope=null|title=Help - IBM Rational Software|website=jazz.net|access-date=2018-09-12}}</ref><ref>{{cite web |last=Kaner |first=Cem |url=http://www.testingeducation.org/articles/fundamental_challenges_in_software_testing_presentation.pdf |title=Fundamental Challenges in Software Testing |year=2003 |publisher=Florida Tech |page=35 |access-date=2018-09-12 |archive-date=2021-11-16 |archive-url=https://web.archive.org/web/20211116052408/http://www.testingeducation.org/articles/fundamental_challenges_in_software_testing_presentation.pdf |url-status=dead }}</ref> These are more commonly called [[Test case (software)|test case]]s.
* [[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]], [[SilkTest|Borland SilkTest]], [[IBM TPNS]] and [[Rational Software|Rational Robot]]) or in a well-known [[programming language]] (such as [[C++]], [[C Sharp (programming language)|C#]], [[Tcl]], [[Expect]], [[Java (programming language)|Java]], [[PHP]], [[Perl]], [[Windows Powershell|Powershell]], [[Python (programming language)|Python]], or [[Ruby programming language|Ruby]]). As documented in IEEE, ISO and IEC.<ref>{{cite web|url=http://www.testingstandards.co.uk/bs_7925-1.htm|title=BS 7925-1|website=testingstandards.co.uk|access-date=2018-09-12}}</ref><ref>{{cite web|url=http://www.softwaretestingstandard.org/|title=ISO/IEC/IEEE 29119 Software Testing Standard|website=softwaretestingstandard.org|access-date=2018-09-12}}</ref>
** Extensively parameterized short programs a.k.a. [[Data-driven testing]]
** Reusable steps created in a table a.k.a. [[Keyword-driven testing|keyword-driven]] or [[table-driven testing]].
These last two types are also done in manual testing.
 
== Usage and functionality ==
''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.<ref>{{Cite book |last1=Dingsøyr |first1=Torgeir |url=https://books.google.com/books?id=JRhGAAAAQBAJ&dq=Test+script+broken+tests&pg=PA194 |title=Agile Software Development: Current Research and Future Directions |last2=Dybå |first2=Tore |last3=Moe |first3=Nils Brede |date=2010-05-26 |publisher=Springer Science & Business Media |isbn=978-3-642-12575-1 |language=en}}</ref>
 
Disadvantages of automated testing are that automatedAutomated tests can, like any piece of software, be poorly written or simply break during playback.<ref>{{Cite book |last1=Brambilla |first1=Marco |url=https://books.google.com/books?id=J5EtEAAAQBAJ&dq=Test+script+broken+tests&pg=PA385 |title=Web Engineering: 21st International Conference, ICWE 2021, Biarritz, France, May 18–21, 2021, Proceedings |last2=Chbeir |first2=Richard |last3=Frasincar |first3=Flavius |last4=Manolescu |first4=Ioana |date=2021-05-11 |publisher=Springer Nature |isbn=978-3-030-74296-6 |language=en}}</ref> 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 shouldn'tshould fall intoconsider the trap[[return ofon spendinginvestment]] more timefor automating aany 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,. unlessWhere itcost iscan plannedbe tomeasured bein terms of time and/or money but also the [[opportunity cost]] of not freeing up people to executeddo severalother timeswork.{{Citation needed|date=FebruaryJanuary 20132016}}
 
==See also==
{{Portal|Software Testing}}
*[[Software testing]]
*[[Unit test]]
*[[Test plan]]
*[[Test suite]]
*[[Test case]]
*[[Scenario testing]]
*[[Session-based test]]ing
 
== References ==
{{DEFAULTSORT:Test Script}}
{{reflist}}
 
[[Category:Software testing]]
 
 
{{Soft-eng-stub}}