ãã㯠Mercari Advent Calendar 2017 22æ¥ç®ã®è¨äºã§ãã
ããã«ã¡ã¯ãã¡ã«ã«ãªã®QA-SETãã¼ã ã§èªååãã¶ãã¶ããã¦ãã tadashi0713 ã§ãã
ååã¯æ¥åèªååã®1ã¤ã¨ãã¦ãSeleniumã使ã£ããã©ã¦ã¶æä½èªååã«ã¤ãã¦ãç´¹ä»ãã¾ããã
ã³ã¡ã³ããåå¿ãè¦ã¾ãã¨ãæè¿ã¯RPA(Robotic Process Automation)ãã¯ããã¨ããæ¥åèªååã«é¢å¿ãé«ãå°è±¡ãåãã¾ããã
ã¡ã«ã«ãªã§ã¯1ã¶æã»ã©åã«Zapierã¨ãããã¼ã«ãTeam Planã§å°å ¥ãã¾ããã
ãã®ãã¼ã«ã使ã£ã¦ã社å¡ãããç°¡åã«æ¥åèªååãã§ããããã«ãããã¨ãã¦ãã¾ãã
ä»åã¯Zapierãå°å ¥ããèæ¯ã社å ã§ã®ä½¿ããæ¹ãã¾ãã©ã社å¡ã«ä½¿ã£ã¦ããããããã«ãããããªã©ã«ã¤ãã¦ãç´¹ä»ãããã¨æãã¾ãã
â Zapierã¨ã¯
Zapierã¯è¤æ°ã®ã¢ããª(Webã¢ããªã±ã¼ã·ã§ã³)ãé£æºããã¦ã¯ã¼ã¯ããã¼ãä½ããæ¥åãèªååããããã¨ãã§ãããã¼ã«ã§ãã
WebUIä¸ããã¢ã«ã¦ã³ãé£æºã»ã¯ã¼ã¯ããã¼ä½æãã§ããããããã³ããã°ã©ãã¼ã§ãç°¡åã«ä½¿ããã¨ãã§ãã¾ãã
åãé¨é¡ã®ãµã¼ãã¹ã§ã¯IFTTT(https://ifttt.com/)ãããã¾ãã
ã©ã¡ãã触ã£ãå°è±¡ã ã¨Zapierã®æ¹ã
- æ¥åç³»ã¢ããªã¨ã®é£æºãå å®ãã¦ãã
- ã¯ã¼ã¯ããã¼ãä½ãä¸ã§ãæè»ãªã«ã¹ã¿ãã¤ãºãã§ãã
ã¨æããä»åã¯Zapierãé¸æãã¾ããã
â å°å ¥ããèæ¯
ç¾å¨ç§ã¯ç¤¾å ã®ãã³ããã°ã©ãã¼åãã«ãèªåã§æ¥åèªååãã§ããããã«å®æçã«åå¼·ä¼ãè¡ãªã£ã¦ãã¾ãã
åå¼·ä¼ã®é°å²æ°ãªã©ã«ã¤ãã¦ã¯å¼ç¤¾ãªã¦ã³ãã¡ãã£ã¢ã®ã¡ã«ã«ã³ã«ç´¹ä»ããã¾ããã®ã§ã覧ãã ããã
åå¼·ä¼ã®ä¸ã§ããç¸è«ãåãã¾ããã®ããç°ãªãã¢ããªéã§ã®ä½æ¥èªååã§ããã
- ãã®Google Spreadsheetsã®è¡ã追å ããããSlackã«éç¥ãã¦ã»ãã
- æ¯æ¥âæã«ãªã£ãããã®æ¡ä»¶ã®JIRAã®ãã±ãããSlackéç¥ãã¦ã»ãã
- ç¹å®ã®ã¯ã¼ããå ¥ã£ã¦ããã«ã¬ã³ãã¼ã®ã¤ãã³ããå§ã¾ãåã«Slackéç¥ãã¦ã»ãã
- ã¡ã¼ã«ã§å±ãæ·»ä»ãã¡ã¤ã«ãGoogle Driveã«èªåã§ã¢ãããã¼ããã¦ã»ãã
ãã®ãããªç¸è«ã«å¯¾ãã¦ã試ãã«ZapierãFree Accountã§ä½¿ã£ã¦ã¿ã¦ããã£ãã¨ãããå¦ç¿ã³ã¹ããã»ã¼è¦ããã«Zapierã®ã¯ã¼ã¯ããã¼ãä½ããæ¥åèªååãã§ããããã«ãªãã¾ããã
ãã®çµé¨ã«ãã£ã¦ãZapierãä¼ç¤¾å ¨ä½ã§ä½¿ããããã«ãªãã°ããã社å ã®æ¥åå¹çåãã§ããã®ã§ã¯ãªããã¨æå¿ããæãã¾ããã
â Zapã®ä½ãæ¹
Zapierã§ã¯è¤æ°ã®ã¢ããªãé£æºããã¦ä½ã£ãã¯ã¼ã¯ããã¼ã®åä½ããZapãã¨å¼ã³ã¾ãã
Zapierã§ã¯ä¸»ã«2ã¤ã®æ¹æ³ã§Zapãä½ããã¨ãã§ãã¾ãã
â 1ããèªåã§ä½ã
Zapierã®ãã¼ã¸ä¸é¨ã«ãããMAKE A ZAP!ããã¿ã³ãã¯ãªãã¯ãã¦å§ãã¾ãã
é£æºããããã¢ããªãããã®ã¢ããªã®ããªã¬ã¼ã»ã¢ã¯ã·ã§ã³ãèªåã§æ±ºãã¾ãã
æè»æ§ãé«ããããæ¢ã«èªååãããããã®ãã¯ã£ãããã¦ããå ´åã«ã¯ãã¡ãã使ãã®ãããããã§ãã
â Templateã使ã
ããä½ããã¦ããZapã¯Templateã¨ãã¦æä¾ããã¦ãã¾ãã
èªåãããããèªååã¨åãå ´åã«ã¯ããã¡ãã使ã£ãæ¹ãããç°¡åã«ä½ããã¨ãã§ãã¾ãã
ã¾ãZapierã®Exploreã®ãã¼ã¸ããã¢ããªãé¸æãã¾ãã
é¸æãããã¢ããªãå«ãTemplateä¸è¦§ã表示ããã¾ãã
èªåãããããZapã®Templateãè¦ã¤ãã£ããããUse this Zapããã¿ã³ãã¯ãªãã¯ãã¾ã
Templateã使ããã¨ã§ãã¢ããªã®é¸æãããªã¬ã¼ã»ã¢ã¯ã·ã§ã³ã®è¨å®ãããå¿ è¦ããªããããããç°¡åã«Zapãä½æãããã¨ãã§ãã¾ãã
ç¾å¨æ¥åã§ä½¿ã£ã¦ããã¢ããªã§ã©ãããèªååãã§ãããæ¢ãã®ã«ãããã®Templateã¯å½¹ã«ç«ã¤ãã¨æãã¾ãã
â 社å ã§ä½ãããZapä¾
ããã§ã¯å®éã«ç¤¾å ã§ä½ãããZapã®ä¾ããç´¹ä»ãã¾ãã
â Google Calendar â Slack
ã·ã³ãã«ãªZapã®ãããåãã¦Zapierã触ãæã«ããä½ããã¾ãã
- ã¤ãã³ããä½ãããã¿ã¤ãã³ã°
- ã¤ãã³ããå§ã¾ãã»çµããâåå
ã«Slackã«éç¥ããããã¨ã§ãã¾ãã
Google Calendarã§ã¯ããSearch Termããè¨å®ãããã¨ãã§ããç¹å®ã®ã¤ãã³ãã®ã¿ããªã¬ã¼ããããã¨ãå¯è½ã§ãã
â Slack â JIRA
ã¿ã¹ã¯ç®¡çãã¼ã«ã¨ãã¦ããã¼ã ã«ãã£ã¦ã¯ç¾å¨JIRAã使ããã¦ãã¾ãã
JIRAãéãã¦issueãä½æãããããSlackã§ã®ããã¨ãããSlackä¸ã§issueä½æã§ããæ¹ã便å©ãªããã§ãè¤æ°ã®ãã¼ã ã§ä½¿ããã¦ãã¾ãã
Slackã®ããªã¬ã¼ã¨ãã¦ã¯
- Channelå ã®çºè¨ã®ä¸ã«ç¹å®ã®ã¯ã¼ãããã(ex. add todo)
- Channelå ã®çºè¨ã«ç¹å®ã®ãªã¢ã¯ã·ã§ã³ãã¤ãã
ãªã©ã使ããã¨ãã§ãã¾ãã
â Google Drive â Slack
Google Driveã«ãã¡ã¤ã«ãã¢ãããã¼ãããããSlackã«éç¥ãã¾ãã
ã¡ã«ã«ãªã§ã¯é±ä¸ã§å ¨ä½å®ä¾ãã¼ãã£ã³ã°ãè¡ãªã£ã¦ããã®ã§ããããã®é²ç»ãç·¨éã»ã¢ãããã¼ãããéã«Slackã«éç¥ããã¾ã
Google Driveã«åç»ãã¢ãããã¼ããããç´å¾ã®å ´åãå¦çä¸ã«ãªã£ã¦ãã¦é²è¦§ã§ããªããã¨ãããã¾ãã
Zapierã«ã¯ããªã¬ã¼ã¨ã¢ã¯ã·ã§ã³ã®éãä¸å®æéé ããããã¨ãã§ãããDelay by Zapierãããããããã使ããã¨ã§åé¿ãããã¨ãã§ãã¾ãã
ã¾ããæ·»ä»ãã¡ã¤ã«ãããã¡ã¼ã«ãå±ãããGoogle Driveã«ã¢ãããã¼ãããâãã®ãã¡ã¤ã«ã®ãªã³ã¯ãSlackéç¥ãããã¨ãã§ãã¾ãã
â Zapãä½ãä¸ã§ä¾¿å©ãªæ©è½
ããã§ã¯Zapãä½ãä¸ã§ä¾¿å©ãªæ©è½ã«ã¤ãã¦ãç´¹ä»ãã¾ã
â Filter
Zapã®ããªã¬ã¼ã¨ã¢ã¯ã·ã§ã³ã®éã«Filterãã¯ãããã¨ãã§ãã¾ãã
ç¹å®ã®æ¡ä»¶ã®ã¿ã§ã¢ã¯ã·ã§ã³ãå®è¡ããããå ´åãªã©ã«ä¾¿å©ã§ãã
â Schedule by Zapier
åºæ¬çã«Zapã®ããªã¬ã¼ã¯é£æºã¢ããªããã«ãªãã¾ãããæ¯æ¥âæã«ã1æéæ¯ã«Zapãå®è¡ããããã±ã¼ã¹ãããã¾ãã
ãSchedule by Zapierãã使ãã°ä¸è¨ã®ãã¨ãã§ããããã«ãªãã¾ãã
â Teamã§Zapãå ±æãã
Team Planã®å ´åãZapierã§ä½ã£ãZapããShared Foldersãã«ç§»åãããã¨ã§ããã¼ã å ã®ã¡ã³ãã¼ãé²è¦§ã»ç·¨éãããã¨ãã§ãã¾ãã
ç¾å¨ã ã¨ãéç¨ãããã¼ã æ¯ã«ãã©ã«ããä½ã£ã¦ããã®ä¸ã«Zapãå ¥ãã¦ãã¾ãã
ãã®Shared Foldersã«ãã£ã¦
- Zapãä½ã£ã人以å¤ã§ãç·¨éãã§ãããããå±äººåãé²ããã¨ãã§ãã
- Teamå ã®ãäºãã®Zapãè¦ããã¨ãã§ããããããã¬ãã¸ãæºã¾ã£ã¦ãã
ã¡ãªãããããã¾ãã
â Zapierã使ã£ã¦ãããããã«èªåããããã¨
å°å ¥ããã¨ãã¦ãããã¼ã«ã¯ä½¿ã£ã¦ããããªãã¨æå³ãããã¾ããã
ããã§ã¯ç¤¾å ã®æ§ã ãªäººã«Zapierã使ã£ã¦ãããããã«ãªãã¾ã§ã«èªåããã£ããã¨ã«ã¤ãã¦ãç´¹ä»ãã¾ãã
â 社å¡å ¨å¡ã«Zapierãç´¹ä»
å ¨ä½å®ä¾ãã¼ãã£ã³ã°ã«ã¦ãZapierã«ã¤ãã¦ã®ç´¹ä»ãããã¦ãããã¾ããã
ã¨ã³ã¸ãã¢ãä¼¼ããããªãã¼ã«ã使ã£ããã¨ããã人ã«ã¯ããã§ä½¿ã£ã¦ããããããã«ãªãã¾ããã
â ãã³ãºãªã³ãå®æ½
ä¸è¨ã®å ¨ä½ã¸ã®åç¥ã ãã ã¨ãä»ã¾ã§æ¥åèªååãªã©ããã£ããã¨ããªã人ã«ã¨ã£ã¦ã¯ããããç°¡åã¨ã¯ãããã¼ãã«ãé«ããã¨æãã¾ãã
ãã®ããã1æéç¨åº¦ã®ãã³ãºãªã³ãè¤æ°åå®æ½ãã¾ããã
æåã®30åã§Zapierã®ç°¡åãªæ¦è¦ã¨Zapã®ä½ãæ¹ãå¾å30åã§ã¯å®éã«Zapãä½ã£ã¦ãããã¾ããã
æåã®1åãä½ããããã«ãªãã¨ããã£ã¨ãã¼ãã«ãä¸ããå°è±¡ãåãã¾ããã
ã«ã¹ã¿ãã¼ãµãã¼ãæ ç¹ã®ä»å°ãªãã£ã¹ã§è¡ãªã£ããã³ãºãªã³ã®æ§å
ã«ã¹ã¿ãã¼ãµãã¼ãããã®è¦æããã£ã¦ãã«ã¹ã¿ãã¼ãµãã¼ãæ ç¹ã®ããä»å°ãªãã£ã¹ã§ããã³ãºãªã³ãè¡ããã¨ãã§ãã¾ããã
ã¡ã«ã«ãªã§ã¯ã«ã¹ã¿ãã¼ãµãã¼ããã¼ã«ã¯å 製åããã¦ããããã³ãºãªã³ãè¡ãåã¯Zapierãæ´»ç¨ããã®ãå³ããã¨æãã¦ãã¾ããã
ãããå®éã«ã¯Google SpreadsheetãGmailãSlackãJIRAãªã©ã使ããã¦ãããZapierã使ã£ã¦ããã¤ãæ¥åèªååãã¦ããããã¨ãã§ãã¾ããã
â ã¡ã³ãã¼ã®æå¾ ã»è¿½å ãç°¡åã«ãã
Zapierã®Team Planã§ã¯æ°è¦ã¡ã³ãã¼ãæå¾ ããå ´åãæ¢åã®ã¡ã³ãã¼ããã¡ã¼ã«ã¢ãã¬ã¹ã追å ãã¦Teamã«æå¾ ãã¦ãããå¿ è¦ãããã¾ãã
社å å ¨ä½ã§ä½¿ã£ã¦ããããã¨ãªã£ãéã«ãèªåèªèº«ãã®è¿½å ä½æ¥ãé¢åã«ãªãã¨æã£ãã®ã¨åæã«ã社å¡ã«ããæ°è»½ã«ã¢ã«ã¦ã³ãçºè¡ããã¦ãããããã¨æãã¾ããã
ãã®ãããä¸è¨ã®è¿½å ä½æ¥ãèªååã§ããããã«ãã¾ããã
Slackã®Slash Commandããã¡ã¼ã«ã¢ãã¬ã¹ãå ¥åãã¦ãããã¨ãå ¥åããã¢ãã¬ã¹ã«ã¡ã¼ã«æå¾ ãå±ãããã«ãã¾ããã
AWS Lambdaã®ãslack-echo-command-pythonãblueprintã使ã
Slack(Slash Command) â AWS API Gateway â AWS Lambda
ã®ããã¼ãä½æãã¾ããã
Lambdaé¢æ°ã§ã¯ãSlash Commandã§å ¥åãã¦ããã£ãã¡ã¼ã«ã¢ãã¬ã¹ã«ä¸å®ã®ããªãã¼ã·ã§ã³ãããããã¨ãCircleCIã®APIãå©ãã¾ãã
CircleCIã«ããã¦å®éã«ãã©ã¦ã¶ãæä½ãã¦ãã°ã¤ã³ãæå¾ ã¾ã§è¡ãã¾ãã
ãã©ã¦ã¶æä½èªååã«ã¤ãã¦ã¯ä»¥åæ¸ãã¾ããè¨äºãåèã«ãã¦ããã ããã°ã¨æãã¾ãã
â ã¾ã¨ã
ç¾å¨ã§ã¯150人以ä¸ã®æ§ã ãªãã¼ã ã»è·ç¨®ã®ç¤¾å¡ããZapierã使ã£ã¦æ¥åèªååãè¡ãªã£ã¦ããã1æ¥500å以ä¸å®è¡ããã¦ãã¾ãã
ãããã工夫ãåããããã®ã§ãæ¯æ¥è¦ã¦ãã¦ç§èªèº«ãåå¼·ã«ãªãã¾ããããã®Zapãä½ã£ã人ããã¼ã å ãªã©ããæè¬ããã¦ããã¨ç´ ç´ã«å¬ããã§ãã
ããããã£ããã«ããã社å å ¨ä½ã§ã®æ¥åèªååãæ¨é²ãããã°ã¨æãã¾ãã
PSã»ã»ã»ãã¹ããèªååã®è©±ãã«ã¸ã¥ã¢ã«ã«ã§ããããã«Facebookã°ã«ã¼ã Agile Testing, Automation and QAã®ç¾å ´ ãä½ã£ã¦ã¿ã¾ããããããèå³ãããã°ããã²éã³ã«ãã¦ãã ããï¼