Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7 from brome-hq/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jf-parent committed Oct 10, 2015
2 parents 61b8efe + 7305f5c commit 183d387
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
11 changes: 10 additions & 1 deletion brome/core/model/basetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
import pickle
from urlparse import urlparse

try:
from castro import Castro
except ImportError:
print "Castro not installed => pip install castro"
Castro = None

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
#from browsermobproxy import Server

from castro import Castro
from brome.core.model.utils import *
from brome.core.model.stateful import Stateful
from brome.core.model.proxy_driver import ProxyDriver
Expand Down Expand Up @@ -90,6 +95,10 @@ def __init__(self, runner, name, index, browser_config, test_batch_id):
session.close()

def start_video_recording(self):
if not Castro:
self.warning_log("Castro is not installed so session recording won't work")
return False

if self._browser_config.get('record_session'):
node_ip = self.pdriver.get_ip_of_node()

Expand Down
17 changes: 0 additions & 17 deletions brome/unittest/test_brome/test_file.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
- wait_until_present
- is_present
- assert_present
- wait_until_not_visible
- proxy_element_list
- is_visible
- select_all
- selector
- find_hidden
- highlight
- assert_not_visible
- assert_visible
- dnd
- wait_until_not_present
- click
- assert_text_equal_and_not_equal
- assert_not_present
- wait_until_visible
2 changes: 1 addition & 1 deletion brome/webserver/templates/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{% if current_user and current_user.is_authenticated() %}
<ul class="nav navbar-nav navbar-right">
<li>
<p class="navbar-text"><a class="navbar-link" href="{{ url_for('admin.members') }}">Logged in as {{ current_user.username }}</a></p>
<p class="navbar-text">Logged in as {{ current_user.username }}</p>
</li>
<li><a class="navbar-link" href="{{ url_for('public.logout') }}"><i class="fa fa-sign-out"></i></a></li>

Expand Down
2 changes: 1 addition & 1 deletion brome/webserver/templates/public/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="body-content">
<div class="row">
<h1>About</h1>
<p>This template was created by <a href="http://github.com/sloria/">Steven Loria</a> for use with the <a href="http://github.com/audreyr/cookiecutter/">cookiecutter</a> package by <a href="http://github.com/audreyr/">Audrey Roy</a>.</p>
<p>Brome webserver was created by <a href="http://github.com/brome-hq/">Brome-HQ</a></p>
</div>
</div>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion brome/webserver/templates/public/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<h1>Welcome to the Brome webserver</h1>

<p><a href="" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
<p><a href="http://brome.readthedocs.org/en/" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
</div><!-- /.jumbotron -->

<div class="body-content">
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
wheel
tornado
castro
netifaces
selenium
decorator
Expand Down

0 comments on commit 183d387

Please sign in to comment.