è² è·ãã¹ã対象ã®Webã¢ããªãããããéæ©è½è¦ä»¶(ï¼Î±)ãåãã¦ãããããã®ã«ã¨ããé¡æ
ã¯ããã«
ããSoftware Test & Quality Advent Calendar 2011ãã®ã¨ã³ããªã¼ã¨ãã¦æ¸ãã¦ããã¾ãã
ãSoftware Test & Quality Advent Calendar 2011ã®åå è
ã¯çµæ§çé¢ç®ãªã¨ã³ããªãçæ§æ¸ãã¦ã¾ããããã®ã¨ã³ããªã¯ãããæå³æç´ã§ãã
ãSoftware Test & Quality Advent Calendar 2011ã®åæ¥ã®ã¨ã³ããªã¯ä»¥ä¸ã®ï¼ã¤ã§ããã
- 逆引きソフトウェアテスト関連技術まとめ(@snskãã)
- モテる!品質とプロセス(2)(@Taka_bowãã)
ããã¤ãã©ããã§ããããã°ã©ã ã¯ãã¦ããããã¹ãããããããã«ä½ã£ãæ¹ãè¯ããã¨ãã趣æ¨ã®æç« ããã¿ã¾ããã
ãã ã£ããããWebã¢ããªã¯ãè² è·ãã¹ããããããããã«ä½ã£ãæ¹ãè¯ãããããä½ã£ã¦ãããã¨å¬ãããªãâ¦ãã¨ãããã¨ãè¨ã£ã¦ã¿ãã®ããããããããªããã¨æã£ãã®ã§ãããã話ãæ¸ãã¾ãã
ãç¯å²ã¨ãã¦ã¯ã測å®ã測å®çµæã®åæã«é¢ãã¦ããããªã£ã¦ãã¨æ¥½ãªãã ãã©ãã¨ãã£ã辺ãã§ãã
ããè² è·ãã¹ãã£ã¦ãã©ã®ã¿ã¤ãã³ã°ã§ä½ç®çã«ãã奴ãæ³å®ãã¦ãã®ï¼ãã£ã¦è¾ºãã«ã¯è§¦ãã¦ãã¾ãããã主ã«ããã¸ã§ã¯ããçµãããããé ã«å®æ½ããã奴ãæ³å®ãã¦æ¸ãã¦ãã¾ãã
ãã¯ãªã¹ãã¹ä¼ç»ã ãé¡æãæ¸ãã¦ãè¯ãããã
ã
主ãªå¯¾è±¡èªè
- éçºè (ããä½ã£ã¦ãããã¨å¬ãããªãã¨ãã話ã§ãã®ã§)
- è² è·ãã¹ããè¡ãæ¹(ãããããã¿çãªæå³ã§ãé¢ç½ãã£ã¦ããããã°â¦)
対象ã¨ããã¢ããª
- å°è¦æ¨¡ãªæ¥åç³»Webã¢ããªãDBã¯Oracleãè¨èªã¯ãJavaããã¾ãããã大äºã«ãªã話ã¯åºã¦ãã¾ãããã
ãµã¼ãç·¨
APãµã¼ãã¨DBãµã¼ãã®ãã·ã³ã¯åããã¦ããã¨å¬ãã
ãä»®æ³ã§ãè¯ããããåããã¦ããã¨å¬ããã§ãã
ããã®æ¹ãããµã¼ãã®ãªã½ã¼ã¹ä½¿ç¨ç¶æ³ãè¨ããã¼ã«ã使ããããããã§ãã
ãAPãµã¼ãã¨DBãµã¼ããåããã¦ããã¨ããã©ã®ãµã¼ãã®CPUã®è² è·ãé«ããã¨ãã£ãã¬ãã«ã§æ
å ±ãåéããã°å¤ãã®å ´åäºè¶³ãã¾ãã
ãããããåå±
ãã¦ããã¨ãã©ã®ããã»ã¹ãCPUã®ãã¯ã¼ãã©ãã ã使ã£ã¦ãããã¨ãã£ãæãã«ãªã£ã¦ãã¾ãã¾ãã
ãã§ãããã調ã¹ãããã«ãã¼ã«ãè¨å®ãããããããã¯æ
å ±åéãããããã®ã¯é¢åã§ãã
ããããã¯ãæ¹æ³ãããããªããã¨ãã
ãä½è«ã§ãããä»®æ³ã®å ´åããªã½ã¼ã¹ã®å²ãæ¯ãã«ã¼ã«ãã©ããªã£ã¦ããããç¥ã£ã¦ããã®ã¯å¤§äºã§ãã
ãæå¤ãªã¨ããã§ã¯ã¾ã£ãã®ã¯ãOSãè«çåºç»ã«åããã¿ã¤ãã®ä»®æ³åã
ãè² è·ã«å¿ãã¦CPUã®å²ãå½ã¦éããããå¤ãã奴ã«ééãã¾ãã¦ãä»®æ³åãããOSä¸ã§CPU使ç¨çãã¯ããã¨ã常ã«100ï¼
è¿ãã«ãªã£ã¦ããã¨ããâ¦ãä»ããæãã°ãè«çåºç»ã®CPUã®ä½¿ç¨çãæ¦ã100ï¼
ã«ãªãããã«ãå²ãå½ã¦éãåçã«å¤åãã¦ããã®ã ã¨æãã¾ãã
DBãµã¼ãã®ä½¿ç¨å®¹éã¯ãDBãµã¼ã管çæ å½ã«ä½è£ãæã£ã¦ç³åããã¦ãããã¨å¬ãã
ãå°ããªã·ã¹ãã ã ã¨ãè¤æ°ã®ã¢ããªã§ä¸ã¤ã®DBãµã¼ããå
±æãã¦ãããã¨ãããã¾ãã
ãããããå ´åã¯DBãµã¼ã管çæ
å½ããã¦ããã®æ¹ã«å¿
è¦ãªå®¹éãç³åããã®ã§ããããã®éã«è¨ç®ãã容éãæ£ç´ã«ç³åãã¦ãã¾ã人ãå±
ã¾ãã
ãä½ãå°ããã¨ããã¾ãã¨ãè² è·ãã¹ãã®åã«ãã®ç³åãå¿
è¦ãªã±ã¼ã¹ãå¤ããã¨ã§ãã
ããã®çµæããããã«ã¤ã³ããã¯ã¹è¿½å ããã¨ãããã©ã¼ãã³ã¹ãæ¹åãããå¯è½æ§ãé«ãã§ããã¨ããçµæãåºãéã«ããã¤ã³ããã¯ã¹ç¨è¡¨é åã®ãµã¤ãºã«ä½è£ããªããããå¼µããªããã©ãããããã¨ãªããã¨ãããã¾ãã
ããã®ç¶æ
ã«ãªãã¨ãçµæ§é ãçãã§ãã
ãã¬ã¼ã ã¯ã¼ã¯ç·¨
ããã§ãããã¬ã¼ã ã¯ã¼ã¯ã¯ãããããæ¥åãã¬ã¼ã ã¯ã¼ã¯é¨åãå«ã¿ã¾ãã
Javaå´ããã©ã®SQLãã©ãã§çºè¡ãã¦ããã調æ»ããããæ§é ã«ãªã£ã¦ããã¨å¬ãã
ãæ¥åã¢ããªã®å ´åãRDBMSå¨ãã®ããã§é
ããã¨ãå¤ãã§ãã
ãããããã¨ãDBãµã¼ãããåéããæ
å ±ãå
ã«ä»¥ä¸ã®èª¿æ»ããããã¨ãå¤ãã§ãã
- é ãSQLã«ã¤ãã¦ãã¢ããªã®ã©ã®å¦çã¨å¯¾å¿ãã¦ããã®ã
- çºè¡åæ°ãå¤ãSQLã«ã¤ãã¦ãã¢ããªã®ã©ã®å¦çã¨å¯¾å¿ãã¦ããã®ã
ãDBå´ã«è¨é²ããã¦ãããå®éçºè¡ãããSQLã®ä¸é¨ãæ¡ä»¶ã¨ãã¦ãã½ã¼ã¹ãè¨å®ãã¡ã¤ã«ãgrepãããã¨ã§ãSQLãç¹å®ã§ããã¨å©ããã¾ãã
ãAPãµã¼ãã®ãã°ãããã¢ããªã®ã©ã®é¨åãå®è¡ããã追ãããããªã£ã¦ããã®ã§ããã°ãã¢ããªã®ãã°ã«SQLãåºåããããã¨ãã§ãè¯ãã§ãã
ããã¨ã大äºãªã®ããé©åã«ä»çµã¿ã使ã£ã¦ãã¢ããªãå®è£
ãã¦é ããã¨ããã®ãããã¾ãã
ããã¨ãã°ããã£ããSQLå®ç¾©ãå¤ã ãããO/Rãããã使ã£ã¦ããã®ã«ãçºè¡ããSQLã®å
容ã«ã¤ãã¦ãåçã«æ±ºå®ãããé¨åãå¤ãããã¨ããã£ã±ã解ææã«è¦å´ãã¾ãã
ã¢ããªã®ãã°ãããã©ã³ã¶ã¯ã·ã§ã³ã«è¦ããæéãåããã¨å¬ãã
ãDBãµã¼ãã®ãã°ãããããã®SQLãé ããã¨ãããã®SQLã®çºè¡åæ°ãå¤ããã¨ãã¯åãã£ã¦ãããã¢ããªããå®è¡ããããã®ãã©ã³ã¶ã¯ã·ã§ã³ãé ããã¨ãã¯åãããªããã®ã§ã(å¤å)ã ããã£ã¦ããã©ã³ã¶ã¯ã·ã§ã³ã®å®è¡æéãèªã¿åããããã«ãªã£ã¦ããã¨å¤§å¤å©ããã¾ãã
ãããã©ã³ã¶ã¯ã·ã§ã³ã®éå§ãå®è¡ã®ãã°ã以å¤ã«ãåæ使ç¨ã¦ã¼ã¶æ°ãå¤ãå ´åã¯ãåè¡ã«ä»¥ä¸ã®æ å ±ãç¡ãã¨è¦å´ãã¾ãã
- ã¹ã¬ããå
- ã»ãã·ã§ã³ID
- (ãã°ã¤ã³å¦çãããå ´å)ã¦ã¼ã¶ID
ãã¹ã¬ããåã®ã¿ã§ãããç¨åº¦è¿½ããããªãã®ã§ããã人éãç®ã§ãã°ã追ããã¨ãå¤ãã®ã§ãæ å ±éãå°ãªãã¨ãã¹ããâ¦ã
ãããã¡ã¤ã©ç¡ãã§ããããç¨åº¦ãããã¡ã¤ãªã³ã°ã§ããã¨å¬ãã
ããã¢ããªã®ãã°ãããã©ã³ã¶ã¯ã·ã§ã³ã«è¦ããæéãåããã¨å¬ãããã¨ããç¨åº¦éãªãã®ã§ãããå¦çã®å®è¡æéãããç¨åº¦åããã¨å¬ããã§ãã
ããã¯ãJavaã®ãã¸ãã¯ãé
ããã¨ãããã¾ãã®ã§ã
ãã©ããããã®ç²åº¦ã§å¦çæéãåããã¨å¬ãããã¨ããã®ã¯ä¸è¨ã§ã¯ä¸æãè¨ããªãã®ããå°ã£ãã¨ããã§ããâ¦ã
ãããã«ããã¯ã解æããéã«ã¯ãæç§æ¸ã©ããã®çãã¨ãã¦ã¯ããããã¡ã¤ã©ã使ã£ã¦ããã«ããã¯ã調ã¹ã¾ããããã¨ãªãã®ããããã¾ãããã以ä¸ã®çç±ã«ãã£ã¦ãããã¡ã¤ã©ã¯ãã¾ãå½¹ã«ãã£ããã¨ç¡ãã§ãã
- APãµã¼ãã®èµ·åããããé ããªããèµ·åçµäºã¾ã§å¾ ã£ã¦ããããªãã
- æ¥åãã¸ãã¯ã¨é¢ä¿ãªãã¡ã½ããã®å¦çæéãããæéã®æãã£ãå¦çãã®ä¸ä½ã«ä¸ãã£ã¦ãã¦ãã©ã解æãã¦è¯ããéæ¹ã«æ®ãã
ã¯ã©ã¤ã¢ã³ããå©ãURLã¨æãããã¼ã¿ãåãããããã¨å¬ãã
ãURLã®çæã«ã¼ã«ãè¤éã ã¨ãJMeterã§ã·ããªãªãä½ãã¨ãã«ããããâ¦ã
ãWicketãã¯ã©ã¤ã¢ã³ããå©ãURLãããè¤éã§ãããããæ£è¦è¡¨ç¾ã§WicketãçæããURLãæ½åºããã®ã«æ
£ãã¾ããã®ã§ãWicketã«ã¤ãã¦ã¯å人çã«ã¯ã©ãã§ãè¯ãã§ãã
ããã¨æãããã¼ã¿ã«ã¤ãã¦ãã以ä¸ãåãããªãã¨è¦ããã®ã§ãããã¥ã¡ã³ããæ®ã£ã¦ããã¨å©ããã¾ãã
- ã»ãã¥ãªãã£å¯¾ç
- ASP.NETã§ããã¨ããã®ViewStateçãªãã®ããããªãã°ããã®ä»æ§(ä¸è¬çã«ãªãã¦ããã®ã ããï¼)
éçºä¸ç·¨
ãã¹ã¿ç³»ãã¼ã¿ã¯éçºã®åæãã件æ°ã ãã§ãæãã¦ããã¨å¬ãã
ãéçºè
ã¯ãéçºä¸ãåä½ç¢ºèªã®ããã«ãã³ãã³ããã°ã©ã ãåããããã§ãã
ãããã°ãããè² è·ãã¹ãããã¦ããã¨ãã£ã¦ãéè¨ã§ã¯ç¡ãã§ãããã
ãã¨ãããã¨ã¯ãæ©ã段éãããã¼ã¿ã®ä»¶æ°ã ãã§ãæãã¦ããã°è² è·ãã¹ãã®æ®µéã«ãªã£ã¦ããããªãã§ãããªåºæ¬çãªæä½ãé
ãã®â¦ï¼ãã¨é ãæ±ãããã¨ãæ¸ãã¯ãã§ãã
ãï¼ã«ã¯ãªããªãã§ããããã©ãã
ãã°ã¯ã誰ãçºè¦ããå ´åã§ãããªãªã¼ã¹åã«è¦ã¤ãã£ã¦è¯ãã£ãããã¨ããæåã ã¨å¬ãã
ãããã¯ããã¸ã§ã¯ãããããããã¦ããã¨ãããã©ã¼ãã³ã¹ã«åé¡ããããã¨ã«æ°ä»ãã人ããã¦ãããããä¸ã«ä¼ããªãã®ã§ããã
ããã°ã§ããè¨ãã«ããã®ã§ããããæ£å¸¸ã«åä½ãããã®ã誰ãç³åããã§ããããã
ããã£ã¦ãå ±åããããæåã ã¨ãè² è·ãã¹ãã®æ®µéã«ãªã£ã¦ããããªãã§ãããªåºæ¬çãªæä½ãé
ãã®â¦ï¼ãã¨é ãæ±ãããã¨ãæ¸ãã¯ãã§ãã
ãããã«
ãããï¼è² è·ãã¹ãã¨é¢ä¿ç¡ããªãï¼ãã©ã¡ããã¨ããã¨éç¨ã®å®¹ææ§ãä¸ããã¨ãã話ã ããããããã¨æã£ãæ¹ã¯ãããæå³æ£è§£ã§ãã
ãè² è·ãã¹ãã¯ããåããã¦ã¿ãªãã¨åãããªãåé¡ããæ¬çªã§çºçããåã«æ½°ãããã¨ããå´é¢ãããã¾ããéç¨ãå§ã¾ã£ã¦ããã®ãã©ãã«ã·ã¥ã¼ããèæ
®ããã¦ããã·ã¹ãã ãªãã°ãè² è·ãã¹ããã¾ããããããã§ã(éç¨ã§çºçãããã©ãã«ã¯æ§è½åé¡ä»¥å¤ãããã®ã§ãéã¯è¨ããªãã§ãã)ã
ã大è¦æ¨¡ã®ã¢ããªã«ã¨ã£ã¦ã¯æ®éã®èæ
®ããããã¾ããããå°ããã¢ããªã ã¨ãããã£ãèæ
®ãå¿ããããããã®ã
ãäºç®ã¨å·¥æ°ã®å
¼ãåããããã¾ãããå°ããªã¢ããªã§ããããã£ãèæ
®ãå
¥ãã¦é ããã¨ãæå¤ãªäººãåãã§ãããããããã¾ããã