Skip to main content

Reader the output xml from structure RobotFramework output

Project description

ReaderOutputXml-RobotFramework

This library is a reader output xml from robotframework.

  • convert xml to dictionary (by structure robotframework output)
I have made this for publishing a package to PyPI only!

Usage

Install package by using pip:

pip install ReadOutputXml-RobotFramework

Example

  • Read output xml to dictionary
from ReaderOutputXmlRobotFramework.ReaderRobotFramework import ReaderRobotFramework

PATH_OUTPUT_XML: str = r'D:\RobotAll_Output.xml'

reader = ReaderRobotFramework(PATH_OUTPUT_XML, '/suite')
robot_result: dict = reader.read_output_xml_file_to_dict()
print(robot_result)
  • Get testsuite name from output xml
testsuite_name: str = reader.get_testsuite_name()
print(testsuite_name)
  • Get source file from output xml
source_file: str = reader.get_source_file()
print(source_file)

Structure Json (output xml to dictionary)

  • Support structure output xml (suite xpath <= 2 levels)
{
  "ProjectName": "project_name",
  "SourceFile": "/path",
  "TestcaseDetail": [{
    "testcase_name": "str",
    "documentation": "str",
    "tags": "str",
    "step_keyword": "str",
    "test_result": "str",
    "keyword_fail": "str",
    "date_time": "datetime",
    "msg_error": "str"
  }]
}

Uninstall package

pip uninstall ReadOutputXml-RobotFramework

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ReadOutputXml-RobotFramework-0.0.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ReadOutputXml_RobotFramework-0.0.3-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file ReadOutputXml-RobotFramework-0.0.3.tar.gz.

File metadata

  • Download URL: ReadOutputXml-RobotFramework-0.0.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.9

File hashes

Hashes for ReadOutputXml-RobotFramework-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2bde4835c3e9083b9e512f21c50a2ed68f316cf3bb2e9f8b3a417da3b1ea718a
MD5 171be6bec73a0e7c796fa7ed1bae7ebc
BLAKE2b-256 5f8a18cfcce82ca7552b7e093885d6964fcf58579e6fe00e36f139cf77c2f542

See more details on using hashes here.

File details

Details for the file ReadOutputXml_RobotFramework-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ReadOutputXml_RobotFramework-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.9

File hashes

Hashes for ReadOutputXml_RobotFramework-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bae2aed24c186a27fc03705b90edd2c2e0c1163186ed5a7ab34597a94a253bfb
MD5 c312f20379b332709f84b2cdbc4be644
BLAKE2b-256 bfda5943f69116b2b8876cd600eaf28f09f6a5b2d59b475c6e26ef1d98afaa1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page