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.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.0.0-py3-none-any.whl (64.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tdl_xoa_converter-1.0.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.21

File hashes

Hashes for tdl_xoa_converter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 774efdf4786b2b4045e0a41f8658174ce75c9498129001c70cc635e0408ec491
MD5 9ce97c9e9f166a28b87f0a0b56afb35e
BLAKE2b-256 1c150ade4a3370d01fd47b8b834b3b7f48f2e7cc0c8d5492e5123aac315b6fca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tdl_xoa_converter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 042d5d7a51b10461034ffda433d2875821da3d470fabf1f617cf47c229aec899
MD5 1aa8dc32a617a67e81f486ac11849fc6
BLAKE2b-256 2ff902a3cc86ac8d1eb2fbd9b816b57b35570c91ea21b72afd28b87c6c7d4e64

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