Submitted:
22 April 2025
Posted:
24 April 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. Background on Test Frameworks
1.2. Introduction to XMPP (Extensible Messaging and Presence Protocol)
1.3. Purpose of the Study
1.4. Research Questions
- How does XMPP impact the performance of a test framework?
- 2.
- What are the benefits and limitations of XMPP-based vs. non-XMPP centralized frameworks?
- 3.
- In what contexts does each approach excel?
2. Literature Review
2.1. Overview of Centralized Testing Architectures
2.2. XMPP in Distributed Systems
2.3. Comparative Studies
2.4. Gap in Research
3. Methodology
3.1. Framework Selection
- XMPP-based Framework: A custom test framework built on Openfire (an open-source XMPP server) and Smack (an XMPP client library for Java). Openfire provides real-time, extensible messaging infrastructure, while Smack facilitates client-side integration for sending and receiving test commands and results.
- Non-XMPP Centralized Framework: A test framework utilizing a REST-based communication architecture, where the central controller interacts with distributed test agents via HTTP APIs. This model reflects common industry practices found in tools such as Jenkins or custom REST-enabled test controllers.
3.2. Test Scenarios
- Parallel Test Execution: Simultaneous execution of multiple test cases across distributed agents to assess coordination efficiency.
- Test Coordination Under High Load: Stress-testing the framework’s ability to manage a surge in test activities and messaging traffic.
- Message Delivery Latency: Measuring the time taken for test instructions or results to propagate between controller and agents.
3.3. Metrics for Comparison
- Latency: Time taken for a message to travel from controller to agent and back (round-trip time).
- Throughput: Number of test instructions or messages processed per second.
- Scalability: System performance degradation (if any) as the number of agents or test cases increases.
- CPU/Memory Utilization: Resource consumption observed on the controller and agent machines.
- Failure Recovery Time: Time taken for the framework to recover and resume normal operations after a node or network failure.
3.4. Tools & Environment
- Network Emulator: Tools like NetEm were used to simulate various network conditions, including latency, jitter, and packet loss.
-
Performance Monitoring Tools:
- ○
- JMeter: For simulating test loads and monitoring response times.
- ○
- Wireshark: For deep packet inspection and protocol behavior analysis.
-
Virtualized Infrastructure:
- ○
- Docker containers and Virtual Machines (VMs) were deployed to represent isolated test agents and the controller in a controlled environment.
- ○
- This setup also allowed for repeatable testing across different scales and network configurations.
4. Implementation
4.1. Design of Test Frameworks
- XMPP-Based Framework: Built on Openfire as the XMPP server, with Smack libraries integrated into both the controller and test agents. Communication relied on XMPP message stanzas to dispatch test instructions and receive results asynchronously. Agents subscribed to specific nodes or chat rooms, enabling efficient coordination via publish-subscribe patterns.
- Non-XMPP Centralized Framework: Implemented using a REST API interface. The controller issued HTTP requests to test agents hosted as microservices, which returned results in synchronous or polling-based models. Communication was stateless and relied on JSON payloads over HTTP/HTTPS.
4.2. Experimental Setup
- Communication-Heavy: Frequent messaging between controller and agents with minimal computation. Example: sending periodic heartbeats, status updates, and log streaming.
- Computation-Heavy: High CPU-bound tasks with minimal messaging. Example: algorithmic stress tests or intensive data processing.
- Hybrid: Balanced workload combining message passing and computation. Example: a test that requires coordination, data generation, and result aggregation.
- Low Load: 5 agents, 10 test cases
- Moderate Load: 25 agents, 50 test cases
- High Load: 100+ agents, 200+ test cases
4.3. Data Collection
- Automated Logging: Each framework was instrumented to log timestamps for sent and received messages, execution start/end times, and exception handling.
- Network Traffic Monitoring: Tools such as Wireshark and tcpdump were used to capture packet traces and analyze protocol behavior, bandwidth usage, and message overhead.
- Resource Usage: CPU, memory, and disk I/O metrics were gathered using Docker stats, top, and custom scripts. These readings were logged at regular intervals during test execution.
- Failure Recovery Simulation: In some tests, intentional agent failures or network interruptions were introduced to measure recovery time and error-handling efficiency.
5. Results and Analysis
5.1. Raw Performance Metrics
| Load Level | XMPP-Based | Non-XMPP (REST) |
| Low Load | 25 | 18 |
| Moderate Load | 42 | 36 |
| High Load | 77 | 61 |
| Load Level | XMPP-Based | Non-XMPP (REST) |
| Low Load | 480 | 460 |
| Moderate Load | 930 | 890 |
| High Load | 1650 | 1420 |
| Scenario | XMPP-Based | Non-XMPP (REST) |
| Agent Disconnection | 3.2 | 5.1 |
| Network Glitch | 2.7 | 4.8 |
5.2. Interpretation
- Latency: XMPP-based communication introduces slightly higher latency due to XML overhead and handshake mechanisms. However, the latency remains within acceptable ranges even under high loads, indicating reasonable scalability.
- Throughput: The XMPP framework showed better throughput under moderate to high load due to its efficient asynchronous message handling. Its performance advantage became more apparent as concurrency increased.
- Resource Utilization: XMPP exhibited higher initial CPU and memory usage during session establishment due to connection management and presence signaling. However, it scaled efficiently with a large number of agents thanks to its persistent connections and stream-based model.
- Failure Recovery: XMPP’s built-in support for presence detection and reconnection logic resulted in faster recovery from network issues and node failures compared to the polling-based recovery of the REST system.
5.3. Statistical Analysis
- A paired t-test was performed on latency and throughput metrics across all load levels. The results showed p-values < 0.05, indicating that the performance differences between XMPP and non-XMPP frameworks are statistically significant.
- ANOVA tests were conducted across different load levels for each framework to assess how load affects performance internally. These tests confirmed that increasing agent count had a greater relative impact on REST-based communication due to increased request overhead.
6. Conclusions
References
- Chatterjee, A. , Bala, A., Shah, M., & Nagappa, A. H. (2018, December). CTAF: Centralized Test Automation Framework for multiple remote devices using XMPP. In 2018 15th IEEE India Council International Conference (INDICON) (pp. 1-6). IEEE.
- Hasan, K. , Hossain, F., Amin, A., Sutradhar, Y., Jeny, I. J., & Mahmud, S. (2025). Enhancing Proactive Cyber Defense: A Theoretical Framework for AI-Driven Predictive Cyber Threat Intelligence. Journal of Technologies Information and Communication, 5(1), 33122.
- Jesmin Ul Zannat Kabir, Nabil, A. R., & Reshad Ahmed. (2025). Developing Al-Powered Chatbots for Mental Health Support in Rural America. Journal of Computer Science and Technology Studies, 7(2), 23-35. [CrossRef]
- Alam, M. A. , Sohel, A., Biswas, A., Sifat, S. B. M., Nabil, A. R., Chowdhury, N.,... & Bappy, M. A. (2024). Privacy-preserving multi-class classification of acute lymphoblastic leukemia subtypes using federated learning.
- Vivian, M. , Ashrafur, R. N., Tusher, M. T., Akther, M. N., & Rayhan, R. U. (2025). Ethical Implications Of AI-Powered Predictive Policing: Balancing Public Safety With Privacy Concerns. Innovatech Engineering Journal, 2(01), 47-58.
- Mintoo, A. A. , Nabil, A. R., Alam, M. A., & Ahmad, I. (2024). Adversarial Machine Learning In Network Security: A Systematic Review Of Threat Vectors And Defense Mechanisms. Innovatech Engineering Journal, 1(01), 80-98.
- Hossain, F. , Hasan, K., Amin, A., & Mahmud, S. (2024). Quantum Machine Learning for Enhanced Cybersecurity: Proposing a Hypothetical Framework for Next-Generation Security Solutions. Journal of Technologies Information and Communication, 4(1), 32222.
- SeleniumHQ. (2024). Selenium WebDriver. Available online: https://www.selenium.dev/.
- Appium. (2024). Appium: Mobile App Automation Made Awesome. Available online: https://appium.io/.
- Robot Framework Foundation. (2024). Robot Framework. Available online: https://robotframework.org/.
- TestNG. (2024). TestNG Documentation. Available online: https://testng.org/doc/.
- Saint-Andre, P. (2011). Extensible Messaging and Presence Protocol (XMPP): Core. IETF RFC 6120. https://tools.ietf.org/html/rfc6120.
- Saint-Andre, P. (2011). Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence. IETF RFC 6121. https://tools.ietf.org/html/rfc6121.
- Openfire. (2024). Real-Time Collaboration Server. Available online: https://www.igniterealtime.org/projects/openfire/.
- Wang, J. , Zhang, Y., & Liu, L. (2012). A real-time monitoring architecture for distributed systems using XMPP. 2012 IEEE International Conference on Information and Automation, 1187–1192. [CrossRef]
- Kim, D. , & Park, C. (2016). Design and implementation of an IoT data communication model based on XMPP protocol. Journal of Sensors. [CrossRef]
- Prosody. (2024). Prosody IM: A lightweight XMPP server. Available online: https://prosody.im/.
- SleekXMPP. (2023). SleekXMPP Documentation. Available online: https://sleekxmpp.readthedocs.io/.
- Guo, Y. , & Zhou, J. (2020). Challenges in large-scale distributed test automation. IEEE Software, 37(5), 58–64. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).