Skip to main content

Zone framework for acceptance testing

Reason this release was yanked:

hide

Project description

安装方法

pip install zone-hub

参考用例

# import the library
from zone import App
from zone.dsc import DbPath, CanMessage, CanChannelConfig

# define the app
app = App()

result = app.connect(["canstack", "canparser"])

# add db file
app.addCanDbFile(r'E:\Shared\WORKS\codebase\xxx.arxml')

# set channel config
config = CanChannelConfig()
# set the parameters of the config
# ...
app.setCanChannelConfig([config])

# start stack
app.start(["canstakck", "canparser"])

# send can message
can_msg = CanMessage(channel=1,
                     isFd=False,
                     id=1,
                     dlc=8,
                     data=[1, 2, 3, 4, 5, 6, 7, 8],
                     period=100,
                     frameName="frame",
                     times=10)
app.sendCanMessage(can_msg)

# disconnect the can-related components
result = app.disconnect(["canstack", "canparser"])

参考文档

参考文档可以在这里找到:zone-hub.readthedocs.io.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

zone_hub-0.1.0.dev5-py3-none-any.whl (84.9 kB view details)

Uploaded Python 3

File details

Details for the file zone_hub-0.1.0.dev5-py3-none-any.whl.

File metadata

  • Download URL: zone_hub-0.1.0.dev5-py3-none-any.whl
  • Upload date:
  • Size: 84.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for zone_hub-0.1.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 6b6b90d291f13cc8b734ed4f0761b4142d373de11996c6da6fb914a32207c2e1
MD5 c14e16c906483a506f0dda9f22ad72a6
BLAKE2b-256 ec069c3666641dac8b1eabb1f6deed122d2b35f8ab8cb887607d14451cd735ef

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