Configuration

Base URLhttps://mozillians-dev.allizom.org
Selenium APIrc
Selenium Serverhttp://localhost:4444
BrowserFirefox 7 on Mac OS X
Timeout180000
Capture Network TrafficFalse
Credentials/Users/webqa/webqa-credentials/mozillians.yaml

Summary

19 tests ran in 158 seconds.
12 passed, 0 skipped, 2 failed, 0 errors.
3 expected failures, 2 unexpected passes.

Results

ResultClassNameDurationLinks
Passedtest_about_page.TestAboutPagetest_about_page0sHTML, Screenshot
Passedtest_account.TestAccounttest_login_logout0sHTML, Screenshot
Passedtest_account.TestAccounttest_login_with_invalid_ldap_credentials0sHTML, Screenshot
Passedtest_invite.TestInvitetest_inviting_an_invalid_email_address0sHTML, Screenshot
Passedtest_profile.TestProfiletest_profile_deletion_confirmation0sHTML, Screenshot
Passedtest_account.TestAccounttest_login_with_invalid_credentials0sHTML, Screenshot
Passedtest_profile.TestProfiletest_edit_profile_information0sHTML, Screenshot
Passedtest_account.TestAccounttest_reset_password0sHTML, Screenshot
Failedtest_invite.TestInvitetest_invite0sHTML, Screenshot
self = <test_invite.TestInvite instance at 0x10a0849e0>
mozwebqa = <mozwebqa.mozwebqa.TestSetup instance at 0x10a2f3a28>

def test_invite(self, mozwebqa):
home_page = MozilliansStartPage(mozwebqa)
login_page = home_page.click_login_link()
login_page.log_in()
invite_page = home_page.click_invite_link()
Assert.true(invite_page.is_csrf_token_present)
mail_address = "validuser@example.com"
invite_success_page = invite_page.invite(mail_address)
> Assert.true(invite_success_page.is_mail_address_present(mail_address))

test_invite.py:62:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <class unittestzero.Assert at 0x10a2db110>, first = False, msg = None

@classmethod
def true(self, first, msg=None):
> assert first is True, msg
E assert False is True

.env/lib/python2.6/site-packages/unittestzero.py:53: AssertionError
Failedtest_profile.TestProfiletest_change_password0sHTML, Screenshot
self = <test_profile.TestProfile instance at 0x10a07c1b8>
mozwebqa = <mozwebqa.mozwebqa.TestSetup instance at 0x10a2fb3f8>

def test_change_password(self, mozwebqa):
home_page = MozilliansStartPage(mozwebqa)
login_page = home_page.click_login_link()
login_page.log_in()
profile_page = home_page.click_profile_link()
edit_profile_page = profile_page.click_edit_my_profile_button()
change_password_page = edit_profile_page.click_change_password_link()
> Assert.true(change_password_page.is_old_password_field_present)

test_profile.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <class unittestzero.Assert at 0x10a2e3110>, first = False, msg = None

@classmethod
def true(self, first, msg=None):
> assert first is True, msg
E assert False is True

.env/lib/python2.6/site-packages/unittestzero.py:53: AssertionError
Passedtest_search.TestSearchtest_search_function_only_present_for_vouched_users0sHTML, Screenshot
XPassedtest_profile.TestProfiletest_creating_profile_without_checking_privacy_policy_checkbox0sHTML, Screenshot
XFailedtest_profile.TestProfiletest_creating_profile_with_non_matching_passwords0sHTML, Screenshot
self = <test_profile.TestProfile instance at 0x10a3eb0e0>
mozwebqa = <mozwebqa.mozwebqa.TestSetup instance at 0x10a084908>

@xfail(reason="Bug 692271 - Registration with invalid form data redirects to login page in some cases")
def test_creating_profile_with_non_matching_passwords(self, mozwebqa):
home_page = MozilliansStartPage(mozwebqa)
register_page = home_page.click_join_us_link()
> register_page.set_email("invalidpassword@example.com")

test_profile.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <mozillians_page.MozilliansCreateProfilePage object at 0x10a3bbfd0>
email_string = 'invalidpassword@example.com'

def set_email(self, email_string):
> self.sel.type(self._email_field_locator, email_string)

mozillians_page.py:381:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.selenium.selenium object at 0x10a3ec550>
locator = 'id=id_email', value = 'invalidpassword@example.com'

def type(self,locator,value):
"""
Sets the value of an input field, as though you typed it in.


Can also be used to set the value of combo boxes, check boxes, etc. In these cases,
value should be the value of the option selected, not the visible text.


'locator' is an element locator
'value' is the value to type
"""
> self.do_command("type", [locator,value,])

.env/lib/python2.6/site-packages/selenium/selenium.py:596:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.selenium.selenium object at 0x10a3ec550>, verb = 'type'
args = ['id=id_email', 'invalidpassword@example.com']

def do_command(self, verb, args):
conn = httplib.HTTPConnection(self.host, self.port)
try:
body = u'cmd=' + urllib.quote_plus(unicode(verb).encode('utf-8'))
for i in range(len(args)):
body += '&' + unicode(i+1) + '=' + \
urllib.quote_plus(unicode(args[i]).encode('utf-8'))
if (None != self.sessionId):
body += "&sessionId=" + unicode(self.sessionId)
headers = {
"Content-Type":
"application/x-www-form-urlencoded; charset=utf-8"
}
conn.request("POST", "/selenium-server/driver/", body, headers)

response = conn.getresponse()
data = unicode(response.read(), "UTF-8")
if (not data.startswith('OK')):
> raise Exception, data
E Exception: ERROR: Element id=id_email not found

.env/lib/python2.6/site-packages/selenium/selenium.py:217: Exception
XPassedtest_profile.TestProfiletest_creating_profile_with_invalid_email_address0sHTML, Screenshot
Passedtest_search.TestSearchtest_that_search_returns_results_for_irc_nickname0sHTML, Screenshot
XFailedtest_profile.TestProfiletest_profile_creation0sHTML, Screenshot
self = <test_profile.TestProfile instance at 0x10a628ab8>
mozwebqa = <mozwebqa.mozwebqa.TestSetup instance at 0x10a6c2488>

@xfail(reason="Bug 692271 - Registration with invalid form data redirects to login page in some cases")
def test_profile_creation(self, mozwebqa):
home_page = MozilliansStartPage(mozwebqa)
register_page = home_page.click_join_us_link()
register_page.set_email("newvaliduserwith@example.com")
register_page.set_password("newpassword")
register_page.set_first_name("New")
register_page.set_last_name("MozilliansUser")
register_page.check_privacy_policy_checkbox()
login_page = register_page.click_create_account_button()
> Assert.true(login_page.is_account_needs_verification_message_present)

test_profile.py:142:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <class unittestzero.Assert at 0x10a7fea10>, first = False, msg = None

@classmethod
def true(self, first, msg=None):
> assert first is True, msg
E assert False is True

.env/lib/python2.6/site-packages/unittestzero.py:53: AssertionError
Passedtest_search.TestSearchtest_that_search_returns_results_for_first_name0sHTML, Screenshot
XFailedtest_search.TestSearchtest_search_for_too_many_results0sHTML, Screenshot
self = <test_search.TestSearch instance at 0x10a084098>
mozwebqa = <mozwebqa.mozwebqa.TestSetup instance at 0x10a2cdf80>

@xfail(reason="Too few accounts on stage and trunk to be triggering this message")
def test_search_for_too_many_results(self, mozwebqa):
home_page = MozilliansStartPage(mozwebqa)
login_page = home_page.click_login_link()
login_page.log_in()
search_page = home_page.search_for(".")
> Assert.true(search_page.too_many_results_message_shown)

test_search.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <class unittestzero.Assert at 0x10a2db110>, first = False, msg = None

@classmethod
def true(self, first, msg=None):
> assert first is True, msg
E assert False is True

.env/lib/python2.6/site-packages/unittestzero.py:53: AssertionError
Passedtest_search.TestSearchtest_that_search_returns_results_for_email_substring0sHTML, Screenshot