ParametersConfigFile.rst.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. Parameters in Configuration files (``globals``)
  2. ===============================================
  3. Generally it's not needed to change parameters in the config files during manual or automated execution as the parameters
  4. have default values or are anyway defined in the Testrun definition. Still sometimes it's very handy to change them on the fly,
  5. for instance to slowly retest a single testrecord or to not close the browser after an error.
  6. .. list-table:: Parameters in globals
  7. :widths: 25 75
  8. :header-rows: 1
  9. * - Parameter
  10. - Description
  11. * - ``TC.slowExecution``
  12. - When set to ``true`` the browser will stop for a short time after each command, so that you can also visually see what the browser is doing
  13. * - ``dontCloseBrowser``
  14. - When the browser or script finds an error usually it takes a screenshot and moves on to the next testcase. With this setting to ``True`` the Browsersession will stop right at the error
  15. * - ``TC.BrowserOptions``
  16. - Set the value to ``{'HEADLESS': 'True'}`` to run Chrome/Firefox in headless mode.
  17. * - ``TC.Lines``
  18. - Which lines from datafile to process.
  19. * ``linennumber`` e.g. ``5``. Will execute the selected testrun using line 5 from the datafile
  20. * ``linenumber_from - linenumber_to`` e.g. ``1530 - 1540``. Will execute the selected testrun with lines 1530 until including line 1540
  21. Combinations are possible and allowed, in this case separate the numbers by comma e.g. ``5, 10-20, 30-90``
  22. * - ``TC.Browser``
  23. - 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 ``Chrome``, ``FF`` and ``Safari``
  24. * - ``TC.ParallelRuns``
  25. - Number of parallel sessions to be executing. Values depend largely on your hardware and internet connection. Debugging works only in a single session.
  26. # Todo:
  27. BrowserAttributes