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