Skip to content

Building and testing Agent

Vladimir Almaev edited this page Jul 9, 2015 · 8 revisions

This document describes how to build and test comnsense agent on Windows. It is recommended that you use a 32-bit version of Python for the sake of compatibility.

Running comnsense agent

  1. Install the requirements listed below
  2. Run comnsense/agent/bin/comnsense-agent with a 32-bit version of Python

Building a distribution

Install requirements

  • PyQt4
  • It is needed to use py2exe == 0.6.9 due to this errors
  • zmq should be installed via whl file
  • Tornado pip install tornado
  • Enum pip install enum34
  • msgpack pip install msgpack-python

Build a distribution folder

  • go to agent subdirectory
  • run python setup.py py2exe

This will create a folder dist where exe files reside.

Run comnsense

  • move the dist folder to whatever machine you want to install the agent at.
  • go to dist
  • run comnsense-tray.exe
  • you should see new item in tray with Exit action in the context menu

Run tests

  • run pip install mock
  • somehow install allure
  • go to agent subdirectory
  • run python runtests.py

Application useful for testing

  • Process Explorer - show process tree, threads, strings, stacks, network connections.
  • Handle - show open descriptors.

Clone this wiki locally