Ejemplo n.º 1
0
def delete_all_scopes():
    """ Remove All Scopes    """
    logger.info("Remove All Scopes")
    navigate()
    #    get the list of scopes
    if not CommonOperationScopes.wait_for_scopes_load():
        logger.info("There is no scopes")
        return True
    scopes = CommonOperationScopes.get_scope_list()
    for scope in scopes:
        if VerifyScopes.verify_scope_existed(scope, 5, False) is True:
            select_scope(scope)
            DeleteScopes.click_delete_scope_button()
            DeleteScopes.click_yes_delete_button()
            DeleteScopes.wait_delete_scope_dialog_close()
            #    VerifyScopes.verify_scope_deleted(scope)
            VerifyScopes.verify_scope_not_existed(scope)
    return True
Ejemplo n.º 2
0
def get_scopes_list():
    logger.info("Getting all scopes list")
    navigate()
    return CommonOperationScopes.get_scope_list()