Unit testing method and device and storage medium

A technology of unit testing and test cases, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of reduced testing convenience and reduced testing efficiency, and achieve simplified unit testing steps, reduced testing efficiency, Reduce the effect of battery aging

Pending Publication Date: 2022-05-13
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] It can be seen that in each unit test process, the test app needs to be reinstalled on the computer, and the tested app needs to be installed on each tested mobile phone. It can be seen that the installation of the tested app and the tested app in the current unit test process Executing unit tests cannot be separated from computer operations, resulting in a decrease in test convenience and test efficiency, especially when testing multiple mobile phones in batches.

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
  • Unit testing method and device and storage medium
  • Unit testing method and device and storage medium
  • Unit testing method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The terms "first" and "second" in the description and claims of the embodiments of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or modules is not necessarily limited to the expressly listed Those steps or modules, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or equipment. The division of modules that appear in the embodiments of the present application is ...

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 embodiment of the invention relates to the cloud technology, and provides a unit testing method and device and a storage medium, and the method comprises the steps: determining a to-be-tested application in an uninstalled state in a terminal; starting a preset hot update plug-in in the to-be-tested application, and performing hot update on the to-be-tested application based on the hot update plug-in to obtain an update file from a server, the update file being a tested program associated with the to-be-tested application; obtaining a target test case from the to-be-tested application; loading the target test case, and executing the target test case to perform unit test on the tested program to obtain a test report; and uploading the test report to the server. According to the scheme, the unit testing efficiency can be improved, the unit testing steps are simplified, the trouble that applications need to be repeatedly tested when cases are executed every time and permission pop-up boxes of the applications need to be opened every time is avoided, and the tested terminal can be completely separated from a computer end to execute unit testing.

Description

technical field [0001] The embodiment of the present application relates to the field of cloud technology, and in particular to a unit testing method, device and storage medium. Background technique [0002] In unit testing (such as gts and cts automated testing) for Android mobile phones, the Android test case code and the tested code are usually packaged into an apk file (that is, the test app and the tested app), and then connected to the computer through a data cable and the mobile phone under test. Connect the mobile phone through the data cable, install the test app on the computer, and install the tested app on the mobile phone, then call the mobile phone to perform unit testing on the tested app, and finally output the test report. [0003] It can be seen that in each unit test process, the test app needs to be reinstalled on the computer, and the tested app needs to be installed on each tested mobile phone. It can be seen that the installation of the tested app and...

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/36G06F8/656
CPCG06F11/3684G06F8/656
Inventor 刘春勇
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products