Perl Testing (and Automation) Basics ã¹ãã¼ã«ã¼ Daisuke Maki (âlestrratâ) å¿åè Shibuya.pm æ¥ä»: 2008/05/15 13:45 æé: 40å è¨èª:æ¥æ¬èª ã¹ã©ã¤ã: http://users.endeworks.jp/~daisuke/presentations/yapc/TestingAndAutomation.ppt æ¥åã§ãªãã ããã¹ãï¼ãããã¤ï¼éçºã§ãããããã¦ããæ¹åãã Perl Testing (and Automation) Basics - * WHY? - Automation is your friend! * CPANize your modules * make test is your friend * Test::More Apache::Test * Testing (w
ä»æ¥ã®ãã¹ããµãããã§ãã§ããã ãã¦ããããã¹ããæ¸ããã«å質ã確ä¿ããæ¹æ³ã«ã¤ãã¦ããã£ã¹ã«ãã·ã§ã³ãã¾ãã ããæ¹ãç°¡åã«ç´¹ä»ããã¨ãæåã¯ãProgramming First Developmentã§ãæ©è½ãå®è£ ãã¦ãã¦ã¼ã¶ã«åããã¦ãããã£ã¦ãã¨ãã¦ã¼ã¶ã®è¦ä»¶ãåºã¾ãã¾ã§ç¹°ãè¿ãã¾ãããã®ã¨ãã¯ãåºæ¬çã«ã¦ããããã¹ãã¯æ¸ãã¾ãããåãããã¨ã«éä¸ãã¾ãã ã¦ã¼ã¶ã®è¦ä»¶ãåºã¾ã£ã(å®è£ ãã»ã¨ãã©çµãã£ã)ããä¿å®ã®ããã®ããã¥ã¡ã³ãã®ä¸ã¤ã¨ãã¦ããã¹ãã·ããªãª(ã¦ã¼ã¹ã±ã¼ã¹ãã¹ã)ãä½ã£ã¦ããã¹ããè¡ãã¾ãããã®ãã¹ãä¸ã«ããã°ãçºè¦ãããããã®å¨è¾ºã®ã¦ããããã¹ããæ¸ãã¦ããã¾ãã ããã¯ãããã°ã¯åå¨(åã£ã¦åå¨)ãããã¨ããç¹å¾´ãå©ç¨ãã¦ãä¸éãåãããå¾ã«è¦ã¤ãã£ããã°ã®è¿ãããã¹ããã¦ããã°ã主ãªãã°ã¯ã¤ã¶ããã ããã¨ããèãã§ãã ããã¾ã§ã¯ããã¦ããããã¹ãã¯ãã§ãã
ããã¹ãããã¹ããªã®ã¯ç¥ã£ã¦ãããï¼ç¾å®ã«ã¯ã§ããªããã¨ããç¾å ´ã®ç¶æ³ãããã«æç ´ãããï¼æ°éã®ã½ããéçºè ã¨ãã¹ãæè¡è ãããã«è¨è« Developers [Test] Summit 2008ï¼ãããµãTestï¼ ã建åã§ã¯ãªãå®éã«ãã¹ããæ®åãããã«ã¯ã©ãããã°ããã®ããã2008å¹´4æ23æ¥ï¼æ±äº¬ã»ä¹æ®µã§éå¬ããããã¹ãã«ç¹åããã½ããã¦ã¨ã¢éçºè åãã«ã³ãã¡ã¬ã³ã¹ãDevelopers [Test] Summit 2008ï¼ãããµãTestï¼ãã§ããå¾¹åºè¨è«ããã¹ããªãã¦ãããªãï¼ï¼-ãã¹ããï¼ã©ãã¾ã§ããã¹ããï¼ãã¨ããããã«ã»ãã£ã¹ã«ãã·ã§ã³ãéå¬ãããã å¸ä¼ãåããã®ã¯ã¿ã¯ã¼ãºã»ã¯ã¨ã¹ã ããã°ã©ãå ¼åç· å½¹ç¤¾é·ã§ããï¼ãã¹ãé§åéçºï¼TDDï¼ã®æ¥æ¬ã§ã®ç¬¬ä¸äººè ã§ããåç°å人æ°ãåæ°ã«ï¼ãªã¼ãã³ã½ã¼ã¹ã»ããã¸ã§ã¯ããSeasarãã®ãã¼ãã³ããã¿ã§ããã²ããããæ°ï¼ãã¹ãã®
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ããã«åå²ã ãã¹ãã«ã¤ãã¦ã¯å¤é¨ãããªã¯ã¨ã¹ããéã£ã¦ãã¿ãããªæ¹æ³ãããªãï¼ãããªã®ã§ãå é¨ã®ã¢ã¸ã¥ã¼ã«ãç¹ã«ã¢ãã«é¨åã®ãã¹ããã©ããã£ã¦ããããåé¡ã ããã¯æ®éã®Perlã¢ã¸ã¥ã¼ã«ã¨åãæ¹æ³ã§ã§ããã®ããã http://search.cpan.org/~jrockway/Catalyst-Manual-5.700701/lib/Catalyst/Manual/Cookbook.pod#Testing ãã¹ãã¯Webã¢ããªã±ã¼ã·ã§ã³ã®éçºããã»ã¹ã«ä¸å¯æ¬ ãªè¦ç´ ã ããã¹ãã¯è¤æ°äººã§ã®éçºã¨ã³ã¼ãã®å¤æ´ã容æã«ããã Testing Catalystã¯éçºä¸ã®ãã¹ãã¨æ¬çªç°å¢ã«ãããã¤ããåã®ãã¹ãããããããããã Catalyst::Testã¯åããã¹ãããã¼ã«ã«ï¼å¤é¨ã®ãã¼ã¢ã³ãé¤ãï¼ã¨ãªã¢ã¼ãã®HTTPãµã¼ãã«å¯¾ãã¦è¡ããããã«ããã Tests ã¹ã±ã«ãã³ã¢ããªã±ã¼ã·ã§ã³ã®
YAPC::Asia Tokyo 2008ã«åå ãã¦ãã¾ããã ç¸å¤ããããããçãä¸ãã£ã¦ãã¦ã家æçã§åçªä¼çãªé°å²æ°ããããã°ãããã«ã³ãã¡ã¬ã³ã¹ã§ãããããã»ã©ã®å¤§è¦æ¨¡ãªã«ã³ãã¡ã¬ã³ã¹ãæºåãã¦æ»ããªãéå¶ããå®è¡å§å¡ä¼ã®çæ§ã¯GJã«ãã»ã©ãããã¨æãã¾ããã ä»å¹´ã¯3ã¤ã®é¨å±ã§ã»ãã·ã§ã³ãåæé²è¡ã ã£ãã®ã§ãåå ããã»ãã·ã§ã³é¸ã³ããããé£ããã£ãã§ãããè¦ããªãã£ããã®ã¯å¾ã»ã©ãããã§ãããåç»ã楽ãã¿ã«ããããªã¨æãã¾ããåã®åéä¸è¶³ã§æ£ç´ä»ãã¦ãããªãã£ãã»ãã·ã§ã³ããããããã£ãã®ã§ããã2æ¥éåå ãã¦å°è±¡ã«æ®ã£ããã®ãæ¸ãçãã¦ãããããªã¨æããã¡ã¾ãããä»æ±åæ¬ç·ã®é»è»å ã§ãã³ãã¬ããè¦ãªããæ¸ãã¦ãã¦ãã¾ããããæªãã¾ãã¦ãªããå¿é ã§ãã Perl Black Magic (Jose Castro) Perlã®ææ³è¦åã¨ç¹æ®å¤æ°ãæ§ã ãªtrickã使ã£ã¦ã絶æçã«èª
ã¯ããã«ãæ¬ããã¥ã¡ã³ãã¯ãWebã¢ããªã±ã¼ã·ã§ã³ç¨ã®ãã¹ããã¼ã«Seleniumï¼ã»ã¬ãã¦ã ï¼ãå©ç¨ããããã®æé ã解説ãããã®ã§ãããååã¯Seleniumã®æ©è½æ¦è¦ã«ã¤ãã¦è§£èª¬ãã¦ãã¾ãããSeleniumã使ç¨ãããã¨ã§ããã©ã¦ã¶æä½ãèªååãã¦ãWebã¢ããªã±ã¼ã·ã§ã³ã®è©¦é¨ã»æ¤è¨¼ãå¹ççã«è¡ããã¨ãã§ãã¾ããä»åã¯ããããããã¹ãã±ã¼ã¹ã«ã¤ãã¦ã®è§£èª¬ã§ãããã¹ãã±ã¼ã¹ãå®éã«è¨è¿°ããSeleniumã§ãã¹ããå®è¡ãã¦ã¿ã¾ããèªè 対象ãããã¸ã§ã¯ãã®è©¦é¨æ å½è ãæ³å®ãã¦ãã¾ãã対象ãã§ã¼ãºãæ¬ããã¥ã¡ã³ãã§ã¯ããã¸ã§ã¯ãã«ããã¦ãä½æããWebã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ãã©ã¦ã¶ãç¨ãã試é¨ï¼çµå試é¨ã»ç·å試é¨ï¼ãå®æ½ãããã§ã¼ãºã対象ã¨ãã¦ãã¾ããWebã¢ããªã±ã¼ã·ã§ã³ã®è£½é ãåä½è©¦é¨ãã§ã¼ãºããå¤é¨ã®ã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã試é¨ã«ã¤ãã¦ã¯å¯¾è±¡å¤ã§ãã使ç¨ããã½ããã¦ã§ã¢ã»ç°å¢ãSe
ã¯ããã«ãæ¬ç¨¿ã¯ãWebã¢ããªã±ã¼ã·ã§ã³ç¨ã®ãã¹ããã¼ã«Seleniumï¼ã»ã¬ãã¦ã ï¼ãå©ç¨ããããã®æé ã解説ãããã®ã§ãããããã2åã«åãã¦ãSeleniumã®æ¦è¦ããã³ãã¤ã³ã¹ãã¼ã«æé ãå®éã®ãã¹ãã±ã¼ã¹ã®å®è¡ã«ã¤ãã¦è§£èª¬ãã¦ããã¾ãï¼å¾ç·¨ã¯ãã¡ããã¾ããTipsãå ¬éãã¾ããï¼ããä»åã¯ãSeleniumã®æ¦è¦ããã³ãSeleniumã®ãã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«æé ã«ã¤ãã¦è§£èª¬ãã¾ããèªè 対象ãããã¸ã§ã¯ãã®è©¦é¨æ å½è ãæ³å®ãã¦ãã¾ãã対象ãã§ã¼ãºãæ¬ããã¥ã¡ã³ãã§ã¯ãããã¸ã§ã¯ãã«ããã¦ä½æããWebã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ããã©ã¦ã¶ãç¨ãã試é¨ï¼çµå試é¨ã»ç·å試é¨ï¼ãå®æ½ãããã§ã¼ãºã対象ã¨ãã¦ãã¾ããWebã¢ããªã±ã¼ã·ã§ã³ã®è£½é ãåä½è©¦é¨ãã§ã¼ãºããå¤é¨ã®ã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã試é¨ã«ã¤ãã¦ã¯å¯¾è±¡å¤ã§ãã使ç¨ããã½ããã¦ã§ã¢ã»ç°å¢ãSeleniumãåä½ãããã«ãããã以
å æ¥ã®Shibuya.js Techtalk#2ã§ã¯éçºææ³ã®è©±ã¨ãã¯(åå話ããã®ã§)ãã¾ãããªãã£ãã®ã§ããããããã話ãç¥ãããã¨ãã人ãå¤ããããªã®ã§é©å½ã«å ¬éãã¦ãããã¨æãã¾ãã http://la.ma.la/misc/js/mechanize/ WWW::Mechanizeã¨ä¼¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã§IEãé éæä½ããã©ã¤ãã©ãªã§ããhtaããå¼ã³åºãã¦ãã¹ãç¨ã®ãã¼ã«ãä½ã£ãããã¾ããwshããã使ããã¨æãã¾ãã æ©è½çã«ã¯æä½éã®ãã®ããå®è£ ãã¦ã¾ããããã¡ã¤ã«ã®ã¢ãããã¼ãã¨ãã¯JSå´ããããããªãã£ãã¨æãã®ã§å¤åç¡çã§ãã ãã®æã®ãã¼ã«ã§ã¯seleniumã¨ããã®ãæåãªã®ã§ãããå¤æ©è½ããã¦ä½¿ãæ¹ãè¯ãããããªãã®ã§èªä½ãã¾ãããåç´ãªåä½ç¢ºèªãé£æã«ä½¿ã£ãããã¾ãã ããã使ã£ã¦ã¢ã¬ãããããããã¦ããã®ã§ããã¨ã¦ãããã«ã¯æ¸ãã¾ããã
ã¯ããã«ãæ¬ç¨¿ã¯ãWebã¢ããªã±ã¼ã·ã§ã³ç¨ã®ãã¹ããã¼ã«Seleniumï¼ã»ã¬ãã¦ã ï¼ãå©ç¨ããããã®æé ã解説ãããã®ã§ãããããã2åã«åãã¦ãSeleniumã®æ¦è¦ããã³ãã¤ã³ã¹ãã¼ã«æé ãå®éã®ãã¹ãã±ã¼ã¹ã®å®è¡ã«ã¤ãã¦è§£èª¬ãã¦ããã¾ãï¼å¾ç·¨ã¯ãã¡ããã¾ããTipsãå ¬éãã¾ããï¼ããä»åã¯ãSeleniumã®æ¦è¦ããã³ãSeleniumã®ãã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«æé ã«ã¤ãã¦è§£èª¬ãã¾ããèªè 対象ãããã¸ã§ã¯ãã®è©¦é¨æ å½è ãæ³å®ãã¦ãã¾ãã対象ãã§ã¼ãºãæ¬ããã¥ã¡ã³ãã§ã¯ãããã¸ã§ã¯ãã«ããã¦ä½æããWebã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ããã©ã¦ã¶ãç¨ãã試é¨ï¼çµå試é¨ã»ç·å試é¨ï¼ãå®æ½ãããã§ã¼ãºã対象ã¨ãã¦ãã¾ããWebã¢ããªã±ã¼ã·ã§ã³ã®è£½é ãåä½è©¦é¨ãã§ã¼ãºããå¤é¨ã®ã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã試é¨ã«ã¤ãã¦ã¯å¯¾è±¡å¤ã§ãã使ç¨ããã½ããã¦ã§ã¢ã»ç°å¢ãSeleniumãåä½ãããã«ãããã以
Eclipseãã©ã°ã¤ã³ã§æä¾ããããã¹ããã¼ã«ãå å®ãã¦ãããæ¬é£è¼ã§ã¯ãã·ã¹ãã éçºã®ç¾å ´ã«æå¹ãªãã¹ããã¼ã«ãç´¹ä»ããçµ±åéçºãã¼ã«ã«Eclipseãé¸æããéçºã«ããããã¹ãã®å¹çåãã½ããã¦ã§ã¢å質ã®åä¸ã®ãã³ããæä¾ãããï¼ç·¨éé¨ï¼ ååã®è¨äºã§ã¯ã½ã¼ã¹ã³ã¼ãã®ã¹ã¿ã¤ã«ãã§ãã¯ããã°æ¤åºãè¡ãéç解æãã¼ã«ãç´¹ä»ãã¾ãããä»åã¯ãã½ã¼ã¹ã³ã¼ãã®è¤éããªã©ãè¨æ¸¬ããã¡ããªã¯ã¹è¨æ¸¬ãã¼ã«ãç´¹ä»ãã¾ããã¡ããªã¯ã¹ãè¨æ¸¬ãããã¨ã«ãããã½ã¼ã¹ã³ã¼ãã®æ§é ä¸ã®åé¡ç¹ãææ¡ããå質ã®è©ä¾¡ããã³åä¸ã«ã¤ãªãããã¨ãã§ãã¾ããä»åã¯ãEclipse Metrics Pluginï¼2種é¡ï¼ãCAPãJDepend4Eclipseã®4ãã¼ã«ãç´¹ä»ãã¾ãã ã¡ããªã¯ã¹ã¨ã¯ ã½ããã¦ã§ã¢ã®ã¡ããªã¯ã¹ã¨ã¯ãã½ããã¦ã§ã¢ãè¨æ¸¬ããæ¹æ³ããã³ãã®å°ºåº¦ã®ãã¨ãæå³ãã¾ããä»åç´¹ä»ããã¡ããªã¯ã¹è¨æ¸¬ãã¼ã«ã¯ãã½
ä»åã¯ãJohanna Rothmanã®"No More Second-Class Testers!"ãç´¹ä»ãã¾ãã彼女ã¯ã¢ã¡ãªã«ã§ãæåãªãã¹ãã³ã³ãµã«ã¿ã³ãã§ãããããã¸ã¡ã³ãå¯ãã§ãã人ã¨ãªãã詳ããèªã¿ããæ¹ã¯ã¤ã³ã¿ãã¥ã¼ãã©ããããã®è¨äºã¯Better Softwareèªã®2004å¹´1æå·ã«æ²è¼ããããã®ã§ããåæã¯ãã¡ãã ãããï¼æµã®ãã¹ãæè¡è ã¯ãããªããã¨ã¾ããåºæ¿çãªã¿ã¤ãã«ã§ããä¸èº«ãè¦ã¦ããã¾ããããã¾ã ã"We have world-class developers, but our testers are second class." I hate hearing that. Too often, it's trueâand it's not the testers' fault.ã ã¨ããã¹ãæè¡è ã®æ²ããç¾å®ãæ¸ããã¦ãã¾ããããã¡ã¯éçºã¯ï¼æµã ããã
ã¸ã£ã³ã«ï¼Webã¢ããªã±ã¼ã·ã§ã³éçºç°å¢ãä½è ï¼David Heinemeier Hanssonæ°ãªã© ã©ã¤ã»ã³ã¹ï¼MIT LicenseãURLï¼http://www.rubyonrails.org/ Ruby on Railsã¯ãã¼ã¿ãã¼ã¹ãå©ç¨ããWebã¢ããªã±ã¼ã·ã§ã³ãæ§ç¯ããããã®ãã¬ã¼ã ã¯ã¼ã¯ã ãRubyã¨MySQLã§æ§æããããæ°è¦ã«è¨è¿°ããã³ã¼ãã®éãå°ãªãã¦æ¸ã¿ï¼ç°¡åã«Webã¢ããªã±ã¼ã·ã§ã³ãéçºã§ãããå©ç¨å¯è½ãªã¢ããªã±ã¼ã·ã§ã³ãå¤ãã Ruby on Railsï¼ä»¥ä¸ï¼Railsï¼ã¯ï¼2005å¹´12æ14æ¥ã«ãã¼ã¸ã§ã³1.0ãç»å ´ãããã¨ãããï¼ä»æã注ç®ãããWebã¢ããªã±ã¼ã·ã§ã³ã»ãã¬ã¼ã ã¯ã¼ã¯ã¨ãããã ããï¼åç1ï¼ãPHPãJavaã使ã£ãæ¢åã®ãã¬ã¼ã ã¯ã¼ã¯ã«æ¯ã¹ã¦ï¼éçºæéãçãï¼ããªãã¡çç£æ§ãé«ããã¨ãç¹å¾´ã§ãããAjaxï¼Asynchronous J
The Rational Edge åæ£ã³ã³ãã¥ã¼ãã£ã³ã°æ代ã®ãã¹ãææ³ Jeffrey Bocarsly Division Manager, Automated Functional Testing RTTS Jonathan Harris Division Manager, Scalability Testing RTTS Bill Hayduk Director, Professional Services RTTS 2002/7/20 ãã¹ãã®æ¥çæ¨æºã¯ã¯ã©ã¤ã¢ã³ãï¼ãµã¼ãã¢ã¼ããã¯ãã£ããã®ã¤ã©ç´é¢ããå質ã®åé¡ã«æ²¿ã£ã¦é²åãç¶ãã¦ãããã¤ãæè¿ã¾ã§ã¯ãããã³ãã¨ã³ãã·ã¹ãã ã®æ©è½ãã¹ãã¯ã¯ã©ã¤ã¢ã³ãPCã®ã¿ã§ãããã¯ã¨ã³ãã·ã¹ãã ã®ã¹ã±ã¼ã©ããªãã£èª¿æ»ãããã©ã¼ãã³ã¹ãã¹ãã¯ãµã¼ãã®ã¿ã§è¡ãã¨ããå½¢æ ã主æµã ã£ãããã®ãåæ¥ä½å¶ãã¯ãæ§æ¥ã®ã¯ã©ã¤ã¢ã³ãï¼ãµã¼ãã¢ã¼ããã¯ãã£ï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}