Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0acb18fe
Commit
0acb18fe
authored
Feb 05, 2014
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2480 from edx/zoldak/increase_lettuce_script_timeout
Increase async script timeout in lettuce acceptance tests
parents
544b4961
a4275e90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/djangoapps/terrain/browser.py
+4
-3
No files found.
common/djangoapps/terrain/browser.py
View file @
0acb18fe
...
...
@@ -41,6 +41,7 @@ LOGGER = getLogger(__name__)
LOGGER
.
info
(
"Loading the lettuce acceptance testing terrain file..."
)
MAX_VALID_BROWSER_ATTEMPTS
=
20
GLOBAL_SCRIPT_TIMEOUT
=
20
def
get_saucelabs_username_and_key
():
...
...
@@ -106,7 +107,7 @@ def initial_setup(server):
# raise a WebDriverException
try
:
world
.
browser
=
Browser
(
browser_driver
)
world
.
browser
.
driver
.
set_script_timeout
(
10
)
world
.
browser
.
driver
.
set_script_timeout
(
GLOBAL_SCRIPT_TIMEOUT
)
world
.
visit
(
'/'
)
except
WebDriverException
:
...
...
@@ -133,7 +134,7 @@ def initial_setup(server):
**
make_saucelabs_desired_capabilities
()
)
world
.
absorb
(
30
,
'IMPLICIT_WAIT'
)
world
.
browser
.
set_script_timeout
(
10
)
world
.
browser
.
set_script_timeout
(
GLOBAL_SCRIPT_TIMEOUT
)
elif
world
.
LETTUCE_SELENIUM_CLIENT
==
'grid'
:
world
.
browser
=
Browser
(
...
...
@@ -142,7 +143,7 @@ def initial_setup(server):
browser
=
settings
.
SELENIUM_GRID
.
get
(
'BROWSER'
),
)
world
.
absorb
(
30
,
'IMPLICIT_WAIT'
)
world
.
browser
.
driver
.
set_script_timeout
(
10
)
world
.
browser
.
driver
.
set_script_timeout
(
GLOBAL_SCRIPT_TIMEOUT
)
else
:
raise
Exception
(
"Unknown selenium client '{}'"
.
format
(
world
.
LETTUCE_SELENIUM_CLIENT
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment