{"id":3374,"date":"2014-09-24T19:07:21","date_gmt":"2014-09-24T10:07:21","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=3374"},"modified":"2025-03-12T11:28:22","modified_gmt":"2025-03-12T02:28:22","slug":"centos%e4%b8%8a%e3%81%a7seleniumrc%e3%81%a8phpunit%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6firefox%e3%82%92%e6%93%8d%e4%bd%9c%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2014\/09\/24\/centos%e4%b8%8a%e3%81%a7seleniumrc%e3%81%a8phpunit%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6firefox%e3%82%92%e6%93%8d%e4%bd%9c%e3%81%99%e3%82%8b\/","title":{"rendered":"CentOS\u4e0a\u3067SeleniumRC\u3068PHPUnit\u3092\u4f7f\u3063\u3066firefox\u3092\u64cd\u4f5c\u3059\u308b"},"content":{"rendered":"<h3>\u307e\u305a\u306fSelenium-RC\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/h3>\n<p><a href=\"http:\/\/docs.seleniumhq.org\/download\/\">http:\/\/docs.seleniumhq.org\/download\/<\/a><br \/>\nSelenium Server (formerly the Selenium RC Server)\u306e\u3001selenium-server-standalone-2.x.x.jar\u3092\u3002<br \/>\nCentOS\u4e0a\u306e\u9069\u5f53\u306a\u5834\u6240\u306b\u8a2d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h3>CentOS\u306bjava\u3068Xvfb\u3068firefox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/h3>\n<pre lang=\"bash\">yum install java\r\nyum install Xvfb firefox<\/pre>\n<h3>\/var\/lib\/dbus\/machine-id\u304c\u7121\u3051\u308c\u3070\u751f\u6210<\/h3>\n<pre lang=\"bash\">dbus-uuidgen > \/var\/lib\/dbus\/machine-id<\/pre>\n<h3>Xvfb\u3092\u8d77\u52d5<\/h3>\n<pre lang=\"bash\">DISPLAY=:1 Xvfb :1 -screen 0 1024x768x8 &<\/pre>\n<h3>Selenium RC\u3092\u8d77\u52d5<\/h3>\n<pre lang=\"bash\">DISPLAY=:1 java -jar selenium-server-standalone-2.x.x.jar &<\/pre>\n<h3>PHPunit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"https:\/\/phpunit.de\/manual\/current\/ja\/installation.html\">https:\/\/phpunit.de\/manual\/current\/ja\/installation.html<\/a><\/p>\n<pre lang=\"bash\">$ wget https:\/\/phar.phpunit.de\/phpunit.phar\r\n$ chmod +x phpunit.phar\r\n$ sudo mv phpunit.phar \/usr\/local\/bin\/phpunit\r\n$ phpunit --version<\/pre>\n<p>&nbsp;<\/p>\n<h3>PC\u306eFirefox\u306b\u3001Selenium-IDE\u53ca\u3073 php-formatters\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"http:\/\/docs.seleniumhq.org\/download\/\">http:\/\/docs.seleniumhq.org\/download\/<\/a><br \/>\n<a href=\"https:\/\/addons.mozilla.org\/ja\/firefox\/addon\/selenium-ide-php-formatters\/\">https:\/\/addons.mozilla.org\/ja\/firefox\/addon\/selenium-ide-php-formatters\/<\/a><\/p>\n<h3>\u30c4\u30fc\u30eb\uff1eSelenium IDE\u3092\u8d77\u52d5\u3057\u3066\u3001\u9069\u5f53\u306a\u64cd\u4f5c\u3092\u8a18\u9332\u3057\u307e\u3059\u3002<\/h3>\n<p>\u9069\u5f53\u306a\u64cd\u4f5c\u304c\u8a18\u9332\u3055\u308c\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\uff1e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8(E)\uff1ePHP(PHPUnit)\u3092\u9078\u629e\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u4eca\u56de\u306fPHPUnit.php\u306b\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u3092CentOS\u4e0a\u306b\u6301\u3063\u3066\u884c\u304d\u3001phpunit\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/h3>\n<pre lang=\"bash\">phpunit PHPUnit.php<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3057\u304b\u3057\u3001WordPress 4\u306b\u306a\u3063\u3066\u304b\u3089\u306a\u306e\u304b\u3001\u6539\u884c\u304c\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u3067\u3082\u30c6\u30ad\u30b9\u30c8\u30e2\u30fc\u30c9\u3067\u3082\u3001\u9177\u3044\u72b6\u614b\u306b\u306a\u308b\u306e\u304c\u3002<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3374&#038;t=CentOS%E4%B8%8A%E3%81%A7SeleniumRC%E3%81%A8PHPUnit%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6firefox%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%99%E3%82%8B&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3374&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=CentOS%E4%B8%8A%E3%81%A7SeleniumRC%E3%81%A8PHPUnit%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6firefox%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3374&#038;text=CentOS%E4%B8%8A%E3%81%A7SeleniumRC%E3%81%A8PHPUnit%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6firefox%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3374&#038;title=CentOS%E4%B8%8A%E3%81%A7SeleniumRC%E3%81%A8PHPUnit%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6firefox%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&#038;v=3&#038;t=CentOS%E4%B8%8A%E3%81%A7SeleniumRC%E3%81%A8PHPUnit%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6firefox%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%99%E3%82%8B&#038;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3374\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=CentOS%E4%B8%8A%E3%81%A7SeleniumRC%E3%81%A8PHPUnit%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6firefox%E3%82%92%E6%93%8D%E4%BD%9C%E3%81%99%E3%82%8B&#038;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F3374\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>\u307e\u305a\u306fSelenium-RC\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002 http:\/\/docs.seleniumhq.org\/download\/ Selenium Server (formerly the Selenium RC Server)\u306e [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3374","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/3374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=3374"}],"version-history":[{"count":13,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/3374\/revisions"}],"predecessor-version":[{"id":3388,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/3374\/revisions\/3388"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=3374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=3374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=3374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}