|
9 | 9 |
|
10 | 10 | # #####>>>>>----- REQUIRED/IMPORTANT SETTINGS -----<<<<<#####
|
11 | 11 |
|
12 |
| -# Default seconds to wait for page elements to appear before performing actions |
13 |
| -TINY_TIMEOUT = 0.1 |
| 12 | +# Default maximum time (in seconds) to wait for page elements to appear. |
| 13 | +# Different methods/actions in base_case.py use different timeouts. |
| 14 | +# If the element to be acted on does not appear in time, the test fails. |
14 | 15 | MINI_TIMEOUT = 2
|
15 | 16 | SMALL_TIMEOUT = 6
|
16 | 17 | LARGE_TIMEOUT = 10
|
17 | 18 | EXTREME_TIMEOUT = 30
|
18 | 19 |
|
19 |
| -# Default time to wait after each browser action performed during Demo Mode |
20 |
| -# Use Demo Mode when you want others to see what your automation is doing |
21 |
| -# Usage: --demo_mode when run from the command line when using --with-selenium |
22 |
| -# This value can be overwritten on the command line by using --demo_sleep=FLOAT |
23 |
| -DEFAULT_DEMO_MODE_TIMEOUT = 1.0 |
24 |
| - |
25 |
| -# Number of times to repeat the highlight animation. (Seen during Demo Mode) |
26 |
| -# Each loop is about 0.18 seconds. |
27 |
| -# This value can be overwritten on the command line by using --highlights=TIMES |
28 |
| -HIGHLIGHTS = 4 |
29 |
| - |
30 | 20 | # If True, existing logs from past test runs will be saved and take up space.
|
31 | 21 | # If False, only the logs from the most recent test run will be saved locally.
|
32 |
| -# This has no effect on Jenkins/S3/MySQL, which may still be saving test logs. |
33 | 22 | ARCHIVE_EXISTING_LOGS = False
|
34 | 23 |
|
35 | 24 | # If True, existing downloads from past runs will be saved and take up space.
|
|
44 | 33 | PAGE_SOURCE_NAME = "page_source.html"
|
45 | 34 |
|
46 | 35 | # Default names for folders and files saved when reports are turned on.
|
47 |
| -# Usage: "--report" (Also requires: "--with-testing_base") |
48 |
| -# These settings are also used with MasterQA |
| 36 | +# Usage: "--report" and "--with-testing_base" together. (NOSETESTS only) |
49 | 37 | LATEST_REPORT_DIR = "latest_report"
|
50 | 38 | REPORT_ARCHIVE_DIR = "archived_reports"
|
51 | 39 | HTML_REPORT = "report.html"
|
52 | 40 | RESULTS_TABLE = "results_table.csv"
|
53 | 41 |
|
54 | 42 | '''
|
55 | 43 | This adds wait_for_ready_state_complete() after various browser actions.
|
56 |
| -By default, Selenium waits for the 'interactive' state before continuing. |
57 | 44 | Setting this to True may improve reliability at the cost of speed.
|
58 |
| -WARNING: Some websites are in a perpetual "interactive" state due to |
59 |
| -dynamic content that never fully finishes loading (Use "False" there). |
60 | 45 | '''
|
61 | 46 | # Called after self.open(url) or self.open_url(url), NOT self.driver.open(url)
|
62 | 47 | WAIT_FOR_RSC_ON_PAGE_LOADS = True
|
63 | 48 | # Called after self.click(selector), NOT element.click()
|
64 | 49 | WAIT_FOR_RSC_ON_CLICKS = True
|
65 | 50 |
|
66 | 51 | '''
|
67 |
| -This adds wait_for_angularjs() after wait_for_ready_state_complete() |
68 |
| -after various browser actions. Setting this to True may improve reliability |
69 |
| -of AngularJs applications at the cost of speed. |
70 |
| -NOTE: This requires WAIT_FOR_RSC_ON_PAGE_LOADS and/or WAIT_FOR_RSC_ON_CLICKS |
71 |
| -to be True since it's part of wait_for_ready_state_complete(). |
| 52 | +This adds wait_for_angularjs() after various browser actions. |
| 53 | +(Requires WAIT_FOR_RSC_ON_PAGE_LOADS and WAIT_FOR_RSC_ON_CLICKS to also be on.) |
72 | 54 | '''
|
73 |
| -# Called after each wait_for_ready_state_complete() |
74 | 55 | WAIT_FOR_ANGULARJS = True
|
75 | 56 |
|
76 | 57 | # Option to start Chrome in full screen mode by default
|
77 | 58 | START_CHROME_IN_FULL_SCREEN_MODE = False
|
78 | 59 |
|
| 60 | +# Default time to wait after each browser action performed during Demo Mode. |
| 61 | +# Use Demo Mode when you want others to see what your automation is doing. |
| 62 | +# Usage: "--demo_mode". (Can be overwritten by using "--demo_sleep=TIME".) |
| 63 | +DEFAULT_DEMO_MODE_TIMEOUT = 1.0 |
| 64 | + |
| 65 | +# Number of times to repeat the demo_mode highlight animation. |
| 66 | +# Each loop is about 0.18 seconds. (Override by using "--highlights=TIMES".) |
| 67 | +HIGHLIGHTS = 4 |
| 68 | + |
79 | 69 |
|
80 | 70 | # #####>>>>>----- MasterQA SETTINGS -----<<<<<#####
|
81 | 71 | # ##### (Used when importing MasterQA as the parent class)
|
|
0 commit comments