Skip to content

Commit

Permalink
[qacode] upgrade tests, not working appveyor CI
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto netzulo committed Feb 25, 2018
1 parent 319f028 commit 1c68231
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/001_functionals/suite_007_pagelogin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_001_page_login_instance(self):
self.url_login,
self.url_logged,
selectors=self.selectors)
assert self.url_login in self.bot.curr_driver.current_url
self.assertFalse(page.is_logged)
except PageException as err:
self.bot.log.error(err.args)
raise Exception(err)
Expand All @@ -100,7 +100,7 @@ def test_003_login_ok(self):
self.url_login,
self.url_logged,
selectors=self.selectors)
assert self.url_login in self.bot.curr_driver.current_url
self.assertFalse(page.is_logged)
page.login(self.creed_user, self.creed_pass)
self.assertTrue(page.is_logged)
self.log.debug(self.msg_logged)
Expand All @@ -113,20 +113,20 @@ def test_004_login_baduser(self):
self.url_login,
self.url_logged,
selectors=self.selectors)
assert self.url_login in self.bot.curr_driver.current_url
self.assertFalse(page.is_logged)
page.login(" ", self.creed_pass)
self.assertFalse(page.is_logged)
self.log.debug(self.msg_fail_ok)

@skipIf(True, "working at local, failing at CI appveyor, ill check later")
@skipIf(SKIP_PAGES, SKIP_PAGES_MSG)
def test_005_login_emptypass(self):
"""Testcase: test_005_login_emptypass"""
page = PageLogin(
self.bot,
self.url_login,
self.url_logged,
selectors=self.selectors)
assert self.url_login in self.bot.curr_driver.current_url
self.assertFalse(page.is_logged)
page.login(self.creed_user, " ")
self.assertFalse(page.is_logged)
self.log.debug(self.msg_fail_ok)
Expand All @@ -139,7 +139,7 @@ def test_006_login_creedsempty(self):
self.url_login,
self.url_logged,
selectors=self.selectors)
assert self.url_login in self.bot.curr_driver.current_url
self.assertFalse(page.is_logged)
page.login(" ", " ")
assert self.url_logged in self.bot.curr_driver.current_url
self.assertFalse(page.is_logged)
self.log.debug(self.msg_fail_ok)

0 comments on commit 1c68231

Please sign in to comment.