Unlock instant, AI-driven research and patent intelligence for your innovation.

Hybrid application automatic test method and device, electronic device and storage medium

A technology of automated testing and mixed applications, which is applied in the fields of automated testing of mixed applications, electronic equipment and computer-readable storage media, can solve problems such as low test efficiency and cumbersome testing process of mixed applications, and achieve convenient test automation and lower test thresholds , the effect of improving writing efficiency

Active Publication Date: 2019-05-17
CHINA PING AN LIFE INSURANCE CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Traditional automated testing needs to write a lot of code, which makes the testing process of hybrid applications cumbersome and the testing efficiency is not high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hybrid application automatic test method and device, electronic device and storage medium
  • Hybrid application automatic test method and device, electronic device and storage medium
  • Hybrid application automatic test method and device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] refer to figure 1 As shown in FIG. 1 , it is a schematic diagram of an application environment of the hybrid application automated testing method provided in Embodiment 1 of the present invention.

[0031] The hybrid application automated testing method in the present invention is applied to an electronic device 1 , and the electronic device 1 establishes a communication connection with at least one user terminal 2 .

[0032] In this embodiment, the electronic device 1 may be a server or a server cluster, a personal computer and other devices. The user terminal 2 may be a device such as a smart phone, a tablet computer, or a smart wearable device.

[0033]In one embodiment, the electronic device 1 and the user terminal 2 can establish a communication connection through a wired (such as USB (Universal Serial Bus, Universal Serial Bus) or wireless mode. The wireless mode can be any traditional wireless communication technology. Types, such as radio, wireless fidelity (W...

Embodiment 2

[0036] see figure 2 As shown, it is a flow chart of the hybrid application automated testing method provided by the second embodiment of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0037] Step S11, receiving a test case step information set, wherein the test case step information set includes a plurality of test case step information and the environment type corresponding to each test case step information, and the test case step information is arranged according to the test steps, The environment type is used to identify the execution object of the test step, and the execution object includes H5 or Native.

[0038] In one embodiment, the test case step information set is entered by the user in the test case input interface, and the test case step information in the test case step information set entered in the test case input interface is in the form of character text i...

Embodiment 3

[0077] image 3 It is a structural diagram of a preferred embodiment of the hybrid application automatic testing device of the present invention.

[0078] In some embodiments, the hybrid application automated testing device 10 runs in an electronic device. The hybrid application automated testing device 10 may include a plurality of functional modules composed of program code segments. The program codes of each program segment in the hybrid application automated testing device 10 can be stored in the memory of the electronic device, and executed by the at least one processor, so as to realize the hybrid application automated testing function.

[0079] In this embodiment, the hybrid application automated testing device 10 can be divided into multiple functional modules according to the functions it performs. refer to image 3 As shown, the functional modules may include: an input module 101 , a storage control module 102 , a script conversion module 103 , a judgment module 1...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a hybrid application automatic test method, which comprises the following steps of receiving the test case step information, the test case step information comprising an environment type corresponding to a test step, and the environment type being used for identifying whether an execution object of the test step is H5 or Native; converting the test step information into an automatic test script; when the environment type in the next test case step information is inconsistent with the environment type in the current test case step information, determining that the currenttest case step information is inconsistent; inserting mark information of a switching environment after an automatic test script corresponding to the current test case step information, wherein the mark information of the switching environment is used for controlling to switch between an H5 test environment and a Native test environment in a test process; and executing the automated testing script. The invention also provides a hybrid application automation test device, an electronic device and a storage medium. The automated testing tool provided by the invention improves the testing efficiency of the hybrid application.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a hybrid application automatic testing method and device, electronic equipment and a computer-readable storage medium. Background technique [0002] A hybrid app refers to an H5 application embedded in a traditional app through a webview. The testing methods for pure Native applications and H5 applications are different. When the two applications are mixed together, we need to switch the testing method according to the application type when testing. Traditional automated testing requires writing a lot of code, which makes the testing process of hybrid applications cumbersome and the testing efficiency is not high. Contents of the invention [0003] In view of the above, it is necessary to propose a mixed application automated testing method and device, electronic equipment, and a computer-readable storage medium to improve the automated testing efficiency of mixed applications....

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
Inventor 黄小婷
Owner CHINA PING AN LIFE INSURANCE CO LTD