{"id":3917,"date":"2013-11-07T11:10:07","date_gmt":"2013-11-07T09:10:07","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=3917"},"modified":"2013-11-07T11:10:07","modified_gmt":"2013-11-07T09:10:07","slug":"%d1%81%d0%be%d0%b7%d0%b4%d0%b0%d0%bd%d0%b8%d0%b5-%d0%b7%d0%b0%d0%b2%d0%b8%d1%81%d0%b8%d0%bc%d0%be%d1%81%d1%82%d0%b5%d0%b9-%d0%b4%d0%bb%d1%8f-smf-%d1%81%d0%b5%d1%80%d0%b2%d0%b8%d1%81%d0%be%d0%b2","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=3917","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f SMF \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432"},"content":{"rendered":"<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0442\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435. \u0418\u043c\u0435\u0435\u043c <strong>selenium<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 <strong>Xvfb<\/strong>. \u0418 \u0442\u0430\u043a, \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e \u0431\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b <strong>Xvfb<\/strong>, \u0430 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 <strong>selenium<\/strong>, \u0438 \u0431\u044b\u043b\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c <strong>selenium<\/strong> \u043e\u0442 <strong>Xvfb<\/strong>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">1) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Xvfb.<\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442 <strong>\/opt\/scripts\/xvfb.sh<\/strong>. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c <strong>SMF<\/strong> \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<p><code># svcbundle -i -s service-name=application\/xvfb -s model=daemon -s start-method=\"\/opt\/scripts\/xvfb.sh\"<\/code><\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 selenium.<\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442 <strong>\/opt\/scripts\/selenium.sh<\/strong>. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c <strong>SMF<\/strong> \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<p><code># svcbundle -i -s service-name=application\/selenium -s model=daemon -s start-method=\"\/opt\/scripts\/selenium.sh\"<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<\/span><\/strong><\/p>\n<p>\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c 2-\u043c\u044f \u043f\u0443\u0442\u044f\u043c\u0438: \u043f\u0440\u0430\u0432\u043a\u0430 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0438\u043c\u043f\u043e\u0440\u0442 \u0438 \u0447\u0435\u0440\u0435\u0437 <strong>svccfg<\/strong>. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u043e\u0431\u0430 \u043c\u0435\u0442\u043e\u0434\u0430<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; \u041f\u0440\u0430\u0432\u043a\u0430 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430.<\/span><\/strong><\/em><\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u043a\u0438 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442<\/p>\n<p><code># svcs -l svc:\/application\/selenium:default | grep manifest<br \/>\nmanifest \/lib\/svc\/manifest\/site\/selenium.xml<\/code><\/p>\n<p>\u0438 \u0432\u043d\u043e\u0441\u0438\u043c \u0442\u0430\u043a\u043e\u0439 \u0431\u043b\u043e\u043a (\u0441 \u043e\u0442\u0441\u0442\u0443\u043f\u0430\u043c\u0438) \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0448\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438\u00a0<strong>&lt;service version=&#8221;1&#8243; type=&#8221;service&#8221; name=&#8221;application\/selenium&#8221;&gt;<\/strong><\/p>\n<p><code>&lt;dependency name='xvfb'<br \/>\ngrouping='require_all'<br \/>\nrestart_on='none'<br \/>\ntype='service'&gt;<br \/>\n&lt;service_fmri<br \/>\nvalue='svc:\/application\/xvfb:default' \/&gt;<br \/>\n&lt;\/dependency&gt;<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442 \u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u00a0<strong>svc:\/system\/manifest-import:default<\/strong> :<\/p>\n<p><code>#\u00a0svccfg import\u00a0\/lib\/svc\/manifest\/site\/selenium.xml<br \/>\n# svcadm restart\u00a0svc:\/system\/manifest-import:default<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438:<\/p>\n<p><code># svcs -d svc:\/application\/selenium:default<br \/>\nSTATE STIME FMRI<br \/>\nonline Nov_05 svc:\/milestone\/multi-user:default<br \/>\nonline Nov_05 svc:\/application\/xvfb:default<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; \u0427\u0435\u0440\u0435\u0437 svccfg<\/span><\/strong><\/em><\/p>\n<p>\u0422\u0443\u0442 \u0432\u0441\u0451 \u043f\u0440\u043e\u0449\u0435 \u0438 \u0438\u0437\u044f\u0449\u043d\u0435\u0435. \u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e &#8211; \u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0433\u0440\u0443\u043f\u043f\u0443 \u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u0435\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b:<\/p>\n<p><code># svccfg -s svc:\/application\/selenium:default addpg xvfb dependency<br \/>\n# svccfg -s svc:\/application\/selenium:default setprop xvfb\/grouping = astring: require_all<br \/>\n# svccfg -s svc:\/application\/selenium:default setprop xvfb\/entities = fmri: svc:\/application\/xvfb:default<br \/>\n# svccfg -s svc:\/application\/selenium:default setprop xvfb\/restart_on = astring: none<br \/>\n# svccfg -s svc:\/application\/selenium:default setprop xvfb\/type = astring: service<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0435\u043c <strong>refresh<\/strong> <strong>selenium<\/strong> \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c:<\/p>\n<p><code># svcadm refresh svc:\/application\/selenium:default<br \/>\n# svcs -d svc:\/application\/selenium:default<br \/>\nSTATE STIME FMRI<br \/>\nonline Nov_05 svc:\/milestone\/multi-user:default<br \/>\nonline Nov_05 svc:\/application\/xvfb:default<\/code><\/p>\n<p>\u041d\u043e\u0432\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 <strong>property<\/strong> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <strong>svcprop<\/strong>:<\/p>\n<p><code># svcprop svc:\/application\/selenium:default | grep xvfb<br \/>\nxvfb\/entities fmri svc:\/application\/xvfb:default<br \/>\nxvfb\/grouping astring require_all<br \/>\nxvfb\/restart_on astring none<br \/>\nxvfb\/type astring service<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/em><\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 <strong>svccfg<\/strong> \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0435 <strong>xml<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0442\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435. \u0418\u043c\u0435\u0435\u043c selenium, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 Xvfb. \u0418 \u0442\u0430\u043a, \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e \u0431\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b Xvfb, \u0430 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 selenium, \u0438 \u0431\u044b\u043b\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c selenium \u043e\u0442 Xvfb. 1) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Xvfb. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \/opt\/scripts\/xvfb.sh. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c SMF \u0441\u0435\u0440\u0432\u0438\u0441: # svcbundle -i -s service-name=application\/xvfb -s model=daemon -s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3917","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3917"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3917\/revisions"}],"predecessor-version":[{"id":3918,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3917\/revisions\/3918"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}