CN112286826A - VTS testing method, VTS testing device, storage medium and computer equipment - Google Patents

VTS testing method, VTS testing device, storage medium and computer equipment Download PDF

Info

Publication number
CN112286826A
CN112286826A CN202011345688.9A CN202011345688A CN112286826A CN 112286826 A CN112286826 A CN 112286826A CN 202011345688 A CN202011345688 A CN 202011345688A CN 112286826 A CN112286826 A CN 112286826A
Authority
CN
China
Prior art keywords
detected
test
module
compiling
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011345688.9A
Other languages
Chinese (zh)
Other versions
CN112286826B (en
Inventor
李志娇
陈烟高
吴超飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011345688.9A priority Critical patent/CN112286826B/en
Publication of CN112286826A publication Critical patent/CN112286826A/en
Application granted granted Critical
Publication of CN112286826B publication Critical patent/CN112286826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Abstract

The application provides a VTS test method, a VTS test device, a storage medium and computer equipment, wherein the method comprises the following steps: when detecting that a module to be detected completes a first compiling stage, acquiring a first compiling result of the module to be detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected; acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects; and testing the first compiling results of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result. The embodiment of the application can check the VTS rule of the script of the initial compiling stage in the compiling stage, so that the VTS test problem can be found in the initial compiling stage in time, errors of the later editing stage are effectively avoided, and a standard engineer defines attribute values in the development process, so that the labor cost is reduced, and the passing rate of the later VTS test is improved.

Description

VTS testing method, VTS testing device, storage medium and computer equipment
Technical Field
The application relates to the technical field of computers, in particular to a VTS (Vendor Test Suite) testing method, a device, a storage medium and computer equipment.
Background
With the development of Android systems, VTS tests in Android development provide a large number of Android test functions, VTS test detection becomes more and more strict, and some items that do not meet VTS tests, such as some attribute values that do not meet test requirements or SELinux (Security-Enhanced Linux) permissions that do not meet test requirements, do not cause problems in the development and compilation operation process, but report an error due to violation of VTS test rules in the VTS test process.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The application provides a VTS test method, a VTS test device, a storage medium and computer equipment, can carry out VTS rule check to the script of initial stage compiling stage when compiling the stage to in time discover VTS test problem at the initial stage compiling stage, effectively avoid the emergence of the mistake of later stage test stage, standardize the engineer to the definition of attribute value in the development process, reduce the human cost, promote the passing rate of later stage VTS test.
The embodiment of the application provides a VTS test method, which comprises the following steps:
when detecting that a module to be detected completes a first compiling stage, acquiring a first compiling result of the module to be detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected;
acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects;
and testing the first compiling results of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result.
In some embodiments, the testing method of the VTS tests the first compiling result of the sub-modules to be tested in the module to be tested according to the test rule list to obtain a test result, including:
respectively detecting the first compiling results of the plurality of to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list;
if the test result is that the test rule is not met in the first compiling results of the sub-modules to be tested, stopping the test, and generating first prompt information that the compiling results of the modules to be tested violate the test rule.
In some embodiments, the method further comprises:
and prohibiting the module to be tested from entering a second compiling stage according to the first prompt information.
In some embodiments, after the respectively detecting the first compiling results of the sub-modules to be detected in the module to be detected according to the test rule in the test rule list, the method further includes:
and if the test result indicates that the compiling results of all the to-be-detected sub-modules in the to-be-detected module all accord with the test rule, completing the test and generating second prompt information that the compiling results of the to-be-detected module all pass the test.
In some embodiments, after the respectively detecting the first compiling results of the sub-modules to be detected in the module to be detected according to the test rule in the test rule list, the method further includes:
and controlling the module to be tested to enter a second compiling stage according to the second prompt information.
In some embodiments, the testing the first compiling result of the sub-modules to be tested in the module to be tested according to the test rule list to obtain a test result includes:
detecting whether the plurality of to-be-detected sub-modules in the to-be-detected module are matched with the preset object;
if the plurality of to-be-detected sub-modules are matched with the preset object, respectively detecting whether a first compiling result of each to-be-detected sub-module meets a testing rule of the preset object;
and if the plurality of sub-modules to be detected are not matched with the preset object, detecting each sub-module to be detected, and returning missing prompt information of the missing sub-modules to be detected in the test rule list.
In some embodiments, after detecting whether the plurality of to-be-detected submodules in the to-be-detected module match the preset object, the method further includes:
if the condition that the sub-modules to be detected are not matched with the preset object exists in the plurality of sub-modules to be detected, stopping testing, and generating an information list containing the sub-modules to be detected which are not matched with the preset object.
The embodiment of the present application further provides a VTS testing apparatus, where the VTS testing apparatus is applied to VTS testing, and includes:
the first obtaining unit is used for obtaining a first compiling result of the module to be detected when the fact that the module to be detected completes a first compiling stage is detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected;
the second acquisition unit is used for acquiring a test rule list from the VTS tool, wherein the test rule list comprises test rules of preset objects;
and the test unit is used for testing the first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the test rule list so as to obtain a test result.
The present application further provides a computer-readable storage medium, in which a computer program is stored, and when the instructions are executed on a computer, the computer is caused to execute the steps in the VTS testing method according to any one of the above embodiments.
The embodiment of the present application further provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the processor executes the steps in the VTS testing method according to any one of the above embodiments by calling the computer program stored in the memory.
According to the VTS testing method, the VTS testing device, the VTS testing storage medium and the computer equipment, when a module to be tested is detected to complete a first compiling stage, a first compiling result of the module to be tested is obtained, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be tested in the module to be tested; acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects; and testing the first compiling results of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result. The embodiment of the application can check the VTS rule of the script of the initial compiling stage in the compiling stage, so that the VTS test problem can be found in the initial compiling stage in time, errors of the later editing stage are effectively avoided, and a specification engineer defines attribute values in the development process, so that the labor cost is reduced, and the passing rate of the later VTS test is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first flowchart of a VTS testing method according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of the VTS testing method according to the embodiment of the present disclosure.
Fig. 3 is a schematic view of a first structure of a VTS testing apparatus according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a second structure of a VTS testing apparatus according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a VTS testing method, a VTS testing device, a storage medium and computer equipment. Specifically, the VTS testing method according to the embodiment of the present application may be executed by a computer device, where the computer device may be a terminal or a server. The terminal may be a terminal device such as a notebook Computer, a Personal Computer (PC), or the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a content distribution network service, a big data and artificial intelligence platform, but is not limited thereto.
The embodiments of the application provide a VTS testing method, which can be executed by a terminal or a server, or can be executed by the terminal and the server together; the embodiments of the present application are described by taking an example in which the VTS test method is executed by a server.
A VTS testing method, comprising: when detecting that a module to be detected completes a first compiling stage, acquiring a first compiling result of the module to be detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected; acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects; and testing the first compiling results of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result.
Referring to fig. 1, fig. 1 is a first flow chart of a VTS testing method according to an embodiment of the present disclosure. The VTS testing method may include the steps of:
step 101, when it is detected that the module to be detected completes the first compiling stage, obtaining a first compiling result of the module to be detected, where the first compiling result includes first compiling results of a plurality of sub-modules to be detected in the module to be detected.
Specifically, whether the module to be detected completes the first compiling stage is detected, if so, the first compiling stage is stopped, and the compiling result of the module to be detected, which contains the compiling result of at least one sub-module to be detected, is obtained.
For example, in the process of compiling the functional module in the development process, when it is detected that the compilation of the SELinux module is completed, the compilation of the functional module is suspended, and the compilation result of the SELinux module is obtained, where the SELinux module includes ExportedPlatform Property, Vendor Property Namespace, and Odm Property Namespace waiting detection submodules.
Specifically, the ExportedPlatform Property is defined by an attribute value required by the Android system; the Vendor Property Namespace is an attribute value Namespace which can be used by a Vendor module specified by google; the Odm Property Namespace is an attribute value Namespace that the Odm module specified by google can use.
Step 102, obtaining a test rule list from the VTS tool, wherein the test rule list includes test rules of preset objects.
In some embodiments, obtaining a list of test rules from a VTS tool comprises: after a first compiling result of a module to be detected is obtained, a test rule list corresponding to the module to be detected is obtained from a VTS test tool according to the obtained module to be detected, and the obtained test rule list comprises test rules of preset objects.
For example, a test rule list corresponding to the SELinux module is obtained from a VTS tool, where the SELinux test rule list includes a rule for detecting Property Namespace, and is mainly used for detecting parts of the to-be-detected submodules such as ExportedPlatform Property, Vendor Property Namespace, and Odm Property Namespace.
Step 103, testing the first compiling results of the plurality of to-be-detected sub-modules in the to-be-detected module according to the test rule list to obtain a test result.
In some embodiments, the respectively detecting the first compiling results of the to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list includes:
detecting whether a plurality of to-be-detected submodules in the to-be-detected module are matched with a preset object or not;
if the plurality of to-be-detected sub-modules are matched with the preset object, respectively detecting whether the first compiling result of each to-be-detected sub-module meets the testing rule of the preset object;
and if the plurality of to-be-detected submodules are not matched with the preset object, detecting each to-be-detected submodule, and returning missing prompt information of the missing to-be-detected submodules in the test rule list.
For example, a first compiling result of the SELinux module is obtained, and whether compiling results of ExportedPlatform Property, Vendor Property Namespace and Odm Property Namespace waiting detection sub-modules all exist in the compiling result of the SELinux module is determined;
and if all the sub-modules to be detected exist in the compiling result of the SELinux module, testing each sub-module to be detected.
In some embodiments, testing the first compiling result of the to-be-tested sub-modules in the to-be-tested module according to the test rule list to obtain a test result, includes:
respectively detecting first compiling results of a plurality of to-be-detected sub-modules in a to-be-detected module according to the test rules in the test rule list;
if the test result is that the test rule is not met in the first compiling results of the sub-modules to be tested, stopping the test, and generating first prompt information that the compiling results of the modules to be tested violate the test rule.
For example, the compiling results of the ExportedPlatform Property, the Vendor Property Namespace and the Odm Property Namespace waiting detection sub-modules in the SELinux module are respectively detected according to the test rules in the test rule list;
if the compiling result of the sub-module to be detected does not accord with the condition of the test rule, stopping the test, and generating the detection error-reporting information of information such as the position of the SELinux module violating the test rule and/or the type of the test rule violating;
in some embodiments, after the detecting the first compiling results of the to-be-detected sub-modules in the to-be-detected module according to the test rule in the test rule list, the method further includes:
and if the test result is that the compiling results of all the to-be-detected submodules in the to-be-detected module accord with the test rule, completing the test and generating second prompt information that the compiling results of the to-be-detected module pass the test.
For example, the compiling results of the ExportedPlatform Property, the Vendor Property Namespace and the Odm Property Namespace waiting detection sub-modules in the SELinux module are respectively detected according to the test rules in the test rule list;
and if the compiling results of all the sub-modules to be detected accord with the condition of the test rule, the modules to be detected pass the test, and detection passing information that the compiling results of the SELinux modules pass the detection is generated.
All the above technical solutions can be combined arbitrarily to form the optional embodiments of the present application, and are not described herein again.
Referring to fig. 2, fig. 2 is a second flow chart of a VTS testing method according to an embodiment of the present disclosure. The VTS testing method may include the steps of:
step 201, when it is detected that the module to be detected completes the first compiling stage, obtaining a first compiling result of the module to be detected, where the first compiling result includes first compiling results of a plurality of sub modules to be detected in the module to be detected.
Specifically, whether the module to be detected completes the first compiling stage is detected, if so, the first compiling stage is stopped, and the compiling result of the module to be detected, which contains the compiling result of at least one sub-module to be detected, is obtained.
For example, in the process of compiling the functional module in the development process, when it is detected that the SELinux module is compiled, the compiling of the functional module is suspended, and the compiling result of the SELinux module is obtained, where the SELinux module includes an ExportedPlatform Property, a Vendor Property Namespace, and an Odm Property Namespace waiting detection submodule.
Step 202, a test rule list is obtained from the VTS tool, wherein the test rule list includes test rules of preset objects.
In some embodiments, obtaining a list of test rules from a VTS tool comprises:
after a first compiling result of a module to be detected is obtained, a test rule list corresponding to the module to be detected is obtained from a VTS test tool according to the obtained module to be detected, and the obtained test rule list comprises test rules of preset objects.
For example, a test rule list corresponding to the SELinux module is obtained from a VTS tool, where the SELinux test rule list includes a rule for detecting Property Namespace, and is mainly used for detecting parts of the to-be-detected submodules such as ExportedPlatform Property, Vendor Property Namespace, and Odm Property Namespace.
Specifically, obtaining the test rule list from the VTS tool may also be implemented as: ExportedPlatformPerty defined in advance by google is obtained from a VTS test suite.
Specifically, obtaining the test rule list from the VTS tool may also be implemented as: and extracting definition Namespace rules of Property values of Vendor Property Namesspace and Odm Property Namesspace in the VTS from the VTS script.
Step 203, testing the first compiling results of the plurality of to-be-tested sub-modules in the to-be-tested module according to the testing rule list to obtain testing results.
In some embodiments, the respectively detecting the first compiling results of the to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list includes:
detecting whether a plurality of to-be-detected submodules in the to-be-detected module are matched with a preset object or not;
if the plurality of to-be-detected sub-modules are matched with the preset object, respectively detecting whether the first compiling result of each to-be-detected sub-module meets the testing rule of the preset object;
and if the plurality of to-be-detected submodules are not matched with the preset object, detecting each to-be-detected submodule, and returning missing prompt information of the missing to-be-detected submodules in the test rule list.
For example, a first compiling result of the SELinux module is obtained, and whether compiling results of ExportedPlatform Property, Vendor Property Namespace and Odm Property Namespace waiting detection sub-modules all exist in the compiling result of the SELinux module is determined;
and if all the sub-modules to be detected exist in the compiling result of the SELinux module, testing each sub-module to be detected.
Specifically, the embodiment may be further embodied as: check if ExportedPlatformProperty exists in property contexts under the fixed path in the project, and no error is reported.
In some embodiments, testing the first compiling result of the to-be-tested sub-modules in the to-be-tested module according to the test rule list to obtain a test result, includes:
respectively detecting first compiling results of a plurality of to-be-detected sub-modules in a to-be-detected module according to the test rules in the test rule list;
if the test result is that the test rule is not met in the first compiling results of the sub-modules to be tested, stopping the test, and generating first prompt information that the compiling results of the modules to be tested violate the test rule.
For example, the compiling results of the ExportedPlatform Property, the Vendor Property Namespace and the Odm Property Namespace waiting detection sub-modules in the SELinux module are respectively detected according to the test rules in the test rule list;
and if the compiling result of the sub-module to be detected does not accord with the test rule, stopping the test, and generating the detection error-reporting information of information such as the position violating the test rule and/or the type violating the test rule of the SeLinux module.
In some embodiments, after the detecting the first compiling results of the to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list, the method further includes:
and if the test result is that the compiling results of all the to-be-detected submodules in the to-be-detected module accord with the test rule, completing the test and generating second prompt information that the compiling results of the to-be-detected module pass the test.
For example, the compiling results of the ExportedPlatform Property, Vendor Property Namespace and Odm Property Namespace waiting detection submodules in the SELinux module are respectively detected according to the test rules in the test rule list, or whether the attribute values of the Vendor/Odm module newly added to the project meet the Namespace rules or not is checked, and an error is reported if the attribute values of the ExportedPlatform Property, Vendor Property Namespace and Odm module wait detection submodules do not meet the Namespace rules.
And if the compiling results of all the sub-modules to be detected accord with the condition of the test rule, the modules to be detected pass the test, and detection passing information that the compiling results of the SELinux modules pass the detection is generated.
And step 204, executing an instruction action corresponding to the test result according to the test result.
In some embodiments, if the plurality of to-be-detected submodules are not matched with the preset object, each of the to-be-detected submodules is detected, and missing prompt information of the missing to-be-detected submodules in the test rule list is returned, the method further includes:
stopping the first compilation process;
and returning missing prompt information for prompting the missing sub-modules to be detected in the test rule list, wherein the missing prompt information comprises the information list of the missing sub-modules to be detected.
In some embodiments, if the test result is that the first compiling result of the sub-modules to be tested does not conform to the test rule, stopping the test, and generating first prompt information that the compiling result of the module to be tested violates the test rule, the method includes:
if the compiling result of the sub-module to be detected does not accord with the condition of the test rule, stopping the test, and generating the detection error-reporting information of the module, such as the position violating the test rule and/or the type violating the test rule;
and prohibiting the module to be tested from entering a second compiling stage according to the first prompt information.
For example, the compiling results of the ExportedPlatform Property, the Vendor Property Namespace and the Odm Property Namespace waiting detection sub-modules in the SELinux module are respectively detected according to the test rules in the test rule list;
stopping testing, and generating detection error reporting information of information such as the position violating the testing rules and/or the type violating the testing rules of the SELinux module;
and stopping the compiling process of the system, and terminating the compiling process of all the functional modules including the SELinux module.
In some embodiments, if the test result is that the compiling results of all the to-be-detected sub-modules in the to-be-detected module all conform to the test rule, the test is completed, and second prompt information that the compiling results of the to-be-detected module all pass the detection is generated, further including:
and controlling the module to be tested to enter a second compiling stage according to the second prompt information.
For example, the compiling results of the ExportedPlatform Property, the Vendor Property Namespace and the Odm Property Namespace waiting detection sub-modules in the SELinux module are respectively detected according to the test rules in the test rule list; if the compiling results of all the sub-modules to be detected meet the test rule, the modules to be detected pass the test, and detection passing information that the compiling results of the SELinux modules pass the detection is generated;
compiling other functional modules except the SELinux module, and checking other functional modules to be checked.
According to the VTS testing method provided by the embodiment of the application, when a module to be detected is detected to complete a first compiling stage, a first compiling result of the module to be detected is obtained, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected; acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects; and testing the first compiling results of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result. The embodiment of the application can check the VTS rule of the script of the initial compiling stage in the compiling stage, so that the VTS test problem can be found in the initial compiling stage in time, errors of the later testing stage can be effectively avoided, and a standard engineer can define the attribute value in the development process, so that the labor cost is reduced, and the passing rate of the later VTS test is improved.
Referring to fig. 3 and 4, fig. 3 and 4 are schematic structural diagrams of a VTS testing apparatus according to an embodiment of the present disclosure, and the VTS testing apparatus 300 may include: a first acquisition unit 301, a second acquisition unit 302, and a test unit 303.
The first obtaining unit 301 is configured to obtain a first compiling result of the module to be detected when it is detected that the module to be detected completes the first compiling stage, where the first compiling result includes first compiling results of a plurality of sub modules to be detected in the module to be detected;
a second obtaining unit 302, configured to obtain a test rule list from the VTS tool, where the test rule list includes test rules of preset objects;
the testing unit 303 is configured to test the first compiling result of the to-be-tested sub-modules in the to-be-tested module according to the testing rule list to obtain a testing result.
In some embodiments, test unit 303, includes:
the test subunit 3031 is configured to respectively detect the first compiling results of the to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list;
the first processing subunit 3032 is configured to stop the test if the test result is that the test rule is not met in the first compiling result of the plurality of sub modules to be detected, and generate first prompt information that the compiling result of the module to be detected violates the test rule.
In some embodiments, the test unit 303 further includes: and the prohibiting subunit 3033 is configured to prohibit the module to be tested from entering the second compiling stage according to the first prompt information.
In some embodiments, the test unit 303 further includes: and the second processing subunit 3034 is configured to complete the test if the test result indicates that the compiling results of all the to-be-detected sub-modules in the to-be-detected module all conform to the test rule, and generate second prompt information indicating that the compiling results of the to-be-detected module all pass the test.
In some embodiments, the test unit 303 further includes: and the control subunit 3035 is configured to control the module to be tested to enter the second compiling stage according to the second prompt information.
In some embodiments, the test subunit 3031 is specifically configured to:
detecting whether a plurality of to-be-detected submodules in the to-be-detected module are matched with a preset object or not;
if the plurality of to-be-detected sub-modules are matched with the preset object, respectively detecting whether the first compiling result of each to-be-detected sub-module meets the testing rule of the preset object;
and if the plurality of to-be-detected submodules are not matched with the preset object, detecting each to-be-detected submodule, and returning missing prompt information of the missing to-be-detected submodules in the test rule list.
In some embodiments, the test unit 303 further includes:
the third processing subunit 3036 is configured to stop the test if a condition that the plurality of to-be-detected sub-modules do not match the preset object exists, and generate an information list including the to-be-detected sub-modules that do not match the preset object.
As can be seen from the above, in the VTS testing method and apparatus provided in the embodiment of the present application, when it is detected that a module to be detected completes a first compiling stage, a first obtaining unit 301 obtains a first compiling result of the module to be detected, where the first compiling result includes first compiling results of a plurality of sub modules to be detected in the module to be detected; the second obtaining unit 302 obtains a test rule list from the VTS tool, wherein the test rule list includes test rules of preset objects; the testing unit 303 tests the first compiling result of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result. The embodiment of the application carries out VTS rule check through the script to initial stage compiling stage when compiling the stage to in time discover VTS test problem at initial stage compiling stage, effectively avoid the appearance of the mistake of later stage test stage, standardize the definition of engineer to the attribute value in the development process, reduce the human cost, promote the passing rate of later stage VTS test.
Correspondingly, the embodiment of the present application further provides a Computer device, where the Computer device may be a terminal or a server, and the terminal may be a terminal device such as a notebook Computer, a Personal Computer (PC), or the like.
As shown in fig. 5, fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 4100 includes a memory 110 having one or more computer-readable storage media (only one shown), an input unit 120, a display unit 130, a processor 140 having one or more processing cores (only one shown), and a power supply 150. Those skilled in the art will appreciate that the configuration of computer device 4100 shown in fig. 5 does not constitute a limitation of computer device 4100 and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the memory 110 may be used to store software programs and modules, such as program instructions/modules corresponding to the VTS testing method in the above-described embodiments, and the processor 140 executes various functional applications and data processing by operating the software programs and modules stored in the memory 110. The memory 110 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 110 can further include memory located remotely from the processor 140, which can be connected to the computer device 4100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 120 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 120 may include other input devices 121. In particular, other input devices 121 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 130 may be used to display information input by or provided to the user as well as various graphical user interfaces of the computer device 4100, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 130 may include a display panel 131. The display unit 130 is a screen in the above embodiment.
The processor 140 is a control center of the computer apparatus 4100, connects various parts of the entire cellular phone by various interfaces and lines, and performs various functions of the computer apparatus 4100 and processes data by running or executing software programs and/or modules stored in the memory 110 and calling data stored in the memory 110, thereby monitoring the cellular phone as a whole. Optionally, processor 140 may include one or more processing cores; in some embodiments, processor 140 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 140.
Computer device 4100 also includes a power supply 150 (e.g., a battery) for providing power to various components, which may be logically coupled to processor 140 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 150 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the computer device 4100 can also include a camera (e.g., a front camera, a rear camera), a bluetooth module, a network connection module, etc., which are not described in detail herein. In particular, in this embodiment, the display unit 130 of the computer device 4100 is a touch screen display, the computer device 4100 further comprises a memory 110, and one or more programs, wherein the one or more programs are stored in the memory 110 and configured to be executed by the one or more processors 140, the one or more programs comprising instructions for:
when the fact that the module to be detected completes a first compiling stage is detected, obtaining a first compiling result of the module to be detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected;
acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects;
and testing the first compiling results of the plurality of to-be-tested sub-modules in the to-be-tested module according to the test rule list to obtain a test result.
In some embodiments, the processor 140 is configured to test the first compilation result of the to-be-detected sub-modules in the to-be-detected module according to the test rule list to obtain a test result, where the test result includes:
respectively detecting first compiling results of a plurality of to-be-detected sub-modules in a to-be-detected module according to the test rules in the test rule list;
if the test result is that the test rule is not met in the first compiling results of the sub-modules to be tested, stopping the test, and generating first prompt information that the compiling results of the modules to be tested violate the test rule.
In some embodiments, the processor 140 is further configured to:
and prohibiting the module to be tested from entering a second compiling stage according to the first prompt information.
In some embodiments, after the processor 140 is configured to detect the first compiling results of the to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list, the method further includes:
and if the test result is that the compiling results of all the to-be-detected submodules in the to-be-detected module accord with the test rule, completing the test and generating second prompt information that the compiling results of the to-be-detected module pass the test.
In some embodiments, the processor 140 is further configured to:
and controlling the module to be tested to enter a second compiling stage according to the second prompt information.
In some embodiments, the processor 140 is configured to detect the first compiling results of the to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list, and the detecting includes:
detecting whether a plurality of to-be-detected submodules in the to-be-detected module are matched with a preset object or not;
if the plurality of to-be-detected sub-modules are matched with the preset object, respectively detecting whether the first compiling result of each to-be-detected sub-module meets the testing rule of the preset object;
and if the plurality of to-be-detected submodules are not matched with the preset object, detecting each to-be-detected submodule, and returning missing prompt information of the missing to-be-detected submodules in the test rule list.
In some embodiments, after the processor 140 is configured to detect whether a plurality of to-be-detected submodules in the to-be-detected module match a preset object, the method further includes:
and if the condition that the plurality of to-be-detected sub-modules are not matched with the preset object exists, stopping the test, and generating an information list containing the to-be-detected sub-modules which are not matched with the preset object.
As can be seen from the above, the embodiment of the present application provides a computer device 4100, where the computer device 4100 performs the following steps: when detecting that a module to be detected completes a first compiling stage, acquiring a first compiling result of the module to be detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected; acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects; and testing the first compiling results of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result. The embodiment of the application can check the VTS rule of the script of the initial compiling stage in the compiling stage, so that the VTS test problem can be found in the initial compiling stage in time, errors of the later editing stage are effectively avoided, and a standard engineer defines attribute values in the development process, so that the labor cost is reduced, and the passing rate of the later VTS test is improved.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer executes the VTS testing method described in any of the above embodiments.
It should be noted that, for the VTS testing method described in this application, a person having ordinary skill in the art may understand that all or part of the processes for implementing the VTS testing method described in this application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a computer device, and executed by at least one processor in the computer device, and during the execution, the processes of the embodiments of the VTS testing method may be included. The storage medium may be a magnetic disk, an optical disk, a ROM (Read Only Memory), a RAM (Random Access Memory), or the like.
In the VTS testing apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The VTS testing method, apparatus, storage medium, and computer device provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A VTS testing method, the method comprising:
when detecting that a module to be detected completes a first compiling stage, acquiring a first compiling result of the module to be detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected;
acquiring a test rule list from a VTS tool, wherein the test rule list comprises test rules of preset objects;
and testing the first compiling results of the plurality of sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result.
2. The VTS testing method according to claim 1, wherein the testing a first compiling result of the sub-modules to be tested in the module to be tested according to the testing rule list to obtain a testing result includes:
respectively detecting the first compiling results of the plurality of to-be-detected sub-modules in the to-be-detected module according to the test rules in the test rule list;
if the test result is that the test rule is not met in the first compiling results of the sub-modules to be tested, stopping the test, and generating first prompt information that the compiling results of the modules to be tested violate the test rule.
3. The VTS testing method of claim 2, further comprising:
and prohibiting the module to be tested from entering a second compiling stage according to the first prompt information.
4. The VTS testing method according to claim 2, wherein after the step of respectively detecting the first compiling results of the sub-modules to be tested in the module to be tested according to the test rules in the test rule list, the step further comprises:
and if the test result indicates that the compiling results of all the to-be-detected sub-modules in the to-be-detected module all accord with the test rule, completing the test and generating second prompt information that the compiling results of the to-be-detected module all pass the test.
5. The VTS testing method of claim 4, further comprising:
and controlling the module to be tested to enter a second compiling stage according to the second prompt information.
6. The VTS testing method according to claim 2, wherein the respectively detecting the first compiling results of the sub-modules to be tested in the module to be tested according to the testing rules in the testing rule list comprises:
detecting whether the plurality of to-be-detected sub-modules in the to-be-detected module are matched with the preset object;
if the plurality of to-be-detected sub-modules are matched with the preset object, respectively detecting whether a first compiling result of each to-be-detected sub-module meets a testing rule of the preset object;
and if the plurality of sub-modules to be detected are not matched with the preset object, detecting each sub-module to be detected, and returning missing prompt information of the missing sub-modules to be detected in the test rule list.
7. The VTS testing method according to claim 2, wherein after detecting whether the plurality of to-be-detected sub-modules in the to-be-detected modules are matched with the preset object, the method further comprises:
if the condition that the sub-modules to be detected are not matched with the preset object exists in the plurality of sub-modules to be detected, stopping testing, and generating an information list containing the sub-modules to be detected which are not matched with the preset object.
8. A VTS testing device, which is applied to VTS testing and comprises:
the first obtaining unit is used for obtaining a first compiling result of the module to be detected when the fact that the module to be detected completes a first compiling stage is detected, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected;
the second acquisition unit is used for acquiring a test rule list from the VTS tool, wherein the test rule list comprises test rules of preset objects;
and the test unit is used for testing the first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the test rule list so as to obtain a test result.
9. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the steps in the VTS testing method according to any one of claims 1 to 7.
10. A computer device, characterized in that the computer device comprises a processor and a memory, in which a computer program is stored, the processor performing the steps in the VTS testing method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
CN202011345688.9A 2020-11-25 2020-11-25 VTS test method and device, storage medium and computer equipment Active CN112286826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011345688.9A CN112286826B (en) 2020-11-25 2020-11-25 VTS test method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011345688.9A CN112286826B (en) 2020-11-25 2020-11-25 VTS test method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN112286826A true CN112286826A (en) 2021-01-29
CN112286826B CN112286826B (en) 2024-04-09

Family

ID=74426376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011345688.9A Active CN112286826B (en) 2020-11-25 2020-11-25 VTS test method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112286826B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011031328A2 (en) * 2009-09-14 2011-03-17 Ldra Technology, Inc. Systems and methods for management of projects for development of embedded systems
CN104850499A (en) * 2015-06-10 2015-08-19 北京华力创通科技股份有限公司 Automatic test method and device for base band software
CN109684213A (en) * 2018-12-21 2019-04-26 惠州Tcl移动通信有限公司 A kind of test method, device and storage medium
CN109960656A (en) * 2019-03-22 2019-07-02 北京三快在线科技有限公司 Detection method, device and the electronic equipment of program
CN110309068A (en) * 2019-06-18 2019-10-08 平安普惠企业管理有限公司 Test method and relevant device
CN110348218A (en) * 2019-06-06 2019-10-18 国家计算机网络与信息安全管理中心 A kind of loophole test method and device based on vehicle-mounted terminal system
CN110674047A (en) * 2019-09-26 2020-01-10 北京字节跳动网络技术有限公司 Software testing method and device and electronic equipment
CN111352828A (en) * 2018-12-20 2020-06-30 顺丰科技有限公司 Automatic testing method and system for black box test
CN111400173A (en) * 2020-03-04 2020-07-10 东软集团股份有限公司 VTS test method, device and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011031328A2 (en) * 2009-09-14 2011-03-17 Ldra Technology, Inc. Systems and methods for management of projects for development of embedded systems
CN104850499A (en) * 2015-06-10 2015-08-19 北京华力创通科技股份有限公司 Automatic test method and device for base band software
CN111352828A (en) * 2018-12-20 2020-06-30 顺丰科技有限公司 Automatic testing method and system for black box test
CN109684213A (en) * 2018-12-21 2019-04-26 惠州Tcl移动通信有限公司 A kind of test method, device and storage medium
CN109960656A (en) * 2019-03-22 2019-07-02 北京三快在线科技有限公司 Detection method, device and the electronic equipment of program
CN110348218A (en) * 2019-06-06 2019-10-18 国家计算机网络与信息安全管理中心 A kind of loophole test method and device based on vehicle-mounted terminal system
CN110309068A (en) * 2019-06-18 2019-10-08 平安普惠企业管理有限公司 Test method and relevant device
CN110674047A (en) * 2019-09-26 2020-01-10 北京字节跳动网络技术有限公司 Software testing method and device and electronic equipment
CN111400173A (en) * 2020-03-04 2020-07-10 东软集团股份有限公司 VTS test method, device and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QUTAIBA KHASAWNEH等: "Real-time monitoring of test fallout data to quickly identify tester and yield issues in a multi-site environment", 《2018 IEEE 36TH VLSI TEST SYMPOSIUM (VTS)》, pages 1 - 6 *
李高坤: "Android系统漏洞检测和利用方法的研究与实现", 《CNKI优秀硕士学位论文全文库 信息科技辑》, no. 01, pages 138 - 730 *

Also Published As

Publication number Publication date
CN112286826B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US9292652B2 (en) Generic design rule checking (DRC) test case extraction
CN111209203B (en) Model verification method based on source code
KR101423030B1 (en) Method of analysis application object which computer-executable, server performing the same and storage media storing the same
US10324816B2 (en) Checking a computer processor design for soft error handling
CN113268260A (en) Routing method and device for web front end
CN104809054B (en) Realize the method and system of program test
CN113590454A (en) Test method, test device, computer equipment and storage medium
CN106445787A (en) Method and device for monitoring server core dump file and electronic equipment
CN115618363B (en) Vulnerability path mining method and related equipment
CN112286826B (en) VTS test method and device, storage medium and computer equipment
US9916412B2 (en) Automatic generation of test layouts for testing a design rule checking tool
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN110838929A (en) System error checking method and system error checking device
CN113935847A (en) Online process risk processing method, device, server and medium
US9497253B2 (en) Authorization review system
CN114727100A (en) Joint debugging method and device for monitoring equipment
US20170123959A1 (en) Optimized instrumentation based on functional coverage
US20230409296A1 (en) Providing metric data for patterns usable in a modeling environment
CN114579976B (en) Automatic verification method and system for heap memory damage loopholes based on state transition
US20210357315A1 (en) Method and apparatus for calculating a software stability index
CN111274143B (en) Buried point test method, buried point test device, buried point test equipment and storage medium
TWI650636B (en) Detection system and detection method
US20200327026A1 (en) Circuit-cycle reproduction
CN115629964A (en) Access method, apparatus, device, storage medium and computer program product
CN107291613B (en) Functional node abnormity simulation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant