{"id":179,"date":"2016-08-30T07:23:45","date_gmt":"2016-08-30T07:23:45","guid":{"rendered":"http:\/\/eitzen.at\/?p=179"},"modified":"2016-09-26T10:14:23","modified_gmt":"2016-09-26T10:14:23","slug":"seleniet-command-line-parameters-explained","status":"publish","type":"post","link":"https:\/\/eitzen.at\/index.php\/seleniet-command-line-parameters-explained\/","title":{"rendered":"Seleniet command line parameters explained"},"content":{"rendered":"<p>Seleniet has grown from a small command line utility for local selenium based testing into a full blown web and shell test automation tool with integration to external test case management tools and detailed test result reporting. With this extension comes a plethora of command lin eswitches that can be used to tailor the execution.<\/p>\n<p>You can either supply these parameters directly via command line or save thme in a *.selexprof file and run seleniet specifying the profile file to read the params from:<\/p>\n<pre>  seleniet.bat run <strong>--profile<\/strong> XXXX.selexprof<\/pre>\n<p>The following parameters are available:<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #339966;\">mandatory parameters are marked with one\u00a0asterisk &#8220;*&#8221;, parameter sets where one of a group of is mandatory are marked with two asterisks &#8220;**&#8221;<\/span><\/p>\n<h3>Browser parameters<\/h3>\n<p>For web based tests one of the two following parameters need to be supplied:<\/p>\n<h5><span style=\"color: #339966;\">&#8211;browser [firefox|chrome|ie|marionette|android] **<\/span><\/h5>\n<p style=\"padding-left: 30px;\">Starts the specified browser. marionette and android are experimental features and are not recommended for productive use<\/p>\n<p style=\"padding-left: 30px;\">The firefox specific parameters &#8211;ffprofile or\u00a0&#8211;ffprofdir allow to specify which firefox profile should be used by the to be started firefox browser.<\/p>\n<h5><span style=\"color: #339966;\">&#8211;grid gridfile gridhub **<\/span><\/h5>\n<p style=\"padding-left: 30px;\">Starts an browser instance specified via grid properties on the gridhub server<\/p>\n<p style=\"padding-left: 30px;\">example gridfile:<\/p>\n<p style=\"padding-left: 30px;\">browserName=firefox<\/p>\n<p style=\"padding-left: 30px;\">example gridhub: http:\/\/gridserver:4444<\/p>\n<h5>&#8211;xywh XPOSxYPOSxWIDTHxHEIGHT<\/h5>\n<p style=\"padding-left: 30px;\">Specifies the position and size of the browser window (in pixels)<\/p>\n<h5>&#8211;screenon \/ screenoff<\/h5>\n<p style=\"padding-left: 30px;\">Flag whether to save a screenshot after each step or not, default is &#8211;screenoff<\/p>\n<h5>&#8211;timeoutgui timeoutsec<\/h5>\n<p style=\"padding-left: 30px;\">Number of seconds to wait for web \/ DOM elements to appear before throwing a timeout error, defaults to 20 seconds<\/p>\n<h5><span style=\"color: #339966;\">&#8211;url http(s):\/\/starturl.test *<\/span><\/h5>\n<p style=\"padding-left: 30px;\">URL of the application under test \/ URL opened at the start of the test run<\/p>\n<h3>External system \/ test case parameters<\/h3>\n<h5><span style=\"color: #339966;\">&#8211;zephyr projectname cyclename **<\/span><\/h5>\n<p style=\"padding-left: 30px;\">Reads test case definitions from external Jira\/Zephyr system for given cycle of given project<\/p>\n<h5><span style=\"color: #339966;\">&#8211;folder filefolder **<\/span><\/h5>\n<p style=\"padding-left: 30px;\">Reads test case definitions from the local file system starting from the given folder<\/p>\n<h5><span style=\"color: #339966;\">&#8211;trac catalog testplan **<\/span><\/h5>\n<p style=\"padding-left: 30px;\">Reads test case definitions from external TRAC system (TestMgr plugin) for given catalog and test plan<\/p>\n<h5>&#8211;xls excelfile ** DEPRECATED<\/h5>\n<p style=\"padding-left: 30px;\">Reads test case definitions from an Ecel sheet (XLS 2007), DEPRECATED<\/p>\n<h5>&#8211;testlink xmlexportfile cfgfile ** DEPRECATED<\/h5>\n<p style=\"padding-left: 30px;\">Reads test case definitions from an TestLink server, DEPRECATED<\/p>\n<h5>&#8211;objrepo urlfilerepo<\/h5>\n<p style=\"padding-left: 30px;\">Specifies where to read the obj repo from. Can be XLS or CSV file \/url. Defaults to &#8220;ObjRepository.xls&#8221;<\/p>\n<h5>&#8211;update<\/h5>\n<p style=\"padding-left: 30px;\">Flag whether the test results shall be updated to the external system (if applicable) or not<\/p>\n<h5>&#8211;startTC testcasekey<\/h5>\n<p style=\"padding-left: 30px;\">Name\/key of the test case to perform. If supplied only THIS test case (and all of its sub tests) will be performed.<\/p>\n<h3>Miscellaneous parameters<\/h3>\n<h5>&#8211;testdir folder<\/h5>\n<p style=\"padding-left: 30px;\">Name of the folder to store test results and artefacts to. Defaults to &#8220;tests&#8221;<\/p>\n<h5>&#8211;gui<\/h5>\n<p style=\"padding-left: 30px;\">Flag whether to start interactive gui mode. Failures will be reported by a popup and need to be clicked to continue test execution. This allows to analyse test failures in more detail.<\/p>\n<h5>&#8211;batch<\/h5>\n<p style=\"padding-left: 30px;\">Flag whether to start non interactive console batch mode.<\/p>\n<h5><del><\/del>&#8211;junit<\/h5>\n<p style=\"padding-left: 30px;\">Flag whether to create a local test report based on JUnit report template in local test dir folder<\/p>\n<h5>&#8211;timeout<\/h5>\n<p style=\"padding-left: 30px;\">Number of seconds the test run must not exceed. After this timeout the test execution will be aborted as soon as possible.<\/p>\n<p><del>&#8211;pauseonerror<\/del><\/p>\n<p style=\"padding-left: 30px;\">Deprecated flag whether to pause on test failures. Now subsumed in the &#8211;gui flag<\/p>\n<h3>Screenrecording parameters (experimental)<\/h3>\n<h5>&#8211;screenrec<\/h5>\n<p style=\"padding-left: 30px;\">Flag whether to record browser window or not<\/p>\n<h5>&#8211;recrate picspersec<\/h5>\n<p style=\"padding-left: 30px;\">Number of frames per second (minimo 3, up to 20 depending on your hardware)<\/p>\n<h5>&#8211;recarea\u00a0XPOSxYPOSxWIDTHxHEIGHT<\/h5>\n<p style=\"padding-left: 30px;\">Area to record<\/p>\n<h5>&#8211;recfile videofilename<\/h5>\n<p style=\"padding-left: 30px;\">Name of the file to store the\u00a0screen recording to<\/p>\n<h3>Selexprof Files<\/h3>\n<p>To store command line parameters into a selexprof file each of the parameters and each of its arguments need to be written to a new line.<\/p>\n<p>E.g.:<\/p>\n<pre>--testdir folder<\/pre>\n<p>shall\u00a0be written to the file as<\/p>\n<pre>--testdir\r\nfolder\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Seleniet has grown from a small command line utility for local selenium based testing into a full blown web and shell test automation tool with integration to external test case management tools and detailed test result reporting. With this extension comes a plethora of command lin eswitches that can be used to tailor the execution. <a href=\"https:\/\/eitzen.at\/index.php\/seleniet-command-line-parameters-explained\/\" rel=\"nofollow\"><span class=\"sr-only\">Read more about Seleniet command line parameters explained<\/span>[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":5,"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-179","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-200-trans.png?fit=200%2C202&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p88Djt-2T","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/posts\/179","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=179"}],"version-history":[{"count":5,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/posts\/179\/revisions\/187"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/media\/5"}],"wp:attachment":[{"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eitzen.at\/index.php\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}