ExtensionAutomation服务器的远程代理

extensiveautomation-agent的Python项目详细描述


扩展自动化代理

PyPI - Python Version

agent用于扩展自动化服务器。在

目录

代理安装

关于代理

代理允许远程执行工作流。它在某些情况下是有用的 从不同的机器上运行它们。在

PyPI包

  1. 运行以下命令

    python3 -m pip install extensiveautomation_agent
    
  2. 在shell上键入以下命令以启动服务器

    ^{pr2}$ 在
  3. 下一步是安装一个或多个plugins

源代码

  1. 在linux服务器上克隆此存储库

    git clone https://github.com/ExtensiveAutomation/extensiveautomation-agent.git
    cd extensiveautomation-agent/
    
  2. 显示使用说明文件。在

    cd src/
    python3 extensiveautomation_agent.py --help
    
  3. 下一步是安装一个或多个plugins

安装插件

默认情况下,代理二进制文件没有插件,因此您需要 根据您的需要逐一安装。 安装可以用pip命令完成。在

请看下表以查看通信 在你想要使用的代理插件和服务器端部署的插件之间。在

Agent PluginsDescriptionServer Plugins (must have)
curlsend http requests and analyze http responsesplugin-web
sshcommunicate with remote server through SSHplugin-cli
selenium3interact with a selenium serverplugin-gui
sikulixrun sikulix commandsplugin-gui

代理部署

生成令牌

令牌是将远程代理连接到自动化服务器所必需的。在

  1. 在自动化服务器上连接

  2. 执行以下命令

extensiveautomation --generate-token agent01.curl
agent01.curl 0bb2705c-9860-445b-b0fc-44b552476cb3
  1. 保存生成的令牌并重新加载服务器
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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java SUN次要代码309含义   java避免为空元素生成XML自关闭标记,并生成自定义的<XML>开始标记   java使用json和restful将数组数据从本地sqlite数据库插入SQL Server   java Spring Boot 1.5.9字符编码问题   LInkedIn讨论中的java 401错误   位图Java:检查多个位向量/位集是否相交的最快方法?   macos如何让Java应用程序以图标出现在Mac OS X dock中   java如何删除netbeans中的@SuppressWarnings(“未使用的”)?   apachestorm中的java自定义序列化   java可以退出代码还是应该终止main?   递归如何在Java中递归地绘制简单的线条?   unicode在Java中确定特定字体是否可以呈现特定字符   打开并阅读带有Selenium/Katalon(Java)特定标题的电子邮件文本(来自Gmail)