<s> from framework . utils import OWTFLogger <EOL> from framework . dependency_management . dependency_resolver import ServiceLocator <EOL> import time <EOL> import logging <EOL> DESCRIPTION = "<STR_LIT>" <EOL> def run ( PluginInfo ) : <EOL> Content = DESCRIPTION + "<STR_LIT>" <EOL> Iteration = <NUM_LIT:1> <EOL> plugin_params = ServiceLocator . get_component ( "<STR_LIT>" ) <EOL> config = ServiceLocator . get_component ( "<STR_LIT>" ) <EOL> for Args in plugin_params . GetArgs ( { <EOL> '<STR_LIT>' : DESCRIPTION , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : config . Get ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' : config . Get ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' : config . Get ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : config . Get ( <EOL> '<STR_LIT>' ) , <EOL> '<STR_LIT>' : config . Get ( <EOL> '<STR_LIT>' ) , <EOL> '<STR_LIT>' : config . Get ( <EOL> '<STR_LIT>' ) , <EOL> '<STR_LIT>' : config . Get ( <EOL> '<STR_LIT>' ) , <EOL> '<STR_LIT>' : config . Get ( <EOL> '<STR_LIT>' ) , <EOL> '<STR_LIT>' : config . Get ( '<STR_LIT>' ) <EOL> } } , PluginInfo ) : <EOL> plugin_params . SetConfig ( Args ) <EOL> REUSE_CONNECTION = ( Args [ '<STR_LIT>' ] == '<STR_LIT:yes>' ) <EOL> DELAY_BETWEEN_COMMANDS = Args [ '<STR_LIT>' ] <EOL> if Iteration == <NUM_LIT:1> or not REUSE_CONNECTION : <EOL> ServiceLocator . get_component ( "<STR_LIT>" ) . Open ( { <EOL> '<STR_LIT>' : config . GetResources ( '<STR_LIT>' ) <EOL> , '<STR_LIT>' : None <EOL> , '<STR_LIT>' : Args [ '<STR_LIT>' ] <EOL> , '<STR_LIT>' : Args [ <EOL> '<STR_LIT>' ] <EOL> , '<STR_LIT>' : Args [ <EOL> '<STR_LIT>' ] <EOL> , '<STR_LIT>' : Args [ '<STR_LIT>' ] <EOL> , '<STR_LIT>' : Args [ '<STR_LIT>' ] <EOL> } , PluginInfo ) <EOL> else : <EOL> OWTFLogger . log ( "<STR_LIT>" ) <EOL> ServiceLocator . get_component ( "<STR_LIT>" ) . Run ( <EOL> Args [ '<STR_LIT>' ] + Args [ '<STR_LIT>' ] + Args [ '<STR_LIT>' ] ) <EOL> OWTFLogger . log ( "<STR_LIT>" + DELAY_BETWEEN_COMMANDS + "<STR_LIT>" ) <EOL> time . sleep ( int ( DELAY_BETWEEN_COMMANDS ) ) <EOL> if not REUSE_CONNECTION : <EOL> ServiceLocator . get_component ( "<STR_LIT>" ) . Close ( PluginInfo ) <EOL> Iteration += <NUM_LIT:1> <EOL> if not ServiceLocator . get_component ( "<STR_LIT>" ) . IsClosed ( ) : <EOL> ServiceLocator . get_component ( "<STR_LIT>" ) . Close ( PluginInfo ) <EOL> return Content </s>
