def assert_check_message_in_log_table_view(step, script_output, serv_as):
    if script_output:
        for line in script_output.split(';'):
            external_step = "script output contains '{result}' in {server}".format(
                result=line.strip(), server=serv_as)
            LOG.debug('Run external step: %s' % external_step)
            step.when(external_step)
Beispiel #2
0
def script_executing(step, script_type, script_name, execute_type, serv_as):
    if script_type:
        script_type = ' %s ' % script_type.strip()
    else:
        script_type = ' '
    external_step = "I execute{script_type}script '{script_name}' {execute_type} on {server}".format(
        script_type=script_type,
        script_name=script_name,
        execute_type=execute_type,
        server=serv_as)
    LOG.debug('Run external step: %s' % external_step)
    step.when(external_step)
Beispiel #3
0
 def complex_things(step):
     step.when('I do something simple')
Beispiel #4
0
 def complex_things(step):
     step.when("I do something simple")
def and_i_identify_my_user_credentials(step, provider):
    username = world.cfg("username", provider)
    step.when('I provide parameter "%s" as "%s"' % ("username", username))
def and_i_provide_coordinates(step, lat, long):
    step.when('I provide parameter "%s" as "%s"' % ("lat", lat))
    step.when('I provide parameter "%s" as "%s"' % ("lng", long))
def and_i_identify_my_user_credentials(step, provider):
    username = world.cfg("username", provider)
    step.when('I provide parameter "%s" as "%s"' % ("username", username))
def and_i_provide_coordinates(step, lat, long):
    step.when('I provide parameter "%s" as "%s"' % ("lat", lat))
    step.when('I provide parameter "%s" as "%s"' % ("lng", long))
def when_i_log_in_and_log_out_of_the_xivo_client_as_group1_pass_group2_10_times(step, username, password, count):
    for i in range(int(count)):
        step.when('I log in the XiVO Client as "%s", pass "%s"' % (username, password))
        time.sleep(2)
        step.when('I log out of the XiVO Client')