Modern Web Testing with TestCafe
TestCafeisanopensourceend-to-endtestingframeworkthatcombinesunmatchedeaseofusewithadvancedautomationandrobustbuilt-instabilitymechanisms.Thisbookisacomprehensive,project-basedintroductiontoTestCafethatwillshowyouhowtousetheTestCafeframeworkandenableyoutowritefastandreliabletests;plusyou’llhaveaproofofconceptreadytodemonstratethepracticalpotentialofTestCafe.You’llbeginbylearninghowtowriteend-to-endwebtestsusingtheTestCafesyntaxandfeaturesoftheTestCafeframework.You’llthengofromsettinguptheenvironmentallthewaythroughtowritingproduction-readytests.You’llalsofindouthowtobuildasamplesetoftestsinastep-by-stepmanneranduseTestCafetologintothewebsite,verifytheelementspresentondifferentpages,create/deleteentities,andruncustomJavaScriptcode.Asyouadvance,you’lldelveintoseveralstagesofrefactoringthatwilltakeyouthroughtheshowcasesetup/teardownandPageObjectpatterns.Whilethistestsuiteisrelativelysimpletobuild,itshowcasessomeofthemostprominentfeaturesofTestCafe.Finally,thisTestCafebookwillshowyouhowthetestscanberunonafreeandsimple-to-usewebsite,withoutrequiringyoutobuildanddeployyourownserversorbackendservices.Bytheendofthisbook,you’llhavelearnedhowtowriteandenhanceend-to-endtestswithTestCafetosolvereal-worldproblemsanddeliverresults.
·3萬字