예제 #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
파일: steps.py 프로젝트: Sferg/quixplorer
def login(step, user, passwd):
    (world.result, world.output, world.stderr ) = quixplorer.run("login", [ "p_user="******"p_pass="+passwd ])
예제 #8
0
파일: steps.py 프로젝트: Sferg/quixplorer
def execute_module(step, module, from_dir):
    (world.result, world.output) = quixplorer.run( "%s/%s.php" % ( from_dir, module ) )
예제 #9
0
파일: steps.py 프로젝트: Sferg/quixplorer
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
파일: steps.py 프로젝트: Sferg/quixplorer
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
파일: steps.py 프로젝트: Sferg/quixplorer
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
파일: steps.py 프로젝트: Sferg/quixplorer
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())