1 / 12

Smoke testing

Smoke testing. Gediminas Rimša. Origin of the Term. Used in the plumbing industry since 1875 . Smoke testing ( Software ). aka Build Acceptance Testing P reliminary testing to detect simple failures severe enough to reject a prospective software release

ken
Download Presentation

Smoke testing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Smoke testing Gediminas Rimša

  2. OriginoftheTerm • Usedintheplumbing industrysince1875.

  3. Smoketesting (Software) • akaBuildAcceptanceTesting • Preliminarytesting to detectsimple failures severe enough to reject a prospective software release • Allows to quicklyrejectthebuilddue to obviousdefectsbefore testing it morethoroughly

  4. Smoketestfeatures • Intendedto preventcatastrophicfailures • Testsmostcriticalfunctionality • Automatablenature • Cheap • Fast

  5. Smoketestcategories • Unittests • Testsindividualfunctions/methods • Runaspartofthebuildassemblyprocess • Functionaltests • Testsapplicationas a whole • Runonnewlyassembledbuild

  6. Common(?) scenario • Noautomatictests • Noresourcesdedicated to writingtests • Need to improvesoftwarequality

  7. Possiblestrategy • Write a fewunittests to covermostcriticalfunctions/methods • Basicfunctionaltests (webapplication): • Doestheapplicationstart? • Doallwebpages loadwithouterrors? • Docorefeatures (e.g. login) work?

  8. Functionalsmoketests: Tools • Simpleshellscripts (curl/wget)- Testing pageoutput / ifthepageloads at all • Specializedweb testing tools, e.g. Selenium- Testing morecomplexfeatures

  9. curloutput >> curl -IsLmif.vu.lt HTTP/1.1 302 Found Date: Wed, 20 Nov 2013 22:02:21 GMT Server: Apache/2.2.16 (Debian) Location: http://mif.vu.lt/lt2/ Vary: Accept-Encoding Content-Type:text/html; charset=iso-8859-1 HTTP/1.1 200 OK Date: Wed, 20 Nov 2013 22:02:21 GMT Server: Zope/(2.13.10, python 2.6.7, linux2) ZServer/1.1 Content-Length: 701 Accept-Ranges:none Last-Modified:Wed, 20 Nov 2013 22:02:21 GMT Content-Type:text/html Vary: Accept-Encoding

  10. Quicktestexample function test { res=`curl -s -o /dev/null -I -L -w %{http_code} $1` if [ $res -ne 200 ] then echo "Error: $res on $1" fi } test mif.vu.lt test http://mif.vu.lt/lt2/apie-mif-does-not-exist test http://mif.vu.lt/lt2/apie-mif Output: Error 404 on http://mif.vu.lt/lt2/apie-mif-does-not-exist

  11. Integrateswellwithbuildprocess • Rununittests • Assemblewebapplication • Deployapplication • Runfunctionalsmoketests

  12. Expectedoutcome • Timespent: a fewdays at most • A reliablewayto ensurethatapplication at leastsomewhatworks • Solidbase forgraduallydevelopingmoreand/ormoreelaborateautomatedunit/functionaltests

More Related