Font Size: a A A

Test Case Generation For Web Systems:a Requirement-driven Approach

Posted on:2024-07-01Degree:MasterType:Thesis
Country:ChinaCandidate:J J LuFull Text:PDF
GTID:2558307070450594Subject:Engineering
Abstract/Summary:PDF Full Text Request
Web systems,which are very commonly used in daily life,are composed of various types of web components,.The quality of the web system determines the frequency of its use,so the testing of web-oriented systems is particularly important.Software testing can be divided into manual testing and automated testing from the testing method,the former is spent by testers a lot of time and energy,and the testing cost is high;The latter can be automatically executed through the software system,saving labor costs and greatly improving execution efficiency.The existing proposed automated testing of Web systems mainly analyzes test results by judging page path jumps through URL addresses,which cannot cope with component changes under the same URL path,and in addition,the impact brought by domain terms is not considered when testing data growth.Therefore,this thesis proposes a method of automatic generation of requirement-driven test cases for testing Web systems,and the main work includes:(1)An automatic test case generation algorithm is designed.According to the requirement analysis result activity diagram,the test scenarios were first obtained by traversing the activity diagram with DFS depth-first,and then the domain terms are labeled with NLP lexical annotation,and the test data are generated by combining equivalence class division and boundary value analysis.(2)Automatic execution of test cases is performed.Selenium is used to automate the test cases and proposed to combine OCR recognition of interface elements to determine whether the component changes and page jump paths are correct to determine the correctness or failure of the test cases.(3)A case study is conducted for the customer relationship management system.Use case diagrams,use case descriptions,and system activity diagrams were used to analyze the functional requirements of the system in detail,and automated tests were conducted based on the resulting test cases,resulting in test results.This thesis is applied in CRM customer management system to solve the changes of different components under the same URL path,the changes of different URL addresses on the page path jumping judgment when test cases are executed automatically,and the consideration of different industry domain terms on also data generation,which effectively reduces the testing time,reduces the testing cost,improves the testing coverage and enhances the testing efficiency.
Keywords/Search Tags:Requirement-Driven Test, Test Cases, Activity Diagram, NLP, Automation
PDF Full Text Request
Related items