Robot For M2M User Guide
Robot For M2M User Guide
User Guide
Important Features
PY to C
Test case
method calls C coap
ROBOT C HTTP UDP SUT
containing PY Test and XML Socket (GW/NS)
keywords Invoke PY Library Send / Receive
(RIDE) lib
Test library messages
to / from SUT
• Robot IDE to edit and execute test cases and view logs and reports. A Test case is a collection of keywords.
RIDE
• Python library containing implementation for keywords. A set of keywords put together shall form a test case. Once we build a
repository of standard key words to send messages and to process successful / error response / timeouts we can construct test cases to
ROBOT PY suite various scenarios.
Test Lib
• To start off test framework shall use the existing C based coap and XML libraries, this shall be replaced with Python Libraries going
forward.
C coap and
XML lib
• Bound by C coap library for now, shall be replaced with a python module in the first version of the tool.
UDP Socket
C API C API
Python Test Library (To add coap/http headers to (udp/tcp sockets to transfer
(Implementation of keywords xml payload for coap and http CoAP/HTTP messages to SUT)
in Python for creating XML library)
payload)
C API C API
Python Test Library (To read header from (udp/tcp sockets to transfer
(Validate xml payload) received packet for coap CoAP/HTTP messages to
and http library) SUT)
sudo apt-get install python2.7 – (ensure no older or newer versions are already
installed)
Ensure only python 2.7x version is installed. On most linux systems, python 2.7x version comes pre-
installed. If python 2.7x version is not installed, install it as shown below:
Install dependencies:
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz
Extract and go to the directory tar -xvf Python-2.7.5.tgz
cd Python-2.7.5
Now install using :./configure
sudo make install
Include
Connection.py at
suite level.
Include
Connection.py at
suite level.
Compile Server /
Export Library path, Register Gateway to
Gateway code, issue Start M2M Server Server and create
issue the below
the below commands and gateway m2mPoc resource
commands
Select C to create
m2mpoc
All the SCs are started and
corresponding x-term’s pop
up.
Radisys Corporation Confidential 15
Thank You