Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Angular Advent Calendar 2014 ã® 17 æ¥ç®ã®è¨äºã§ããAngular ãã®ãã®ã§ã¯ãªããAngularJS ç¨ã® E2E ãã¹ããã¼ã«ã§ãã Protactor ã«ã¤ãã¦æ¸ãã¾ããï¼æ¥ä»è¶ãã¦ãã¾ãã¾ããããã¿ã¾ããã»ã»ã»ãï¼ Angular ãã¼ã ãä½ã£ã¦ããã¨ãã ProtractorãAngular ã¢ããªã® E2E ãã¹ãããããªãããã«éããªãã¨æãã¤ã¤ãã使ãå§ããåã¯ãããããããç¹ãããã¾ããã ã³ã¼ããã©ãã§åãã¦ãããããããªãã¦ãããã å¦çãã©ãããé åºã§å®è¡ããããããããªãã¦ãããã ãã®è¨äºã§ã¯ãããã®ç¹ã«ã¤ãã¦èª¬æããProtractor ãèªä¿¡ãæã£ã¦ä½¿ããããã«ãªããã¨ãç®çã¨ãã¦ãã¾ãã èªè ã¨ãã¦ã¯ä»¥ä¸ã®ãããªæ¹ãæ³å®ãã¾ãï¼ä¸»ã«å æ¥ã®èªåï¼ã Protractor ã®ã¤ã³ã¹ãã¼ã«ããã¦åããã¦ã¿ãã æ¥é ãã Prom
Install protractor-perf using npm install -g protractor-perf. Protractor test cases are re-used to run scenarios where performance needs to be measured. Protractor-perf can be used just like protractor, just that the test-cases need to be instrumented to indicated when to start and stop measuring performance. Protractor is usually invoked using $ protractor conf.js. Use $ protractor-perf conf.js i
AngularJSãªãã¡ã¬ã³ã¹ã®è½ã¡ç©æ¾ããã®3ã¨ãããã¨ã§ãä»åã¯Protractorã®å°ãã¿ãç´¹ä»ãããã¨æãã¾ãã æåå³åã§ãããProtractorã®èª¬æã«ã¤ãã¦ã¯ãã¡ããããããã ããã Protractor: AngularJSã®æ¬¡ä¸ä»£E2Eãã¹ããã¬ã¼ã ã¯ã¼ã¯ AngularJSã®å¦çã®å®äºãå¾ ããªã Protractorã«ã¯ãbrowser.waitForAngularã¨ããAPIãç¨æããã¦ãã¾ãã ãã®APIãå¼ã³åºãã¨ãAngularJSã®æç»å¦çãã$httpã«ããéä¿¡å¦çã$timeoutã«ããã¿ã¤ã ã¢ã¦ãå¾ ã¡å¦çãªã©ãå®äºããã¾ã§å¾ ã¤ãã¨ãã§ãã¾ãã Protractorã¯ãè¦æè¦æã§å é¨çã«ãã®browser.waitForAngularãå¼ã³åºãã¦ãã¾ãã ããã«ãããã¹ããæ¸ã人ã¯ãAngularJSã®å¦çãå®äºããã¾ã§å¾ ã¤ã¨ããå¦çãæ¸ãå¿ è¦ããªããªã
npm install --save-dev coffee-script npm install --save-dev protractor npm install --save-dev grunt-protractor-runner npm install --save-dev protractor-coffee-preprocessor npm install --save-dev grunt-exec coffee-script CoffeeScript ã®ã³ã³ãã¤ã© ã¯ãã -g ã§å ¥ãã¦ããã®ã ãããã¸ã§ã¯ãã®ä¸ã«å ¥ããªãã¨ä½¿ããªãã£ã protractor angularJS 御ç¨éã® E2E ãã¹ããã¬ã¼ã ã¯ã¼ã¯ selenium ã angularJS ããã¸ã§ã¯ãã§ä½¿ããããã«ãããªã«ã«ã¹ã¿ãã¤ãºãã¦ãã grunt-protractor-runner protracto
Protractor for AngularJS Writing end-to-end tests has never been so fun @ramonvictor Table of contents Why is testing so important? Testing is about gaining confidence that your code does what you think it should do @juliemr Whats the idea behind E2E testing? How would the users see my application? Is my backend communicating with my frontend? Can I release this code? It does NOT replace Unit Test
Protractorã¨ã¯ãAngularJSã¢ããªã±ã¼ã·ã§ã³ã®ããã®ã¨ã³ãã»ãã¥ã¼ã»ã¨ã³ãï¼E2Eï¼ãã¹ãã»ãã¬ã¼ã ã¯ã¼ã¯ã§ããããã¯Protractor Tutorialã®æ¥æ¬èªè¨³ã§ãã ãã¥ã¼ããªã¢ã« ããã¯ã·ã³ãã«ãªãã¥ã¼ããªã¢ã«ã§ããå 容ã¯ãProtractorãã»ããã¢ãããããã¹ããèµ°ããå§ããæ¹æ³ã§ããï¼è¨³æ³¨ï¼protractorã¯å度å¨ã®ãã¨ã§ãï¼ è¨³æ³¨ï¼æ¬ãã¥ã¼ããªã¢ã«ã®ãµã³ãã«ã»ãªãã¸ããªãä½ãã¾ãããåèã«ãªãã°å¹¸ãã§ãã æºå Protractorã¯Node.jsã®ããã°ã©ã ã§ããåããã«ã¯ãNode.jsãã¤ã³ã¹ãã¼ã«ãã¦ãããªããã°ãªãã¾ãããProtractorã¯Node.jsã«ã¤ãã¦ããnpmã使ã£ã¦ãã¦ã³ãã¼ããããã¨ãã§ãã¾ããnode --versionã¨æã£ã¦ãNode.jsã®ãã¼ã¸ã§ã³ããã§ãã¯ãã¦ä¸ãããv0.10.0以éã§ãªããã°ãªãã¾ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}