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