ExtensionAutomation服务器的远程代理
extensiveautomation-agent的Python项目详细描述
扩展自动化代理
agent用于扩展自动化服务器。在
目录
代理安装
关于代理
代理允许远程执行工作流。它在某些情况下是有用的 从不同的机器上运行它们。在
PyPI包
- 在
运行以下命令
python3 -m pip install extensiveautomation_agent
在 - 在
在shell上键入以下命令以启动服务器
^{pr2}$ 在 - 在
下一步是安装一个或多个plugins
在
源代码
- 在
在linux服务器上克隆此存储库
git clone https://github.com/ExtensiveAutomation/extensiveautomation-agent.git cd extensiveautomation-agent/
在 - 在
显示使用说明文件。在
cd src/ python3 extensiveautomation_agent.py --help
在 - 在
下一步是安装一个或多个plugins
在
安装插件
默认情况下,代理二进制文件没有插件,因此您需要
根据您的需要逐一安装。
安装可以用pip
命令完成。在
请看下表以查看通信 在你想要使用的代理插件和服务器端部署的插件之间。在
Agent Plugins | Description | Server Plugins (must have) |
---|---|---|
curl | send http requests and analyze http responses | plugin-web |
ssh | communicate with remote server through SSH | plugin-cli |
selenium3 | interact with a selenium server | plugin-gui |
sikulix | run sikulix commands | plugin-gui |
代理部署
生成令牌
令牌是将远程代理连接到自动化服务器所必需的。在
- 在
在自动化服务器上连接
在 - 在
执行以下命令
在
extensiveautomation --generate-token agent01.curl agent01.curl 0bb2705c-9860-445b-b0fc-44b552476cb3
- 保存生成的令牌并重新加载服务器
extensiveautomation --reload
运行代理
运行代理很容易,但是之前
- 你必须根据你的需要安装好插件
- 为代理生成令牌
- 然后在服务器上注册
之后,您可以执行以下命令:
extensiveautomation_agent --remote=10.0.0.100 --token=13ae34f7-e2f6-40b6-9c87-6c275423127e --curl 2020-07-26 10:28:09,513 starting agent curl ... 2020-07-26 10:28:09,877 agent registration successful
- 项目
标签: