{"id":202,"date":"2015-09-24T12:00:00","date_gmt":"2015-09-24T03:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2015\/09\/24\/use-nightwatch"},"modified":"2022-10-26T10:16:55","modified_gmt":"2022-10-26T01:16:55","slug":"use-nightwatch","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2015\/09\/24\/use-nightwatch\/","title":{"rendered":"Nightwatch.js\u3092E2E\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u5b9f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u9069\u7528\u3059\u308b\u6642\u306etips\u307e\u3068\u3081"},"content":{"rendered":"
<\/p>\n
\u5c0f\u98fc\u3067\u3059\u3002 Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.<\/p>\n<\/blockquote>\n E2E\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u9078\u5b9a\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u8981\u6c42\u3092\u6e80\u305f\u3059\u3082\u306e\u3092\u8003\u616e\u3057\u307e\u3057\u305f\u3002<\/p>\n \u500b\u4eba\u7684\u306a\u8003\u3048\u3068\u3057\u3066\u3001\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3084\u30c6\u30b9\u30c8\u30e9\u30f3\u30ca\u30fc\u81ea\u4f53\u306eAPI\u304c\u8907\u96d1\u5316\u3057\u305f\u308a\u3001\u5f8c\u65b9\u4e92\u63db\u6027\u306e\u306a\u3044\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u305f\u305f\u3081\u306b\u30c6\u30b9\u30c8\u81ea\u4f53\u306e\u30b3\u30b9\u30c8\u304c\u4e0a\u304c\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u306f\u672c\u672b\u8ee2\u5012\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n \u305d\u3053\u3067\u9078\u5b9a\u306e\u57fa\u6e96\u3068\u3057\u3066\u3001\u306a\u308b\u3079\u304f\u5b89\u5b9a\u3057\u305fAPI\u3092\u6301\u3061\u3001\u4eca\u5f8c\u3082\u5b89\u5fc3\u3057\u3066\u4f7f\u3063\u3066\u3044\u3051\u305d\u3046\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b\u3053\u3068\u3092\u91cd\u8996\u3057\u307e\u3057\u305f\u3002<\/p>\n \u3055\u3066\u3001\u672c\u7a3f\u57f7\u7b46\u6642\u70b9\u3067E2E\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u547c\u3079\u308b\u4e3b\u306a\u3082\u306e\u306b\u306f\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n \u53c2\u8003: \u300eE2E test framework<\/a>\u300f\u3067\u306e\u691c\u7d22\u7d50\u679c<\/p>\n \u5148\u306b\u6319\u3052\u305f\u9078\u8003\u57fa\u6e96\u3092\u9451\u307f\u3066\u3001E2E\u30c6\u30b9\u30c8\u306e\u307f\u3092\u8cac\u52d9\u3068\u3057\u3066\u30b3\u30b9\u30c8\u3092\u6291\u3048\u305f\u5c0e\u5165\u304c\u51fa\u6765\u3001\u4eca\u5f8c\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u63a1\u7528\u3059\u308b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5982\u4f55\u306b\u95a2\u308f\u3089\u305a\u5909\u308f\u3089\u305a\u6d3b\u7528\u3057\u3066\u3044\u3051\u305d\u3046\u306a \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306eDeveloper Guide<\/a>\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u306a\u304a\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f Protactor's webdriver-manager as a standalone Node.js module.<\/p>\n<\/blockquote>\n \u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u672c\u6765 \u4e0a\u8ff0\u306e\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n \u5404\u30c6\u30b9\u30c8\u306f\u30e1\u30bd\u30c3\u30c9\u306e\u5f62\u3067\u8a18\u8ff0\u3057\u307e\u3059\u3002 \u30c6\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u30fb\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u6bce\u306e\u4e8b\u524d\u51e6\u7406\u30fb\u4e8b\u5f8c\u51e6\u7406\u3082\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u8a18\u8ff0\u3057\u307e\u3059<\/p>\n \u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306e\u975e\u540c\u671f\u306ahttp\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u542b\u3080\u6a5f\u80fd\u306e\u30c6\u30b9\u30c8\u306b\u304a\u3044\u3066\u3001\u5b9f\u969b\u306b\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3078\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6295\u3052\u3066\u5b9f\u884c\u3057\u3066\u3057\u307e\u3046\u3068 \u4e8b\u524d\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u5148\u306eURL\u304c\u8a18\u8ff0\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u304a\u304d\u3001 \u6b21\u306b\u30c6\u30b9\u30c8\u74b0\u5883\u7528\u306e\u30e2\u30c3\u30af\u30b5\u30fc\u30d0\u30fc\u3092\u7528\u610f\u3057\u307e\u3059\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u904b\u7528\u30d5\u30a7\u30fc\u30ba\u3067\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e\u5909\u66f4\u304c\u3042\u3063\u305f\u969b\u306b\u3001\u610f\u56f3\u3057\u306a\u3044\u7b87\u6240\u306b\u5909\u66f4\u304c\u8d77\u3053\u3063\u3066\u3044\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u30ea\u30b0\u30ec\u30c3\u30b7\u30e7\u30f3(\u56de\u5e30)\u30c6\u30b9\u30c8<\/a><\/p>\n
\n\u73fe\u5728\u958b\u767a\u6e96\u5099\u4e2d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eE2E\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066Nightwatch.js<\/a>\u3092\u63a1\u7528\u3057\u307e\u3057\u305f\u3002
\n\u305d\u3053\u3067\u672c\u7a3f\u3067\u306f\u3001\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bNightwatch.js<\/code>\u3092\u5c0e\u5165\u3057\u3066\u307f\u308b\u306b\u3042\u305f\u3063\u3066\u5fc5\u8981\u306b\u306a\u3063\u305f\u77e5\u8b58\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n
Nightwatch\u3068\u306f?<\/h2>\n
\n
Nightwach.js<\/code>\u306fNode.js<\/a>\u30d9\u30fc\u30b9\u306eE2E(End-to-End)\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002
\n\u30c6\u30b9\u30c8\u30d6\u30e9\u30a6\u30b6\u3092\u64cd\u4f5c\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3042\u308bSelenium WebDriver<\/code>\u306eAPI\u3092\u4ef2\u4ecb\u3057\u3066\u5404\u7a2e\u30d6\u30e9\u30a6\u30b6\u64cd\u4f5c\u3092\u884c\u3044\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u6319\u52d5\u304c\u671f\u5f85\u3057\u305f\u3082\u306e\u3068\u5408\u81f4\u3057\u3066\u3044\u308b\u304b\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u7528\u3044\u307e\u3059\u3002<\/p>\n
\u306a\u305cNightwatch\u306a\u306e\u304b?<\/h2>\n
\n
\n
Nightwatch.js<\/code>\u3092\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n
\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n
\n\u5fc5\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u306f<\/p>\n\n
nightwatch<\/code>\u672c\u4f53\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n
Selenium Server<\/code> \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n
Selenium Server<\/code>\u3092Selenium Download Page<\/a>\u3088\u308a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3088\u3046\u4fc3\u3055\u308c\u3066\u3044\u307e\u3059\u3002
\n\u4eca\u56de\u306fSelenium Server<\/code>\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092
npm<\/code>\u7d4c\u7531\u3067\u884c\u3048\u308b\u3001webdriver-manager<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n
\n
Protractor<\/code>\u304c
Selenium Server<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u7528\u3044\u3066\u3044\u305f\u3082\u306e\u3092\u3001
Protractor<\/code>\u4ee5\u5916\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3082\u6d3b\u7528\u51fa\u6765\u308b\u3088\u3046\u306bfork\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n
# `nightwatch`\u672c\u4f53\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nnpm install --save-dev nightwatch\n\n# `Selenium Server` \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nnpm install --save-dev webdriver-manager\n.\/node_modules\/.bin\/webdriver-manager update\n\n# \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u30d6\u30e9\u30a6\u30b6\u3092\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u6307\u5b9a\u51fa\u6765\u308b\n.\/node_modules\/.bin\/webdriver-manager update --chrome<\/code><\/pre>\n
\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h2>\n
Nightwatch.js<\/code>\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u7f6e\u3044\u3066\u3042\u308b
nightwatch.json<\/code>\u3092\u53c2\u7167\u3057\u3066\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002
\n\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3042\u308b\u8a73\u7d30\u306a\u89e3\u8aac<\/a>\u304c\u3042\u308b\u306e\u3067\u3001\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n{\n \/\/ \u30c6\u30b9\u30c8\u74b0\u5883\u5168\u4f53\u306e\u8a2d\u5b9a\n "src_folders" : [ "test" ],\n "output_folder" : "test\/reports\/",\n "custom_commands_path" : "",\n "custom_assertions_path" : "",\n "page_objects_path" : "",\n "globals_path" : "node_modules\/babel\/register", \/\/ \u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092ES2015\u3067\u66f8\u304d\u305f\u3044\u306e\u3067Babel.js\u3092\u8aad\u307f\u8fbc\u3080\u3088\n\n "selenium" : {\n "start_process" : true,\n "server_path" : "node_modules\/webdriver-manager\/selenium\/selenium-server-standalone-2.46.0.jar", \/\/ webdriver-manager\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308bSelenium Server\u3078\u306e\u30d1\u30b9\u3092\u8a18\u8ff0\n "log_path" : "test\/logs",\n "host" : "127.0.0.1",\n "port" : 4444,\n "cli_args" : {\n "webdriver.chrome.driver" : "node_modules\/webdriver-manager\/selenium\/chromedriver", \/\/ webdriver-manager\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308bchromedriver\u3078\u306e\u30d1\u30b9\u3092\u8a18\u8ff0\n "webdriver.ie.driver" : ""\n }\n },\n\n \/\/ \u30c6\u30b9\u30c8\u3059\u308b\u30d6\u30e9\u30a6\u30b6\u6bce\u306e\u8a2d\u5b9a\n "test_settings" : {\n \/\/ \u5168\u3066\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u5171\u901a\u306e\u8a2d\u5b9a\n "default" : {\n "launch_url" : "http:\/\/localhost",\n "selenium_port" : 4444,\n "selenium_host" : "localhost",\n "silent": true,\n \/\/ \u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u6642\u306e\u691c\u8a3c\u7528\u306b\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u64ae\u5f71\u3057\u3066\u304a\u304f\n "screenshots" : {\n "enabled" : true,\n "on_failure" : true,\n "on_error" : false,\n "path" : "test\/screenshots"\n },\n "desiredCapabilities": {\n "browserName": "firefox",\n "javascriptEnabled": true,\n "acceptSslCerts": true\n },\n \/\/ \u5404\u30c6\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u5171\u901a\u3057\u3066\u547c\u3073\u51fa\u3057\u305f\u3044\u5909\u6570\u3092\u8a18\u8ff0\n \/\/ `this.client.globals`\u304b\u3089\u547c\u3073\u51fa\u305b\u308b\n "globals": {\n "baseUrl": "http:\/\/localhost:3000",\n "waitTime": 10000\n }\n },\n\n \/\/ \u30d6\u30e9\u30a6\u30b6\u6bce\u306e\u8a2d\u5b9a\n "chrome" : {\n "desiredCapabilities": {\n "browserName": "chrome",\n "javascriptEnabled": true,\n "acceptSslCerts": true\n }\n }\n }\n}<\/code><\/pre>\n
\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9<\/h2>\n
\n\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u6bce\u306b\u6e21\u3055\u308c\u308b\u5f15\u6570browser<\/code>\u306b\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u306e\u5f62\u3067\u30c6\u30b9\u30c8\u30b7\u30ca\u30ea\u30aa\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n
export default {\n DemoTestGoogle(browser){\n browser\n .url('http:\/\/www.google.co.jp')\n .waitForElementVisible('body', waitTime)\n .setValue('input[type=text]', 'nightwatch')\n .waitForElementVisible(clickBtn, waitTime)\n .click(clickBtn)\n .pause(waitTime)\n .assert.containsText('#main', 'Night Watch')\n .end();\n }\n};<\/code><\/pre>\n
export default {\n before(browser) {\n },\n after(browser) {\n },\n beforeEach(browser) {\n },\n afterEach(browser) {\n },\n DemoTestGoogle(browser) {}\n};<\/code><\/pre>\n
\u975e\u540c\u671f\u306ahttp\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u542b\u3080\u30c6\u30b9\u30c8<\/h2>\n
\n\u30b5\u30fc\u30d0\u30fc\u306e\u72b6\u614b\u306b\u3088\u3063\u3066\u306f\u5fc5\u305a\u3057\u3082\u540c\u4e00\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u5e30\u3063\u3066\u304f\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002
\u307e\u305f\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5074\u3068\u4e26\u884c\u3057\u3066\u958b\u767a\u304c\u9032\u3093\u3067\u3044\u308b\u5834\u5408\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\nAngular.js<\/code>\u3067\u306f
$httpBackend<\/code>\u30b5\u30fc\u30d3\u30b9\u3092\u7528\u3044\u3066\u64ec\u4f3c\u7684\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002
\nNightwatch.js<\/code>\u3067\u306f\u3053\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u306e\u3067\u3001\u81ea\u524d\u306e\u30e2\u30c3\u30af\u30b5\u30fc\u30d0\u30fc\u3092\u7528\u610f\u3057\u3066\u4ee3\u66ff\u3057\u307e\u3059\u3002
\nnightwatch.json<\/code>\u306b\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3092\u7d4c\u7531\u3057\u305f\u63a5\u7d9a\u3092\u8a2d\u5b9a\u3059\u308b\u9805\u76ee\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u4f7f\u7528\u3057\u305f\u65b9\u304c\u30b9\u30de\u30fc\u30c8\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n
bundle<\/code>\u5316\u3059\u308b\u6642\u306b\u74b0\u5883\u5909\u6570\u3092\u53c2\u7167\u3057\u3066URL\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n
\/\/ \u30d6\u30e9\u30a6\u30b6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\nimort request from 'superagent';\nimort config from '.\/config.js';\nconst requestURL = config.requestURL;\n\nrequest.get(requestURL).end((err, ret)=> {\n console.log(ret.body);\n});<\/code><\/pre>\n
\/\/ config.js\nlet config = {};\n\nif(process.env.NODE_ENV === 'development'){\n config.requestURL = 'http:\/\/localhost:3000';\n}else{\n config.requestURL = 'http:\/\/api.myserver.io';\n}\n\nexport default config;<\/code><\/pre>\n
\n\u4eca\u56de\u306f\u7b46\u8005\u304c\u99b4\u67d3\u307f\u306e\u3042\u308bNode.js<\/code>\u88fd\u30b5\u30fc\u30d0\u30fc\u306b\u3057\u307e\u3057\u305f\u304c\u3001\u7acb\u3066\u3084\u3059\u3044\u3082\u306e\u306a\u3089\u4f55\u3067\u3082\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
import restify from 'restify';\n\nconst AppServerConfig = {\n name: 'mock-api-server',\n version: '1.0.0'\n};\n\nconst server = restify.createServer(AppServerConfig);\n\nserver.use(restify.acceptParser(server.acceptable));\nserver.use(restify.queryParser());\nserver.use(restify.bodyParser());\nserver.use(\n function crossOrigin(req, res, next) {\n res.header('Access-Control-Allow-Origin', '*');\n res.header('Access-Control-Allow-Headers', 'X-Requested-With');\n return next();\n }\n);\n\nserver.get('\/v1\/mock', (req, res, next)=> {\n res.status(200);\n res.send('GET: mock server worked.');\n return next();\n});\n\nserver.listen(process.env.PORT || 3000, function() {\n console.log('%s listening at %s', server.name, server.url);\n});<\/code><\/pre>\n
\u30d3\u30b8\u30e5\u30a2\u30eb\u30ea\u30b0\u30ec\u30c3\u30b7\u30e7\u30f3\u30c6\u30b9\u30c8<\/h2>\n
\n\u4eba\u9593\u306e\u76ee\u8996\u306b\u983c\u3063\u305f\u5909\u66f4\u78ba\u8a8d\u306f\u4e0d\u6b63\u78ba\u4e14\u3064\u9ad8\u30b3\u30b9\u30c8\u306b\u306a\u308a\u304c\u3061\u306a\u306e\u3067\u3001\u81ea\u52d5\u5316\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n