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.1.0.tar.gz (41.6 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.1.0-py3-none-any.whl (64.3 kB view details)

Uploaded Python 3

File details

Details for the file tdl_xoa_converter-1.1.0.tar.gz.

File metadata

  • Download URL: tdl_xoa_converter-1.1.0.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for tdl_xoa_converter-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4dc3d0ef307144e8ecf3a440e219ca2376a9de408811cb1fe468999dfd524998
MD5 55a8832a9ffb4dca24338c6bc410af27
BLAKE2b-256 e516b99fc675465ded6bce490ed87598552b83e1e1699237813981da601d6dcc

See more details on using hashes here.

File details

Details for the file tdl_xoa_converter-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tdl_xoa_converter-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd450452251b89e22c7ef569af38020b761adce9c92fae4732a81cef6bb7626
MD5 145f0f793a70e122dc157927285fe630
BLAKE2b-256 2c7148412041c41130388434c12389f4a0fed46b907ceb01f9c6ed9ac9f581a8

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