{"id":167,"date":"2016-03-30T09:28:47","date_gmt":"2016-03-30T09:28:47","guid":{"rendered":"http:\/\/eitzen.at\/?p=167"},"modified":"2016-03-30T09:33:01","modified_gmt":"2016-03-30T09:33:01","slug":"gridifying-seleniet","status":"publish","type":"post","link":"https:\/\/eitzen.at\/index.php\/gridifying-seleniet\/","title":{"rendered":"Gridifying Seleniet"},"content":{"rendered":"<h2>Download all files needed<\/h2>\n<ul>\n<li>selenium-server-standalone-2.52.0.jar<\/li>\n<\/ul>\n<p>and if you want to run android tests too:<\/p>\n<ul>\n<li>selendroid-grid-plugin-0.17.0.jar<\/li>\n<li>selendroid-standalone-0.17.0-with-dependencies.jar<\/li>\n<li>selendroid-test-app-0.17.0.apk<\/li>\n<\/ul>\n<h2>Start grid hub<\/h2>\n<p>java -Dfile.encoding=UTF-8 -cp &#8220;selendroid-grid-plugin-0.17.0.jar:selenium-server-standalone-<br \/>\n2.52.0.jar&#8221; org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.Selen<br \/>\ndroidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444<\/p>\n<h2>Start nodes<\/h2>\n<p>create a startwebnode.sh script with the following content:<\/p>\n<pre>#!\/bin\/bash\r\nPORT=$1 \r\njava -jar selenium-server-standalone-2.52.0.jar -role node -hub http:\/\/127.0.0.1:4444\/grid\/register\/ -port $PORT -Dwebdriver.chrome.driver=exe\/chromedriver-linux64 -browser browserName=f irefox,maxInstances=3,firefox_profile=Selenium -browser browserName=chrome,maxInstances=3<\/pre>\n<p>Now start the script with a port number like 5000 as parameter<\/p>\n<h2>check set up<\/h2>\n<p>Enter the following URL in our browser<\/p>\n<pre>http:\/\/buildserver.local:4444\/grid\/console<\/pre>\n<p>You should see your web node with 3 firefox and 3 chrome instances available<\/p>\n<h2>Create firefox browser profile on grid server<\/h2>\n<p>start firefox with<\/p>\n<pre>firefox -p<\/pre>\n<p>and create a profile named &#8220;Selenium&#8221;. Then exit again<\/p>\n<h2>Create grid\u00a0configuration\u00a0files<\/h2>\n<ul>\n<li>grid.firefox.prop<\/li>\n<\/ul>\n<pre>browserName=firefox<\/pre>\n<ul>\n<li>grid.firefox.selexprof<\/li>\n<\/ul>\n<pre>--gui \r\n--grid \r\ngrid.firefox.prop \r\nhttp:\/\/{GRIDSERVER}:4444 \r\n--trac or --zephyr whereever you have your test cases managed\r\n{PROJECTNAME}\r\n{TESTPLANNAME}\r\n--url \r\nhttp:\/\/{AUTURL}\r\n--junit \r\n--gui \r\n--screenoff \r\n--update<\/pre>\n<h2>Start Seleniet<\/h2>\n<pre>seleniet.sh run --profile grid.firefox<\/pre>\n<p>and watch the browser pop up at the grid server. Welcome to the Griduniverse :=)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download all files needed selenium-server-standalone-2.52.0.jar and if you want to run android tests too: selendroid-grid-plugin-0.17.0.jar selendroid-standalone-0.17.0-with-dependencies.jar selendroid-test-app-0.17.0.apk Start grid hub java -Dfile.encoding=UTF-8 -cp &#8220;selendroid-grid-plugin-0.17.0.jar:selenium-server-standalone- 2.52.0.jar&#8221; org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.Selen droidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444 Start nodes create a startwebnode.sh script with the following content: #!\/bin\/bash PORT=$1 java -jar selenium-server-standalone-2.52.0.jar -role node -hub http:\/\/127.0.0.1:4444\/grid\/register\/ -port <a href=\"https:\/\/eitzen.at\/index.php\/gridifying-seleniet\/\" rel=\"nofollow\"><span class=\"sr-only\">Read more about Gridifying Seleniet<\/span>[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":74,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[5],"class_list":["post-167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-job","tag-seleniet"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/eitzen.at\/wp-content\/uploads\/2016\/01\/logo-text.png?fit=751%2C235&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p88Djt-2H","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":2,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions\/169"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/media\/74"}],"wp:attachment":[{"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}