Skip to main content

Zone framework for acceptance testing

Project description

安装方法

pip install zone-hub

参考用例

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

# define the app
app = zone.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.org.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zone_hub-0.1.0.dev3-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.9.0

File hashes

Hashes for zone_hub-0.1.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 60e996d3fa023448ec6fcd6244874427e44d8dcbd26d95b4bcd64c737363030b
MD5 db98c451760c82098aea8238a3201d3f
BLAKE2b-256 774b4084f1513ef2b9df9b99fb671bd02ce76b0b4b4a561f0156f4b93c79748a

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