Automatic test method and device
A technology of automated testing and testing methods, applied in the field of testing, can solve the problems of unified APIs without business scenarios and high cost of test case migration, so as to reduce the cost of writing and meet the needs.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 A schematic structural diagram of a test framework provided by an embodiment of the present invention. Such as figure 1 As shown, Totoro on the left side is the automated testing framework of the present invention, and the right side is the supporting proxy tool, Server and various terminals.
[0026] The automatic test framework of the present invention includes: a basic operation layer (basecommon), a business logic layer (commonapi), a test case layer, a custom JUnit module and a Utils module.
[0027] Among them, the basic operation layer (basecommon): includes the realization of the basic operations of each end, such as click, slide, screenshot, picture comparison, etc.
[0028] Business logic layer (common api): abstract the business logic of each end and each product, and use a unified common api. For example, the api corresponding to clicking on a Tieba advertisement is clickAD. You don’t need to consider the characteristics of each end when writing ...
Embodiment 2
[0042] figure 2 It is a flowchart of an automated testing method provided by an embodiment of the present invention. Such as figure 2 As shown, the test method may include the following steps:
[0043] Step S201: The server builds test cases according to the operation needs and the public business function common api; wherein, the operation needs include click, slide, drag, long press and screenshot;
[0044] Specifically, the server obtains the operation requirements; then encapsulates the operation requirements, and then builds test cases according to the encapsulated operation requirements and common api.
[0045] After the test case is built, the server stores the built test case; the test case stored in the server is used to detect the application program in the user terminal, for example, to check the application program of the Android terminal and the ios terminal, and the PC terminal And the web page on the wap side is detected.
[0046] It should be noted that ...
Embodiment 3
[0063] image 3 It is a schematic structural diagram of an automatic testing device provided by an embodiment of the present invention. Such as image 3 As shown, the test device may include: a construction module 301 , an acquisition module 302 and a test module 303 . The testing device may be a server. In the following, the test device is taken as an example for description.
[0064] The construction module 301 is used to: construct test cases according to operation requirements and public business function common api; wherein, the operation requirements include click, slide, drag, long press and screenshot;
[0065] Specifically, first obtain the operation requirements; then encapsulate the operation requirements, and then build test cases according to the encapsulated operation requirements and common api.
[0066] After the test case is built, the server stores the built test case; the storage module stored in the server, the test case is used to detect the applicatio...
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