Пример #1
0
def change_password(step, original_pw, first_pw, second_pw):
    Logger.log("change password")
    (world.result, world.output,
     world.stderr) = quixplorer.run("admin", [
         "action2=chpwd", "oldpwd=" + original_pw, "newpwd1=" + first_pw,
         "newpwd2=" + second_pw
     ])
    assert world.result == 0, "run failed (%d):\n%s" % (world.result, "".join(
        world.output))
Пример #2
0
def execute_module(step, module, from_dir):
    (world.result,
     world.output) = quixplorer.run("%s/%s.php" % (from_dir, module))
Пример #3
0
def run_quixplorer(step, function):
    (world.result, world.output, world.stderr) = quixplorer.run(function)
    assert world.result == 0, "run failed:\n%s\n%s" % (world.output,
                                                       world.stderr)
Пример #4
0
def run_quixplorer_with(step, function, arg):
    Logger.log("run_width")
    (world.result, world.output,
     world.stderr) = quixplorer.run(function, [arg])
    assert world.result == 0, "run failed (%d):\n%s" % (world.result, "".join(
        world.output))
Пример #5
0
def logout(step):
    (world.result, world.output, world.stderr) = quixplorer.run("logout")
Пример #6
0
def login(step, user, passwd):
    (world.result, world.output,
     world.stderr) = quixplorer.run("login",
                                    ["p_user="******"p_pass=" + passwd])
Пример #7
0
def login(step, user, passwd):
    (world.result, world.output, world.stderr ) = quixplorer.run("login", [ "p_user="******"p_pass="+passwd ])
Пример #8
0
def execute_module(step, module, from_dir):
    (world.result, world.output) = quixplorer.run( "%s/%s.php" % ( from_dir, module ) )
Пример #9
0
def change_password(step, original_pw, first_pw, second_pw):
    Logger.log("change password")
    (world.result, world.output, world.stderr ) = quixplorer.run("admin", [ "action2=chpwd", "oldpwd="+original_pw, "newpwd1="+first_pw, "newpwd2="+second_pw ])
    assert world.result == 0, "run failed (%d):\n%s" %  (world.result, "".join(world.output))
Пример #10
0
def run_quixplorer(step, function):
    (world.result, world.output, world.stderr) = quixplorer.run(function)
    assert world.result == 0, "run failed:\n%s\n%s" % (world.output, world.stderr )
Пример #11
0
def run_quixplorer_with(step, function, arg):
    Logger.log("run_width")
    (world.result, world.output, world.stderr ) = quixplorer.run(function, [ arg ])
    assert world.result == 0, "run failed (%d):\n%s" %  (world.result, "".join(world.output))
Пример #12
0
def logout(step):
    (world.result, world.output, world.stderr ) = quixplorer.run("logout");
Пример #13
0
def I_login(step, login_data):
    (world.result, world.output, world.stderr ) = quixplorer.run('login', [ login_data ])
    assert world.result == 0, "login failed: %d\n%s" % (exitcode, p.stderr.read())
Пример #14
0
def I_list(step, list_data):
    (world.result, world.output, world.stderr ) = quixplorer.run('list', [ list_data])
    assert world.result == 0, "list failed: %d\n%s" % (exitcode, p.stderr.read())