Welcome to another January 2019 issue of GL Communications' Newsletter providing information and insight into Test Automation and Remote Testing through “API Support for PacketExpert™ Platforms”. This capability has wide ranging applications for Ethernet/IP Testing over 1 Gbps, and 10 Gbps networks.

PacketExpert™ can be configured as server-side application using the GL’s MAPS™ CLI Client/Server architecture. The advantage of such communication enables user to control PacketExpert™ by sending commands and receiving responses in a compiled/scripting language such as C#, Python, and TCL that is already familiar with many users.

Control of Bert, Loopback, RFC 2544, Record Playback, IPLinkSim™, PacketBroker, and ExpertSAM™ testing

Multiple PacketExpert™ devices can be controlled remotely from single client application

Working Principle of MAPS™ CLI

GL’s MAPS™ CLI Client/Server platform supports various client libraries in different languages, so that users can make use of these different libraries to talk to the MAPS server, and achieve automation using their language of choice. However, these are relatively low-level libraries, which gives users a very fine grain control, but also requires users to put in a bit more effort to program with it.

For PacketExpert platform, a set of relatively High-Level APIs have been developed on top of the MAPS Client library, which greatly reduces the time to develop sample applications and achieve automation. These APIs are developed in the respective languages and are easy to use and intuitive. Eg: C# APIs are provided by means of API classes for each application. Similarly, Python APIs are provided through API scripts that implement API classes for different applications. Also supplied are sample applications, that users can go through to come up to speed on how to use the APIs. Using these high-level APIs and sample applications, users can start developing automated testing in a very short period.

PacketExpert™ MAPS™ CLI Working Principle

C#, Python, and TCL Client APIs

Controlling PacketExpert™ Devices using Python and C# clients

In addition to existing TCL APIs, GL is now offering C# and Python APIs for all functionalities of PacketExpert™.
Python Client consists of python API scripts, that provide High Level APIs, using which all the PacketExpert functionalities are exposed to users. These APIs in turn use a low-level library to communicate with the PacketExpert MAPS™ server.

Sample Python Client Script

At the core, PacketExpert™ will run the MAPS™ CLI Server, which can interface with PacketExpert™ low level API to control the hardware. There will be different MAPS™ scripts to implement different applications. Using the PacketExpert™ Low level APIs, the MAPS™ scripts (GL’s proprietary *.gls scripts) can control any number of PacketExpert™ hardware units connected to the system.

PacketExpert™ MAPS™ CLI Server

Controlling PacketExpert™ Devices using TCL client

TCL scripting interface allow users to control all features of PacketExpert™ through TCL scripts or by directly entering the command into the TCL shell. The TCL scripting interface is implemented based on a client-server model. The TCL client connects to the MAPS™ CLI server using TCP/IP sockets. The MAPS™ CLI server interfaces with the PacketExpert™ hardware. Using the PacketExpert™ Low level APIs, the MAPS™ scripts can control any number of PacketExpert™ hardware units connected to the system.

Command-line based TCL client

LabVIEW / TestStand Integration

LabVIEW framework offers complete Lab Management, Device Provisioning and Test Automation solutions for engineers. LabVIEW is a popular framework for test automation and is used worldwide to integrate different vendor equipment and automate the use of the same.

Using PacketExpert APIs, it's very easy to integrate PacketExpert into LabVIEW. Since LabVIEW supports various languages like C# or Python, the PacketExpert C# API dll or Python classes can be directly imported into LabVIEW and used in the Graphical environment that LabVIEW provides to control PacketExpert devices and automate the testing.

PacketExpert™ Integration with LabVIEW

With LabVIEW, it is easy to create flexible test scripts that control multiple hardware, customize test system with graphical programming, included analysis, drag and drop interface. This makes the system compatible with GL's PacketExpert™ software. Eg: Importing the C# Client API dll into LabVIEW instantly provides ability to run any PacketExpert test application like – BERT, RFC2544, Loopback and others.

Please review the above and give us a call if you are interested in the above product/software or for any other applications listed in our website. We would be happy to discuss your testing needs and we look forward to hearing from you.