settings.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. """
  2. You'll probably want to customize this to your own environment and needs.
  3. For changes to take effect immediately, use Python's Develop Mode.
  4. Develop Mode Install: "pip install -e ." (from the top-level directory)
  5. """
  6. # #####>>>>>----- REQUIRED/IMPORTANT SETTINGS -----<<<<<#####
  7. # Default maximum time (in seconds) to wait for page elements to appear.
  8. # Different methods/actions in base_case.py use different timeouts.
  9. # If the element to be acted on does not appear in time, the test fails.
  10. MINI_TIMEOUT = 2
  11. SMALL_TIMEOUT = 6
  12. LARGE_TIMEOUT = 10
  13. EXTREME_TIMEOUT = 30
  14. # If True, existing logs from past test runs will be saved and take up space.
  15. # If False, only the logs from the most recent test run will be saved locally.
  16. # You can also archive existing logs on the command line with: "--archive_logs"
  17. ARCHIVE_EXISTING_LOGS = True
  18. # If True, existing downloads from past runs will be saved and take up space.
  19. # If False, only the downloads from the most recent run will be saved locally.
  20. ARCHIVE_EXISTING_DOWNLOADS = False
  21. # Default names for files saved during test failures.
  22. # (These files will get saved to the "latest_logs/" folder.)
  23. SCREENSHOT_NAME = "error.png"
  24. BASIC_INFO_NAME = "basic_test_info.txt"
  25. PAGE_SOURCE_NAME = "page_source.html"
  26. # Default names for files and folders saved when using nosetests reports.
  27. # Usage: "--report". (NOSETESTS only)
  28. LATEST_REPORT_DIR = "latest_report"
  29. REPORT_ARCHIVE_DIR = "archived_reports"
  30. HTML_REPORT = "report.html"
  31. RESULTS_TABLE = "results_table.csv"
  32. # Default browser resolutions when opening new windows for tests.
  33. # (Headless resolutions take priority, and include all browsers.)
  34. # (Firefox starts maximized by default when running in GUI Mode.)
  35. CHROME_START_WIDTH = 1920
  36. CHROME_START_HEIGHT = 1080
  37. HEADLESS_START_WIDTH = 1920
  38. HEADLESS_START_HEIGHT = 1080