Supercharge Your Innovation With Domain-Expert AI Agents!

Black box testing method and device based on Java virtual machine, terminal and storage medium

A technology of java virtual machine and black box testing, which is applied in software testing/debugging, error detection/correction, instrumentation, etc. It can solve the problems of low test efficiency, failure to provide, and low application software test coverage, so as to improve code coverage rate and improve test efficiency

Pending Publication Date: 2019-10-08
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a black-box testing method, device, terminal and storage medium based on a Java virtual machine, aiming to solve the problem of test coverage of application software due to the inability to provide an effective black-box testing method in the prior art Low and low test efficiency

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
  • Black box testing method and device based on Java virtual machine, terminal and storage medium
  • Black box testing method and device based on Java virtual machine, terminal and storage medium
  • Black box testing method and device based on Java virtual machine, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 The implementation flow of the black-box testing method based on the Java virtual machine provided by Embodiment 1 of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:

[0029] In step S101 , when a test request of a target application from a JVM user is received, a current test case of the target application is input into the JVM, so as to perform a black-box test on the target application according to the current test case.

[0030] The embodiment of the present invention is applicable to the computing terminal that JVM (Java Virtual Machine, Java virtual machine) is installed, for example, desktop computer, notebook computer, panel computer etc., can carry out black box to the code of application software by test case on this JVM test. In the embodiment of the present invention, the target application is an application program to be...

Embodiment 2

[0040] figure 2 The implementation process of the black-box testing method based on the Java virtual machine provided by the second embodiment of the present invention is shown. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown, and the details are as follows:

[0041] In step S201 , when a test request of a target application from a JVM user is received, a current test case of the target application is input into the JVM, so as to perform a black-box test on the target application according to the current test case.

[0042] The embodiment of the present invention is applicable to the computing terminal that JVM (Java Virtual Machine, Java virtual machine) is installed, for example, desktop computer, notebook computer, panel computer etc., can carry out black box to the code of application software by test case on this JVM test. In the embodiment of the present invention, the target application is an application ...

Embodiment 3

[0065] Figure 4 The structure of the black-box testing device based on the Java virtual machine provided by the third embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:

[0066] The test case input unit 41 is used to input the current test case of the target application into the JVM when receiving the test request of the target application by the user of the JVM, so as to carry out black-box testing to the target application according to the current test case;

[0067] The monitoring acquisition unit 42 is used to monitor the code running track of the target application when the target application is running according to the current test case, so as to obtain the executed code of the target application, and obtain the current code of the current test case for the target application according to the executed code coverage;

[0068] A report exporting unit 43,...

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 method is suitable for the technical field of software testing. The invention provides a black box testing method and device based on a Java virtual machine, a terminal and a storage medium. The black box testing method comprises the following steps: when receiving a test request of a JVM user for a target application, inputting the current test case of the target application into the JVM; when the target application runs according to the current test case, monitoring a code running track of the target application so as to obtain the executed code of the target application; and obtaining the current code coverage rate of the current test case on the target application according to the executed code, generating a code coverage report of the current testing case, and updating the currenttesting case according to the code coverage report of the current testing case to continue to test the target application, so that the code coverage rate of the black box testing is improved by gradually perfecting the testing case, and the testing efficiency of the black box testing is improved.

Description

technical field [0001] The invention belongs to the technical field of software testing, and in particular relates to a Java virtual machine-based black-box testing method, device, terminal and storage medium. Background technique [0002] Computer software programs cannot avoid various defects during the manual writing stage. Therefore, before the software is officially used, it is necessary to conduct a large number of tests to find out the defects and solve the found defects. People use the various functions of the software normally. [0003] At present, black-box testing is widely used in such software testing. Black-box testing coverage is generally measured based on required function points, and black-box testing is performed from the user's perspective. The program is regarded as a program that cannot be opened. The black box of the program conducts a functional test on the input and output of the program without considering its internal program structure and interna...

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
CPCG06F11/3684G06F11/3688
Inventor 瞿庆
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More