Silver1713/public/: automata-core-0.1.0 metadata and description

Simple index Newer version available

Add your description here

author Jia Hao
author_email Jia Hao <[email protected]>
description_content_type text/markdown
requires_dist
  • pyyaml==6.0.3
  • replion>=0.1.0
  • selenium==4.51.0
requires_python >=3.14

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
automata_core-0.1.0-py3-none-any.whl
Size
20 KB
Type
Python Wheel
Python
3
automata_core-0.1.0.tar.gz
Size
13 KB
Type
Source

Automata Core

Automata Core runs browser actions, assertions, and waits through Selenium. The browser integration suite uses NORTHLINE, a six-page outdoor storefront fixture, to exercise those handlers against realistic navigation and interaction flows.

Output adapters

Execution is silent by default and always returns the same result objects. Choose a built-in adapter when constructing Core:

from automata.core.runtime.core import Core
from automata.core.runtime.adapters import ConsoleAdapter, JsonAdapter, XmlAdapter

result = Core(create_driver, adapter=ConsoleAdapter()).run("suite.yml")
# Alternatively: adapter=JsonAdapter("results.json")
# Alternatively: adapter=XmlAdapter("results.xml")

Console output is plain text, with case statuses, errors, and a final summary. JSON and XML adapters overwrite their destination at suite completion, including case and executed-step results. Parent directories must already exist. JSON uses the result field names; XML uses Automata's suite/case/step format, not JUnit. File errors propagate to the caller. Direct Runner.run_test calls only emit case callbacks; file adapters write reports when Runner.run_suite or Core.run completes. Extend automata.core.runtime.adapter.Adapter to provide custom CLI formatting.

Explore the test site

From the repository root, start a local server:

.venv\Scripts\python.exe -m http.server 8000 --directory tests/fixtures

Open http://127.0.0.1:8000/index.html. The site contains Home, Shop, Trail field kit, Your kit, Route desk, and Journal pages. Shop quick view and the product detail page both add to the same browser-local kit; the Route desk contains the profile form, interaction controls, 3D compass, and gear planner; Journal contains the field film.

Run browser integration tests

.venv\Scripts\python.exe -m unittest tests.test_integration -v

The suite starts its own HTTP server on a free localhost port and opens Chrome. It checks cross-page navigation and cart persistence in addition to the individual action, assertion, and wait handlers. The fixture pages and shared CSS/JavaScript live in tests/fixtures/.