CYPRESS PERFORMANCE INSIGHTS PREDICTING UI TEST EXECUTION TIME USING COMPLEXITY METRICS
DOI:
https://doi.org/10.15662/IJARCST.2023.0606021Keywords:
Execution Time Prediction, Machine Learning Regression, Multi-layer Perceptron, Test Automation, Model Evaluation, Software Testing MetricsAbstract
This study presents a comparative analysis of three machine learning regression algorithms—Linear Regression (LR), Multi-layer Perceptron (MLP), and Gaussian Process Regression (GPR)—for predicting software execution time based on critical testrelated input parameters. The aim is to evaluate model performance in accurately estimating execution time using features such as Test Script Complexity, DOM Element Count, and Test Data Size (in KB). A robust evaluation was carried out using multiple metrics, including R² score, Explained Variance Score (EVS), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), Mean Squared Log Error (MSLE), and others. The results indicate that MLP outperforms the other models on test Cypress Performance Insights: Predicting UI Test Execution Time Using Complexity Metrics https://iaeme.com/home/journal/IJRCAIT 168 editor@iaeme.com data, showcasing high accuracy and generalization capability, making it the most suitable model for predictive automation scenarios.
Research Significance: With increasing demands for automation in software testing, accurately predicting test execution time has become crucial for optimizing resource allocation, managing testing pipelines, and improving CI/CD efficiency. Traditional heuristic-based estimations often fail to capture complex nonlinear dependencies between test attributes and execution performance. This research contributes to the field by applying and benchmarking advanced machine learning models to quantify these relationships, offering a data-driven framework for execution time prediction in test automation environments. Methodology: Algorithm Analysis The study utilizes three supervised learning regression algorithms: Linear Regression (LR): A baseline model to understand linear relationships.
Multi-layer Perceptron (MLP): A neural network-based model capable of capturing nonlinear patterns. Gaussian Process Regression (GPR): A probabilistic model that estimates uncertainty along with predictions. The input dataset includes the following features: Test Script Complexity, DOM Element Count, Test Data Size (in KB). The target variable is: Execution Time (in seconds). Each model was trained on a structured dataset and evaluated using a comprehensive set of regression metrics on both training and test data. Alternative: Input Parameter The predictive model was built using the following input features that influence execution time:
Test_Script_Complexity: Indicates the logical and structural difficulty of the test script.
DOM_Element_Count: Number of Document Object Model elements present, representing UI complexity.
Test_Data_Size_KB: Volume of input test data in kilobytes, which impacts processing time.
Evaluation Parameter: Output The output parameter being predicted is: Execution_Time_Seconds: The total time (in seconds) taken to execute a test case/script from start to finish. Result: The evaluation results highlight significant differences in performance across the three models. MLP achieved the highest R² (≈ 0.98) and the lowest error metrics (MSE ≈ 0.019, RMSE ≈ 0.139) on the test data, indicating excellent generalization and predictive accuracy. GPR performed moderately, while Linear Regression, though simpler, lagged behind in accuracy and error consistency. The findings support the use of MLP as the most robust and reliable model for predicting execution time in dynamic test environments
References
[1] Al-Ajily, Mohamed. "Automated Testing for React Web Application with Cypress." (2022).
[2] Cao, Anh. "Using Test Automation Frameworks to Ensure the Stability of Graphical User Interface Application." (2022).
[3] Taky, Malika Tasnim. "Automated Testing With Cypress." (2021).
[4] PK Kanumarlapudi. (2023) Strategic Assessment of Data Mesh Implementation in the Pharma Sector: An Edas-Based Decision-Making Approach. SOJ Mater Sci Eng 9(3): 1-9. DOI: 10.15226/2473-3032/9/3/00183
[5] Monje Morales, Alejandro Alfredo. "Automated front-end website testing with Cypress." (2023).
[6] Talakola, Swetha. "Exploring the Effectiveness of End-to-End Testing Frameworks in Modern Web Development." International Journal of Emerging Research in Engineering and Technology 3, no. 3 (2022): 29-39.
[7] Akl, Maria. "Exploring Software Architectural Transitions: From Monolithic Applications to Microfrontends enhanced by Webpack library and Cypress Testing." PhD diss., Politecnico di Torino.
[8] Jyolsna, Jyolsna, and Syahid Anuar. "Modern web automation with cypress. Io." Open International Journal of Informatics 10, no. 2 (2022): 182-196.
[9] PK Kanumarlapudi. (2023). Multi-Objective Optimization of Healthcare Service Parameters Using GRA-Based Genetic Algorithms. J Comp Sci Appl Inform Technol. 8(1): 1-7.
[10] Vieira, Maria Eduarda S., Vitor Reiel M. de Lima, Windson Viana, Michel S. Bonfim, and Paulo AL Rego. "Enhancing Continuous Integration Workflows: End-to-End Testing Automation with Cypress."
[11] KRÁLIK, BC DALIBOR. "Development of a Front-End Testing Framework: Strategies, Tools, and Implementation."
[12] Gan, Xiaoxiao, and Chris Brown. "Exploring the Impact of Integrating UI Testing in CI/CD Workflows on GitHub." arXiv preprint arXiv:2504.19335.
[13] Raghavendra Sunku. (2023). AI-Powered Data Warehouse: Revolutionizing Cloud Storage Performance through Machine Learning Optimization. International Journal of Artificial intelligence and Machine Learning, 1(3), 278. https://doi.org/10.55124/jaim.v1i3.278
[14] Usman, Muhammad, and Najeeb Ullah. "Integrating Behavior Driven Testing Approach with Cypress and Cucumber." VFAST Transactions on Software Engineering 13, no. 1: 153-165.
[15] Shrivardhan, Ramakant Limbkar. "Evaluating UI Design Frameworks and transform the learnings into own UI Design System." PhD diss., Dublin Business School, 2022.
[16] Kakulavaram, S. R. (2023). Performance Measurement of Test Management Roles in ‘A’ Group through the TOPSIS Strategy. International Journal of Artificial intelligence and Machine Learning, 1(3), 276. https://doi.org/10.55124/jaim.v1i3.276
[17] Hassan Noor, Joel. "The effects of architectural design decisions on framework adoption: A comparative evaluation of meta-frameworks in modern web development.
[18] Krosnick, Rebecca. "Improving Web Automation Tools through UI Context and Demonstration." PhD diss.
[19] Pratomo, Albert Edwillian, Erik van der Schriek, and Thomas van der Veen. "Test Driven Development in OWOW’ s Full-stack Web Development." International Journal of Industrial Research and Applied Engineering 4, no. 2 (2019): 46-50
[20] Adamides, George, Nikos Kalatzis, Andreas Stylianou, Nikolaos Marianos, Fotis Chatzipapadopoulos, Marianthi Giannakopoulou, George Papadavid, Vassilis Vassiliou, and Damianos Neocleous. "Smart farming techniques for climate change adaptation in Cyprus." Atmosphere 11, no. 6 (2020): 557.
[21] Sambamurthy, Manikandan. Test Automation Engineering Handbook: Learn and implement techniques for building robust test automation frameworks. Packt Publishing Ltd, 2023.
[22] Raghavendra Sunku. AI-Powered Forecasting and Insights in Big Data Environments. Journal of Business Intelligence and Data Analytics, 1(2), 254. https://doi.org/10.55124/jbid.v1i2.254
[23] Kakulavaram. S. R. (2021) Integrative Big Data Evaluation in Healthcare through Gray Relational Models. SOJ Mater Sci Eng 8(2): 1-9. DOI: 10.15226/2473-3032/8/2/00185
[24] Kizilcec, René F., Elaine Huber, Elena C. Papanastasiou, Andrew Cram, Christos A. Makridis, Adele Smolansky, Sandris Zeivots, and Corina Raduescu. "Perceived impact of generative AI on assessments: Comparing educator and student perspectives in Australia, Cyprus, and the United States." Computers and Education: Artificial Intelligence 7 : 100269.
[25] Sridhar Kakulavaram. (2022). Life Insurance Customer Prediction and Sustainbility Analysis Using Machine Learning Techniques. International Journal of Intelligent Systems and Applications in Engineering, 10(3s), 390 –. Retrieved from https://ijisae.org/index.php/IJISAE/article/view/7649
[26] Damalas, Andreas, Christodoulos Mettas, E. Evagorou, S. Giannecchini, C. Iasio, Marinos Papadopoulos, Alexia Konstantinou, and D. Hadjimitsis. "Development and Implementation of a DECATASTROPHIZE platform and tool for the management of disasters or multiple hazards." International journal of disaster risk reduction 31 (2018): 589-601.


