Exemple #1
0
        broken_links = BrokenLinkTest()
        broken_links.setReportOnly(args["smoke_report"])
        broken_links.setDepth(args["link_depth"])
        broken_links.setThreshold(args["threshold"])
        broken_links.setUser(args["user_password"])
        suite = unittest.TestSuite()
        suite.addTest(broken_links)
    except NameError as msg:
        from s3 import s3_debug
        s3_debug("%s, unable to run the smoke tests." % msg)
        pass

elif args["suite"] == "roles":
    # Run Roles tests
    from tests.roles.test_roles import *
    suite = test_roles()

elif args["suite"] == "complete":
    # Run all Selenium Tests & Smoke Tests
    browser = config.browser = active_driver()
    browser.implicitly_wait(config.timeout)
    browser_open = True
    suite = loadAllTests()
    try:
        from tests.smoke import *
        broken_links = BrokenLinkTest()
        broken_links.setReportOnly(args["smoke_report"])
        broken_links.setDepth(args["link_depth"])
        broken_links.setThreshold(args["threshold"])
        broken_links.setUser(args["user_password"])
        suite.addTest(broken_links)
Exemple #2
0
        broken_links.setThreshold(args["threshold"])
        broken_links.setUser(args["user_password"])
        suite = unittest.TestSuite()
        suite.addTest(broken_links)
    except NameError as msg:
        from s3 import s3_debug

        s3_debug("%s, unable to run the smoke tests." % msg)
        pass

elif args["suite"] == "roles":

    from tests.roles.test_roles import *

    # suite = unittest.TestSuite()
    suite = test_roles()

    # test_role = TestRole()
    # test_role.set(org = "Org-A",
    #              user = "******",
    #              row_num = 0,
    #              method = "create",
    #              table = "org_organisation",
    #              c = None,
    #              f = None,
    #              record_id = 42,
    #              uuid = "uuid",
    #              permission = True)
    # suite.addTest(test_role)
    # suite = unittest.TestLoader().loadTestsFromTestCase(globals()[args["auth"]])