Skip to main content

XOA Converter is a library for converting Xena's Windows desktop RFC test configurations to XOA RFC test configurations.

Project description

PyPI - Python Version PyPI Documentation Status

XOA Converter

XOA Converter is a supporting tool for you to quickly migrate your Xena Windows desktop RFC test suite configurations into XOA RFC test suite.

Introduction

The XOA Converter is designed to help you migrate your Xena Windows desktop RFC test suite configurations into XOA RFC test suites, enabling a seamless transition to the XOA RFC ecosystem for network automation and testing.

Key features of the XOA Converter include:

  1. Conversion support: The tool supports conversion of Valkyrie test suite configuration files to XOA RFC-compatible format, facilitating the integration of existing test cases into the XOA RFC framework.

  2. Ease of use: The XOA Converter is designed to be user-friendly, with a straightforward process for converting test suite configuration files.

  3. Compatibility: The converter ensures that the migrated test suite configurations are compatible with XOA RFC Core and can be executed within the XOA RFC ecosystem.

The purpose of XOA Converter is ONLY to convert Xena Windows desktop test suite RFC configuration files into XOA RFC configuration files. Thus only four test suite types are supported by XOA Converter as the source config files.

Documentation

The user documentation is hosted: XOA Converter Documentation

Installation

Install Using pip

Make sure Python pip is installed on you system. If you are using virtualenv, then pip is already installed into environments created by virtualenv, and using sudo is not needed. If you do not have pip installed, download this file: https://bootstrap.pypa.io/get-pip.py and run python get-pip.py.

To install/upgrade:

pip install tdl-xoa-converter -U

Install From Source Code

Make sure these packages are installed wheel, setuptools on your system.

pip install wheel setuptools

To install from source of python packages:

python setup.py install

Build From Source Code for Distribution

If you want to build a .whl file for distribution, you can use the following command:

python setup.py bdist_wheel

Quick Start

Here is a quick start guide to get you started with XOA Converter:

Install the latest version of XOA Converter using pip:

pip install tdl-xoa-converter -U

Code example to convert .x2544 into XOA RFC 2544 test configuration:

import asyncio
import json
from xoa_core import controller
from xoa_converter.entry import converter
from xoa_converter.types import TestSuiteType

async def start():
    SOURCE_CONFIG_FILE = "my_old2544_config.x2544" # source config file to be converted

    core_ctrl = await controller.MainController() # create an instance of xoa rfc core controller
    info = core_ctrl.get_test_suite_info("RFC-2544") # get 2544 test suite information from the core's registration
    target_schema = json.load(info['schema']) # get the target json schema

    with open(SOURCE_CONFIG_FILE, 'r') as source_data_file:
        target_config = converter(
            test_suite_type=TestSuiteType.RFC2544, 
            source_config=source_data_file.read(), 
            target_schema=target_schema
        )
        print(target_config)

if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.create_task(start())
    loop.run_forever()

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

tdl_xoa_converter-1.0.0b1.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

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

tdl_xoa_converter-1.0.0b1-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

Details for the file tdl_xoa_converter-1.0.0b1.tar.gz.

File metadata

  • Download URL: tdl_xoa_converter-1.0.0b1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tdl_xoa_converter-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 7323da8c39c0e323b3bb359258c81f4a5c5710eba75dabda28184c48b94c8cc2
MD5 78311001f399ee960fb598b66e40801e
BLAKE2b-256 0dbaa4c0cc3ac68e7f44f831615b7eca755d3e9bf0e67225d5a82729bccecbee

See more details on using hashes here.

File details

Details for the file tdl_xoa_converter-1.0.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for tdl_xoa_converter-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 90051041127d182119d9462d6f6441297d191f988a6071845424c881d3543918
MD5 14b9776b09025d8fc5e8414311b2db43
BLAKE2b-256 1239b0458b7904b8952cb0398cf850ca00a75126e86c7b78fcd07c7042107fb0

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