Exemple #1
0
    def __init__(self,
                 name: str = 'JDBC Request',
                 data_source: str = '',
                 query_type: QueryType = QueryType.SELECT_STATEMENT,
                 query: str = '',
                 parameter_values: Union[List[str], None] = None,
                 parameter_types: Union[List[str], None] = None,
                 variable_names: str = '',
                 result_variable_name: str = '',
                 query_timeout: Union[int, None] = None,
                 handle_result_set: ResultSetHandler = ResultSetHandler.
                 STORE_AS_STRING,
                 comments: str = '',
                 is_enabled: bool = True):

        IncludesElements.__init__(self)
        BasicSampler.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
        self.handle_result_set = handle_result_set
        self.result_variable_name = result_variable_name
        self.variable_names = variable_names
        self.parameter_types = parameter_types
        self.parameter_values = parameter_values
        self.query_timeout = query_timeout
        self.query = query
        self.query_type = query_type
        self.data_source = data_source
Exemple #2
0
 def __init__(
         self,
         *,
         name: str = 'Flow Control Action',
         logical_action_on_thread: ActionOnThread = ActionOnThread.PAUSE,
         pause: int = 0,
         target: Target = Target.CURRENT_THREAD,
         comments: str = '',
         is_enabled: bool = True):
     BasicSampler.__init__(self,
                           name=name,
                           comments=comments,
                           is_enabled=is_enabled)
     self.logical_action_on_thread = logical_action_on_thread
     self.pause = pause
     self.target = target
Exemple #3
0
    def __init__(self,
                 *,
                 display_props: bool = False,
                 display_vars: bool = True,
                 display_sys_props: bool = False,
                 name: str = 'Debug Sampler',
                 comments: str = '',
                 is_enabled: bool = True):
        """

        :type source_type: object
        """
        self.display_props = display_props
        self.display_vars = display_vars
        self.display_sys_props = display_sys_props
        BasicSampler.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
Exemple #4
0
    def __init__(self,
                 *,
                 resetInterpreter: bool = False,
                 filename: str = '',
                 parameters: str = '',
                 query: str = '',
                 name: str = 'BeanShell Sampler',
                 comments: str = '',
                 is_enabled: bool = True):
        """

        :type source_type: object
        """
        self.resetInterpreter = resetInterpreter
        self.filename = filename
        self.parameters = parameters
        self.query = query
        BasicSampler.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
Exemple #5
0
    def __init__(self,
                 *,
                 cache_key: bool = True,
                 filename: str = '',
                 parameters: str = '',
                 script: str = '',
                 script_language: ScriptLanguage = ScriptLanguage.GROOVY,
                 name: str = 'JSR223 Sampler',
                 comments: str = '',
                 is_enabled: bool = True):
        """

        :type source_type: object
        """
        JSR223.__init__(self,
                        cache_key=cache_key,
                        filename=filename,
                        parameters=parameters,
                        script=script,
                        script_language=script_language)
        BasicSampler.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
Exemple #6
0
    def __init__(
            self,
            *,
            name: str = 'HTTP Request',
            host: str = '',
            path: str = '/',
            method: Method = Method.GET,
            protocol: Protocol = Protocol.HTTP,
            port: Union[int, None] = None,
            content_encoding: str = '',
            auto_redirect: bool = False,
            keep_alive: bool = True,
            do_multipart_post: bool = False,
            browser_comp_headers: bool = False,
            # Advanced scope
            implementation: Implement = Implement.NONE,
            connect_timeout: Union[int, None] = None,
            response_timeout: Union[int, None] = None,
            retrieve_all_emb_resources: bool = False,
            parallel_downloads: bool = False,
            parallel_downloads_no: Union[int, None] = None,
            url_must_match: str = '',
            source_type: Source = Source.HOSTNAME,
            source_address: str = '',
            proxy_scheme: str = '',
            proxy_host: str = '',
            proxy_port: Union[int, None] = None,
            proxy_username: str = '',
            proxy_password: str = '',
            comments: str = '',
            is_enabled: bool = True):
        """

        :type source_type: object
        """
        IncludesElements.__init__(self)
        BasicSampler.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
        self.host = host
        self.path = path
        self.method = method
        self.protocol = protocol
        self.port = port
        self.content_encoding = content_encoding
        self.auto_redirect = auto_redirect
        self.keep_alive = keep_alive
        self.do_multipart_post = do_multipart_post
        self.browser_comp_headers = browser_comp_headers
        self.implementation = implementation
        self.connect_timeout = connect_timeout
        self.response_timeout = response_timeout
        self.retrieve_all_emb_resources = retrieve_all_emb_resources
        self.parallel_downloads = parallel_downloads
        self.parallel_downloads_no = parallel_downloads_no
        self.url_must_match = url_must_match
        self.source_type = source_type
        self.source_address = source_address
        self.proxy_scheme = proxy_scheme
        self.proxy_host = proxy_host
        self.proxy_port = proxy_port
        self.proxy_username = proxy_username
        self.proxy_password = proxy_password
        self.variables = ''
        self.text = ''
        self._upload_file_list: List[FileUpload] = []
        self._user_defined_variables: List[UserDefinedVariables] = []