Skip to content

Getting Started

github-actions[bot] edited this page Nov 12, 2025 · 4 revisions

Getting Started

This guide walks through installing Importobot and converting your first test export.

If you are new to the codebase, read How to Navigate this Codebase to understand the architecture and code organization.

Prerequisites

  • Python 3.10 or higher
  • uv package manager

Installing uv

Importobot uses uv for package and project management. The official documentation recommends the following installation methods.

macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell):

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Verify the installation by checking the version:

uv --version

Project Setup

Once uv is installed, you can set up the project.

# Clone the repository
git clone https://github.com/athola/importobot.git
cd importobot

# Create the virtual environment and install dependencies
uv sync --dev

# Run the test suite to confirm the setup
uv run pytest

Basic Usage

To convert a single file, provide the input and output paths:

uv run importobot zephyr_export.json converted_tests.robot

To convert all files in a directory, use the --batch flag:

uv run importobot --batch input_dir/ output_dir/

Example Workflow

A common workflow is to export a test suite, convert it, and then run the generated Robot tests:

# Convert the export
uv run importobot legacy_tests.json automated_suite.robot

# Validate and run the tests
robot --dryrun automated_suite.robot
robot automated_suite.robot

Configuration

Importobot can be configured with environment variables. For example:

# Override server settings for API-based formats
export IMPORTOBOT_TEST_SERVER_URL="https://test.example.com"
export IMPORTOBOT_TEST_SERVER_PORT="8080"

# Run browser tests in headless mode
export IMPORTOBOT_HEADLESS_BROWSER="True"

Run uv run importobot --help to see all available options.

Examples

Example Zephyr JSON files are in examples/json/. You can run them with make:

# Run all examples
make examples

# Run individual examples
make example-user-registration
make example-file-transfer

Clone this wiki locally