ParametersConfigFile.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Parameters in Configuration files (globals) &mdash; baangt 2020.1.1.b11 documentation</title>
  8. <script type="text/javascript" src="_static/js/modernizr.min.js"></script>
  9. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  10. <script type="text/javascript" src="_static/jquery.js"></script>
  11. <script type="text/javascript" src="_static/underscore.js"></script>
  12. <script type="text/javascript" src="_static/doctools.js"></script>
  13. <script type="text/javascript" src="_static/language_data.js"></script>
  14. <script type="text/javascript" src="_static/js/theme.js"></script>
  15. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  16. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  17. <link rel="index" title="Index" href="genindex.html" />
  18. <link rel="search" title="Search" href="search.html" />
  19. <link rel="next" title="Types of tests" href="TestTypes.html" />
  20. <link rel="prev" title="Structure of baangt" href="Structure.html" />
  21. </head>
  22. <body class="wy-body-for-nav">
  23. <div class="wy-grid-for-nav">
  24. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  25. <div class="wy-side-scroll">
  26. <div class="wy-side-nav-search" >
  27. <a href="index.html" class="icon icon-home"> baangt
  28. </a>
  29. <div role="search">
  30. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  31. <input type="text" name="q" placeholder="Search docs" />
  32. <input type="hidden" name="check_keywords" value="yes" />
  33. <input type="hidden" name="area" value="default" />
  34. </form>
  35. </div>
  36. </div>
  37. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  38. <p class="caption"><span class="caption-text">Contents:</span></p>
  39. <ul class="current">
  40. <li class="toctree-l1"><a class="reference internal" href="Installation.html">Installation</a></li>
  41. <li class="toctree-l1"><a class="reference internal" href="OverviewUsage.html">What is <code class="docutils literal notranslate"><span class="pre">baangt</span></code></a></li>
  42. <li class="toctree-l1"><a class="reference internal" href="simpleExample.html">Jump-start into worry free production deployments</a></li>
  43. <li class="toctree-l1"><a class="reference internal" href="Structure.html">Structure of baangt</a></li>
  44. <li class="toctree-l1 current"><a class="current reference internal" href="#">Parameters in Configuration files (<code class="docutils literal notranslate"><span class="pre">globals</span></code>)</a></li>
  45. <li class="toctree-l1"><a class="reference internal" href="TestTypes.html">Types of tests</a></li>
  46. <li class="toctree-l1"><a class="reference internal" href="Developer.html">Developer guidelines for custom enhancements</a></li>
  47. <li class="toctree-l1"><a class="reference internal" href="HistoryAndReasons.html">Why <code class="docutils literal notranslate"><span class="pre">baangt</span></code> and why is it open source?</a></li>
  48. <li class="toctree-l1"><a class="reference internal" href="contributors.html">Contributions</a></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </nav>
  53. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  54. <nav class="wy-nav-top" aria-label="top navigation">
  55. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  56. <a href="index.html">baangt</a>
  57. </nav>
  58. <div class="wy-nav-content">
  59. <div class="rst-content">
  60. <div role="navigation" aria-label="breadcrumbs navigation">
  61. <ul class="wy-breadcrumbs">
  62. <li><a href="index.html">Docs</a> &raquo;</li>
  63. <li>Parameters in Configuration files (<code class="docutils literal notranslate"><span class="pre">globals</span></code>)</li>
  64. <li class="wy-breadcrumbs-aside">
  65. <a href="_sources/ParametersConfigFile.rst.txt" rel="nofollow"> View page source</a>
  66. </li>
  67. </ul>
  68. <hr/>
  69. </div>
  70. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  71. <div itemprop="articleBody">
  72. <div class="section" id="parameters-in-configuration-files-globals">
  73. <h1>Parameters in Configuration files (<code class="docutils literal notranslate"><span class="pre">globals</span></code>)<a class="headerlink" href="#parameters-in-configuration-files-globals" title="Permalink to this headline">¶</a></h1>
  74. <p>Generally it’s not needed to change parameters in the config files during manual or automated execution as the parameters
  75. have default values or are anyway defined in the Testrun definition. Still sometimes it’s very handy to change them on the fly,
  76. for instance to slowly retest a single testrecord or to not close the browser after an error.</p>
  77. <table class="colwidths-given docutils align-default" id="id1">
  78. <caption><span class="caption-text">Parameters in globals</span><a class="headerlink" href="#id1" title="Permalink to this table">¶</a></caption>
  79. <colgroup>
  80. <col style="width: 25%" />
  81. <col style="width: 75%" />
  82. </colgroup>
  83. <thead>
  84. <tr class="row-odd"><th class="head"><p>Parameter</p></th>
  85. <th class="head"><p>Description</p></th>
  86. </tr>
  87. </thead>
  88. <tbody>
  89. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">TC.slowExecution</span></code></p></td>
  90. <td><p>When set to <code class="docutils literal notranslate"><span class="pre">true</span></code> the browser will stop for a short time after each command, so that you can also visually see what the browser is doing</p></td>
  91. </tr>
  92. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">dontCloseBrowser</span></code></p></td>
  93. <td><p>When the browser or script finds an error usually it takes a screenshot and moves on to the next testcase. With this setting to <code class="docutils literal notranslate"><span class="pre">True</span></code> the Browsersession will stop right at the error</p></td>
  94. </tr>
  95. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">TC.BrowserOptions</span></code></p></td>
  96. <td><p>Set the value to <code class="docutils literal notranslate"><span class="pre">{'HEADLESS':</span> <span class="pre">'True'}</span></code> to run Chrome/Firefox in headless mode.</p></td>
  97. </tr>
  98. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">TC.Lines</span></code></p></td>
  99. <td><p>Which lines from datafile to process.</p>
  100. <ul class="simple">
  101. <li><p><code class="docutils literal notranslate"><span class="pre">linennumber</span></code> e.g. <code class="docutils literal notranslate"><span class="pre">5</span></code>. Will execute the selected testrun using line 5 from the datafile</p></li>
  102. <li><p><code class="docutils literal notranslate"><span class="pre">linenumber_from</span> <span class="pre">-</span> <span class="pre">linenumber_to</span></code> e.g. <code class="docutils literal notranslate"><span class="pre">1530</span> <span class="pre">-</span> <span class="pre">1540</span></code>. Will execute the selected testrun with lines 1530 until including line 1540</p></li>
  103. </ul>
  104. <p>Combinations are possible and allowed, in this case separate the numbers by comma e.g. <code class="docutils literal notranslate"><span class="pre">5,</span> <span class="pre">10-20,</span> <span class="pre">30-90</span></code></p>
  105. </td>
  106. </tr>
  107. <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">TC.Browser</span></code></p></td>
  108. <td><p>If the testcase is WEB-Testing, then you can overwrite the browser, which is defined inside the testrun definition. If the testcase is not a Web-Testcase this setting doesn’t have any effect. Valid values are <code class="docutils literal notranslate"><span class="pre">Chrome</span></code>, <code class="docutils literal notranslate"><span class="pre">FF</span></code> and <code class="docutils literal notranslate"><span class="pre">Safari</span></code></p></td>
  109. </tr>
  110. <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">TC.ParallelRuns</span></code></p></td>
  111. <td><p>Number of parallel sessions to be executing. Values depend largely on your hardware and internet connection. Debugging works only in a single session.</p></td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. <p># Todo:
  116. BrowserAttributes</p>
  117. </div>
  118. </div>
  119. </div>
  120. <footer>
  121. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  122. <a href="TestTypes.html" class="btn btn-neutral float-right" title="Types of tests" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
  123. <a href="Structure.html" class="btn btn-neutral float-left" title="Structure of baangt" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
  124. </div>
  125. <hr/>
  126. <div role="contentinfo">
  127. <p>
  128. &copy; Copyright 2020, Bernhard Buhl
  129. </p>
  130. </div>
  131. Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  132. </footer>
  133. </div>
  134. </div>
  135. </section>
  136. </div>
  137. <script type="text/javascript">
  138. jQuery(function () {
  139. SphinxRtdTheme.Navigation.enable(true);
  140. });
  141. </script>
  142. </body>
  143. </html>