Exemplo n.º 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))
Exemplo n.º 2
0
def execute_module(step, module, from_dir):
    (world.result,
     world.output) = quixplorer.run("%s/%s.php" % (from_dir, module))
Exemplo n.º 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)
Exemplo n.º 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))
Exemplo n.º 5
0
def logout(step):
    (world.result, world.output, world.stderr) = quixplorer.run("logout")
Exemplo n.º 6
0
def login(step, user, passwd):
    (world.result, world.output,
     world.stderr) = quixplorer.run("login",
                                    ["p_user="******"p_pass=" + passwd])
Exemplo n.º 7
0
def login(step, user, passwd):
    (world.result, world.output, world.stderr ) = quixplorer.run("login", [ "p_user="******"p_pass="+passwd ])
Exemplo n.º 8
0
def execute_module(step, module, from_dir):
    (world.result, world.output) = quixplorer.run( "%s/%s.php" % ( from_dir, module ) )
Exemplo n.º 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))
Exemplo n.º 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 )
Exemplo n.º 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))
Exemplo n.º 12
0
def logout(step):
    (world.result, world.output, world.stderr ) = quixplorer.run("logout");
Exemplo n.º 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())
Exemplo n.º 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())