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 |
|---|---|---|---|---|---|
# robotframework-openweathermap
[](https://www.gnu.org/licenses/gpl-3.0) [](https://github.com/psf/black) [:
return decoder.memo[oid]
def _decode_float(decoder, msg):
return float(msg)
def _decode_int(decoder, msg):
return int(msg)
def _decode_str(decoder, msg):
return msg
def _decode(message_definition, level_diff=0):
names = []
name... | /robotframework-output-stream-0.0.6.tar.gz/robotframework-output-stream-0.0.6/robot_out_stream/_decoder.py | 0.535584 | 0.285456 | _decoder.py | pypi |
from robot.api import logger
from junitparser import Error, Failure, JUnitXml
from junitparser.junitparser import TestSuite as JUnitXmlTestSuite
from .base_handler import BaseHandler
from .errors import JUnitHandlerException, SubprocessException
from .utils import run_command_line, validate_path
class JUnitHandler(B... | /robotframework_oxygen-0.2-py3-none-any.whl/oxygen/junit.py | 0.710226 | 0.268925 | junit.py | pypi |
from argparse import ArgumentParser
from datetime import datetime, timedelta
from inspect import getdoc, signature
from io import StringIO
from pathlib import Path
from traceback import format_exception
from robot.api import ExecutionResult, ResultVisitor, ResultWriter
from robot.libraries.BuiltIn import BuiltIn
from ... | /robotframework_oxygen-0.2-py3-none-any.whl/oxygen/oxygen.py | 0.690663 | 0.18924 | oxygen.py | pypi |
from robot.api import logger
from .base_handler import BaseHandler
from .errors import GatlingHandlerException, SubprocessException
from .utils import run_command_line, validate_path
class GatlingHandler(BaseHandler):
def run_gatling(self, result_file, command, check_return_code=False, **env):
'''Run Gat... | /robotframework_oxygen-0.2-py3-none-any.whl/oxygen/gatling.py | 0.729616 | 0.382141 | gatling.py | pypi |
from datetime import datetime
from datetime import timedelta
from datetime import timezone
from robot.result.model import (Keyword as RobotResultKeyword,
TestCase as RobotResultTest,
TestSuite as RobotResultSuite)
from robot.model import BodyItem
from ro... | /robotframework_oxygen-0.2-py3-none-any.whl/oxygen/robot4_interface.py | 0.707203 | 0.340047 | robot4_interface.py | pypi |
from datetime import datetime
from datetime import timedelta
from datetime import timezone
from robot.result.model import (Keyword as RobotResultKeyword,
Message as RobotResultMessage,
TestCase as RobotResultTest,
TestSuite ... | /robotframework_oxygen-0.2-py3-none-any.whl/oxygen/robot3_interface.py | 0.702734 | 0.302327 | robot3_interface.py | pypi |
# Pabot
[Русская версия](README_ru.md)
[中文版](README_zh.md)
[](https://pypi.python.org/pypi/robotframework-pabot)
[](http://pepy.tech/project/robotframework-pabot)
<img src="https://raw.githubuse... | /robotframework-pabot-2.16.0.tar.gz/robotframework-pabot-2.16.0/README.md | 0.444565 | 0.669785 | README.md | pypi |
import multiprocessing
import re
from typing import Dict, List, Optional, Tuple
from robot import __version__ as ROBOT_VERSION
from robot.errors import DataError
from robot.run import USAGE
from robot.utils import ArgumentParser
from .execution_items import (
DynamicTestItem,
ExecutionItem,
GroupEndItem,
... | /robotframework-pabot-2.16.0.tar.gz/robotframework-pabot-2.16.0/src/pabot/arguments.py | 0.453262 | 0.228071 | arguments.py | pypi |
from __future__ import absolute_import, print_function
import os
import re
from robot import __version__ as ROBOT_VERSION
from robot.api import ExecutionResult
from robot.conf import RobotSettings
from robot.errors import DataError
from robot.result.executionresult import CombinedResult
try:
from robot.result im... | /robotframework-pabot-2.16.0.tar.gz/robotframework-pabot-2.16.0/src/pabot/result_merger.py | 0.492432 | 0.175503 | result_merger.py | pypi |
from functools import total_ordering
from typing import Dict, List, Optional, Tuple, Union
from robot import __version__ as ROBOT_VERSION
from robot.errors import DataError
from robot.utils import PY2, is_unicode
@total_ordering
class ExecutionItem(object):
isWait = False
type = None # type: str
name =... | /robotframework-pabot-2.16.0.tar.gz/robotframework-pabot-2.16.0/src/pabot/execution_items.py | 0.671794 | 0.203371 | execution_items.py | pypi |
from __future__ import absolute_import
from robot.errors import RobotError
try:
import configparser # type: ignore
except:
import ConfigParser as configparser # type: ignore
# Support Python 2
import threading
import time
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple
from robot.... | /robotframework-pabot-2.16.0.tar.gz/robotframework-pabot-2.16.0/src/pabot/pabotlib.py | 0.750278 | 0.160694 | pabotlib.py | pypi |
from __future__ import print_function, absolute_import, unicode_literals
import six
import robot.api
from robot.libraries.BuiltIn import BuiltIn
from .pageobject import PageObject
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
class PageObjectLibraryKeywords(object)... | /robotframework_pageobjectlibrary-1.1-py3-none-any.whl/PageObjectLibrary/keywords.py | 0.710729 | 0.152064 | keywords.py | pypi |
from __future__ import absolute_import, unicode_literals
from abc import ABCMeta
from contextlib import contextmanager
import warnings
import robot.api
from robot.libraries.BuiltIn import BuiltIn
from selenium.webdriver.support.expected_conditions import staleness_of
from selenium.webdriver.support.ui import WebDriv... | /robotframework_pageobjectlibrary-1.1-py3-none-any.whl/PageObjectLibrary/pageobject.py | 0.764364 | 0.165694 | pageobject.py | pypi |
from __future__ import absolute_import, unicode_literals
from .keywords import PageObjectLibraryKeywords
from .pageobject import PageObject
from .version import __version__
class PageObjectLibrary(PageObjectLibraryKeywords):
"""This project is hosted on github in the repository
[https://github.com/boakley/r... | /robotframework_pageobjectlibrary-1.1-py3-none-any.whl/PageObjectLibrary/__init__.py | 0.84556 | 0.450118 | __init__.py | pypi |
import logging
import sys
import robot.api.logger
import robot.output.pyloggingconf as robot_logging_conf
from optionhandler import OptionHandler
from context import Context
class Logger(object):
"""Responsible for abstracting Robot logging and logging outside of Robot.
"""
def __init__(self):
s... | /robotframework-pageobjects-1.3.3.tar.gz/robotframework-pageobjects-1.3.3/robotpageobjects/abstractedlogger.py | 0.473414 | 0.16043 | abstractedlogger.py | pypi |
import re
from playwright.sync_api import expect
from robotlibcore import keyword
from .ui_context import UIContext
from .utils import Robot
class DropdownHandler(UIContext):
@keyword('dropdown should be enabled')
def dropdown_should_be_enabled(self, locator):
expect(self.get_element(locator)).to_be_... | /robotframework-playerlibrary-1.0.3.tar.gz/robotframework-playerlibrary-1.0.3/src/PlayerLibrary/dropdown_handler.py | 0.629775 | 0.286693 | dropdown_handler.py | pypi |
from playwright.sync_api import expect
from robotlibcore import keyword
from .utils import random_number_chars
from .ui_context import UIContext
from .utils import Robot
class TextboxHandler(UIContext):
@keyword('input into')
def input_into(self, locator, text, clear=True, force=False):
element = sel... | /robotframework-playerlibrary-1.0.3.tar.gz/robotframework-playerlibrary-1.0.3/src/PlayerLibrary/textbox_handler.py | 0.534127 | 0.199522 | textbox_handler.py | pypi |
import base64
from playwright.sync_api import expect
from robotlibcore import keyword
from .utils import Robot
from .ui_context import UIContext
from .base_context import BaseContext
from .custom_locator import *
class PageHandler(UIContext):
@keyword('page title should be')
def page_title_should_be(sel... | /robotframework-playerlibrary-1.0.3.tar.gz/robotframework-playerlibrary-1.0.3/src/PlayerLibrary/page_handler.py | 0.603231 | 0.184418 | page_handler.py | pypi |
from datetime import datetime
from playwright.sync_api import expect
from robotlibcore import keyword
from .ui_context import UIContext
from .utils import Robot
from .base_context import BaseContext
class DatePickerHandler(UIContext):
BASIC_DATE_FORMAT = "%Y-%m-%d"
ALTERNATIVE_DATE_FORMAT = "%d %b, %Y"
... | /robotframework-playerlibrary-1.0.3.tar.gz/robotframework-playerlibrary-1.0.3/src/PlayerLibrary/datepicker_handler.py | 0.494141 | 0.208793 | datepicker_handler.py | pypi |
from playwright.sync_api import expect
from robotlibcore import keyword
from .ui_context import UIContext
class TableHandler(UIContext):
@keyword('Table column should have')
def table_column_should_have(self, *items, locator='//table'):
"""
Check for table header contains some labels or not
... | /robotframework-playerlibrary-1.0.3.tar.gz/robotframework-playerlibrary-1.0.3/src/PlayerLibrary/table_handler.py | 0.689724 | 0.34563 | table_handler.py | pypi |
from playwright.sync_api import expect
from robotlibcore import keyword
from .ui_context import UIContext
from .base_context import BaseContext
class CheckboxHandler(UIContext):
@keyword('checkbox should be enabled')
def checkbox_should_be_enabled(self, locator):
element = self.get_element(locator)
... | /robotframework-playerlibrary-1.0.3.tar.gz/robotframework-playerlibrary-1.0.3/src/PlayerLibrary/checkbox_handler.py | 0.603465 | 0.243305 | checkbox_handler.py | pypi |
from __future__ import annotations
import datetime
import os.path
from typing import Optional
from robot.api import logger as robot_logger
from robot.libraries.BuiltIn import BuiltIn
from robot.result.model import TestCase as RTest
from robot.running import TestSuite as ESuite, TestCase as ETest
from robot.utils impo... | /robotframework_practitest-1.2.53-py3-none-any.whl/robotframework_practitest/listener.py | 0.787032 | 0.199678 | listener.py | pypi |
from __future__ import annotations
from enum import Enum
from typing import Iterable, Dict, Any, List, Tuple
from robot.libraries.BuiltIn import BuiltIn
from .robot.wrappers import PTestSuite, PTestCase
class PT_FieldTypes(Enum):
Custom = 'custom'
System = 'system'
@staticmethod
def from_str(strin... | /robotframework_practitest-1.2.53-py3-none-any.whl/robotframework_practitest/models/field_adapter.py | 0.829871 | 0.271783 | field_adapter.py | pypi |
from __future__ import annotations
import os.path
import re
from typing import Callable
from robotframework_practitest import utils
from robotframework_practitest.utils.logger import logger
from robotframework_practitest.models import practi_test as pt, robot as rb
from robotframework_practitest.models.field_adapter ... | /robotframework_practitest-1.2.53-py3-none-any.whl/robotframework_practitest/models/adapter.py | 0.590661 | 0.344223 | adapter.py | pypi |
from __future__ import annotations
import re
from datetime import datetime
from enum import Enum
from typing import Mapping, AnyStr, Callable, Tuple, List, Dict
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger as robot_logger
from robotframework_practitest.utils.misc_utils import get_error_inf... | /robotframework_practitest-1.2.53-py3-none-any.whl/robotframework_practitest/models/robot/helpers.py | 0.574037 | 0.239917 | helpers.py | pypi |
import itertools as it
import re
from collections import OrderedDict
import pandas as pd
from robot.api import logger
from robot.errors import RobotError
from robot.libraries.BuiltIn import BuiltIn
from DataDriver.AbstractReaderClass import AbstractReaderClass
from DataDriver.ReaderConfig import TestCaseData
DEFAUL... | /robotframework_practitest-1.2.53-py3-none-any.whl/robotframework_practitest/utils/courtesy_generator.py | 0.468061 | 0.219087 | courtesy_generator.py | pypi |
import json
import time
from threading import RLock
from time import sleep
from typing import Mapping, Any, Iterator, Callable
from robotframework_practitest.utils.logger import logger
from robotframework_practitest.utils.misc_utils import get_error_info
from robotframework_practitest.utils.singleton import Singleton
... | /robotframework_practitest-1.2.53-py3-none-any.whl/robotframework_practitest/services/data_queue.py | 0.632389 | 0.18691 | data_queue.py | pypi |
from __future__ import annotations
import datetime
import time
from enum import Enum
from time import sleep
from typing import List
import pandas
from robotframework_practitest.utils.logger import logger
from robotframework_practitest.utils import get_error_info
class _Color(Enum):
FAILED = 'red'
PASSED = ... | /robotframework_practitest-1.2.53-py3-none-any.whl/robotframework_practitest/services/statistics.py | 0.673406 | 0.292608 | statistics.py | pypi |
from itertools import groupby
from operator import itemgetter
from .constants import *
class FormatterPayloadAzure:
def __init__(self):
pass
@staticmethod
def format_testpoint(testpoints):
return [{"id": testpoint['id'], 'planId':testpoint['testPlan']['id'], 'suiteId':testpoint['suite']['i... | /robotframework-publisher-results-azure-2.0.1.tar.gz/robotframework-publisher-results-azure-2.0.1/PublisherAzureTestsResults/formatterPayloadAzure.py | 0.664758 | 0.302789 | formatterPayloadAzure.py | pypi |
import os
from robot.api import logger
from base64 import b64encode
from functools import wraps
import pycurl
from url import Url
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
execfile(os.path.join(THIS_DIR, 'version.py'))
__version__ = VERSION
__all__ = ['include', 'verbose', 'insecure', 'add_header', 'he... | /robotframework-pycurllibrary-0.9.5.tar.gz/robotframework-pycurllibrary-0.9.5/src/PycURLLibrary/__init__.py | 0.643105 | 0.289334 | __init__.py | pypi |
from robot.api import logger
from _common import _CommonActions
class _ExecutionKeywords(_CommonActions):
"""
Class that handles all keywords from group 'Execution'.
"""
def query(self, selectStatement):
"""
Performs query.
*Arguments:*
- selectStatement: string,... | /robotframework-pydblibrary-1.1.tar.gz/robotframework-pydblibrary-1.1/src/Pydblibrary/keywords/_execution.py | 0.913657 | 0.553204 | _execution.py | pypi |
from robot.api import logger
from _common import _CommonActions
class _TableKeywords(_CommonActions):
"""
Class that handles all keywords from group 'Table'.
"""
def table_must_exist(self, tableName):
"""
Checks that table exists.
If table not exist, then this will throw an A... | /robotframework-pydblibrary-1.1.tar.gz/robotframework-pydblibrary-1.1/src/Pydblibrary/keywords/_table.py | 0.761627 | 0.350255 | _table.py | pypi |
from robot.api import logger
from _common import _CommonActions
class _RowsKeywords(_CommonActions):
"""
Class that handles all keywords from group 'Rows'.
"""
def rows_count(self, selectStatement):
"""
Returns the number of rows fetched using 'selectStatement'.
*Arguments:*... | /robotframework-pydblibrary-1.1.tar.gz/robotframework-pydblibrary-1.1/src/Pydblibrary/keywords/_rows.py | 0.935465 | 0.547948 | _rows.py | pypi |
from robot.utils import ConnectionCache
from robot.api import logger
from pysphere import VIServer
from .version import VERSION
class PysphereLibrary(object):
"""Robot Framework test library for VMWare interaction
The library has the following main usages:
- Identifying available virtual machines on a v... | /robotframework-pyspherelibrary-1.0.0.tar.gz/robotframework-pyspherelibrary-1.0.0/src/PysphereLibrary/library.py | 0.821868 | 0.300361 | library.py | pypi |
Contribution guidelines
=======================
These guidelines instruct how to submit issues and contribute code to the
`Robot Framework project <https://github.com/robotframework/robotframework>`_.
There are also many other projects in the larger `Robot Framework ecosystem
<http://robotframework.org>`_ that you can... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/CONTRIBUTING.rst | 0.841728 | 0.846006 | CONTRIBUTING.rst | pypi |
Installation instructions
=========================
These instructions cover installing and uninstalling Robot Framework and its
preconditions on different operating systems. If you already have `pip
<http://pip-installer.org>`_ installed, it is enough to run::
pip install robotframework
.. contents::
:depth:... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/INSTALL.rst | 0.902987 | 0.663134 | INSTALL.rst | pypi |
from __future__ import print_function
from six import string_types
import os
import os.path
import re
import shutil
import sys
import time
import urllib
import zipfile
from fnmatch import fnmatchcase
from invoke import task, run
assert os.getcwd() == os.path.dirname(os.path.abspath(__file__))
VERSION_RE = re.comp... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/tasks.py | 0.520009 | 0.214959 | tasks.py | pypi |
from __future__ import print_function
import os
import re
from robot import utils
from robot.utils.asserts import assert_equals
from robot.result.resultbuilder import ExecutionResultBuilder
from robot.result.executionresult import Result
from robot.result.testsuite import TestSuite
from robot.result.testcase import T... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/atest/resources/TestCheckerLibrary.py | 0.548674 | 0.417034 | TestCheckerLibrary.py | pypi |
from six import text_type as unicode
import os
import re
from os.path import abspath, dirname, join
from subprocess import call, STDOUT
import tempfile
from robot.utils.asserts import assert_equals, assert_true
from robot.utils import decode_output
ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/atest/robot/tidy/TidyLib.py | 0.617513 | 0.259955 | TidyLib.py | pypi |
.. _Documentation syntax:
Documentation formatting
========================
It is possible to use simple HTML formatting with `test suite`__,
`test case`__ and `user keyword`__ documentation and `free test suite
metadata`_ in the test data, as well as when `documenting test
libraries`__. The formatting is similar to... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/Appendices/DocumentationFormatting.rst | 0.896874 | 0.654004 | DocumentationFormatting.rst | pypi |
class LoggingLibrary:
"""Library for logging messages.
= Table of contents =
- `Usage`
- `Valid log levels`
- `Examples`
- `Importing`
- `Shortcuts`
- `Keywords`
= Usage =
This library has several keyword, for example `Log Message`, for logging
messages. In reality the li... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/SupportingTools/LoggingLibrary.py | 0.912175 | 0.460713 | LoggingLibrary.py | pypi |
Basic usage
===========
Robot Framework test cases are executed from the command line, and the
end result is, by default, an `output file`_ in XML format and an HTML
report_ and log_. After the execution, output files can be combined and
otherwise `post-processed`__ with the ``rebot`` tool.
__ `Post-processing output... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/ExecutingTestCases/BasicUsage.rst | 0.942678 | 0.780056 | BasicUsage.rst | pypi |
Test execution
==============
This section describes how the test suite structure created from the parsed
test data is executed, how to continue executing a test case after failures,
and how to stop the whole test execution gracefully.
.. contents::
:depth: 2
:local:
Execution flow
--------------
Executed sui... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/ExecutingTestCases/TestExecution.rst | 0.904513 | 0.826852 | TestExecution.rst | pypi |
Remote library interface
========================
The remote library interface provides means for having test libraries
on different machines than where Robot Framework itself is running,
and also for implementing libraries using other languages than the
natively supported Python and Java. For a test library user remo... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/ExtendingRobotFramework/RemoteLibrary.rst | 0.94025 | 0.687866 | RemoteLibrary.rst | pypi |
Creating test libraries
=======================
Robot Framework's actual testing capabilities are provided by test
libraries. There are many existing libraries, some of which are even
bundled with the core framework, but there is still often a need to
create new ones. This task is not too complicated because, as this
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/ExtendingRobotFramework/CreatingTestLibraries.rst | 0.945626 | 0.799677 | CreatingTestLibraries.rst | pypi |
Using listener interface
========================
Robot Framework has a listener interface that can be used to receive
notifications about test execution. Listeners are classes or modules
with certain special methods, and they can be implemented both with
Python and Java. Example uses of the listener interface include... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/ExtendingRobotFramework/ListenerInterface.rst | 0.916913 | 0.779616 | ListenerInterface.rst | pypi |
Variables
=========
.. contents::
:depth: 2
:local:
Introduction
------------
Variables are an integral feature of Robot Framework, and they can be
used in most places in test data. Most commonly, they are used in
arguments for keywords in test case tables and keyword tables, but
also all settings allow variab... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/CreatingTestData/Variables.rst | 0.934932 | 0.661099 | Variables.rst | pypi |
Creating test cases
===================
This section describes the overall test case syntax. Organizing test
cases into `test suites`_ using `test case files`_ and `test suite
directories`_ is discussed in the next section.
.. contents::
:depth: 2
:local:
Test case syntax
----------------
Basic syntax
~~~~~~~... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/CreatingTestData/CreatingTestCases.rst | 0.958392 | 0.883588 | CreatingTestCases.rst | pypi |
Advanced features
=================
.. contents::
:depth: 2
:local:
Handling keywords with same names
---------------------------------
Keywords that are used with Robot Framework are either `library
keywords`_ or `user keywords`_. The former come from `standard
libraries`_ or `external libraries`_, and the la... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/CreatingTestData/AdvancedFeatures.rst | 0.945096 | 0.78789 | AdvancedFeatures.rst | pypi |
Creating test suites
====================
Robot Framework test cases are created in test case files, which can
be organized into directories. These files and directories create a
hierarchical test suite structure.
.. contents::
:depth: 2
:local:
Test case files
---------------
Robot Framework test cases `are ... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/CreatingTestData/CreatingTestSuites.rst | 0.876964 | 0.738858 | CreatingTestSuites.rst | pypi |
Using test libraries
====================
Test libraries contain those lowest-level keywords, often called
*library keywords*, which actually interact with the system under
test. All test cases always use keywords from some library, often
through higher-level `user keywords`_. This section explains how to
take test li... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/doc/userguide/src/CreatingTestData/UsingTestLibraries.rst | 0.958343 | 0.703919 | UsingTestLibraries.rst | pypi |
from six import text_type as unicode
"""Exceptions and return codes used internally.
External libraries should not used exceptions defined here.
"""
# 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 ... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/errors.py | 0.77827 | 0.268537 | errors.py | pypi |
from .listeners import Listeners, ListenerProxy
from .loggerhelper import AbstractLoggerProxy
class LibraryListeners(Listeners):
def __init__(self):
self._running_test = False
self._setup_or_teardown_type = None
self._global_listeners = {}
def __bool__(self):
return True
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/output/librarylisteners.py | 0.607197 | 0.157331 | librarylisteners.py | pypi |
from robot.errors import DataError
from robot.model import Message as BaseMessage
from 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:
def __init__(self, level='TRACE'... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/output/loggerhelper.py | 0.688887 | 0.249905 | loggerhelper.py | pypi |
# Windows highlighting code adapted from color_console.py. It is copyright
# Andre Burgaud, licensed under the MIT License, and available here:
# http://www.burgaud.com/bring-colors-to-the-windows-console-with-python/
from contextlib import contextmanager
import os
import sys
try:
from ctypes import windll, Struc... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/output/console/highlighting.py | 0.566978 | 0.168156 | highlighting.py | pypi |
from six import PY3
from robot.errors import DataError
from 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 VariableStore(objec... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/variables/store.py | 0.502197 | 0.20091 | store.py | pypi |
import os
import tempfile
from robot.errors import DataError
from robot.output import LOGGER
from robot.utils import abspath, find_file, get_error_details, NormalizedDict
from .variables import Variables
class VariableScopes(object):
def __init__(self, settings):
self._global = GlobalVariables(setting... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/variables/scopes.py | 0.546254 | 0.16529 | scopes.py | pypi |
from six import text_type as unicode
from contextlib import contextmanager
from robot.errors import DataError
from robot.utils import split_from_equals, unic, is_string, DotDict
from .isvar import validate_var
from .splitter import VariableSplitter
class VariableTableSetter(object):
def __init__(self, store)... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/variables/tablesetter.py | 0.591251 | 0.260754 | tablesetter.py | pypi |
from robot.errors import DataError, VariableError
from robot.output import LOGGER
from robot.utils import escape, unescape, unic, is_string
from .splitter import VariableSplitter
class VariableReplacer(object):
def __init__(self, variables):
self._variables = variables
def replace_list(self, items... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/variables/replacer.py | 0.799168 | 0.314406 | replacer.py | pypi |
import inspect
try:
import yaml
except ImportError:
yaml = None
from robot.errors import DataError
from robot.output import LOGGER
from robot.utils import (get_error_message, is_dict_like, is_list_like,
is_string, seq2str2, type_name, DotDict, Importer)
class VariableFileSetter(obje... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/variables/filesetter.py | 0.506103 | 0.152379 | filesetter.py | pypi |
from robot.utils import is_string
class VariableSplitter(object):
def __init__(self, string, identifiers='$@%&*'):
self.identifier = None
self.base = None
self.index = None
self.start = -1
self.end = -1
self._identifiers = identifiers
self._may_have_intern... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/variables/splitter.py | 0.468061 | 0.27027 | splitter.py | pypi |
import re
from six.moves import zip
from itertools import chain
from robot.errors import DataError
from robot.utils import (format_assign_message, get_error_message, prepr,
type_name, is_number, is_string)
class VariableAssigner(object):
_valid_extended_attr = re.compile('^[_a-zA-Z]\w*$... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/variables/assigner.py | 0.533397 | 0.201106 | assigner.py | pypi |
import logging
from robot.output import librarylogger
from robot.running.context import EXECUTION_CONTEXTS
def write(msg, level, html=False):
"""Writes the message to the log file using the given level.
Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` and ``WARN``.
Instead of using this method, it is... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/api/logger.py | 0.633524 | 0.270081 | logger.py | pypi |
import os
from robot.result.visitor import ResultVisitor
from robot.utils import XmlWriter
class XUnitWriter(object):
def __init__(self, execution_result, skip_noncritical):
self._execution_result = execution_result
self._skip_noncritical = skip_noncritical
def write(self, output):
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/reporting/xunitwriter.py | 0.628179 | 0.214105 | xunitwriter.py | pypi |
from six import text_type as unicode
from robot.conf import RebotSettings
from robot.errors import DataError
from robot.model import ModelModifier
from robot.output import LOGGER
from robot.result import ExecutionResult, Result
from robot.utils import unic
from .jsmodelbuilders import JsModelBuilder
from .logreportw... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/reporting/resultwriter.py | 0.824462 | 0.202089 | resultwriter.py | pypi |
import re
from robot.output import LOGGER
class DataRow(object):
_row_continuation_marker = '...'
_whitespace_regexp = re.compile('\s+')
_ye_olde_metadata_prefix = 'meta:'
def __init__(self, cells):
self.cells, self.comments = self._parse(cells)
def _parse(self, row):
data = []... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/parsing/datarow.py | 0.475849 | 0.407982 | datarow.py | pypi |
import os
import copy
from robot.errors import DataError
from robot.variables import is_var
from robot.output import LOGGER
from robot.writer import DataFileWriter
from robot.utils import abspath, is_string, normalize, NormalizedDict
from .comments import Comment
from .populators import FromFilePopulator, FromDirect... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/parsing/model.py | 0.695752 | 0.255715 | model.py | pypi |
from six import text_type as unicode
from contextlib import contextmanager
from robot.errors import DataError
class ExecutionContexts(object):
def __init__(self):
self._contexts = []
@property
def current(self):
return self._contexts[-1] if self._contexts else None
@property
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/context.py | 0.449151 | 0.213726 | context.py | pypi |
from robot.errors import DataError
from robot.utils import (get_error_message, unic, is_java_method,
is_string, is_unicode)
from .arguments import JavaArgumentParser, PythonArgumentParser
def no_dynamic_method(*args):
pass
class _DynamicMethod(object):
_underscore_name = NotImplem... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/dynamicmethods.py | 0.785638 | 0.240418 | dynamicmethods.py | pypi |
import warnings
from robot import model
from robot.conf import RobotSettings
from robot.output import LOGGER, Output, pyloggingconf
from robot.utils import setter
from .randomizer import Randomizer
class Keyword(model.Keyword):
"""Running model for single keyword."""
__slots__ = []
message_class = None... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/model.py | 0.683631 | 0.292532 | model.py | pypi |
from six import text_type as unicode
from robot.errors import DataError
from robot.parsing import TestData, ResourceFile as ResourceData
from robot.running.defaults import TestDefaults
from robot.utils import abspath, is_string
from robot.variables import VariableIterator
from .model import ForLoop, ResourceFile, Te... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/builder.py | 0.719778 | 0.383988 | builder.py | pypi |
from java.lang import Byte, Short, Integer, Long, Boolean, Float, Double
from robot.variables import contains_var
from robot.utils import is_string, is_list_like
class JavaArgumentCoercer(object):
def __init__(self, signatures, argspec):
self._argspec = argspec
self._coercers = CoercerFinder().... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/arguments/javaargumentcoercer.py | 0.802903 | 0.234516 | javaargumentcoercer.py | pypi |
from robot.errors import DataError
from robot.utils import plural_or_not
from robot.variables import is_list_var
class ArgumentValidator(object):
def __init__(self, argspec):
self._argspec = argspec
def validate(self, positional, named, dryrun=False):
if dryrun and any(is_list_var(arg) for ... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/arguments/argumentvalidator.py | 0.796649 | 0.323567 | argumentvalidator.py | pypi |
import re
from robot.errors import DataError
from robot.utils import get_error_message
from robot.variables import VariableIterator
class EmbeddedArguments(object):
def __init__(self, name):
if '${' in name:
self.name, self.args = EmbeddedArgumentParser().parse(name)
else:
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/arguments/embedded.py | 0.577614 | 0.178777 | embedded.py | pypi |
from robot.errors import DataError
from robot.utils import is_string, is_dict_like, split_from_equals, DotDict
from robot.variables import VariableSplitter
from .argumentvalidator import ArgumentValidator
class ArgumentResolver(object):
def __init__(self, argspec, resolve_named=True,
resolve_v... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/running/arguments/argumentresolver.py | 0.824356 | 0.228307 | argumentresolver.py | pypi |
from 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_child_handler... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/result/xmlelementhandlers.py | 0.658308 | 0.197464 | xmlelementhandlers.py | pypi |
from robot.errors import DataError
from robot.model import SuiteVisitor, TagPattern
from robot.utils import Matcher, plural_or_not
def KeywordRemover(how):
upper = how.upper()
if upper.startswith('NAME:'):
return ByNameKeywordRemover(pattern=how[5:])
if upper.startswith('TAG:'):
return By... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/result/keywordremover.py | 0.587707 | 0.228038 | keywordremover.py | pypi |
from robot.model import Statistics
from .executionerrors import ExecutionErrors
from .testsuite import TestSuite
class Result(object):
"""Test execution results.
Can be created based on XML output files using
the :func:`~.resultbuilder.ExecutionResult` factory method.
Also returned by executed :cla... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/result/executionresult.py | 0.924236 | 0.380327 | executionresult.py | pypi |
from robot import model
from 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.TestSuite.filter_messages`... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/result/configurer.py | 0.849301 | 0.470919 | configurer.py | pypi |
from 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 be traversed a... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/result/visitor.py | 0.867457 | 0.776792 | visitor.py | pypi |
from robot.errors import DataError
from robot.model import SuiteVisitor
class Merger(SuiteVisitor):
def __init__(self, result):
self.root = result.suite
self.current = None
def merge(self, merged):
merged.suite.visit(self)
def start_suite(self, suite):
try:
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/result/merger.py | 0.560132 | 0.342544 | merger.py | pypi |
import textwrap
from robot.utils import MultiMatcher, encode_output
from robot.errors import DataError
class ConsoleViewer(object):
def __init__(self, libdoc):
self._libdoc = libdoc
self._keywords = KeywordMatcher(libdoc)
@classmethod
def handles(cls, command):
return command.l... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libdocpkg/consoleviewer.py | 0.551574 | 0.151624 | consoleviewer.py | pypi |
import sys
from robot.errors import DataError
from robot import utils
from .model import LibraryDoc, KeywordDoc
class JavaDocBuilder(object):
def build(self, path):
doc = ClassDoc(path)
libdoc = LibraryDoc(name=doc.qualifiedName(),
doc=self._get_doc(doc),
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libdocpkg/javabuilder.py | 0.409457 | 0.17266 | javabuilder.py | pypi |
import sys
import os
if sys.platform.startswith('java'):
from java.awt import Toolkit, Robot, Rectangle
from javax.imageio import ImageIO
from java.io import File
elif sys.platform == 'cli':
import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')
from System.D... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libraries/Screenshot.py | 0.627723 | 0.197328 | Screenshot.py | pypi |
from six import PY3, text_type as unicode
import sys
from robot.api import logger
from robot.utils import (is_dict_like, is_string, is_truthy, plural_or_not,
seq2str, seq2str2, type_name, unic, Matcher)
from robot.utils.asserts import assert_equals
from robot.version import get_version
cla... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libraries/Collections.py | 0.705481 | 0.553324 | Collections.py | pypi |
from datetime import datetime, timedelta
import time
import re
from robot.version import get_version
from robot.utils import (elapsed_time_to_string, is_falsy, is_number,
is_string, secs_to_timestr, timestr_to_secs,
type_name, IRONPYTHON)
__version__ = get_version()
_... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libraries/DateTime.py | 0.916589 | 0.438064 | DateTime.py | pypi |
from contextlib import contextmanager
import inspect
import re
import struct
import telnetlib
import time
try:
import pyte
except ImportError:
pyte = None
from robot.api import logger
from robot.utils import (ConnectionCache, is_bytes, is_string, is_truthy,
is_unicode, secs_to_timest... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libraries/Telnet.py | 0.809464 | 0.553023 | Telnet.py | pypi |
import sys
import re
from fnmatch import fnmatchcase
from random import randint
from string import ascii_lowercase, ascii_uppercase, digits
from robot.api import logger
from robot.utils import is_bytes, is_string, is_truthy, is_unicode, lower, unic
from robot.version import get_version
class String(object):
"""... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libraries/String.py | 0.768646 | 0.555616 | String.py | pypi |
from robot.version import get_version
from robot.utils import IRONPYTHON, JYTHON, is_truthy
if JYTHON:
from .dialogs_jy import MessageDialog, PassFailDialog, InputDialog, SelectionDialog
elif IRONPYTHON:
from .dialogs_ipy import MessageDialog, PassFailDialog, InputDialog, SelectionDialog
else:
from .dialog... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libraries/Dialogs.py | 0.838151 | 0.261131 | Dialogs.py | pypi |
import copy
import re
try:
from lxml import etree as lxml_etree
except ImportError:
lxml_etree = None
from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn
from robot.utils import (asserts, ET, ETSource, is_string, is_truthy,
plural_or_not as s)
from robot.version ... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/libraries/XML.py | 0.849909 | 0.565659 | XML.py | pypi |
import getopt # optparse was not supported by Jython 2.2
import os
import re
import sys
import glob
import string
import textwrap
from robot.errors import DataError, Information, FrameworkError
from robot.version import get_full_version
from .misc import plural_or_not
from .encoding import decode_output, decode_... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/utils/argumentparser.py | 0.524151 | 0.196807 | argumentparser.py | pypi |
import difflib
class RecommendationFinder(object):
def __init__(self, normalizer=None):
self.normalizer = normalizer or (lambda x: x)
def find_recommendations(self, name, candidates, max_matches=10):
"""Return a list of close matches to `name` from `candidates`."""
if not name or no... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/utils/recommendations.py | 0.87142 | 0.279561 | recommendations.py | pypi |
from six import PY3
if PY3:
from collections import MutableMapping as DictMixin
else:
from UserDict import DictMixin
class OrderedDict(dict, DictMixin):
def __init__(self, *args, **kwds):
if len(args) > 1:
raise TypeError('expected at most 1 arguments, got %d' % len(args))
tr... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/utils/ordereddict.py | 0.502441 | 0.220636 | ordereddict.py | pypi |
from six import unichr
import re
from .robottypes import is_string
_CONTROL_WORDS_TO_BE_ESCAPED = ('ELSE', 'ELSE IF', 'AND')
_SEQUENCES_TO_BE_ESCAPED = ('\\', '${', '@{', '%{', '&{', '*{', '=')
def escape(item):
if not is_string(item):
return item
if item in _CONTROL_WORDS_TO_BE_ESCAPED:
... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/utils/escaping.py | 0.40439 | 0.1844 | escaping.py | pypi |
import re
from functools import partial
from .normalizing import normalize
from .robottypes import is_string
def eq(str1, str2, ignore=(), caseless=True, spaceless=True):
str1 = normalize(str1, ignore, caseless, spaceless)
str2 = normalize(str2, ignore, caseless, spaceless)
return str1 == str2
class M... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/utils/match.py | 0.61231 | 0.249025 | match.py | pypi |
from .robottypes import type_name
from .unic import unic
def fail(msg=None):
"""Fail test immediately with the given message."""
_report_failure(msg)
def error(msg=None):
"""Error test immediately with the given message."""
_report_error(msg)
def fail_if(expr, msg=None):
"""Fail the test if the ... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/utils/asserts.py | 0.688154 | 0.291182 | asserts.py | pypi |
import re
import sys
from collections import MutableMapping
from .robottypes import is_dict_like
_WHITESPACE_REGEXP = re.compile('\s+')
def normalize(string, ignore=(), caseless=True, spaceless=True):
"""Normalizes given string according to given spec.
By default string is turned to lower case and all wh... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/utils/normalizing.py | 0.584627 | 0.326701 | normalizing.py | pypi |
from six import PY3, integer_types
import sys
class JsonWriter(object):
def __init__(self, output, separator=''):
self._writer = JsonDumper(output)
self._separator = separator
def write_json(self, prefix, data, postfix=';\n', mapping=None,
separator=True):
self._... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/htmldata/jsonwriter.py | 0.422028 | 0.158989 | jsonwriter.py | pypi |
import itertools
class RowSplitter(object):
_comment_mark = '#'
_empty_cell_escape = '${EMPTY}'
_line_continuation = '...'
_setting_table = 'setting'
_indented_tables = ('test case', 'keyword')
_split_from = ('ELSE', 'ELSE IF', 'AND')
def __init__(self, cols=8, split_multiline_doc=True):... | /robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/writer/rowsplitter.py | 0.489748 | 0.271988 | rowsplitter.py | pypi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.