{"id":12594,"date":"2017-10-25T17:38:51","date_gmt":"2017-10-25T08:38:51","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=12594"},"modified":"2021-11-02T17:24:13","modified_gmt":"2021-11-02T08:24:13","slug":"apache-jmeter%e3%81%a8beanshell%e3%81%a7%e6%9f%94%e8%bb%9f%e3%81%aa%e8%b2%a0%e8%8d%b7%e3%83%86%e3%82%b9%e3%83%88%e3%82%92%e3%81%97%e3%82%88%e3%81%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/apache-jmeter%e3%81%a8beanshell%e3%81%a7%e6%9f%94%e8%bb%9f%e3%81%aa%e8%b2%a0%e8%8d%b7%e3%83%86%e3%82%b9%e3%83%88%e3%82%92%e3%81%97%e3%82%88%e3%81%86%ef%bc%81\/","title":{"rendered":"Apache Jmeter\u3068BeanShell\u3067\u67d4\u8edf\u306a\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u3057\u3088\u3046\uff01"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u5e45\u5e83\u3044\u8996\u91ce\u3092\u6301\u3064\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u7530\u4e2d\u3068\u7533\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u65e5\u306fApache bench\u306eGUI\u7248\u3067\u3042\u308bApache JMeter\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\nREST\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u3060\u3051\u3067\u306f\u306a\u304f\u3001API\u306e\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb\u3068\u3057\u3066\u3082\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>Apache JMeter\u3068BeanShell\u3092\u4f7f\u3063\u3066\u3001\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u76ee\u7684<\/h2>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5909\u6570\u3092\u57cb\u3081\u8fbc\u3093\u3067\u305d\u308c\u3092\u52d5\u7684\u306b\u5909\u5316\u3055\u305b\u306a\u304c\u3089\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u884c\u3044\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3082\u3057\u305f\u3044<\/p>\n<h2>\u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#overview\">\u624b\u9806\u306e\u6982\u8981<\/a><\/li>\n<li><a href=\"#env\">\u5b9f\u884c\u74b0\u5883<\/a><\/li>\n<li><a href=\"#tejun\">\u624b\u9806<\/a><\/li>\n<li><a href=\"#matome\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<h2 id=\"overview\">\u624b\u9806\u306e\u6982\u8981<\/h2>\n<ol>\n<li>Apache JMeter\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210\u3068\u7de8\u96c6\n<ol>\n<li>\u8d77\u52d5\u753b\u9762<\/li>\n<li>\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210<\/li>\n<li>\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u7de8\u96c6<\/li>\n<\/ol>\n<\/li>\n<li>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f5c\u6210\u3068\u7de8\u96c6\n<ol>\n<li>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f5c\u6210<\/li>\n<\/ol>\n<\/li>\n<li>\u30ea\u30b9\u30ca\u30fc\u306e\u4f5c\u6210\u3068\u7de8\u96c6\n<ol>\n<li>\u30ea\u30b9\u30ca\u30fc\u306e\u4f5c\u6210<\/li>\n<\/ol>\n<\/li>\n<li>Java\u3067\u30d7\u30ed\u30c8\u30bf\u30a4\u30d4\u30f3\u30b0\n<ol>\n<li>IP\u30a2\u30c9\u30ec\u30b9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b<\/li>\n<\/ol>\n<\/li>\n<li>BeanShell\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\n<ol>\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5909\u6570\u3092\u57cb\u3081\u8fbc\u3080<\/li>\n<li>BeanShell PreProcessor\u306e\u8ffd\u52a0<\/li>\n<li>\u30ed\u30b8\u30c3\u30af\u3092\u5909\u66f4<\/li>\n<li>\u30ab\u30b9\u30bf\u30de\u30a4\u30ba(\u30b9\u30ad\u30c3\u30d7\u53ef\u80fdj)<\/li>\n<\/ol>\n<\/li>\n<li>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046<\/li>\n<\/ol>\n<h2 id=\"env\">\u5b9f\u884c\u74b0\u5883<\/h2>\n<p>Windows 10 Pro 64bit, Java 1.8.0_144, JMeter 3.2<\/p>\n<h2 id=\"tejun\">\u624b\u9806<\/h2>\n<h3>Apache JMeter\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>http:\/\/jmeter.apache.org\/download_jmeter.cgi<br \/>\n\u4e0a\u8a18\u306e\u30b5\u30a4\u30c8\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p>\u7b46\u8005\u306f\u30d0\u30fc\u30b8\u30e7\u30f33.2\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f(Java 8\u304c\u5fc5\u8981\u3067\u3059)\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/jmeter_download.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1420\" height=\"784\" class=\"alignnone size-medium wp-image-12783\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/jmeter_download.png\" alt=\"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/jmeter_download.png 1420w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/jmeter_download-300x166.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/jmeter_download-768x424.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/jmeter_download-1024x565.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/jmeter_download-728x402.png 728w\" sizes=\"auto, (max-width: 1420px) 100vw, 1420px\" \/><\/a>\n<h3>\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210\u3068\u7de8\u96c6<\/h3>\n<h4>\u8d77\u52d5\u753b\u9762<\/h4>\n<p>\u8d77\u52d5\u753b\u9762\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/boot_jmeter.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/boot_jmeter.png\" alt=\"\u8d77\u52d5\u753b\u9762\" \/><\/a><\/p>\n<h4>\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210<\/h4>\n<p>\u307e\u305a\u521d\u3081\u306b\u3001\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\n\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306f\u3001\u305d\u306e\u30b9\u30ec\u30c3\u30c9\u306eAPI\u30c6\u30b9\u30c8\u3092\u3069\u306e\u3088\u3046\u306b\u884c\u3046\u304b\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3010\u30c6\u30b9\u30c8\u8a08\u753b\u3011\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u3010\u8ffd\u52a0\u3011\u2192\u3010Thread(Users)\u3011\u2192\u3010\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_thread_group.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_thread_group.png\" alt=\"\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210\" \/><\/a><\/p>\n<h4>\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u7de8\u96c6<\/h4>\n<p>\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u610f\u5473\u306f\u4ee5\u4e0b\u3067\u3059\u3002<br \/>\n\u3010\u30b9\u30ec\u30c3\u30c9\u6570\u3011= JMeter\u304c\u751f\u6210\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u6570\u30011\u30b9\u30ec\u30c3\u30c9\u304c1\u30e6\u30fc\u30b6\u306b\u76f8\u5f53\u3059\u308b\u3002<br \/>\n\u3010Ramp-up\u671f\u9593\u3011= \u4f55\u79d2\u304b\u3051\u3066\u305d\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u51e6\u7406\u3059\u308b\u304b\u30010\u3092\u6307\u5b9a\u3059\u308b\u3068\u3059\u3079\u3066\u540c\u6642\u306b\u5b9f\u884c\u3059\u308b\u3002<br \/>\n\u3010\u30eb\u30fc\u30d7\u56de\u6570\u3011= 1\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u304c1\u3064\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u4f55\u56de\u5b9f\u884c\u3059\u308b\u304b\u3002<\/p>\n<p>\u4ee5\u4e0a\u3092\u8e0f\u307e\u3048\u308b\u3068\u30c6\u30b9\u30c8\u30b7\u30ca\u30ea\u30aa\u3067\u91cd\u8981\u306a\u9805\u76ee\u306f\u4ee5\u4e0b\u306e\u8a08\u7b97\u5f0f\u3067\u7b97\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/important_param.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/important_param.png\" alt=\"\u91cd\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\" \/><\/a>\n<p>\u3055\u3089\u306bJMeter\u306f\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306b\u30b9\u30ec\u30fc\u30d6\u30de\u30b7\u30f3\u3092\u4f7f\u7528\u3057\u4e26\u5217\u306b\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u5b9f\u969b\u306b\u306f\u3010\u30c6\u30b9\u30c8\u306e\u7dcf\u56de\u6570\u3011\u306f\u3001<br \/>\n\u3010\u30b9\u30ec\u30c3\u30c9\u6570\u3011\u00d7\u3010\u30eb\u30fc\u30d7\u6570\u3011\u00d7 (\u3010\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u306e\u6570\u3011) \u00d7 (\u3010\u30b9\u30ec\u30fc\u30d6\u30de\u30b7\u30f3\u306e\u6570\u3011)\u306e\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u304c\u57fa\u672c\u306f\u540c\u3058\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/edit_thread.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/edit_thread.png\" alt=\"\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u306e\u7de8\u96c6\" \/><\/a>\n<p>JMeter\u306f\u30eb\u30fc\u30d7\u56de\u6570\u304c1\u306e\u5834\u5408\u3001\u51e6\u7406\u958b\u59cb\u306e\u6642\u9593\u3092\u30b9\u30ec\u30c3\u30c9\u3054\u3068\u306b\u3001(Ramp-UP\u671f\u9593[\u79d2] \/ \u30b9\u30ec\u30c3\u30c9\u6570)\u3060\u3051\u305a\u3089\u3057\u3066\u5b9f\u884c\u3057\u3066\u304f\u308c\u308b\u305f\u3081\u3001<br \/>\n\u7d50\u679c\u3068\u3057\u3066\u4e0a\u306e\u753b\u50cf\u306e\u5834\u5408\u306f(10[\u79d2] \/ 10) = 1\u3068\u306a\u308a\u30011\u79d2\u9593\u306b1\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8a0810\u56de\u306e\u30a2\u30af\u30bb\u30b9\u304c\u884c\u308f\u308c\u300110\u79d2\u3067\u30c6\u30b9\u30c8\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u30eb\u30fc\u30d7\u56de\u6570\u3092\u6307\u5b9a\u305b\u305a\u7121\u9650\u30eb\u30fc\u30d7\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\u3068\u7121\u9650\u30eb\u30fc\u30d7\u5b9f\u884c\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n(\u8010\u4e45\u30c6\u30b9\u30c8\u3001\u3042\u308b\u4e00\u5b9a\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u901f\u5ea6\u3092\u4fdd\u8a3c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u306e\u30c6\u30b9\u30c8\u5411\u304d)<\/p>\n<h3>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f5c\u6210\u3068\u7de8\u96c6<\/h3>\n<h4>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f5c\u6210<\/h4>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306fAPI\u306b\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3010\u30b9\u30ec\u30c3\u30c9\u30b0\u30eb\u30fc\u30d7\u3011\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u3010\u8ffd\u52a0\u3011\u2192\u3010\u30b5\u30f3\u30d7\u30e9\u30fc\u3011\u2192\u3010HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_http_request.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_http_request.png\" alt=\"HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f5c\u6210\" \/><\/a><\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/http_request.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/http_request.png\" alt=\"HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7de8\u96c6\" \/><\/a><\/p>\n<p>\u3010\u30d7\u30ed\u30c8\u30b3\u30eb\u3011\u306fWeb\u30b5\u30fc\u30d0\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002HTTP\/HTTPS\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3010\u30e1\u30bd\u30c3\u30c9\u3011\u306b\u306fHTTP\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3001\u4eca\u56de\u306fGET\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3010\u30b5\u30fc\u30d0\u540d\u307e\u305f\u306fIP\u3011\u306b\u306f\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308bAPI\u306eURL(\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8)\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3010\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u9001\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3011\u306b\u306f\u4efb\u610f\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u6307\u5b9a\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u306f\u4f55\u3082\u3042\u308a\u307e\u305b\u3093(\u3053\u306e\u5f8c\u51fa\u3066\u304d\u307e\u3059\u306e\u3067\u304a\u697d\u3057\u307f\u306b)\u3002<\/p>\n<h3>\u30ea\u30b9\u30ca\u30fc\u306e\u4f5c\u6210\u3068\u7de8\u96c6<\/h3>\n<h4>\u30ea\u30b9\u30ca\u30fc\u306e\u4f5c\u6210<\/h4>\n<p>\u3053\u308c\u3067\u3001API\u306bGET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u6e96\u5099\u306f\u6574\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u307e\u307e\u3067\u306fAPI\u306b\u3088\u3063\u3066\u8fd4\u5374\u3055\u308c\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u3084\u30c7\u30fc\u30bf\u3092\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\nJMeter\u3067\u306f\u3001API\u306b\u9001\u3063\u305f\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308b\u53d7\u3051\u76bf\u306e\u4ed5\u7d44\u307f\u304c\u3042\u308a\u3001\u7d50\u679c\u3092\u30b0\u30e9\u30d5\u3068\u3057\u3066\u53ef\u8996\u5316\u3057\u305f\u308a\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\u305f\u308a\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u3001\u30ea\u30b9\u30ca\u30fc\u3068\u3044\u3044\u307e\u3059\u3002<br \/>\n\u305d\u308c\u3067\u306f\u3001\u30ea\u30b9\u30ca\u30fc\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3010HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3011\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u3010\u8ffd\u52a0\u3011\u2192\u3010\u30ea\u30b9\u30ca\u30fc\u3011\u2192\u3010\u7d50\u679c\u3092\u30c4\u30ea\u30fc\u3067\u8868\u793a\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener.png\" alt=\"\u30ea\u30b9\u30ca\u30fc\u306e\u4f5c\u6210\" \/><\/a><\/p>\n<p>\u8ca0\u8377\u30c6\u30b9\u30c8\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u7d71\u8a08\u91cf\u3092\u7b97\u51fa\u3059\u308b\u305f\u3081\u306e\u30ea\u30b9\u30ca\u30fc\u3082\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3010HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3011\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u3010\u8ffd\u52a0\u3011\u2192\u3010\u30ea\u30b9\u30ca\u30fc\u3011\u2192\u3010\u7d71\u8a08\u30ec\u30dd\u30fc\u30c8\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1522\" height=\"953\" class=\"alignnone size-medium wp-image-12856\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener2.png\" alt=\"\u30ea\u30b9\u30ca\u30fc\u306e\u8ffd\u52a0\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener2.png 1522w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener2-300x188.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener2-768x481.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener2-1024x641.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_listener2-728x456.png 728w\" sizes=\"auto, (max-width: 1522px) 100vw, 1522px\" \/><\/a><\/p>\n<p>\u3055\u3066\u3001\u3053\u3053\u307e\u3067\u8a2d\u5b9a\u51fa\u6765\u305f\u3089\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u90e8\u306b\u3042\u308b\u7dd1\u306e<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12862\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/execute_test_local.png\" alt=\"\" width=\"32\" height=\"32\" \/>\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><span style=\"color: #ff0000\">\u203bJMeter\u3092\u7528\u3044\u3066API\u306e\u30c6\u30b9\u30c8\u3084\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u884c\u3046\u969b\u306f\u5fc5\u305a\u81ea\u5206\u3084\u6240\u5c5e\u3059\u308b\u7d44\u7e54\u304c\u4f5c\u6210\u3057\u305fWeb\u30b5\u30fc\u30d0\u3084API\u306b\u5bfe\u3057\u3066\u4e8b\u524d\u306b\u8a31\u53ef\u3092\u53d6\u3063\u3066\u304b\u3089\u884c\u3046\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\uff01<br \/>\n\u5916\u90e8\u306eWeb\u30b5\u30fc\u30d0\u3084API\u306b\u5bfe\u3057\u8a31\u53ef\u7121\u304fJMeter\u3067\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u306fDoS\u653b\u6483\u3068\u307f\u306a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>\u5de6\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3010\u7d50\u679c\u3092\u30c4\u30ea\u30fc\u3067\u8868\u793a\u3011\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nAPI\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u4f7f\u308f\u308c\u305f\u30d8\u30c3\u30c0\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u306a\u3069\u306e\u60c5\u5831\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/request_result.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/request_result.png\" alt=\"\u7d50\u679c\u3092\u30c4\u30ea\u30fc\u3067\u8868\u793a\" \/><\/a><\/p>\n<p>\u5de6\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3010\u7d71\u8a08\u30ec\u30dd\u30fc\u30c8\u3011\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/result_statistic.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/result_statistic.png\" alt=\"\u7d71\u8a08\u30ec\u30dd\u30fc\u30c8\" \/><\/a><\/p>\n<p>\u3053\u306e\u7d71\u8a08\u30ec\u30dd\u30fc\u30c8\u306e\u898b\u65b9\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div style=\"margin: 0px;padding: 0px\" align=\"center\">\n<table style=\"border-collapse: collapse;border: 1px solid #808080;background-color: #cccccc;color: #000000;text-align: left\" width=\"500px\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #808080;background-color: #808080;color: #ffffff;text-align: center\">\u30d8\u30c3\u30c0<\/th>\n<th style=\"border: 1px solid #808080;background-color: #808080;color: #ffffff;text-align: center\">\u610f\u5473<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"150\">Label<\/td>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"430\">\u30b5\u30f3\u30d7\u30e9\u30fc\u306e\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"150\">#Samples<\/td>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"430\">\u30b5\u30f3\u30d7\u30eb\u6570<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"150\">Average<\/td>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"430\">\u5e73\u5747\u5fdc\u7b54\u6642\u9593(ms)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"150\">Median<\/td>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"430\">\u5fdc\u7b54\u6642\u9593\u306e\u4e2d\u592e\u5024(ms)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"150\">90% Line<\/td>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"430\">90%\u4fe1\u983c\u533a\u9593(\u5c11\u306a\u304f\u3068\u308290%\u306f\u3053\u306e\u5024\u306b\u53ce\u307e\u308b\u3002\u5358\u4f4dms)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"150\">95% Line<\/td>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"430\">95%\u4fe1\u983c\u533a\u9593(\u5c11\u306a\u304f\u3068\u308295%\u306f\u3053\u306e\u5024\u306b\u53ce\u307e\u308b\u3002\u5358\u4f4dms)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"150\">99% Line<\/td>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"430\">99%\u4fe1\u983c\u533a\u9593(\u5c11\u306a\u304f\u3068\u308299%\u306f\u3053\u306e\u5024\u306b\u53ce\u307e\u308b\u3002\u5358\u4f4dms)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"150\">Min<\/td>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"430\">\u6700\u5c0f\u5fdc\u7b54\u6642\u9593(ms)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"150\">Max<\/td>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"430\">\u6700\u5927\u5fdc\u7b54\u6642\u9593(ms)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"150\">Error%<\/td>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"430\">\u30a8\u30e9\u30fc\u306e\u5272\u5408(%)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"150\">Throughput<\/td>\n<td style=\"border: 1px solid #808080;background-color: #ffffff;text-align: center\" width=\"430\">\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8(1\u79d2\u9593\u306b\u4f55\u4ef6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3057\u5fdc\u7b54\u3067\u304d\u305f\u304b)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"150\">KB\/sec<\/td>\n<td style=\"border: 1px solid #808080;text-align: center\" width=\"430\">1\u79d2\u5f53\u305f\u308a\u306e\u5e73\u5747\u8ee2\u9001\u30c7\u30fc\u30bf\u91cf(KB)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001JMeter\u3092REST\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304a\u3088\u3073\u8ca0\u8377\u30c6\u30b9\u30c8\u306e\u6307\u6a19\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\uff01<br \/>\n\u3053\u3053\u304b\u3089\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u3092\u53d7\u3051\u53d6\u308b\u3068\u7d4c\u5ea6\u304a\u3088\u3073\u7def\u5ea6\u60c5\u5831\u3092\u8fd4\u3059API\u306b\u5bfe\u3057\u3001JMeter\u3092\u4f7f\u7528\u3057\u3066\u6709\u52b9\u306aIP\u30a2\u30c9\u30ec\u30b9\u3092\u751f\u6210\u3057\u3001<br \/>\n\u8fd4\u3063\u3066\u304d\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u6b63\u3057\u3044\u304b\u691c\u8a3c\u3059\u308bAPI\u30c6\u30b9\u30c8\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u306eJMeter\u30b7\u30ca\u30ea\u30aa\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h3>Java\u3067\u30d7\u30ed\u30c8\u30bf\u30a4\u30d4\u30f3\u30b0(\u30b9\u30ad\u30c3\u30d7\u53ef\u80fd)<\/h3>\n<h4>IP\u30a2\u30c9\u30ec\u30b9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b<\/h4>\n<p>\u4ee5\u524d\u306e\u79c1\u306e\u8a18\u4e8b\u306e<a href=\"http:\/\/www.skyarch.net\/blog\/?p=7423\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c9\u30ec\u30b9\u306e\u79d8\u5bc6<\/a>\u3092\u53c2\u8003\u306b\u3001\u6709\u52b9\u306aIP\u30a2\u30c9\u30ec\u30b9\u3092\u751f\u6210\u3059\u308b\u30b3\u30fc\u30c9\u3092Java\u3067\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\nIP\u30a2\u30c9\u30ec\u30b9\u3092\u6574\u6570((32bit unsigned int)0 \uff5e 4,294,967,295)\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u6b63\u898f\u8868\u73fe\u30c1\u30a7\u30c3\u30af\u3092\u3057\u306a\u304f\u3066\u6e08\u3080\u3068\u3044\u3046\u5185\u5bb9\u3067\u3057\u305f\u3002<br \/>\nJMeter\u306fBeanShell\u3068\u3044\u3046Java\u51e6\u7406\u7cfb\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u3061\u3089\u306e\u30b3\u30fc\u30c9\u3092\u7de8\u96c6\u3057\u3066\u3001BeanShell\u306e\u30b3\u30fc\u30c9\u306b\u3057\u3066\u3044\u304f\u3053\u3068\u3092\u76ee\u6307\u3057\u307e\u3059\u3002<br \/>\n\u203b\u30b3\u30fc\u30c9\u304c\u62d9\u3044\u306e\u306f\u611b\u5b0c\u3068\u3044\u3046\u3053\u3068\u3067\u30fb\u30fb\u30fb<\/p>\n<pre>import java.io.IOException;\n\nclass DetailOfIpAddress {\n\n    public static String uint2ipaddr(String uintAsString) {\n        String ipAddressAsString = \"\";\n        try{\n            int octet_binary_0 = (Integer.parseUnsignedInt(uintAsString) &gt;&gt; 24) &amp; 0xff;\n            int octet_binary_1 = (Integer.parseUnsignedInt(uintAsString) &gt;&gt; 16) &amp; 0xff;\n            int octet_binary_2 = (Integer.parseUnsignedInt(uintAsString) &gt;&gt; 8) &amp; 0xff;\n            int octet_binary_3 = Integer.parseUnsignedInt(uintAsString) &amp; 0xff;\n            StringBuilder sb  = new StringBuilder();\n            sb.append(octet_binary_0);\n            sb.append(\".\");\n            sb.append(octet_binary_1);\n            sb.append(\".\");\n            sb.append(octet_binary_2);\n            sb.append(\".\");\n            sb.append(octet_binary_3);\n            ipAddressAsString = sb.toString();\n        } catch(NumberFormatException e) {\n            System.out.println(\"\u6709\u52b9\u306a\u7b26\u53f7\u306a\u3057\u6574\u6570\u3067\u306f\u3042\u308a\u307e\u305b\u3093\uff01\");\n            System.out.println(e);\n        }\n        return ipAddressAsString;\n    }\n\n    public static void main(String args[]) throws IOException {\n        String ipAddressAsString;\n\n        if(args.length != 1) {\n            System.out.println(\"\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u306f1\u3064\u3067\u3059\uff01\");\n            return;\n        }\n\n        ipAddressAsString = uint2ipaddr(args[0]);\n        System.out.printf(ipAddressAsString);\n\n    }\n}<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306f\u4ee5\u4e0b\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/screen_shot_java_class.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/screen_shot_java_class.png\" alt=\"Java\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\" \/><\/a><\/p>\n<h3>BeanShell\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/h3>\n<h4>\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5909\u6570\u3092\u57cb\u3081\u8fbc\u3080<\/h4>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>\n\u5de6\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3010HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n\u753b\u9762\u4e0b\u90e8\u306e\u3010\u8ffd\u52a0\u3011\u30dc\u30bf\u30f3\u304b\u3089\u3010\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u9001\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3011\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u540d:ip\u3001\u5024:${RANDOM_IPADDR}\u3092\u8ffd\u52a0\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/http_request.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/http_request.png\" alt=\"HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7de8\u96c6\" \/><\/a><\/p>\n<h4>BeanShell PreProcessor\u306e\u8ffd\u52a0<\/h4>\n<p>BeanShell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u3001BeanShell PreProcessor\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3010HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3011\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u3010\u8ffd\u52a0\u3011\u2192\u3010\u524d\u51e6\u7406\u3011\u2192\u3010BeanShell PreProcessor\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_beanshell.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/create_beanshell.png\" alt=\"Bean Shell PreProcessor\" \/><\/a><\/p>\n<h4>\u30ed\u30b8\u30c3\u30af\u3092\u5909\u66f4<\/h4>\n<p>Java\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3067\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570\u3068\u3057\u306632bit\u7b26\u53f7\u306a\u3057\u6574\u6570\u3092\u53d7\u3051\u53d6\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\nBeanShell\u3067\u3082\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570\u3092\u53d7\u3051\u53d6\u308c\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u30b9\u30ec\u30c3\u30c9\u6bce\u306b\u4e71\u6570\u3092\u751f\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\nBeanShell\u306b\u3064\u3044\u3066\u306f<a href=\"http:\/\/www.beanshell.org\/intro.html\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\nBeanShell\u3067\u306fJDK1.5.0\u4e92\u63db\u306eJava\u306e\u6587\u6cd5\u3068API\u304c\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\u3002<del datetime=\"2017-10-24T08:18:28+00:00\">(\u3061\u3087\u3063\u3068\u53e4\u3044\u306a\u3042\u2026)<\/del><\/p>\n<p>Script:\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>random = String.valueOf((1L &gt;&gt; 31) + (int)(Math.random() * Integer.MAX_VALUE) + (int)(Math.random() * Integer.MAX_VALUE)); \/\/ ((32bit unsigned int)0 \uff5e 4,294,967,295)\u306e\u4e71\u6570\u3092\u751f\u6210\n\n\/* IP\u30a2\u30c9\u30ec\u30b9\u306e\u5404\u30aa\u30af\u30c6\u30c3\u30c8\u3092\u751f\u6210 *\/\nint octet_binary_0 = (Integer.parseUnsignedInt(random) &gt;&gt; 24) &amp; 0xff; \/\/ IP\u30a2\u30c9\u30ec\u30b9\u306e\u7b2c\u4e00\u30aa\u30af\u30c6\u30c3\u30c8\nint octet_binary_1 = (Integer.parseUnsignedInt(random) &gt;&gt; 16) &amp; 0xff; \/\/ IP\u30a2\u30c9\u30ec\u30b9\u306e\u7b2c\u4e8c\u30aa\u30af\u30c6\u30c3\u30c8\nint octet_binary_2 = (Integer.parseUnsignedInt(random) &gt;&gt; 8) &amp; 0xff; \/\/ IP\u30a2\u30c9\u30ec\u30b9\u306e\u7b2c\u4e09\u30aa\u30af\u30c6\u30c3\u30c8\nint octet_binary_3 = Integer.parseUnsignedInt(random) &amp; 0xff; \/\/ IP\u30a2\u30c9\u30ec\u30b9\u306e\u7b2c\u56db\u30aa\u30af\u30c6\u30c3\u30c8\n\n\/* IP\u30a2\u30c9\u30ec\u30b9\u306e\u5404\u30aa\u30af\u30c6\u30c3\u30c8\u304b\u3089IP\u30a2\u30c9\u30ec\u30b9\u3092\u751f\u6210 *\/\nStringBuilder sb  = new StringBuilder();\nsb.append(octet_binary_0);\nsb.append(\".\");\nsb.append(octet_binary_1);\nsb.append(\".\");\nsb.append(octet_binary_2);\nsb.append(\".\");\nsb.append(octet_binary_3);\nipAddressAsString = sb.toString();\n\nvars.put(\"RANDOM_IPADDR\", String.valueOf(ipAddressAsString)); \/\/ RANDOM_IPADDR\u306b\u751f\u6210\u3055\u308c\u305fIP\u30a2\u30c9\u30ec\u30b9\u3092\u4ee3\u5165\n<\/pre>\n<p><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/edit_beanshell.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/edit_beanshell.png\" alt=\"Java\u306e\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u308b\" \/><\/a><br \/>\n<span style=\"color: #0000ff\">vars.put(\"\u5909\u6570\u540d\", \"\u5909\u6570\u306e\u5024\");\u3067\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u306e${\u5909\u6570\u540d}\u306b\u5024\u3092\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/span><br \/>\nJMeter\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u306ectx, vars, props, prev, sampler, log\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u308aJMeter\u306eAPI\u3092\u547c\u3076\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u8a73\u3057\u304f\u306f<a href=\"https:\/\/jmeter.apache.org\/api\/org\/apache\/jmeter\/threads\/JMeterContext.html\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u3053\u307e\u3067\u66f8\u3051\u305f\u3089<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12862\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/execute_test_local.png\" alt=\"\" width=\"32\" height=\"32\" \/>\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/result_preprocessor.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/result_preprocessor.png\" alt=\"BeanShell PreProcessor\u306e\u7d50\u679c\" \/><\/a>\n<p>URL\u3092\u898b\u308b\u3068\u3061\u3083\u3093\u3068\u6709\u52b9\u306aIP\u30a2\u30c9\u30ec\u30b9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3044\u307e\u3059\u306d\uff01<\/p>\n<h4>\u30ab\u30b9\u30bf\u30de\u30a4\u30ba(\u30b9\u30ad\u30c3\u30d7\u53ef\u80fd)<\/h4>\n<p>\u3055\u3066BeanShell\u306fJava\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u306e\u3067Java\u3067\u3067\u304d\u308b\u3053\u3068\u306f\u57fa\u672c\u7684\u306b\u4f55\u3067\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001JMeter\u306eAPI\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30b9\u30ec\u30c3\u30c9\u306e\u60c5\u5831\u3092\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3068\u3057\u3066\u8868\u793a\u3057\u305f\u308a\u52d5\u4f5c\u30ed\u30b0\u3092\u51fa\u529b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>JMeter\u3092JMeter\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u306eApacheJMeter.jar\u3067\u306f\u306a\u304f\u3001jmeter.bat\u3092\u8d77\u52d5\u3059\u308b\u304b\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>jmeter -n -t [jmx\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9] -l [\u7d50\u679c\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9] -e -o [\u30ec\u30dd\u30fc\u30c8\u306e\u51fa\u529b\u5148\u30d5\u30a9\u30eb\u30c0]<\/pre>\n<p>JMeter\u3092CLI\u30e2\u30fc\u30c9\u3068\u3057\u3066\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\njmeter.bat\u306e\u5834\u5408\u3001GUI\u3068\u30b3\u30f3\u30bd\u30fc\u30eb\u51fa\u529b\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u4e21\u65b9\u8d77\u52d5\u3057\u307e\u3059\u3002\u3053\u306e\u5148\u306fjmeter.bat\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3067\u304d\u308b\u304b\u8a66\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>System.out.println(\"\u30b5\u30f3\u30d7\u30e9\u30fc\u540d: \" + sampler.getName()); \/\/ \u30b5\u30f3\u30d7\u30e9\u30fc\u540d\u3092\u53d6\u5f97\nSystem.out.println(\"\u30b9\u30ec\u30c3\u30c9\u540d: \" + ctx.getThread().getThreadName()); \/\/ \u30b9\u30ec\u30c3\u30c9\u540d\u3092\u53d6\u5f97\n\/* \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6570\u3060\u3051\u30eb\u30fc\u30d7 *\/\nfor (int i=0;i&lt;sampler.getArguments().getArgumentCount();i++)\n{\n    System.out.println(\"\u30d1\u30e9\u30e1\u30fc\u30bf: \" + sampler.getArguments().getArgument(i)); \/\/ i\u756a\u76ee\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8868\u793a\n}\nSystem.out.println(\"\u30a2\u30af\u30bb\u30b9\u5148URL: \" + sampler.getUrl()); \/\/ \u30a2\u30af\u30bb\u30b9\u5148URL\u3092\u8868\u793a\n\/\/ \u4f55\u304b\u3084\u308a\u305f\u3044\u3053\u3068\nSystem.out.println(\"\"); \/\/ \u6539\u884c\u3092\u51fa\u529b\n<\/pre>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/result_cmd.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/result_cmd.png\" alt=\"\u5b9f\u884c\u7d50\u679c\" \/><\/a>\n<p>\u52d5\u4f5c\u72b6\u6cc1\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\uff01(\u6982\u306d1\u79d2\u3054\u3068\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u3082\u898b\u3066\u53d6\u308c\u307e\u3059\u3002)<br \/>\n\u306a\u304a\u3001log.info(\"\u6587\u5b57\u5217\")\u306a\u3069\u3068\u3059\u308b\u3053\u3068\u3067\u3001JMeter\u306e\u52d5\u4f5c\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u6587\u5b57\u5217\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046<\/h3>\n<p>JMeter\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u306e\"200 OK\"\u304c\u8fd4\u3055\u308c\u308b\u3068\u30ea\u30af\u30a8\u30b9\u30c8\u6210\u529f\u3068\u5224\u5b9a\u3057\u307e\u3059\u304c\u3001API\u30c6\u30b9\u30c8\u3067\u306f\u3055\u3089\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u5bfe\u3057\u3066\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u304b\u3051\u305f\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u6b21\u306f\u30ec\u30b9\u30dd\u30f3\u30b9\u3092BeanShell\u3067\u30d0\u30ea\u30c7\u30fc\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<br \/>\n\u3010HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3011\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u3010\u8ffd\u52a0\u3011\u2192\u3010\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u3011\u2192\u3010BeanShell\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/assert_response.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/assert_response.png\" alt=\"BeanShell\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\" \/><\/a><br \/>\n\u3055\u3089\u306b\u3010HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3011\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u3010\u8ffd\u52a0\u3011\u2192\u3010\u30ea\u30b9\u30ca\u30fc\u3011\u2192\u3010\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u7d50\u679c\u3011\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/add_assertion.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/add_assertion.png\" alt=\"\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u7d50\u679c\u306e\u8ffd\u52a0\" \/><\/a><\/p>\n<p>\u4eca\u56de\u4f5c\u6210\u3057\u305fAPI\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066IP\u30a2\u30c9\u30ec\u30b9\u3092\u53d7\u3051\u53d6\u308a\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3068\u60f3\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>{\n    \"items\": [\n        {\n            \"found\": true, \n            \"info\": {\n                \"city\": \"Mountain View\", \n                \"continent\": \"North America\", \n                \"country\": \"United States\", \n                \"location\": [\n                    37.419200000000004, \n                    -122.0574\n                ], \n                \"postal_code\": \"94043\", \n                \"subdivision\": \"California\", \n                \"time_zone\": \"America\/Los_Angeles\"\n            }, \n            \"ip_address\": \"144.189.123.1\"\n        }\n    ]\n}\n<\/pre>\n<\/blockquote>\n<p>IP\u30a2\u30c9\u30ec\u30b9\u306b\u3088\u3063\u3066\u306f\u56fd\u540d\u304c\u53d6\u5f97\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u305d\u308c\u3092\u691c\u77e5\u3057\u305f\u3044\u3068\u3057\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u30ec\u30b9\u30dd\u30f3\u30b9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>{\n    \"items\": [\n        {\n            \"found\": false,\n            \"ip_address\": \"193.53.1.45\"\n        }\n    ]\n}\n<\/pre>\n<\/blockquote>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u4ee5\u4e0b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre>String result = new String(ResponseData); \/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d7\u3051\u53d6\u308b\n\nif (!(result.contains(\"country\"))) {\n    Failure = true; \/\/ \u5931\u6557\u3068\u3059\u308b\n    FailureMessage = \"Request failure: \" + result; \/\/ \u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u7d50\u679c\u306b\u5931\u6557\u7406\u7531\u3092\u51fa\u529b\u3059\u308b\n}\n<\/pre>\n<p><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/add_bscode.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/add_bscode.png\" alt=\"BeanShell\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30fc\u30c9\" \/><\/a><br \/>\n\u3082\u3061\u308d\u3093System.out.println()\u7b49\u3092\u5b9f\u884c\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u81ea\u52d5\u5316\u3068\u306e\u89aa\u548c\u6027\u304c\u9ad8\u3044\u3067\u3042\u308d\u3046\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u63a1\u7528\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12862\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/execute_test_local.png\" alt=\"\" width=\"32\" height=\"32\" \/>\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\uff01<br \/>\n\u3059\u308b\u3068\u30fb\u30fb\u30fb<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/assert_result.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/assert_result.png\" alt=\"\u30c6\u30b9\u30c8\u7d50\u679c\" \/><\/a><br \/>\n\u56fd\u540d\u3092\u53d6\u5f97\u3067\u304d\u306a\u3044IP\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\uff01<br \/>\n\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u7d50\u679c\u3082\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/catch_assertion_failed.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/catch_assertion_failed.png\" alt=\"\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u5931\u6557\" \/><\/a><br \/>\n193.53.1.45\u306f\u3069\u3053\u306e\u56fd\u306eIP\u30a2\u30c9\u30ec\u30b9\u304b\u4e0d\u660e\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u2026(\u3061\u306a\u307f\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f<a href=\"https:\/\/dev.maxmind.com\/geoip\/geoip2\/downloadable\/\">GeoIP2<\/a>\u3092\u4f7f\u7528\u3057\u3066\u307e\u3059)<br \/>\nGeoIP2\u306e<a href=\"https:\/\/www.maxmind.com\/ja\/geoip-demo\">\u30c7\u30e2\u30b5\u30a4\u30c8<\/a>\u3067\u3082\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u51fa\u3066\u307e\u3059\u306d\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/no_geoip.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/10\/no_geoip.png\" alt=\"No Geo data\" \/><\/a><\/p>\n<h2 id=\"matome\">\u307e\u3068\u3081<\/h2>\n<p><span style=\"color: #ff0000;font-size: 24pt\"><strong>Apache JMeter\u3092\u4f7f\u3046\u3053\u3068\u3067\u9ad8\u901f\u304b\u3064\u4f4e\u30b3\u30b9\u30c8\u306b\u8ca0\u8377\u30c6\u30b9\u30c8\u304a\u3088\u3073API\u30c6\u30b9\u30c8\u304c\u5b9f\u73fe\u3067\u304d\u308b\uff01\uff01<\/strong><\/span><br \/>\n\u3053\u3053\u307e\u3067\u8aad\u3093\u3067\u304f\u3060\u3055\u308a\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\uff01<\/p>\n<p>\u30fb\u5f15\u7528\u5143\u304a\u3088\u3073\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u30b5\u30a4\u30c8\u69d8<\/p>\n<p><a href=\"http:\/\/jmeter.apache.org\/\">\u3010\u516c\u5f0f\u3011Apache JMeter<\/a><\/p>\n<p><a href=\"https:\/\/jmeter.apache.org\/api\/org\/apache\/jmeter\/threads\/JMeterContext.html\">\u3010\u516c\u5f0f\u3011JMeter\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8<\/a><\/p>\n<p><a href=\"https:\/\/jmeter.apache.org\/api\/\">\u3010\u516c\u5f0f\u3011JMeterAPI\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/p>\n<p><a href=\"https:\/\/qiita.com\/digdagdag\/items\/8a4023ddc7d549fa8de8\">JMeter\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3068\u3081 -Qiita<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u5e45\u5e83\u3044\u8996\u91ce\u3092\u6301\u3064\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u7530\u4e2d\u3068\u7533\u3057\u307e\u3059\u3002 \u4eca\u65e5\u306fApache bench\u306eGUI\u7248\u3067\u3042\u308bApache JMeter\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002 REST\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u3060\u3051\u3067\u306f\u306a\u304f\u3001A&#8230;<\/p>\n","protected":false},"author":1,"featured_media":12931,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"12594","footnotes":""},"categories":[5,26],"tags":[],"class_list":{"0":"post-12594","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-sys","8":"category-26","9":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/12594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=12594"}],"version-history":[{"count":139,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/12594\/revisions"}],"predecessor-version":[{"id":13807,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/12594\/revisions\/13807"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/12931"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=12594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=12594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=12594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}