code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
import re from robot import utils from .formatters import _DataFileFormatter class HtmlFormatter(_DataFileFormatter): _split_multiline_doc = False def _format_row(self, row, table=None): row = self._pad(self._escape_consecutive_whitespace(row), table) if self._is_documentation_row(row): ...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/writer/htmlformatter.py
0.491212
0.333422
htmlformatter.py
pypi
import re from .aligners import FirstColumnAligner, ColumnAligner, NullAligner from .dataextractor import DataExtractor from .rowsplitter import RowSplitter class _DataFileFormatter(object): _whitespace = re.compile('\s{2,}') _split_multiline_doc = True def __init__(self, column_count): self._s...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/writer/formatters.py
0.565059
0.278846
formatters.py
pypi
from six import PY3 import os import sys from robot.errors import DataError from .filewriters import FileWriter class DataFileWriter(object): """Object to write parsed test data file objects back to disk.""" def __init__(self, **options): """ :param `**options`: A :class:`.WritingContext`...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/writer/datafilewriter.py
0.764716
0.398465
datafilewriter.py
pypi
from six import PY3 import sys from robot.utils import Matcher, NormalizedDict, is_string, setter, unic class Tags(object): def __init__(self, tags=None): self._tags = tags @setter def _tags(self, tags): if not tags: return () if is_string(tags): tags =...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/model/tags.py
0.52829
0.210198
tags.py
pypi
import re from itertools import chain from robot.utils import NormalizedDict from .criticality import Criticality from .stats import TagStat, CombinedTagStat from .tags import TagPatterns class TagStatistics(object): """Container for tag statistics. """ def __init__(self, combined_stats): #: ...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/model/tagstatistics.py
0.755907
0.23304
tagstatistics.py
pypi
from robot import utils from robot.errors import DataError from .visitor import SuiteVisitor class SuiteConfigurer(SuiteVisitor): def __init__(self, name=None, doc=None, metadata=None, set_tags=None, include_tags=None, exclude_tags=None, include_suites=None, include_tests=None...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/model/configurer.py
0.702224
0.165054
configurer.py
pypi
from robot.utils import setter from .tags import TagPatterns from .namepatterns import SuiteNamePatterns, TestNamePatterns from .visitor import SuiteVisitor class EmptySuiteRemover(SuiteVisitor): def end_suite(self, suite): suite.suites = [s for s in suite.suites if s.test_count] def visit_test(se...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/model/filter.py
0.629661
0.16896
filter.py
pypi
class SuiteVisitor(object): """Abstract class to ease traversing through the test suite structure. See the :mod:`module level <robot.model.visitor>` documentation for more information and an example. """ def visit_suite(self, suite): """Implements traversing through the suite and its direc...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/model/visitor.py
0.905994
0.599514
visitor.py
pypi
describe("Searching by tags", function () { it("should find tags by name", function () { expect(model.containsTag(['name'], 'name')).toBeTruthy(); expect(model.containsTag(['x', 'y', 'z'], 'y')).toBeTruthy(); expect(model.containsTag([], 'name')).not.toBeTruthy(); expect(model.conta...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/utest/webcontent/spec/ContainsTag.js
0.9281
0.788868
ContainsTag.js
pypi
describe("Text decoder", function () { function multiplyString(string, times) { var result = ""; for (var i = 0; i < times; i++){ result += string; } return result; } it("should have empty string with id 0", function () { var strings = window.testdata.St...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/utest/webcontent/spec/ParsingSpec.js
0.767123
0.813238
ParsingSpec.js
pypi
window.output = {}; describe("Statistics", function () { var totals = [ {label: "Critical Tests", pass: 1, fail: 1}, {label: "All Tests", pass: 2, fail: 3} ]; var tags = [ {label: "first tag", pass: 3, fail: 0, ...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/utest/webcontent/spec/StatisticsSpec.js
0.635675
0.697171
StatisticsSpec.js
pypi
describe("Testing Matcher", function () { it("should match equal string", function () { expect(util.Matcher('xxx').matches('xxx')).toBeTruthy(); expect(util.Matcher('xxx').matches('yyy')).not.toBeTruthy(); }); it("should match case and space sensitively", function () { var matches ...
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/utest/webcontent/spec/UtilSpec.js
0.907896
0.849971
UtilSpec.js
pypi
from robot.libraries.BuiltIn import BuiltIn from QConnectBase.utils import * import QConnectBase.constants as constants import logging import os class ColorFormatter(logging.Formatter): """ Custom formatter class for setting log color. """ grey = "\x1b[38;21m" yellow = "\x1b[33;21m" red = "\x1b[31;21m"...
/robotframework-qconnect-base-1.1.3.tar.gz/robotframework-qconnect-base-1.1.3/QConnectBase/qlogger.py
0.83868
0.151498
qlogger.py
pypi
from __future__ import with_statement from QConnectBase.tcp.tcp_base import BrokenConnError, TCPBase, TCPBaseServer, TCPBaseClient class RawTCPBase(TCPBase): """ Base class for a raw tcp connection. """ def _read(self): """ Actual method to read message from a tcp connection. **Returns:** ...
/robotframework-qconnect-base-1.1.3.tar.gz/robotframework-qconnect-base-1.1.3/QConnectBase/tcp/raw/raw_tcp.py
0.774242
0.153994
raw_tcp.py
pypi
from robot.libraries import BuiltIn from .keywordgroup import KeywordGroup BUILTIN = BuiltIn.BuiltIn() class _RunOnFailureKeywords(KeywordGroup): def __init__(self): self._run_on_failure_keyword = None self._running_on_failure_routine = False # Public def _register_keyword_to_run_on_fai...
/robotframework-qtlibrary-1.0.2.tar.gz/robotframework-qtlibrary-1.0.2/src/QTLibrary/keywords/_runonfailure.py
0.780412
0.197019
_runonfailure.py
pypi
import json import logging from typing import Any, Dict, List, Optional, Tuple, Type, Union from urllib.parse import quote import pika import requests from pika import BaseConnection from pika.adapters.blocking_connection import BlockingChannel from pika.connection import Parameters from pika.frame import Method as F...
/robotframework-rabbitmq-3.0.0.tar.gz/robotframework-rabbitmq-3.0.0/src/RabbitMq.py
0.886923
0.150778
RabbitMq.py
pypi
import select import socket import six import robot from robot.libraries.BuiltIn import BuiltIn from pyrad import packet, dictionary, tools # Default receive timeout TIMEOUT = 10.0 # Default Radius dictionary file DEFAULT_DICT = 'dictionary' class RadiusLibrary(object): """``RadiusLibrary`` is a test library pr...
/robotframework-radius-0.3.1.tar.gz/robotframework-radius-0.3.1/RadiusLibrary/radiuslibrary.py
0.807233
0.360517
radiuslibrary.py
pypi
class ConditionParser(object): def __init__(self, condition): import re logicals = re.split('(&&|\|\|)', condition) self.conditions = self._get_individual_conditions(logicals) def _get_individual_conditions(self, logicals): conditions = [] for element in logicals: ...
/robotframework_rammbock_py3-0.4.0.2-py3-none-any.whl/Rammbock/condition_parser.py
0.450118
0.175079
condition_parser.py
pypi
import sys from six import itervalues if sys.version_info < (3,): try: from thread import get_ident as _get_ident except ImportError: from dummy_thread import get_ident as _get_ident try: from collections import KeysView, ValuesView, ItemsView except ImportError: pass ...
/robotframework_rammbock_py3-0.4.0.2-py3-none-any.whl/Rammbock/ordered_dict.py
0.424889
0.220007
ordered_dict.py
pypi
import os from robot.libraries.BuiltIn import BuiltIn from .core import RammbockCore from .message_sequence import SeqdiagGenerator from .version import VERSION class Rammbock(RammbockCore): """Rammbock is a binary protocol testing library for Robot Test Automation Framework. To use Rammbock you need to fi...
/robotframework_rammbock_py3-0.4.0.2-py3-none-any.whl/Rammbock/rammbock.py
0.711631
0.487429
rammbock.py
pypi
from math import ceil import math import sys import re from Rammbock.message import Field, BinaryField from Rammbock.binary_tools import to_bin_of_length, to_0xhex, to_tbcd_binary, \ to_tbcd_value, to_bin, to_twos_comp, to_int from robot.api import logger from robot.libraries.BuiltIn import BuiltIn from robot.uti...
/robotframework_rammbock_py3-0.4.0.2-py3-none-any.whl/Rammbock/templates/primitives.py
0.510496
0.212477
primitives.py
pypi
try: from thread import get_ident as _get_ident except ImportError: from dummy_thread import get_ident as _get_ident try: from _abcoll import KeysView, ValuesView, ItemsView except ImportError: pass class OrderedDict(dict): 'Dictionary that remembers insertion order' # An inherited dict maps...
/robotframework-rammbock-0.4.0.1.tar.gz/robotframework-rammbock-0.4.0.1/src/Rammbock/ordered_dict.py
0.628065
0.30106
ordered_dict.py
pypi
import binascii import struct try: if bin(0): pass except NameError, name_error: def bin(value): """ Support for Python 2.5 Based on a recipe by Benjamin Wiley Sittler. http://code.activestate.com/recipes/219300-format-integer-as-binary-string/ """ if va...
/robotframework-rammbock-0.4.0.1.tar.gz/robotframework-rammbock-0.4.0.1/src/Rammbock/binary_tools.py
0.451568
0.281799
binary_tools.py
pypi
import os from robot.libraries.BuiltIn import BuiltIn from .core import RammbockCore from .message_sequence import SeqdiagGenerator from .version import VERSION class Rammbock(RammbockCore): """Rammbock is a binary protocol testing library for Robot Test Automation Framework. To use Rammbock you need to fi...
/robotframework-rammbock-0.4.0.1.tar.gz/robotframework-rammbock-0.4.0.1/src/Rammbock/rammbock.py
0.711631
0.487429
rammbock.py
pypi
from math import ceil import re from Rammbock.message import (Field, Union, Message, Header, List, Struct, BinaryContainer, BinaryField, TBCDContainer, Conditional, Bag) from message_stream import MessageStream from primitives import Length, Binary, TBCD, Ba...
/robotframework-rammbock-0.4.0.1.tar.gz/robotframework-rammbock-0.4.0.1/src/Rammbock/templates/containers.py
0.441914
0.177775
containers.py
pypi
from math import ceil import math import sys import re from Rammbock.message import Field, BinaryField from Rammbock.binary_tools import to_bin_of_length, to_0xhex, to_tbcd_binary, \ to_tbcd_value, to_bin, to_twos_comp, to_int class _TemplateField(object): def __init__(self, name, default_value): s...
/robotframework-rammbock-0.4.0.1.tar.gz/robotframework-rammbock-0.4.0.1/src/Rammbock/templates/primitives.py
0.465387
0.201401
primitives.py
pypi
from robot.api import logger from robot.api.deco import keyword import redis from redis.sentinel import Sentinel from redis.cluster import RedisCluster as RedisCluster from redis.cluster import ClusterNode __author__ = 'Traitanit Huangsri' __email__ = 'traitanit.hua@gmail.com' class RedisLibraryKeywords(object): ...
/robotframework-redislibrary-1.2.5.tar.gz/robotframework-redislibrary-1.2.5/RedisLibrary/RedisLibraryKeywords.py
0.86378
0.356503
RedisLibraryKeywords.py
pypi
from abc import ABC from robot.utils import is_truthy from RemoteMonitorLibrary.model.chart_abstract import ChartAbstract from RemoteMonitorLibrary.model.configuration import Configuration from RemoteMonitorLibrary.model.runner_model import Parser, plugin_integration_abstract, plugin_runner_abstract,\ FlowCommand...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/api/plugins.py
0.768038
0.201067
plugins.py
pypi
from RemoteMonitorLibrary.model.db_schema import Table, Field, FieldType, PrimaryKeys, Query, ForeignKey class TraceHost(Table): def __init__(self): super().__init__(name='TraceHost') self.add_field(Field('HOST_ID', FieldType.Int, PrimaryKeys(True))) self.add_field(Field('HostName', FieldT...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/api/db.py
0.655557
0.162579
db.py
pypi
import re from typing import Iterable from SSHLibrary import SSHLibrary as RSSHLibrary from RemoteMonitorLibrary import plugins_modules from RemoteMonitorLibrary.api import model, db, services from RemoteMonitorLibrary.api.plugins import * from RemoteMonitorLibrary.model.errors import RunnerError from RemoteMonitorLib...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/plugins_modules/sshlibrary_plugin.py
0.617859
0.172834
sshlibrary_plugin.py
pypi
__doc__ = """# first time setup CentOS - for Ubuntu/Debian and others see https://www.cyberciti.biz/tips/compiling-linux-kernel-26.html curl https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.11.10.tar.xz -o kernel.tar.xz unxz kernel.tar.xz tar xvf kernel.tar cd linux-5.11.10/ cp -v /boot/config-$(uname -r) .config...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/plugins_modules/time_plugin.py
0.489992
0.155559
time_plugin.py
pypi
import os from datetime import datetime, timedelta from time import sleep from robot.api.deco import keyword from robot.utils import is_truthy, timestr_to_secs, secs_to_timestr from RemoteMonitorLibrary.api import db, services from RemoteMonitorLibrary.api.tools import GlobalErrors from RemoteMonitorLibrary.library.l...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/library/connection_keywords.py
0.560012
0.151749
connection_keywords.py
pypi
from collections import namedtuple from enum import Enum from typing import List, Iterable, Tuple, AnyStr from robot.utils import DotDict from RemoteMonitorLibrary.utils import sql class FieldType(Enum): Int = 'INTEGER' Text = 'TEXT' Real = 'REAL' class PrimaryKeys: def __init__(self, auto_increme...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/model/db_schema.py
0.895547
0.157202
db_schema.py
pypi
import warnings from abc import ABC, abstractmethod from datetime import datetime from typing import Iterable, Tuple, Any from RemoteMonitorLibrary.utils.logger_helper import logger warnings.filterwarnings("ignore") INPUT_FMT = '%Y-%m-%d %H:%M:%S' OUTPUT_FMT = '%H:%M:%S' def time_string_reformat_cb(from_format, to...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/model/chart_abstract.py
0.704058
0.269136
chart_abstract.py
pypi
from typing import Dict, AnyStr, Tuple from robot.utils import DotDict from RemoteMonitorLibrary.utils.sys_utils import get_error_info class Configuration: def __init__(self, schema: Dict[AnyStr, Tuple], **kwargs): self.schema = schema self._parameters = DotDict() err = [] for at...
/robotframework_remote_monitor_library-2.8.6-py3-none-any.whl/RemoteMonitorLibrary/model/configuration.py
0.692122
0.24083
configuration.py
pypi
# Robot Framework Remote Runner [![Build Status](https://github.com/chrisBrookes93/robotframework-remoterunner/workflows/CI/badge.svg?branch=main)](https://github.com/chrisBrookes93/robotframework-remoterunner/actions) [![PyPI version](https://badge.fury.io/py/robotframework-remoterunner.svg)](https://badge.fury.io/py...
/robotframework-remoterunner-2.0.0.tar.gz/robotframework-remoterunner-2.0.0/README.md
0.679072
0.881155
README.md
pypi
import os import logging import re import six.moves.xmlrpc_client as xmlrpc_client import six from robot.api import TestSuiteBuilder from robot.libraries import STDLIBS from robot.utils.robotpath import find_file from rfremoterunner.utils import normalize_xmlrpc_address, calculate_ts_parent_path, read_file_from_disk ...
/robotframework-remoterunner-2.0.0.tar.gz/robotframework-remoterunner-2.0.0/src/rfremoterunner/rf_client.py
0.733165
0.239185
rf_client.py
pypi
import argparse import os ROBOT_RUN_ARGS = ['loglevel', 'include', 'test', 'exclude', 'suite', 'extension'] class ExecutorArgumentParser: def __init__(self, args): """ Constructor for ExecutorArgumentParser :param args: Arguments to process (probably stdin) :type args: list ...
/robotframework-remoterunner-2.0.0.tar.gz/robotframework-remoterunner-2.0.0/src/rfremoterunner/executor_argparser.py
0.795817
0.267375
executor_argparser.py
pypi
from robot.api import logger from .model import LogMessage def write(msg, level="INFO", html=False, attachment=None): """Writes the message to the log file using the given level. Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` (default since RF 2.9.1), ``WARN``, and ``ERROR`` (new in RF 2.9). Additio...
/robotframework_reportportal_eci-1.1.0-py3-none-any.whl/robotframework_reportportal/logger.py
0.799168
0.403743
logger.py
pypi
from datetime import datetime from time import time from typing import Any, Callable, Dict, List, Optional, Union from reportportal_client.errors import ResponseError as ReportPortalResponseError from reportportal_client.service import ReportPortalService, uri_join from requests.exceptions import ConnectionError from...
/robotframework-reportportal-ng-2.0.0.tar.gz/robotframework-reportportal-ng-2.0.0/reportportal_listener/service.py
0.932014
0.240552
service.py
pypi
import os import re from typing import Any, Dict, Union from html import unescape from mimetypes import guess_type from robot.libraries.BuiltIn import BuiltIn # Patterns for editing HTML messages. HTML_MESSAGE_PATTERN = re.compile(r"<details><summary>(?P<summary>.*)</summary><p>(?P<message>.*)</p></details>", re.S) ...
/robotframework-reportportal-ng-2.0.0.tar.gz/robotframework-reportportal-ng-2.0.0/reportportal_listener/message.py
0.862872
0.158044
message.py
pypi
import os from typing import Dict, Optional from robot.api import logger from .model import Test class Report(object): """Class which helps to build link to Robot Framework report.""" def __init__(self) -> None: """Initialization.""" self._report_link: Optional[str] = None @property ...
/robotframework-reportportal-ng-2.0.0.tar.gz/robotframework-reportportal-ng-2.0.0/reportportal_listener/report.py
0.854095
0.161816
report.py
pypi
from typing import Any, List, Optional from robot.libraries.BuiltIn import BuiltIn def get_variable(name: str, default: Any = None) -> Any: """Gets the Robot Framework variable. Args: name: variable name. default: default value. Returns: The value of the variable, otherwise, th...
/robotframework-reportportal-ng-2.0.0.tar.gz/robotframework-reportportal-ng-2.0.0/reportportal_listener/variables.py
0.946498
0.40987
variables.py
pypi
from typing import Any, Dict, List, Optional, Type from robot.api import ResultVisitor from robot.result.model import TestCase, TestSuite from .service import RobotService class RobotFrameworkReportModifier(ResultVisitor): """Class for modifying Robot Framework report.""" def __init__(self, robot_service:...
/robotframework-reportportal-ng-2.0.0.tar.gz/robotframework-reportportal-ng-2.0.0/reportportal_listener/report_modifier.py
0.927969
0.313499
report_modifier.py
pypi
from typing import Any, Dict, List, Optional, Union class Suite(object): """Object describes suite.""" def __init__(self, attributes: Dict[str, Any]) -> None: """Suite initialization. Args: attributes: suite attributes from Robot Framework. """ super(Suite, self)...
/robotframework-reportportal-ng-2.0.0.tar.gz/robotframework-reportportal-ng-2.0.0/reportportal_listener/model.py
0.951165
0.213039
model.py
pypi
import logging from os import environ from typing import Any, Dict, List, Optional, Union from robot.api import ExecutionResult from robot.libraries.BuiltIn import BuiltIn from robot.utils import get_error_message from .model import Keyword, Test, Suite from .service import RobotService from .variables import Varia...
/robotframework-reportportal-ng-2.0.0.tar.gz/robotframework-reportportal-ng-2.0.0/reportportal_listener/__init__.py
0.877207
0.165357
__init__.py
pypi
from robot.api import logger from .model import LogMessage def write(msg, level='INFO', html=False, attachment=None, launch_log=False): """Write the message to the log file using the given level. Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` (default since RF 2.9.1), ``WARN``, and ``ERROR`` (new i...
/robotframework_reportportal_updated-1.1.10-py3-none-any.whl/robotframework_reportportal_updated/logger.py
0.819857
0.404802
logger.py
pypi
import logging from robot.api import ResultVisitor _stack = [] corrections = {} class TimeVisitor(ResultVisitor): @staticmethod def _correct_starts(o, node_class): """ starttime wants to be the oldest start time of its children. only correcting null starttime. """ i...
/robotframework_reportportal_updated-1.1.10-py3-none-any.whl/robotframework_reportportal_updated/time_visitor.py
0.458349
0.230941
time_visitor.py
pypi
from robot.api import logger from .model import LogMessage def write(msg, level='INFO', html=False, attachment=None, launch_log=False): """Write the message to the log file using the given level. Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` (default since RF 2.9.1), ``WARN``, and ``ERROR`` (new i...
/robotframework_reportportal-5.4.0-py3-none-any.whl/robotframework_reportportal/logger.py
0.819857
0.404802
logger.py
pypi
import logging from robot.api import ResultVisitor _stack = [] corrections = {} class TimeVisitor(ResultVisitor): @staticmethod def _correct_starts(o, node_class): """ starttime wants to be the oldest start time of its children. only correcting null starttime. """ i...
/robotframework_reportportal-5.4.0-py3-none-any.whl/robotframework_reportportal/time_visitor.py
0.458349
0.230941
time_visitor.py
pypi
import json import sys import jsonschema from robot.api.deco import keyword from robot.errors import RobotError from robot.libraries.BuiltIn import BuiltIn from robot.libraries.Collections import Collections from robot.libraries.OperatingSystem import OperatingSystem from robot.utils import DotDict def _format_respo...
/robotframework-requests-extension-0.0.6.tar.gz/robotframework-requests-extension-0.0.6/src/RequestsExtension/ApiLibKeywords.py
0.556159
0.190536
ApiLibKeywords.py
pypi
import requests import robot from RequestsLibrary import log from RequestsLibrary.compat import urljoin from RequestsLibrary.utils import is_file_descriptor, warn_if_equal_symbol_in_url_session_less from robot.api.deco import keyword from robot.libraries.BuiltIn import BuiltIn class RequestsKeywords(object): ROBO...
/robotframework_requests-1.0a4-py3-none-any.whl/RequestsLibrary/RequestsKeywords.py
0.741393
0.188828
RequestsKeywords.py
pypi
from .RequestsOnSessionKeywords import RequestsOnSessionKeywords from .version import VERSION """ ** Inheritance structure ** Not exactly a best practice but forced by the fact that RF libraries are instance of a class. RequestsKeywords (common requests and sessionless keywords) |_ SessionKeywords (session creati...
/robotframework_requests-1.0a4-py3-none-any.whl/RequestsLibrary/__init__.py
0.819713
0.378
__init__.py
pypi
from robot.api.deco import keyword from RequestsLibrary.utils import warn_if_equal_symbol_in_url_on_session from .SessionKeywords import SessionKeywords class RequestsOnSessionKeywords(SessionKeywords): @keyword("GET On Session") @warn_if_equal_symbol_in_url_on_session def get_on_session(self, alias, ur...
/robotframework_requests-1.0a4-py3-none-any.whl/RequestsLibrary/RequestsOnSessionKeywords.py
0.895715
0.296785
RequestsOnSessionKeywords.py
pypi
from robot.api import logger from typing import List import pandas as pd class DynamicTestCases(object): """A Robot Framework test library to dynamically add test cases to the current suite.""" ROBOT_LISTENER_API_VERSION = 3 ROBOT_LIBRARY_SCOPE = 'TEST SUITE' def __init__(self): self.ROBOT_LI...
/robotframework_requestspro-1.2.9-py3-none-any.whl/RequestsProLibrary/DynamicTestCases.py
0.861363
0.416441
DynamicTestCases.py
pypi
import json import copy import pandas as pd import ast from RequestsLibrary import RequestsLibrary from urllib3.util import Retry from robot.api import logger class RequestsProKeywords(RequestsLibrary): ROBOT_LIBRARY_SCOPE = 'Global' # DEFAULT_RETRY_METHOD_LIST = list(copy.copy(Retry.DEFAULT_METHOD_WHITELIST)...
/robotframework_requestspro-1.2.9-py3-none-any.whl/RequestsProLibrary/RequestsProKeywords.py
0.442877
0.155367
RequestsProKeywords.py
pypi
from .request_info import request_info from .libcommons import libcommons from .data_manager import data_manager class rest_keywords: ''' RESTLibrary provides a feature-rich and extensible infrastructure which is required for making any REST/HTTP call along with all the possible range of features which one mig...
/robotframework-restlibrary-1.0.tar.gz/robotframework-restlibrary-1.0/src/RESTLibrary/rest_keywords.py
0.752104
0.399987
rest_keywords.py
pypi
import re from robot.api import ExecutionResult, ResultVisitor, logger from robot.api.deco import library from robot.libraries.BuiltIn import BuiltIn from robot.utils.robottypes import is_truthy duplicate_test_pattern = re.compile( r"Multiple .*? with name '(?P<test>.*?)' executed in.*? suite '(?P<suite>.*?)'." )...
/robotframework-retryfailed-0.2.0.tar.gz/robotframework-retryfailed-0.2.0/src/RetryFailed/retry_failed.py
0.419767
0.181155
retry_failed.py
pypi
import inspect import wx from .. import utils from ..action.actioninfo import ActionInfo from ..publish import PUBLISHER class Plugin(object): """Entry point to RIDE plugin API -- all plugins must extend this class. Plugins can use the helper methods implemented in this class to interact with the core...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/pluginapi/plugin.py
0.785966
0.362828
plugin.py
pypi
from robotide import utils from robotide.spec.iteminfo import LocalVariableInfo def local_namespace(controller, namespace, row=None): if row is not None: # can be 0! return LocalRowNamespace(controller, namespace, row) return LocalMacroNamespace(controller, namespace) class LocalMacroNamespace(obj...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/namespace/local_namespace.py
0.52342
0.202542
local_namespace.py
pypi
from functools import total_ordering from robotide import robotapi class SuggestionSource(object): def __init__(self, plugin, controller): self._plugin = plugin self._controller = controller def get_suggestions(self, value, row=None): if self._controller: try: ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/namespace/suggesters.py
0.679179
0.165829
suggesters.py
pypi
import re import wx from ..widgets import ImageProvider from .shortcut import Shortcut def action_info_collection(data, event_handler, container=None): """Parses the ``data`` into a list of `ActionInfo` and `SeparatorInfo` objects. The data is parsed based on the simple DSL documented below. :Paramet...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/action/actioninfo.py
0.844826
0.441191
actioninfo.py
pypi
import wx from wx import grid, Colour from .clipboard import ClipboardHandler from ..context import IS_WINDOWS from ..utils import unescape_newlines_and_whitespaces from ..widgets import PopupCreator, PopupMenuItems class GridEditor(grid.Grid): _col_add_threshold = 6 _popup_items = [ 'Insert Cells\t...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/editor/gridbase.py
0.469034
0.186391
gridbase.py
pypi
import wx.grid class CellRenderer(wx.grid.GridCellRenderer): """ GridCellAutoWrapStringRenderer() This class may be used to format string data in a cell. """ def __init__(self, default_width, max_width, auto_fit, word_wrap=True): wx.grid.GridCellRenderer.__init__(self) self.defa...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/editor/cellrenderer.py
0.739328
0.176974
cellrenderer.py
pypi
import wx from .editorcreator import EditorCreator from ..pluginapi import (Plugin, action_info_collection, TreeAwarePluginMixin) from ..publish import (RideTreeSelection, RideNotebookTabChanging, RideNotebookTabChanged, RideSaving) from ..publish.messages import RideDataFileRemoved from ..widgets import PopupCreator...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/editor/__init__.py
0.514156
0.185984
__init__.py
pypi
from ..robotapi import ALIAS_MARKER def get_help(title): return '\n'.join(_HELPS[title]) _HELPS = {} _EXAMPLES = { 'ESCAPE': "Possible pipes in the value must be escaped with a backslash like '\\|'.", 'TAG': "Separate tags with a pipe character like 'tag | second tag | 3rd'.", 'FIXTURE': "Separate p...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/editor/dialoghelps.py
0.559771
0.321074
dialoghelps.py
pypi
import os import wx from .. import robotapi, utils class _AbstractValidator(wx.Validator): """Implements methods to keep wxPython happy and some helper methods.""" def Clone(self): return self.__class__() def TransferFromWindow(self): return True def TransferToWindow(self): ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/validators/__init__.py
0.696784
0.156298
__init__.py
pypi
import sys import inspect import types from pubsub import pub from typing import Type, Callable from ..publish.messages import RideMessage class _Publisher: def __init__(self): self.publisher = pub.getDefaultPublisher() self.publisher.setListenerExcHandler(ListenerExceptionHandler()) @stati...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/publish/publisher.py
0.578091
0.22194
publisher.py
pypi
import inspect import sys import traceback from .. import utils class RideMessage: """Base class for all messages sent by RIDE. :CVariables: topic Topic of this message. If not overridden, value is got from the class name by lowercasing it, separating words with a dot and dropping poss...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/publish/messages.py
0.703651
0.274832
messages.py
pypi
try: unicode except NameError: unicode = str # Return codes from Robot and Rebot. # RC below 250 is the number of failed critical tests and exactly 250 # means that number or more such failures. INFO_PRINTED = 251 # --help or --version DATA_ERROR = 252 # Invalid data or cli args STOPPED_BY_USER = ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/errors.py
0.779783
0.317135
errors.py
pypi
from robotide.lib.robot.utils import is_list_like, is_dict_like, is_string, unic class ListenerArguments(object): def __init__(self, arguments): self._arguments = arguments self._version2 = None self._version3 = None def get_arguments(self, version): if version == 2: ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/output/listenerarguments.py
0.679072
0.192255
listenerarguments.py
pypi
from robotide.lib.robot.errors import TimeoutError from robotide.lib.robot.utils import get_error_details, py2to3 from .listenerarguments import ListenerArguments from .logger import LOGGER @py2to3 class ListenerMethods(object): def __init__(self, method_name, listeners): self._methods = [] sel...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/output/listenermethods.py
0.682679
0.161353
listenermethods.py
pypi
from robotide.lib.robot.errors import DataError from robotide.lib.robot.model import Message as BaseMessage from robotide.lib.robot.utils import get_timestamp, is_unicode, unic LEVELS = { 'NONE' : 6, 'FAIL' : 5, 'ERROR' : 4, 'WARN' : 3, 'INFO' : 2, 'DEBUG' : 1, 'TRACE' : 0, } class AbstractLogger...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/output/loggerhelper.py
0.621771
0.170957
loggerhelper.py
pypi
from robotide.lib.robot.errors import DataError, VariableError from robotide.lib.robot.utils import (DotDict, is_dict_like, is_list_like, NormalizedDict, type_name) from .isvar import validate_var from .notfound import variable_not_found from .tablesetter import VariableTableValueBase class...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/variables/store.py
0.504639
0.195057
store.py
pypi
import os import tempfile from robotide.lib.robot.errors import DataError from robotide.lib.robot.output import LOGGER from robotide.lib.robot.utils import abspath, find_file, get_error_details, NormalizedDict from .variables import Variables class VariableScopes(object): def __init__(self, settings): ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/variables/scopes.py
0.499756
0.169097
scopes.py
pypi
from contextlib import contextmanager from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import DotDict, is_string, split_from_equals, unic from .isvar import validate_var from .splitter import VariableSplitter class VariableTableSetter(object): def __init__(self, store): se...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/variables/tablesetter.py
0.599368
0.276849
tablesetter.py
pypi
from robotide.lib.robot.errors import DataError, VariableError from robotide.lib.robot.output import LOGGER from robotide.lib.robot.utils import (escape, is_dict_like, is_list_like, is_string, type_name, unescape, unic) from .splitter import VariableSplitter class VariableReplacer(object): ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/variables/replacer.py
0.706798
0.241758
replacer.py
pypi
from robotide.lib.robot.utils import is_string, py2to3 class VariableSplitter(object): def __init__(self, string, identifiers='$@%&*'): self.identifier = None self.base = None self.items = [] self.start = -1 self.end = -1 self._identifiers = identifiers se...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/variables/splitter.py
0.483405
0.224757
splitter.py
pypi
import re from robotide.lib.robot.errors import (DataError, ExecutionStatus, HandlerExecutionFailed, VariableError) from robotide.lib.robot.utils import (ErrorDetails, format_assign_message, get_error_message, is_number, is_string, prepr, type_name) class VariableAssignment(obj...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/variables/assigner.py
0.532425
0.163612
assigner.py
pypi
import logging from robotide.lib.robot.output import librarylogger from robotide.lib.robot.running.context import EXECUTION_CONTEXTS def write(msg, level='INFO', html=False): """Writes the message to the log file using the given level. Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` (default since RF ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/api/logger.py
0.627837
0.342599
logger.py
pypi
from __future__ import division from robotide.lib.robot.result import ResultVisitor from robotide.lib.robot.utils import XmlWriter class XUnitWriter(object): def __init__(self, execution_result, skip_noncritical): self._execution_result = execution_result self._skip_noncritical = skip_noncritic...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/reporting/xunitwriter.py
0.796055
0.207857
xunitwriter.py
pypi
from robotide.lib.robot.conf import RebotSettings from robotide.lib.robot.errors import DataError from robotide.lib.robot.model import ModelModifier from robotide.lib.robot.output import LOGGER from robotide.lib.robot.result import ExecutionResult, Result from robotide.lib.robot.utils import unic from .jsmodelbuilder...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/reporting/resultwriter.py
0.803868
0.178974
resultwriter.py
pypi
from robotide.lib.robot.utils import is_string, py2to3, unicode from .comments import Comment from ..version import ALIAS_MARKER @py2to3 class Setting(object): def __init__(self, setting_name, parent=None, comment=None): self.setting_name = setting_name self.parent = parent self._set_in...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/parsing/settings.py
0.799325
0.185394
settings.py
pypi
from contextlib import contextmanager from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import unic class ExecutionContexts(object): def __init__(self): self._contexts = [] @property def current(self): return self._contexts[-1] if self._contexts else None ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/context.py
0.61057
0.202207
context.py
pypi
from robotide.lib.robot.errors import (ExecutionFailed, ExecutionFailures, ExecutionPassed, ExitForLoop, ContinueForLoop, DataError) from robotide.lib.robot.result import Keyword as KeywordResult from robotide.lib.robot.utils import (format_assign_message, frange, get_error_message, ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/steprunner.py
0.520984
0.269045
steprunner.py
pypi
from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import (get_error_message, is_java_method, is_bytes, is_unicode, is_tuple, py2to3) from .arguments import JavaArgumentParser, PythonArgumentParser def no_dynamic_method(*args): pass @py2to3 class _DynamicMethod(object): _undersc...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/dynamicmethods.py
0.760473
0.225929
dynamicmethods.py
pypi
from robotide.lib.robot import model from robotide.lib.robot.conf import RobotSettings from robotide.lib.robot.output import LOGGER, Output, pyloggingconf from robotide.lib.robot.utils import setter from .steprunner import StepRunner from .randomizer import Randomizer class Keyword(model.Keyword): """Represents ...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/model.py
0.890978
0.346873
model.py
pypi
import os.path import warnings from robotide.lib.robot.errors import DataError from robotide.lib.robot.output import LOGGER from robotide.lib.robot.parsing import TestData, ResourceFile as ResourceData, TEST_EXTENSIONS from robotide.lib.robot.running.defaults import TestDefaults from robotide.lib.robot.utils import a...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/builder.py
0.609757
0.370681
builder.py
pypi
from java.lang import Byte, Short, Integer, Long, Boolean, Float, Double from robotide.lib.robot.variables import contains_var from robotide.lib.robot.utils import is_string, is_list_like class JavaArgumentCoercer(object): def __init__(self, signatures, argspec): self._argspec = argspec self._c...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/arguments/javaargumentcoercer.py
0.789031
0.226698
javaargumentcoercer.py
pypi
from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import plural_or_not, seq2str from robotide.lib.robot.variables import is_list_var class ArgumentValidator(object): def __init__(self, argspec): """:type argspec: :py:class:`robot.running.arguments.ArgumentSpec`""" sel...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/arguments/argumentvalidator.py
0.746693
0.283633
argumentvalidator.py
pypi
from robotide.lib.robot.errors import DataError class ArgumentMapper(object): def __init__(self, argspec): """:type argspec: :py:class:`robot.running.arguments.ArgumentSpec`""" self._argspec = argspec def map(self, positional, named, replace_defaults=True): template = KeywordCallTem...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/arguments/argumentmapper.py
0.80038
0.242834
argumentmapper.py
pypi
import re from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import get_error_message, py2to3 from robotide.lib.robot.variables import VariableIterator @py2to3 class EmbeddedArguments(object): def __init__(self, name): if '${' in name: self.name, self.args = Embed...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/arguments/embedded.py
0.511473
0.180974
embedded.py
pypi
from robotide.lib.robot.errors import DataError from robotide.lib.robot.utils import is_string, is_dict_like, split_from_equals from robotide.lib.robot.variables import VariableSplitter from .argumentvalidator import ArgumentValidator class ArgumentResolver(object): def __init__(self, argspec, resolve_named=Tr...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/arguments/argumentresolver.py
0.805058
0.194139
argumentresolver.py
pypi
from ast import literal_eval from collections import OrderedDict try: from collections import abc except ImportError: # Python 2 import collections as abc from datetime import datetime, date, timedelta from decimal import InvalidOperation, Decimal try: from enum import Enum except ImportError: # Stan...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/running/arguments/typeconverters.py
0.796886
0.224884
typeconverters.py
pypi
from robotide.lib.robot.errors import DataError class XmlElementHandler(object): def __init__(self, execution_result, root_handler=None): self._stack = [(root_handler or RootHandler(), execution_result)] def start(self, elem): handler, result = self._stack[-1] handler = handler.get_...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/result/xmlelementhandlers.py
0.629775
0.178472
xmlelementhandlers.py
pypi
from robotide.lib.robot.errors import DataError from robotide.lib.robot.model import SuiteVisitor, TagPattern from robotide.lib.robot.utils import Matcher, plural_or_not def KeywordRemover(how): upper = how.upper() if upper.startswith('NAME:'): return ByNameKeywordRemover(pattern=how[5:]) if uppe...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/result/keywordremover.py
0.542621
0.179351
keywordremover.py
pypi
from robotide.lib.robot.errors import DataError from robotide.lib.robot.model import Statistics from .executionerrors import ExecutionErrors from .model import TestSuite class Result(object): """Test execution results. Can be created based on XML output files using the :func:`~.resultbuilder.ExecutionR...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/result/executionresult.py
0.906068
0.373676
executionresult.py
pypi
from robotide.lib.robot import model from robotide.lib.robot.utils import is_string, secs_to_timestamp, timestamp_to_secs class SuiteConfigurer(model.SuiteConfigurer): """Result suite configured. Calls suite's :meth:`~robot.result.testsuite.TestSuite.remove_keywords`, :meth:`~robot.result.testsuite....
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/result/configurer.py
0.832169
0.386242
configurer.py
pypi
from robotide.lib.robot.model import SuiteVisitor class ResultVisitor(SuiteVisitor): """Abstract class to conveniently travel :class:`~robot.result.executionresult.Result` objects. A visitor implementation can be given to the :meth:`visit` method of a result object. This will cause the result object to b...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/result/visitor.py
0.84317
0.747524
visitor.py
pypi
from itertools import chain from robotide.lib.robot.model import TotalStatisticsBuilder, Criticality from robotide.lib.robot import model, utils from .configurer import SuiteConfigurer from .messagefilter import MessageFilter from .keywordremover import KeywordRemover from .suiteteardownfailed import (SuiteTeardownFa...
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/result/model.py
0.691185
0.153105
model.py
pypi