Add information for debugging Selenium tests
This patch just adds some notes about some configuration changes I use to help debug Selenium tests, which typically don't present a lot of information when they fail. Change-Id: Ie2ce8d63af4c20a234160eb34fe8f4a8e6b1c45c
This commit is contained in:
parent
96107e0fd6
commit
9248b15526
@ -204,6 +204,20 @@ Tips and tricks
|
|||||||
environment and see which of your assumptions about the code isn't,
|
environment and see which of your assumptions about the code isn't,
|
||||||
in fact, flawlessly correct.
|
in fact, flawlessly correct.
|
||||||
|
|
||||||
|
#. If the error is in the Selenium test suite, you're likely getting very little
|
||||||
|
information about the error. To increase the information provided to you,
|
||||||
|
edit ``horizon/test/settings.py`` to set ``DEBUG = True`` and set the logging
|
||||||
|
level to 'DEBUG' for the default 'test' logger. Also, add a logger config
|
||||||
|
for Django::
|
||||||
|
|
||||||
|
},
|
||||||
|
'loggers': {
|
||||||
|
+ 'django': {
|
||||||
|
+ 'handlers': ['test'],
|
||||||
|
+ 'propagate': False,
|
||||||
|
+ },
|
||||||
|
'django.db.backends': {
|
||||||
|
|
||||||
Common pitfalls
|
Common pitfalls
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user