CN112286826B - VTS test method and device, storage medium and computer equipment - Google Patents

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

Info

Publication number
CN112286826B
CN112286826B CN202011345688.9A CN202011345688A CN112286826B CN 112286826 B CN112286826 B CN 112286826B CN 202011345688 A CN202011345688 A CN 202011345688A CN 112286826 B CN112286826 B CN 112286826B
Authority
CN
China
Prior art keywords
detected
test
sub
module
compiling
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.)
Active
Application number
CN202011345688.9A
Other languages
Chinese (zh)
Other versions
CN112286826A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

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 the fact that the module to be detected completes a first compiling stage is detected, 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; obtaining a test rule list from a VTS tool, wherein the test rule list comprises test rules of a preset object; and 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 to obtain test results. According to the method and the device for testing the VTS rule, the VTS rule can be checked on the script in the initial compiling stage when the compiling stage is carried out, so that the VTS testing problem can be found in time in the initial compiling stage, errors in the later compiling stage are effectively avoided, an engineer is normalized to define the attribute value in the development process, the labor cost is reduced, and the passing rate of the later VTS testing is improved.

Description

VTS test method and device, storage medium and computer equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a VTS (Vendor Test Suite ) testing method, device, storage medium, and computer apparatus.
Background
With the development of Android (Android) systems, VTS testing in Android development provides a large number of Android testing functions, and the detection of VTS testing becomes more and more strict, and there are some items that do not meet VTS testing, such as some attribute values that do not meet testing requirements, or SELinux (Security-Enhanced Linux) rights that do not meet testing requirements, so that problems do not occur in the process of development and compiling operation, but errors are reported due to violating testing rules of VTS in the process of VTS testing.
Accordingly, the prior art has drawbacks and needs to be improved and developed.
Disclosure of Invention
The utility model provides a VTS test method, device, storage medium and computer equipment, can carry out VTS rule inspection to the script of initial compiling stage when compiling the stage to in time discover VTS test problem at initial compiling stage, effectively avoid the mistake of later stage test stage to appear, standardize the engineer and define the 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 the fact that the module to be detected completes a first compiling stage is detected, 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;
obtaining a test rule list from a VTS tool, wherein the test rule list comprises test rules of a preset object;
and 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 to obtain test results.
In some embodiments, the VTS testing method tests 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 to obtain a test result, including:
respectively detecting first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list;
if the test result is that the first compiling result of the plurality of sub-modules to be detected does not accord with the test rule, stopping the test, and generating first prompt information that the compiling result of the sub-modules to be detected violates 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 detecting the first compiling results of the plurality of 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:
if the test result is that the compiling results of all the sub-modules to be detected in the module to be detected accord with the test rule, the test is completed, and a second prompt message that the compiling results of the module to be detected pass through the detection is generated.
In some embodiments, after the detecting the first compiling results of the plurality of 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 compiled results of the plurality of sub-modules to be detected in the module to be detected according to the test rule list to obtain test results includes:
detecting whether the plurality of sub-modules to be detected in the modules to be detected are matched with the preset object or not;
if the plurality of sub-modules to be detected are matched with the preset object, respectively detecting whether a first compiling result of each sub-module to be detected accords with 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 the missing prompt information of the sub-module to be detected, which is missing in the test rule list.
In some embodiments, after the detecting whether the plurality of sub-modules to be detected in the module to be detected matches the preset object, the method further includes:
if the condition that the plurality of sub-modules to be detected are not matched with the preset object exists, stopping the test, and generating an information list containing the sub-modules to be detected which are not matched with the preset object.
The embodiment of the application also provides a device for testing the VTS, which is applied to the VTS and comprises the following components:
the first obtaining unit is used for obtaining a first compiling result of the module to be detected when the module to be detected completes a first compiling stage, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected;
a second obtaining unit, configured to obtain a test rule list from a VTS tool, where the test rule list includes a test rule of a preset object;
and the testing 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 testing rule list so as to obtain testing results.
Embodiments of the present application also provide a computer-readable storage medium having a computer program stored therein, which when executed on a computer, causes the computer to perform the steps in the VTS testing method as described in any of the embodiments above.
The embodiment of the application further provides a computer device, the computer device including a processor and a memory, the memory storing a computer program, the processor executing the steps in the VTS testing method according to any one of the embodiments above by calling the computer program stored in the memory.
According to the VTS testing method, the VTS testing device, the storage medium and the computer equipment, when the fact that the module to be detected completes the first compiling stage is detected, the first compiling result of the module to be detected is obtained, and the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected; obtaining a test rule list from a VTS tool, wherein the test rule list comprises test rules of a preset object; and 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 to obtain test results. According to the method and the device for testing the VTS rule, the VTS rule can be checked on the script in the initial compiling stage when the compiling stage is carried out, so that the VTS testing problem can be found in time in the initial compiling stage, errors in the later compiling stage are effectively avoided, the definition of the attribute value by an engineer in the development process is standardized, the labor cost is reduced, and the passing rate of the later VTS testing is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a VTS testing method according to an embodiment of the present application.
Fig. 2 is a second flow chart of the VTS testing method according to the embodiment of the present application.
Fig. 3 is a first structural schematic diagram of a VTS testing apparatus according to an embodiment of the present application.
Fig. 4 is a second schematic structural diagram of the VTS testing apparatus according to the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a VTS test method, a VTS test device, a storage medium and computer equipment. Specifically, the VTS testing method of the embodiment of the present application may be performed by a computer device, where the computer device may be a terminal or a server. The terminal can be a terminal device such as a notebook computer, a personal computer (PC, personal Computer) and 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 cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution network services, basic cloud computing services such as big data and an artificial intelligence platform, but is not limited thereto.
The embodiments of the present application provide a VTS testing method, which may be executed by a terminal or a server, or may be executed by the terminal and the server together; the embodiments of the present application will be described with reference to the VTS test method being executed by a server as an example.
A VTS testing method comprising: when the fact that the module to be detected completes a first compiling stage is detected, 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; obtaining a test rule list from a VTS tool, wherein the test rule list comprises test rules of a preset object; and 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 to obtain test results.
Referring to fig. 1, fig. 1 is a schematic flow chart of a VTS testing method according to an embodiment of the present application. The VTS testing method may include the steps of:
step 101, when the module to be detected is detected to complete the 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.
Specifically, whether the module to be detected completes the first compiling stage is detected, if so, the first compiling stage is stopped, and a compiling result of the module to be detected including a 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 the completion of compiling the SELinux module is detected, the compiling of the functional module is suspended, the compiling result of the SELinux module is obtained, and the SELinux module includes ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace waiting for detection sub-modules.
Specifically, exportedPlatform Property is an attribute value definition required by the Android system; vendor Property Namespace is an attribute value nalespace that can be used by the vendor module specified by google; odm Property Namespace is a property value namespace that can be used by the odm module specified by google.
Step 102, a test rule list is obtained from the VTS tool, wherein the test rule list includes test rules of a preset object.
In some embodiments, obtaining a list of test rules from the VTS tool includes: after a first compiling result of the module to be detected is obtained, according to the obtained module to be detected, a test rule list corresponding to the module to be detected is obtained from the VTS test tool, and the obtained test rule list comprises test rules of a preset object.
For example, a test rule list corresponding to the SELinux module is obtained from the VTS tool, where the SELinux test rule list includes rules for detecting property namespace, and is mainly used for detecting the sub-modules to be detected in the parts ExportedPlatform Property, vendor Property Namespace, odm Property Namespace, etc.
And step 103, 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 to obtain test results.
In some embodiments, detecting the first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list includes:
detecting whether a plurality of sub-modules to be detected in the modules to be detected are matched with a preset object or not;
if the plurality of sub-modules to be detected are matched with the preset object, respectively detecting whether the first compiling result of each sub-module to be detected accords with the testing rule of the preset object;
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 the missing prompt information of the sub-module to be detected which is missing in the test rule list.
For example, a first compilation result of the SELinux module is obtained, and a determination ExportedPlatform Property, vendor Property Namespace, odm Property Namespace is waited for detecting whether the compilation result of the sub-module is all present in the compilation result of the SELinux module;
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, according to the test rule list, testing the first compiled results of the plurality of sub-modules to be detected in the module to be detected to obtain test results includes:
respectively detecting first compiling results of a plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list;
if the test result is that the first compiling result of the plurality of sub-modules to be detected does not accord with the test rule, stopping the test, and generating first prompt information that the compiling result of the sub-modules to be detected violates the test rule.
For example, according to the test rules in the test rule list, the compiling results of the waiting detection sub-modules in the ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace modules of the SELinux module are respectively detected;
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 the information such as the position of the SELinux module violating the test rule and/or the type violating the test rule;
in some embodiments, after detecting the first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list, the method further includes:
if the test result is that the compiling results of all the sub-modules to be detected in the module to be detected accord with the test rule, the test is completed, and a second prompt message that the compiling results of the module to be detected pass through the detection is generated.
For example, according to the test rules in the test rule list, the compiling results of the waiting detection sub-modules in the ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace modules of the SELinux module are respectively detected;
if the compiling results of all the sub-modules to be detected meet 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 may be combined to form an optional embodiment of the present application, which is not described here in detail.
Referring to fig. 2, fig. 2 is a second flow chart of the VTS testing method according to the embodiment of the present application. 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, a first compiling result of the module to be detected is obtained, 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 a compiling result of the module to be detected including a 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 the completion of compiling the SELinux module is detected, the compiling of the functional module is suspended, the compiling result of the SELinux module is obtained, and the SELinux module includes ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace waiting for detection sub-modules.
Step 202, a test rule list is obtained from the VTS tool, wherein the test rule list includes test rules of a preset object.
In some embodiments, obtaining a list of test rules from the VTS tool includes:
after a first compiling result of the module to be detected is obtained, according to the obtained module to be detected, a test rule list corresponding to the module to be detected is obtained from the VTS test tool, and the obtained test rule list comprises test rules of a preset object.
For example, a test rule list corresponding to the SELinux module is obtained from the VTS tool, where the SELinux test rule list includes rules for detecting property namespace, and is mainly used for detecting the sub-modules to be detected in the parts ExportedPlatform Property, vendor Property Namespace, odm Property Namespace, etc.
Specifically, the test rule list is obtained from the VTS tool, which may also be implemented as: exportedPlatformProperty defined in advance by google is obtained from the VTS test suite.
Specifically, the test rule list is obtained from the VTS tool, which may also be implemented as: the defined namespace rules for Vendor Property Namespace, odm Property Namespace attribute values in the VTS are extracted from the VTS script.
Step 203, testing the first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the testing rule list, so as to obtain a testing result.
In some embodiments, detecting the first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list includes:
detecting whether a plurality of sub-modules to be detected in the modules to be detected are matched with a preset object or not;
if the plurality of sub-modules to be detected are matched with the preset object, respectively detecting whether the first compiling result of each sub-module to be detected accords with the testing rule of the preset object;
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 the missing prompt information of the sub-module to be detected which is missing in the test rule list.
For example, a first compilation result of the SELinux module is obtained, and a determination ExportedPlatform Property, vendor Property Namespace, odm Property Namespace is waited for detecting whether the compilation result of the sub-module is all present in the compilation result of the SELinux module;
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 specifically expressed as: it is checked whether exportedplatform property exists in property contexts under the fixed path in the item, and there is no error.
In some embodiments, according to the test rule list, testing the first compiled results of the plurality of sub-modules to be detected in the module to be detected to obtain test results includes:
respectively detecting first compiling results of a plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list;
if the test result is that the first compiling result of the plurality of sub-modules to be detected does not accord with the test rule, stopping the test, and generating first prompt information that the compiling result of the sub-modules to be detected violates the test rule.
For example, according to the test rules in the test rule list, the compiling results of the waiting detection sub-modules in the ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace modules of the SELinux module are respectively detected;
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 the position of the SeLinux module violating the test rule and/or the type violating the test rule.
In some embodiments, after detecting the first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list, the method further includes:
if the test result is that the compiling results of all the sub-modules to be detected in the module to be detected accord with the test rule, the test is completed, and a second prompt message that the compiling results of the module to be detected pass through the detection is generated.
For example, according to the test rules in the test rule list, the compiling results of the detection sub-modules are respectively detected by the ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace waiting detection sub-modules, or whether the attribute value of the newly added vendor/odm module of the project accords with the naming space rule is checked, and if the attribute value does not accord with the naming space rule, the error is reported.
If the compiling results of all the sub-modules to be detected meet 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.
Step 204, executing the instruction action corresponding to the test result according to the test result.
In some embodiments, if the plurality of sub-modules to be detected are not matched with the preset object, detecting each sub-module to be detected, returning the missing prompt information of the sub-module to be detected missing in the test rule list, and further including:
stopping the first compiling process;
and returning the missing prompt information of the missing sub-module to be detected in the prompt test rule list, wherein the missing prompt information comprises an information list of the missing sub-module to be detected.
In some embodiments, if the test result is that the first compiling result of the plurality of sub-modules to be detected does not conform to the test rule, stopping the test, and generating the first prompting message that the compiling result of the module to be detected violates the test rule includes:
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 the position of the module violating the test rule and/or the type violating the test rule and other information;
and prohibiting the module to be tested from entering a second compiling stage according to the first prompt information.
For example, according to the test rules in the test rule list, the compiling results of the waiting detection sub-modules in the ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace modules of the SELinux module are respectively detected;
stopping the test, and generating detection error reporting information of information such as the position of the SELinux module violating the test rule and/or the type of the violating test rule;
the compiling process of the system is stopped, and the compiling process of all the functional modules including the SELinux module is terminated.
In some embodiments, if the test result is that the compiling results of all the sub-modules to be detected in the module to be detected meet the test rule, the test is completed, and a second prompt message that the compiling results of the module to be detected pass the detection is generated, and the method further includes:
and controlling the module to be tested to enter a second compiling stage according to the second prompt information.
For example, according to the test rules in the test rule list, the compiling results of the waiting detection sub-modules in the ExportedPlatform Property, vendor Property Namespace and Odm Property Namespace modules of the SELinux module are respectively detected; 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;
and compiling other functional modules except the SELinux module, and checking other functional modules to be checked.
According to the VTS testing method, when the fact that the module to be detected completes a first compiling stage is detected, a first compiling result of the module to be detected is obtained, and the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected; obtaining a test rule list from a VTS tool, wherein the test rule list comprises test rules of a preset object; and 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 to obtain test results. According to the method and the device for testing the VTS of the script, the VTS rule can be checked on the script of the initial compiling stage in the compiling stage, so that the VTS testing problem can be found in time in the initial compiling stage, errors in the later testing stage are effectively avoided, an engineer is normalized to define the attribute value in the development process, the labor cost is reduced, and the passing rate of the later VTS testing is improved.
Referring to fig. 3 and fig. 4, fig. 3 and fig. 4 are schematic structural diagrams of a VTS testing apparatus according to an embodiment of the present application, 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, when it is detected that the module to be detected completes the first compiling stage, 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;
a second obtaining unit 302, configured to obtain a test rule list from the VTS tool, where the test rule list includes a test rule of a preset object;
and the testing unit 303 is configured to test 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.
In some embodiments, test unit 303 includes:
a test subunit 3031, configured to detect first compiling results of a plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list;
the first processing subunit 3032 is configured to stop the test and generate a first prompt message that the compiling result of the module to be detected violates the test rule if the test result is that the first compiling result of the plurality of sub-modules to be detected does not conform to the test rule.
In some embodiments, test unit 303 further comprises: 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 message.
In some embodiments, test unit 303 further comprises: and the second processing subunit 3034 is configured to complete the test if the test result is that the compiled results of all the sub-modules to be detected in the modules to be detected meet the test rule, and generate second prompt information that the compiled results of the modules to be detected pass through the detection.
In some embodiments, test unit 303 further comprises: 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, test subunit 3031 is specifically configured to:
detecting whether a plurality of sub-modules to be detected in the modules to be detected are matched with a preset object or not;
if the plurality of sub-modules to be detected are matched with the preset object, respectively detecting whether the first compiling result of each sub-module to be detected accords with the testing rule of the preset object;
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 the missing prompt information of the sub-module to be detected which is missing in the test rule list.
In some embodiments, test unit 303 further comprises:
and the third processing subunit 3036 is configured to stop the test and generate an information list including the sub-modules to be detected that are not matched with the preset object if there is a mismatch between the plurality of sub-modules to be detected and the preset object.
As can be seen from the foregoing, in the VTS testing method and apparatus provided in the embodiments of the present application, when detecting that a module to be detected completes a first compiling stage, the 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 a preset object; the test unit 303 tests 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 to obtain a test result. According to the method and the device, the VTS rule is checked through the script in the initial compiling stage in the compiling stage, so that the VTS test problem is found in time in the initial compiling stage, errors in the later testing stage are effectively avoided, the definition of the attribute values by an engineer in the developing process is standardized, the labor cost is reduced, and the passing rate of the later VTS test is improved.
Correspondingly, the embodiment of the application also provides computer equipment, which can be a terminal or a server, and the terminal can be a terminal equipment such as a notebook computer, a personal computer (PC, personal Computer) and the like.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application, as shown in fig. 5. The computer device 4100 includes a memory 110 including one or more (only one is shown), an input unit 120, a display unit 130, a processor 140 including one or more (only one is shown), and a power supply 150. Those skilled in the art will appreciate that the computer device 4100 structure illustrated in fig. 5 is not limiting of the computer device 4100 and may include more or fewer components than illustrated, or may combine certain components, 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 test method in the above embodiments, and the processor 140 executes the software programs and modules stored in the memory 110 to perform various functional applications and data processing. 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 examples, memory 110 may further include memory located remotely from processor 140, which may be connected to 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 to 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 (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 130 may be used to display information entered by a user or information provided to a user as well as various graphical user interfaces of the computer device 4100, which may be composed 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 device 4100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions and processes data of the computer device 4100 by running or executing software programs and/or modules stored in the memory 110 and calling data stored in the memory 110, thereby performing overall monitoring of the mobile phone. Optionally, processor 140 may include one or more processing cores; in some embodiments, processor 140 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 140.
The computer device 4100 also includes a power supply 150 (e.g., a battery) for powering the various components, which can be logically connected to the processor 140 by a power management system, such as to perform functions such as managing charging, discharging, and power consumption by the power management system. The power supply 150 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the computer device 4100 may also include cameras (e.g., front camera, rear camera), bluetooth modules, network connection modules, etc., which are not described in detail herein. In particular, in the present 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 comprise instructions for:
when the 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 the VTS tool, wherein the test rule list comprises test rules of a preset object;
and 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 to obtain test results.
In some embodiments, the processor 140 is configured to test the first compiled 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 test results, including:
respectively detecting first compiling results of a plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list;
if the test result is that the first compiling result of the plurality of sub-modules to be detected does not accord with the test rule, stopping the test, and generating first prompt information that the compiling result of the sub-modules to be detected violates 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 plurality of sub-modules to be detected in the module to be detected according to the test rules in the test rule list, the method further includes:
if the test result is that the compiling results of all the sub-modules to be detected in the module to be detected accord with the test rule, the test is completed, and a second prompt message that the compiling results of the module to be detected pass through the detection is generated.
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 first compiling results of a plurality of sub-modules to be detected in a module to be detected according to a test rule in a test rule list, respectively, including:
detecting whether a plurality of sub-modules to be detected in the modules to be detected are matched with a preset object or not;
if the plurality of sub-modules to be detected are matched with the preset object, respectively detecting whether the first compiling result of each sub-module to be detected accords with the testing rule of the preset object;
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 the missing prompt information of the sub-module to be detected which is missing in the test rule list.
In some embodiments, after the processor 140 is configured to detect whether a plurality of sub-modules to be detected in the modules to be detected match the preset object, the method further includes:
if the plurality of sub-modules to be detected are not matched with the preset object, stopping the test and generating an information list containing the sub-modules to be detected which are not matched with the preset object.
From the above, embodiments of the present application provide a computer apparatus 4100, the computer apparatus 4100 performs the following steps: when the fact that the module to be detected completes a first compiling stage is detected, 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; obtaining a test rule list from a VTS tool, wherein the test rule list comprises test rules of a preset object; and 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 to obtain test results. According to the method and the device for testing the VTS rule, the VTS rule can be checked on the script in the initial compiling stage when the compiling stage is carried out, so that the VTS testing problem can be found in time in the initial compiling stage, errors in the later compiling stage are effectively avoided, an engineer is normalized to define the attribute value in the development process, the labor cost is reduced, and the passing rate of the later VTS testing is improved.
The embodiment of the application further provides a computer readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the VTS testing method described in any one of the embodiments.
It should be noted that, for the VTS testing method described in the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the VTS testing method described in the embodiments of the present application may be implemented by controlling related hardware by using 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 the execution may include the flow of the embodiment of the VTS testing method as described in the present application. The storage medium may be a magnetic disk, an optical disk, a ROM (Read Only Memory), a RAM (Random Access Memory ), or the like.
For the VTS testing device in the embodiments of the present application, each functional module may be integrated in one processing chip, or each module may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as 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 read-only memory, magnetic or optical disk, etc.
The VTS testing method, device, storage medium and computer device provided in the embodiments of the present application are described above in detail. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (5)

1. A VTS testing method, the method comprising:
when the fact that the module to be detected completes a first compiling stage is detected, 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;
obtaining a test rule list from a VTS tool, wherein the test rule list comprises test rules of a preset object;
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 to obtain test results;
and 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 to obtain test results, wherein the testing results comprise:
detecting whether the plurality of sub-modules to be detected in the modules to be detected are matched with the preset object or not;
if the condition that the plurality of sub-modules to be detected are not matched with the preset object exists, stopping the test, and generating an information list containing the sub-modules to be detected which are not matched with the preset object;
if the plurality of sub-modules to be detected are matched with the preset object, respectively detecting whether a first compiling result of each sub-module to be detected accords with a test rule of the preset object;
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 the missing prompt information of the sub-module to be detected which is missing in the test rule list;
if the test result is that the first compiling result of the plurality of sub-modules to be detected does not accord with the test rule, stopping the test, and generating first prompt information that the compiling result of the sub-modules to be detected violates the test rule;
if the test result is that the compiling results of all the sub-modules to be detected in the module to be detected accord with the test rule, completing the test, and generating second prompt information that the compiling results of the module to be detected pass the detection;
and controlling the module to be detected to enter a second compiling stage according to the second prompt information.
2. The VTS testing method of claim 1, further comprising:
and prohibiting the module to be detected from entering a second compiling stage according to the first prompt information.
3. A VTS testing apparatus, the apparatus being applied to VTS testing, comprising:
the first obtaining unit is used for obtaining a first compiling result of the module to be detected when the module to be detected completes a first compiling stage, wherein the first compiling result comprises first compiling results of a plurality of sub-modules to be detected in the module to be detected;
a second obtaining unit, configured to obtain a test rule list from a VTS tool, where the test rule list includes a test rule of a preset object;
the testing 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 testing rule list so as to obtain testing results;
the test unit comprises:
the testing subunit is used for respectively detecting first compiling results of the plurality of sub-modules to be detected in the module to be detected according to the testing rules in the testing rule list;
the first processing subunit is used for stopping the test and generating first prompt information that the compiling result of the to-be-detected module violates the test rule if the test result is that the first compiling result of the plurality of to-be-detected sub-modules does not accord with the test rule;
the second processing subunit is used for completing the test if the test result is that the compiling results of all the sub-modules to be detected in the modules to be detected meet the test rule, and generating second prompt information that the compiling results of the modules to be detected pass through the detection;
the control subunit is used for controlling the module to be detected to enter a second compiling stage according to the second prompt information;
the test subunit is specifically configured to:
detecting whether the plurality of sub-modules to be detected in the modules to be detected are matched with the preset object or not;
if the plurality of sub-modules to be detected are matched with the preset object, respectively detecting whether a first compiling result of each sub-module to be detected accords with a test rule of the preset object;
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 the missing prompt information of the sub-module to be detected which is missing in the test rule list;
the test unit further comprises:
and the third processing subunit is used for stopping the test and generating an information list containing the sub-modules to be detected which are not matched with the preset object 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.
4. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the steps in the VTS testing method as claimed in any one of claims 1 to 2.
5. A computer device, characterized in that it comprises a processor and a memory, in which a computer program is stored, the processor executing the steps in the VTS testing method according to any one of claims 1 to 2 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 CN112286826A (en) 2021-01-29
CN112286826B true 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
Android系统漏洞检测和利用方法的研究与实现;李高坤;《cnki优秀硕士学位论文全文库 信息科技辑》(第01期);第I138-730页 *
Real-time monitoring of test fallout data to quickly identify tester and yield issues in a multi-site environment;Qutaiba Khasawneh等;《2018 IEEE 36th VLSI Test Symposium (VTS)》;第1-6页 *

Also Published As

Publication number Publication date
CN112286826A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
US10296443B2 (en) Automatically predicting faults that caused software failures using a Markov logic network
US11151024B2 (en) Dynamic automation of DevOps pipeline vulnerability detecting and testing
Zhang et al. A comparison of energy bugs for smartphone platforms
WO2018201615A1 (en) Testing method and system for use with battery management unit
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
CN113268260A (en) Routing method and device for web front end
CN104809054A (en) Method and system for realizing program testing
CN107679423A (en) Partition integrity inspection method and device
CN114328240A (en) Electronic equipment detection method, system, equipment and storage medium
CN106445787A (en) Method and device for monitoring server core dump file and electronic equipment
CN110838929A (en) System error checking method and system error checking device
CN112286826B (en) VTS test method and device, storage medium and computer equipment
CN110659204B (en) Code detection method, device and medium
US10289788B1 (en) System and method for suggesting components associated with an electronic design
CN114727100B (en) Joint debugging method and device for monitoring equipment
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN116521533A (en) Generation method, device, equipment and storage medium
CN115712571A (en) Interactive service test device, interactive service test device, computer equipment and storage medium
CN115080412A (en) Software update quality evaluation method, device, equipment and computer storage medium
CN111240972B (en) Model verification device based on source code
CN113900872A (en) Hardware fault detection system, method and medium
CN110750452B (en) Automatic test method and device
CN114328112A (en) Monitoring method, device, equipment and medium for heterogeneous chip
US20150295851A1 (en) Authorization review system

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