Automatic UI testing method and system
A technology for automated testing and driving testing, applied in the field of computer testing, can solve the problems of troublesome editing, time-consuming positioning, and time-consuming process of control positioning, so as to facilitate management and maintenance, and improve test efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 1 It is a flow chart of the UI automation testing method provided by Embodiment 1 of the present invention, and the system architecture corresponding to the flow chart is as follows figure 2 shown in . Such as figure 1 As shown in , the method specifically includes:
[0036] Step 101: Drive the running of the test code in the editor through the test case written in JSpec.
[0037] In the present invention, to realize that the test case and the test code are stored in different files respectively, and the operation of the test code is driven by the test case, it is necessary to introduce testNG or a secondary packaging tool based on testNG into UI automation testing, that is, in UI automation The test framework integrates the testNG plug-in or the secondary packaging tool plug-in based on testNG. testNG (Testing Next Generation, next-generation testing technology) is an open source tool, a testing framework built on the basis of JUnit and Nunit ideas that use...
Embodiment 2
[0081] Figure 4 The structural diagram of the UI automated testing system provided for the second embodiment of the present invention, such as Figure 4 As shown, the system may include a use case organization unit 10 and a code execution unit 20 , and may also include a continuous integration server 30 and an automatic execution machine 40 .
[0082] The use case organization unit 10 stores the test cases and test codes in different files. Specifically, the testNG plug-in integrated in the UI automation test framework or the secondary packaging tool plug-in based on testNG can be used to realize that the test cases and test codes are stored in different files respectively; the above-mentioned secondary packaging based on testNG Tools include JSpec, jtester or Qtester. When organizing test cases, if JSpec is used, story files are used to store test cases. A story file can include more than one test case, and each test case corresponds to a test code. If jtester is used, wi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com