Multi-Agent based Functional Testing in the Distributed Environment

Muhammad Moazam Fraz, N. Minh, Uzma Bibi, Muhammad AyazInternational Journal of Advanced Computer Science and Applications 2017

Abstract

Verification and testing are two formal techniques of defect reduction applied on designing and development phases of SDLC to rationalize quality assurance activities. The process of testing applications in the distributed environment becomes too complex. This study discusses a distributed testing framework that consists of many parallel tester components. The idea is based on utilizing client server environment to conduct software testing efficiently and in a short span of time. It is pertinent to mention that this study is restricted to testing of functional aspects of the software while testing of performance and other quality-of-service aspects are outside the scope of the study. An important factor influencing the use of agent technology in software testing is the dynamic nature of events. Since agents are characterized by intelligence and autonomy, their ability to interact with the environment offers added functionality to make decisions based on the needs of the scenarios that are dynamic in nature. This study shows that the use of agents to build a dynamic model for software testing in the distributed environment results in a more robust and efficient design. The proposed framework is based on distribution of test cases among multiple agents deployed across a distributed system which collaborate with each other to perform testing in an efficient manner. The proposed framework also provides an in-depth visibility into the software quality by providing the defect statistics on-the-fly. The experiments have been conducted using Selenium test automation tool. The test cases along with their test scripts and the test run results are described herein.

Introduction

Testing distributed software is inherently more complex than testing standalone applications. Because distributed systems are multifaceted and non-linear, a test run might produce different results simply due to event timing or network fluctuations. Traditional manual testing is too slow for modern development cycles, and standard automated tools often lack the "intelligence" to handle dynamic environments. There is a critical need for a testing architecture that is not only automated but also scalable and robust enough to handle the unpredictable nature of distributed systems.

The Multi-Agent Testing Architecture

The proposed framework is a three-layered system centered on the Java Agent Development (JADE) framework. Unlike standard scripts, software agents are proactive. Their ability to interact with a dynamic environment makes the testing process more robust against the "non-linear" behaviors common in distributed systems.

Architecture of the Multi-Agent Functional Testing framework

The key components of this architecture include:

  • Multi-Agent System (MAS): Instead of a single monolithic tester, the system uses autonomous agents deployed across various client machines. These agents communicate via message passing, allowing them to collaborate and make decisions based on the environment.
  • Test Controller: Acts as the central control unit, extracting test cases from a repository, preparing scripts, and distributing them to agents based on the current load of each client machine.
  • Test Analyzer: A real-time monitoring component that accumulates results from agents, updates the test suite status, and identifies failed cases for potential re-runs.
  • Selenium Integration: The framework uses Selenium to record and generate executable test scripts, which are then handed off to the agents for execution.

Experimental Evaluation

The framework was evaluated using a custom-built case study: a web-based "Employee Management" system named Cafedunord. The test suite consisted of 50 functional test cases covering critical operations like authentication, employee registration, shift template creation, and report generation. The environment was a testbed consisting of one server and four virtual client machines created via VMware Workstation.

Performance and Effectiveness

The experimental results highlight a dramatic improvement in execution speed through parallel testing. By breaking the test suite into independent chunks, the time-to-result scales almost linearly with the number of available agents.

Execution time analysis across different functionality modules with varying numbers of client agents

As shown in the analysis, for the "Scheduling" module—the most complex in the suite—the execution time dropped from 180.24 seconds on a monolithic system to just 60.13 seconds when distributed across four client machines, representing a 3x improvement. Across all modules (Authentication, Registration, Shifts, etc.), the time required for execution decreased consistently as more client agents were added.

In terms of effectiveness, the framework successfully identified defects in the Software Under Test (SUT). Out of 50 cases, 84% passed, while 12% failed, revealing actual bugs such as broken logoff functionality and erroneous shift assignments. Only 4% of tests were deferred due to script errors.

Conclusion

This study demonstrates that the use of agents to build a dynamic model for software testing in a distributed environment results in a more robust and efficient design. By parallelizing test execution across multiple intelligent agents, the framework significantly reduces testing time and provides real-time defect analytics. Future work may explore non-functional requirements like performance and stress testing, as well as incorporating machine learning to help agents adapt to even more complex, evolving software architectures.

Summary updated

BibTeX
@article{fraz2017multi,
  author = {Muhammad Moazam Fraz and N. Minh and Uzma Bibi and Muhammad Ayaz},
  title = {{Multi-Agent based Functional Testing in the Distributed Environment}},
  journal = {International Journal of Advanced Computer Science and Applications},
  year = {2017},
  doi = {10.14569/ijacsa.2017.080818},
}
Figure