CN112000568A - Technical code testing method and device, computer equipment and storage medium - Google Patents

Technical code testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112000568A
CN112000568A CN202010662116.7A CN202010662116A CN112000568A CN 112000568 A CN112000568 A CN 112000568A CN 202010662116 A CN202010662116 A CN 202010662116A CN 112000568 A CN112000568 A CN 112000568A
Authority
CN
China
Prior art keywords
technical code
code
effective
technical
index value
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
CN202010662116.7A
Other languages
Chinese (zh)
Other versions
CN112000568B (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.)
Xian Fibocom Wireless Software Inc
Original Assignee
Xian Fibocom Wireless Software Inc
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 Xian Fibocom Wireless Software Inc filed Critical Xian Fibocom Wireless Software Inc
Priority to CN202010662116.7A priority Critical patent/CN112000568B/en
Publication of CN112000568A publication Critical patent/CN112000568A/en
Application granted granted Critical
Publication of CN112000568B publication Critical patent/CN112000568B/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/3684Test management for test design, e.g. generating new test cases
    • 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

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)
  • Telephone Function (AREA)

Abstract

The application relates to a technical code testing method, a technical code testing device, a computer device and a storage medium. The method comprises the following steps: the technical code to be tested is run. And acquiring the code identification of the operated technical code, and determining the type of the technical code according to the code identification. And when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value. When the type of the technical code is the technical code for the drive module, whether an effective folder corresponding to the technical code is created under a local preset path is detected, so as to judge whether the technical code for the drive module is effective. By adopting the method, the technical code testing efficiency can be improved.

Description

Technical code testing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a method and an apparatus for testing a technical code, a computer device, and a storage medium.
Background
With the development of wireless communication technology, users have higher and higher requirements for the product quality of wireless communication terminals. Therefore, before the wireless communication terminal is put on the market formally, the wireless communication terminal is required to be tested for product quality and a solution is provided for the tested technical problem. When the quality test finds that the wireless communication terminal has technical problems, research personnel can develop technical codes for solving the technical problems and deploy the technical codes on the wireless communication terminal so as to solve the technical problems and improve the product quality of the wireless communication terminal. Whether the technical code can take effect or not has a great influence on whether the technical problem can be effectively solved or not and on the product quality of the wireless communication terminal. In the conventional technology, whether the technical code is effective or not is often judged by grabbing a large number of running logs of the technical code and analyzing the grabbed large number of running logs by a developer.
However, in the conventional technical code testing method, a developer needs to spend a lot of time analyzing the running logs of a large amount of technical codes, and the testing efficiency of the technical codes is low.
Disclosure of Invention
In view of the above, it is necessary to provide a technical code testing method, an apparatus, a computer device and a storage medium capable of improving the technical code testing efficiency.
A technical code testing method, the method comprising:
running a technical code to be tested;
acquiring a code identifier of the operated technical code, and determining the type of the technical code according to the code identifier;
when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value;
when the type of the technical code is the technical code for the drive module, detecting whether an effective folder corresponding to the technical code is created under a local preset path or not so as to judge whether the technical code for the drive module is effective or not.
In one embodiment, the querying the effective index value corresponding to the technical code includes:
displaying an effective index value query page;
acquiring an effective index value query instruction based on the query page;
and responding to the effective index value query instruction, and locally querying the effective index value corresponding to the technical code.
In one embodiment, the determining whether the technical code for the wireless module is effective according to the effectiveness index value includes:
when the inquired effective index value is 1, judging that the technical code aiming at the wireless module is effective;
and when the inquired effective index value is 0, judging that the technical code aiming at the wireless module is not effective.
In one embodiment, after determining that the technical code for the wireless module is validated when the queried validation index value is 1, the method further includes:
performing power-off preservation processing on the effective index value;
resetting the validation index value to 0 when a retest instruction for a technical code of the wireless module is received.
In one embodiment, the detecting whether an effective folder corresponding to the technical code is created under a local preset path includes:
determining a data interface of a local operating system;
and calling the data interface to detect whether an effective folder corresponding to the technical code is created under a local preset path through the driving module.
In one embodiment, the determining whether the technical code for the driver module is valid includes:
when an effective folder corresponding to the technical code is created under a local preset path, judging that the technical code for the driving module is effective;
and when detecting that the effective folder corresponding to the technical code is not created under the local preset path, judging that the technical code aiming at the driving module is not effective.
In one embodiment, the method further comprises:
when the technical code does not take effect, acquiring a fault scene information query instruction, and locally querying fault scene information according to the fault scene information query instruction;
when the fault scene information is inquired, adjusting the technical code based on the fault scene information;
and when the fault scene information is not inquired, carrying out the next round of test on the technical code.
A technical code testing apparatus, the apparatus comprising:
the running module is used for running the technical code to be tested;
the acquisition module is used for acquiring the code identification of the operated technical code and determining the type of the technical code according to the code identification;
the inquiry module is used for inquiring an effective index value corresponding to the technical code when the type of the technical code is the technical code aiming at the wireless module, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value;
and the detection module is used for detecting whether an effective folder corresponding to the technical code is created under a local preset path or not when the type of the technical code is the technical code aiming at the drive module so as to judge whether the technical code aiming at the drive module is effective or not.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
running a technical code to be tested;
acquiring a code identifier of the operated technical code, and determining the type of the technical code according to the code identifier;
when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value;
when the type of the technical code is the technical code for the drive module, detecting whether an effective folder corresponding to the technical code is created under a local preset path or not so as to judge whether the technical code for the drive module is effective or not.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
running a technical code to be tested;
acquiring a code identifier of the operated technical code, and determining the type of the technical code according to the code identifier;
when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value;
when the type of the technical code is the technical code for the drive module, detecting whether an effective folder corresponding to the technical code is created under a local preset path or not so as to judge whether the technical code for the drive module is effective or not.
According to the technical code testing method, the technical code to be tested, the code identification of the operated technical code is obtained, and the type of the technical code is determined according to the code identification, so that different types of technical codes can be tested in a corresponding mode. And when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value. When the type of the technical code is the technical code for the drive module, whether an effective folder corresponding to the technical code is created under a local preset path is detected, so as to judge whether the technical code for the drive module is effective. Therefore, whether the corresponding technical code is effective or not can be confirmed by inquiring the effective index value or detecting the effective folder. The running logs of the technical codes do not need to be captured, and research personnel do not need to spend a large amount of time on analyzing the running logs of a large number of technical codes, so that the testing efficiency of the technical codes is improved.
Drawings
FIG. 1 is a diagram of an application scenario of a technical code testing method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for testing technical code in one embodiment;
FIG. 3 is a flow diagram illustrating query validation index values in one embodiment;
FIG. 4 is a block diagram of a technical code testing apparatus in one embodiment;
FIG. 5 is a block diagram showing the structure of a technical code test apparatus according to another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The technical code testing method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a terminal 102. The terminal 102 includes a wireless module 1021 and a driving module 1022. The terminal 102 has a technical code to be tested deployed therein. The terminal 102 may specifically include a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, a notebook computer, and the like. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
The terminal 102 runs the technical code to be tested. The terminal 102 obtains the code identification of the executed technical code and determines the type of the technical code according to the code identification. When the type of the technical code is the technical code for the wireless module 1021, the terminal 102 queries an effective index value corresponding to the technical code, and determines whether the technical code for the wireless module 1021 is effective according to the effective index value. When the type of the technical code is the technical code for the driver module 1022, the terminal 102 detects whether an effective folder corresponding to the technical code is created under a local preset path, so as to determine whether the technical code for the driver module 1022 is effective.
In one embodiment, as shown in fig. 2, a technical code testing method is provided, which is described by taking the method as an example applied to the terminal 102 in fig. 1, and includes the following steps:
s202, running the technical code to be tested.
The technical code is developed for solving the technical problem generated by the terminal. It will be appreciated that some faults may occur during operation of the terminal. In order to ensure the product quality of the terminal, research and development personnel can develop codes aiming at solving the technical problems so as to avoid the corresponding technical problems from appearing again. The code developed by the developer for solving the technical problem generated by the terminal based on the terminal is the technical code. For example, if the technical problem is that the terminal has a black screen, the technical code is a code developed for solving the technical problem of the black screen of the terminal.
Specifically, a developer can develop a corresponding technical code aiming at solving a technical problem generated by the terminal based on the terminal, and deploy the developed technical code to be tested to the terminal. Furthermore, the terminal can run the technical code to be tested which is deployed locally.
S204, acquiring the code identification of the operated technical code, and determining the type of the technical code according to the code identification.
The code identification is the identity of the technical code and is used for uniquely identifying one technical code. The code identification may include at least one of letters, numbers, special characters, and the like. The special characters may include at least one of underlines, dots, exclamation marks, percentiles, and the like.
Specifically, each type of technical code corresponds to a respective code identifier, and the code identifier may include a type field for identifying the type to which the technical code belongs. The terminal can directly determine the type of the technical code through the type field in the code identification of the technical code.
In one embodiment, the type of the technical code may include at least one of a technical code for a wireless module and a technical code for a driver module, and the like.
S206, when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value.
The wireless module is a functional module used by the terminal to realize wireless communication. The validation index value is an index value that identifies whether the corresponding technical code can be validated against the technical problem.
In particular, the terminal may monitor in real time what type of technical code is determined based on the code identification. When the terminal monitors that the type of the technical code is the technical code for the wireless module, the terminal can locally inquire an effective index value corresponding to the technical code and judge whether the technical code for the wireless module is effective according to the effective index value. It can be understood that the terminal has an effective index value which can represent whether the technical code is effective or not. When the technical code takes effect, the terminal may generate an effectiveness index value corresponding to the technical code taking effect. When the technical code is not in effect, the terminal may generate an effectiveness index value corresponding to the technical code not in effect. Through the inquired effective index value, whether the corresponding technical code is effective or not can be directly judged.
And S208, when the type of the technical code is the technical code for the drive module, detecting whether an effective folder corresponding to the technical code is created under a local preset path so as to judge whether the technical code for the drive module is effective.
The driving module is a functional module used by the terminal to support the wireless module in the terminal. A validation folder is a folder that identifies whether the corresponding technical code can be validated against a technical issue.
In particular, the terminal may monitor in real time what type of technical code is determined based on the code identification. When the terminal monitors that the type of the technical code is the technical code for the drive module, the terminal can detect whether an effective folder corresponding to the technical code is created under a local preset path so as to judge whether the technical code for the drive module is effective. It can be understood that when the technical code takes effect, the terminal may create an effective folder corresponding to the technical code under a preset path of the terminal. And when the technical code is not effective, the terminal cannot create an effective folder corresponding to the technical code under a local preset path. Therefore, the terminal can directly determine whether the corresponding technical code is effective according to whether the effective folder corresponding to the technical code is created under the local preset path.
In the technical code testing method, the technical code to be tested is operated, the code identification of the operated technical code is obtained, and the type of the technical code is determined according to the code identification, so that the technical codes of different types can be tested in a corresponding mode. And when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value. When the type of the technical code is the technical code for the drive module, whether an effective folder corresponding to the technical code is created under a local preset path is detected, so as to judge whether the technical code for the drive module is effective. Therefore, whether the corresponding technical code is effective or not can be confirmed by inquiring the effective index value or detecting the effective folder. The running logs of the technical codes do not need to be captured, and research personnel do not need to spend a large amount of time on analyzing the running logs of a large number of technical codes, so that the testing efficiency of the technical codes is improved.
In an embodiment, as shown in fig. 3, the step of querying the effective index value corresponding to the technical code in step S206 specifically includes: steps S302 to S306:
s302, displaying an effective index value inquiry page.
The effective index value inquiry page is a page used for inquiring the effective index value in the terminal.
Specifically, a button for triggering the display of the effective index value query page may be disposed on the terminal. The user can trigger a button for displaying the effective index value query page through trigger operation so as to display the effective index value query page.
In one embodiment, the button for triggering the presentation validation index value query page may be a physical button provided on the terminal or a virtual button provided on the terminal. The trigger operation may include any one of a single click, a double click, a long press, and the like.
S304, based on the query page, obtaining the effective index value query instruction.
Wherein the validation index value query instruction is an instruction for querying the validation index value.
Specifically, the user may input an effective index value query instruction based on the query page. The terminal can obtain the effective index value inquiry instruction input by the user.
S306, responding to the effective index value query instruction, and querying the effective index value corresponding to the technical code locally.
Specifically, after acquiring the validation index value query instruction, the terminal may locally query, in response to the validation index value query instruction, a query term corresponding to the validation index value query instruction, and determine a value of the query term as a corresponding validation index value.
In one embodiment, the effective metric value query instruction may specifically be a specific AT command, such as AT + gtswerking. The at (attention) command is a command applied to connection and communication between a terminal and a PC (Personal Computer) application. The AT + gtswirking command can query the value of a Non-Volatile Memory (NV) item in the terminal, i.e., the value of the vital signs.
In the above embodiment, the validation index value corresponding to the technical code is queried locally through the validation index value query instruction. Therefore, the effective index value can be quickly obtained, and the test efficiency of the technical code is further improved.
In an embodiment, the step of determining whether the technical code for the wireless module takes effect according to the effective index value in step S206 specifically includes: when the inquired effective index value is 1, judging that the technical code for the wireless module is effective; and when the inquired effective index value is 0, judging that the technical code for the wireless module is not effective.
Specifically, the terminal may preset the validation index value to 0. When the technical code for the wireless module has come into effect, the value of the effectiveness index in the terminal may be set to 1. When the technical code for the wireless module is not effective, the effective index value in the terminal can use the original preset value, namely the effective index value is 0. The terminal can acquire the inquired effective index value in real time, and when the terminal determines that the inquired effective index value is 1, the terminal can directly judge that the technical code for the wireless module is effective. When the terminal determines that the inquired effective index value is 0, the terminal can directly judge that the technical code for the wireless module is not effective.
In one embodiment, the effective index value query instruction is an AT + gtswerking instruction, and the effective index value is a value of NV item SolutionWorking (solution is effective, i.e. technical code is effective) in the terminal. When the terminal determines that the value of the queried NV item solution work is 1, the terminal can directly judge that the technical code for the wireless module is effective. When the terminal determines that the value of the queried NV term solving is 0, the terminal can directly judge that the technical code for the wireless module is not effective.
In the above embodiment, it is directly determined whether the technical code for the wireless module has come into effect by determining whether the found effective index value is 1 or 0. Therefore, whether the technical code takes effect can be directly judged without acquiring the running log of the technical code or spending time on analyzing the running log by research personnel, and the testing efficiency of the technical code is improved.
In an embodiment, after the step of determining that the technical code for the wireless module is validated when the queried validation index value is 1, the technical code testing method further includes: performing power-off preservation processing on the effective index value; when a retest instruction for the technical code of the wireless module is received, the validation index value is reset to 0.
The retest instruction is an instruction for the control terminal to retest the technical code.
Specifically, the terminal can perform power-off saving processing on the local effective index value in real time, so as to avoid that the local effective index value is lost and the test result of the technical code is influenced due to sudden power-off of the terminal. The user can input a retest instruction for the technical code of the wireless module based on the terminal, and the terminal can acquire the retest instruction. When the terminal receives a retest instruction for the technical code of the wireless module, the effective index value is reset to 0 so as to retest the technical code.
In one embodiment, the effective index value query instruction is an AT + gtswirking instruction, and the effective index value is a value of NV item SolutionWorking in the terminal. When the terminal determines that the value of the queried NV item solution work is 1, the terminal can directly judge that the technical code for the wireless module is effective. Because the terminal can perform power-off saving processing on the local effective index value in real time, when the technical code for the wireless module needs to be retested, the terminal can reset NV item solving working to 0 by an AT command AT + GTSWORking to 0 so as to retest the technical code.
In the embodiment, the power-off saving processing is performed on the effective index value, so that the generated effective index value can be saved locally in the terminal when the terminal is powered off suddenly, and the loss of the effective index value caused by the sudden power-off of the terminal is avoided, and the judgment on whether the corresponding technical code is effective is influenced. And resetting the effective index value to 0 through a retest instruction aiming at the technical code of the wireless module so as to retest the corresponding technical code.
In an embodiment, the step of detecting whether an effective folder corresponding to the technical code is created under the local preset path in step S208 specifically includes: determining a data interface of a local operating system; and calling a data interface to detect whether an effective folder corresponding to the technical code is created under a local preset path through a driving module.
Specifically, the terminal has an operating system, and the operating system corresponds to a data interface. The terminal can detect whether the technical problem corresponding to the technical code of the drive module is solved or not, and when the technical problem corresponding to the technical code of the drive module is solved, the terminal can determine the data interface of the local operating system, call the data interface corresponding to the operating system and create an effective folder corresponding to the technical code under a local preset path. Furthermore, the terminal can call a data interface corresponding to the operating system through the driving module to detect whether an effective folder corresponding to the technical code is created under a local preset path.
In the above embodiment, the data interface is determined, and the driver module is used to call the data interface to detect whether an effective folder corresponding to the technical code is created under the local preset path. Therefore, whether the effective folder corresponding to the technical code is created under the local preset path can be quickly confirmed, and the testing efficiency of the technical code is further improved.
In an embodiment, the step of determining whether the technical code for the driver module takes effect in step S208 specifically includes: when an effective folder corresponding to the technical code is created under a local preset path, judging that the technical code for the driving module is effective; and when detecting that the effective folder corresponding to the technical code is not created under the local preset path, judging that the technical code aiming at the drive module is not effective.
In one embodiment, when the technical code for the driver module is validated, the driver module of the terminal may call an API (Application Programming Interface) of an OS (Operating System) creating a file. Such as createfile (Solution is work.txt, C: \ programs), the terminal can save the Solution is work.txt under the C: \ programs directory. And when the terminal detects that a Solution is work.txt file is created in the C: \ programs directory, the terminal judges that the technical code aiming at the drive module is effective. Otherwise, judging that the technical code aiming at the drive module is not effective.
In the above embodiment, whether the technical code for the driver module takes effect is determined by determining whether an effective folder corresponding to the technical code has been created under the local preset path. Therefore, whether the technical code takes effect can be directly judged without acquiring the running log of the technical code or spending time on analyzing the running log by research personnel, and the testing efficiency of the technical code is improved.
In one embodiment, the technical code testing method further includes: when the technical code does not take effect, acquiring a fault scene information query instruction, and locally querying fault scene information according to the fault scene information query instruction; when the fault scene information is inquired, adjusting the technical code based on the fault scene information; and when the fault scene information is not inquired, carrying out the next round of test on the technical code.
The fault scenario information query command is a command generated for querying whether fault scenario information is recorded in the terminal. The fault scenario information is information related to a fault scenario generated by the terminal when the terminal has a functional fault.
Specifically, when a terminal has a functional failure, the terminal may generate and store failure scenario information locally. When the terminal tests that the technical code does not take effect, the terminal can acquire the fault scene information query instruction and locally query the fault scene information according to the fault scene information query instruction. When the fault scene information is inquired, the fault scene occurs in the testing time period, but the technical code cannot effectively solve the technical problem of the fault scene, and at the moment, the terminal can adjust the technical code based on the fault scene information. After the technical code is adjusted, the terminal can retest the adjusted technical code to determine whether the adjusted technical code is effective. When the fault scene information is not inquired, the fault scene does not occur in the testing time period, and whether the corresponding technical code can solve the corresponding technical problem cannot be judged, at the moment, the terminal can perform the next round of testing on the technical code to determine whether the technical code can take effect.
In the above embodiment, whether a fault scenario has occurred is determined by determining whether fault scenario information is queried locally. When a fault scenario occurs, but the technical code for which is not in effect, the technical code may be adjusted based on the fault scenario information at this point. When the fault scene does not occur, it cannot be determined whether the corresponding technical code is truly invalid, and at this time, the technical code may be subjected to a next round of test to further confirm whether the corresponding technical code is valid. Therefore, the accuracy of the technical code test is improved.
It should be understood that although the various steps of fig. 2 and 3 are shown sequentially in order, these steps are not necessarily performed sequentially in order. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a technical code testing apparatus 400, including: an operation module 401, an acquisition module 402, a query module 403, and a detection module 404, wherein:
the running module 401 is configured to run the technical code to be tested.
An obtaining module 402, configured to obtain a code identifier of the executed technical code, and determine a type of the technical code according to the code identifier.
The query module 403 is configured to query an effective index value corresponding to the technical code when the type of the technical code is the technical code for the wireless module, and determine whether the technical code for the wireless module is effective according to the effective index value.
The detecting module 404 is configured to detect whether an effective folder corresponding to the technical code is created under a local preset path, so as to determine whether the technical code for the driver module is effective, when the type of the technical code is the technical code for the driver module.
In one embodiment, the query module 403 is further configured to present a validation index value query page; acquiring an effective index value query instruction based on the query page; and responding to the effective index value query instruction, and locally querying the effective index value corresponding to the technical code.
In one embodiment, the querying module 403 is further configured to determine that the technical code for the wireless module is validated when the queried validation index value is 1; and when the inquired effective index value is 0, judging that the technical code for the wireless module is not effective.
In one embodiment, the detection module 404 is further configured to determine a data interface of the local operating system; and calling a data interface to detect whether an effective folder corresponding to the technical code is created under a local preset path through a driving module.
In one embodiment, the detection module 404 is further configured to determine that the technology code for the driver module is in effect when it is detected that an effective folder corresponding to the technology code is created under the local preset path; and when detecting that the effective folder corresponding to the technical code is not created under the local preset path, judging that the technical code aiming at the drive module is not effective.
In one embodiment, the query module 403 is further configured to, when the technical code is not validated, obtain a fault scenario information query instruction, and query the fault scenario information locally according to the fault scenario information query instruction; when the fault scene information is inquired, adjusting the technical code based on the fault scene information; and when the fault scene information is not inquired, carrying out the next round of test on the technical code.
Referring to fig. 5, in one embodiment, the technical code testing apparatus 400 further includes: a storage module 405 and a reset module 406, wherein:
and the storage module 405 is configured to perform power-off saving processing on the effective index value.
A resetting module 406, configured to reset the validation index value to 0 when a retest instruction for the technical code of the wireless module is received.
According to the technical code testing device, the technical codes to be tested are operated, the code identifications of the operated technical codes are obtained, and the types of the technical codes are determined according to the code identifications, so that the technical codes of different types can be tested in a corresponding mode. And when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value. When the type of the technical code is the technical code for the drive module, whether an effective folder corresponding to the technical code is created under a local preset path is detected, so as to judge whether the technical code for the drive module is effective. Therefore, whether the corresponding technical code is effective or not can be confirmed by inquiring the effective index value or detecting the effective folder. The running logs of the technical codes do not need to be captured, and research personnel do not need to spend a large amount of time on analyzing the running logs of a large number of technical codes, so that the testing efficiency of the technical codes is improved.
For the specific definition of the technical code testing device, reference may be made to the above definition of the technical code testing method, which is not described herein again. The modules in the technical code testing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be the terminal 102 in fig. 1, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a technical code testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
running a technical code to be tested;
acquiring a code identifier of the operated technical code, and determining the type of the technical code according to the code identifier;
when the type of the technical code is the technical code for the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code for the wireless module is effective or not according to the effective index value;
when the type of the technical code is the technical code for the drive module, whether an effective folder corresponding to the technical code is created under a local preset path is detected, so as to judge whether the technical code for the drive module is effective.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
displaying an effective index value query page;
acquiring an effective index value query instruction based on the query page;
and responding to the effective index value query instruction, and locally querying the effective index value corresponding to the technical code.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
when the inquired effective index value is 1, judging that the technical code for the wireless module is effective;
and when the inquired effective index value is 0, judging that the technical code for the wireless module is not effective.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
performing power-off preservation processing on the effective index value;
when a retest instruction for the technical code of the wireless module is received, the validation index value is reset to 0.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
determining a data interface of a local operating system;
and calling a data interface to detect whether an effective folder corresponding to the technical code is created under a local preset path through a driving module.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
when an effective folder corresponding to the technical code is created under a local preset path, judging that the technical code for the driving module is effective;
and when detecting that the effective folder corresponding to the technical code is not created under the local preset path, judging that the technical code aiming at the drive module is not effective.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
when the technical code does not take effect, acquiring a fault scene information query instruction, and locally querying fault scene information according to the fault scene information query instruction;
when the fault scene information is inquired, adjusting the technical code based on the fault scene information;
and when the fault scene information is not inquired, carrying out the next round of test on the technical code.
In one embodiment, a computer readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of:
running a technical code to be tested;
acquiring a code identifier of the operated technical code, and determining the type of the technical code according to the code identifier;
when the type of the technical code is the technical code for the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code for the wireless module is effective or not according to the effective index value;
when the type of the technical code is the technical code for the drive module, whether an effective folder corresponding to the technical code is created under a local preset path is detected, so as to judge whether the technical code for the drive module is effective.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
displaying an effective index value query page;
acquiring an effective index value query instruction based on the query page;
and responding to the effective index value query instruction, and locally querying the effective index value corresponding to the technical code.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
when the inquired effective index value is 1, judging that the technical code for the wireless module is effective;
and when the inquired effective index value is 0, judging that the technical code for the wireless module is not effective.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
performing power-off preservation processing on the effective index value;
when a retest instruction for the technical code of the wireless module is received, the validation index value is reset to 0.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
determining a data interface of a local operating system;
and calling a data interface to detect whether an effective folder corresponding to the technical code is created under a local preset path through a driving module.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
when an effective folder corresponding to the technical code is created under a local preset path, judging that the technical code for the driving module is effective;
and when detecting that the effective folder corresponding to the technical code is not created under the local preset path, judging that the technical code aiming at the drive module is not effective.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of:
when the technical code does not take effect, acquiring a fault scene information query instruction, and locally querying fault scene information according to the fault scene information query instruction;
when the fault scene information is inquired, adjusting the technical code based on the fault scene information;
and when the fault scene information is not inquired, carrying out the next round of test on the technical code.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A technical code testing method is characterized by being applied to a terminal; the terminal comprises a wireless module and a driving module; the terminal is deployed with a technical code to be tested, and the method comprises the following steps:
running a technical code to be tested;
acquiring a code identifier of the operated technical code, and determining the type of the technical code according to the code identifier;
when the type of the technical code is the technical code aiming at the wireless module, inquiring an effective index value corresponding to the technical code, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value;
when the type of the technical code is the technical code for the drive module, detecting whether an effective folder corresponding to the technical code is created under a local preset path or not so as to judge whether the technical code for the drive module is effective or not.
2. The method of claim 1, wherein the querying the validation index value corresponding to the technical code comprises:
displaying an effective index value query page;
acquiring an effective index value query instruction based on the query page;
and responding to the effective index value query instruction, and locally querying the effective index value corresponding to the technical code.
3. The method of claim 1, wherein determining whether a technology code for the wireless module is in effect according to the effectiveness index value comprises:
when the inquired effective index value is 1, judging that the technical code aiming at the wireless module is effective;
and when the inquired effective index value is 0, judging that the technical code aiming at the wireless module is not effective.
4. The method of claim 3, wherein after determining that the technical code for the wireless module is validated when the queried validation index value is 1, the method further comprises:
performing power-off preservation processing on the effective index value;
resetting the validation index value to 0 when a retest instruction for a technical code of the wireless module is received.
5. The method according to claim 1, wherein the detecting whether a valid folder corresponding to the technical code is created under a local preset path includes:
determining a data interface of a local operating system;
and calling the data interface to detect whether an effective folder corresponding to the technical code is created under a local preset path through the driving module.
6. The method of claim 1, wherein the determining whether the technical code for the driver module is in effect comprises:
when an effective folder corresponding to the technical code is created under a local preset path, judging that the technical code for the driving module is effective;
and when detecting that the effective folder corresponding to the technical code is not created under the local preset path, judging that the technical code aiming at the driving module is not effective.
7. The method according to any one of claims 1 to 6, further comprising:
when the technical code does not take effect, acquiring a fault scene information query instruction, and locally querying fault scene information according to the fault scene information query instruction;
when the fault scene information is inquired, adjusting the technical code based on the fault scene information;
and when the fault scene information is not inquired, carrying out the next round of test on the technical code.
8. A technical code testing apparatus, characterized in that the apparatus comprises:
the running module is used for running the technical code to be tested;
the acquisition module is used for acquiring the code identification of the operated technical code and determining the type of the technical code according to the code identification;
the inquiry module is used for inquiring an effective index value corresponding to the technical code when the type of the technical code is the technical code aiming at the wireless module, and judging whether the technical code aiming at the wireless module is effective or not according to the effective index value;
the detection module is used for detecting whether an effective folder corresponding to the technical code is created under a local preset path or not when the type of the technical code is the technical code for the drive module so as to judge whether the technical code for the drive module is effective or not.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010662116.7A 2020-07-10 2020-07-10 Technical code testing method, device, computer equipment and storage medium Active CN112000568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010662116.7A CN112000568B (en) 2020-07-10 2020-07-10 Technical code testing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010662116.7A CN112000568B (en) 2020-07-10 2020-07-10 Technical code testing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112000568A true CN112000568A (en) 2020-11-27
CN112000568B CN112000568B (en) 2024-05-10

Family

ID=73466778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010662116.7A Active CN112000568B (en) 2020-07-10 2020-07-10 Technical code testing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112000568B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520966A (en) * 2011-12-28 2012-06-27 东软集团股份有限公司 Method for prompting codes and device
KR20120070018A (en) * 2010-12-21 2012-06-29 한국인터넷진흥원 Javascript obfuscation by hooking automatically decrypted and how to detect malicious web sites
CN103329124A (en) * 2010-11-24 2013-09-25 万梅戈切伦和蒂拉努斯有限公司 Method and system for compiling a unique sample code for an existing digital sample
CN103348341A (en) * 2010-11-24 2013-10-09 万梅戈切伦和蒂拉努斯有限公司 User-friendly method and system for compiling unique sample code for digital sample with help of user interface
CN106445700A (en) * 2016-09-20 2017-02-22 杭州华三通信技术有限公司 Method and device for uniform resource locator (URL) matching
CN106557423A (en) * 2016-11-22 2017-04-05 深圳市掌世界网络科技有限公司 A kind of internet code method for automatically releasing and system
CN106909411A (en) * 2015-12-23 2017-06-30 中国移动通信集团江苏有限公司 A kind of file updating method and device
CN107122182A (en) * 2017-04-14 2017-09-01 努比亚技术有限公司 A kind of code construction and the method and system of issue
CN107193607A (en) * 2017-05-26 2017-09-22 网易(杭州)网络有限公司 Method and apparatus, storage medium, processor and terminal for updating code file
CN107315687A (en) * 2017-06-29 2017-11-03 环球智达科技(北京)有限公司 Code method for automatically releasing
CN109030994A (en) * 2018-06-29 2018-12-18 北京经纬恒润科技有限公司 A kind of test method and system
CN109408392A (en) * 2018-11-06 2019-03-01 北京京航计算通讯研究所 Software System Integrated Testing method based on continuous integrating technology
US20190156036A1 (en) * 2017-11-23 2019-05-23 Nicira, Inc. Detecting arbitrary code execution using a hypervisor

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103329124A (en) * 2010-11-24 2013-09-25 万梅戈切伦和蒂拉努斯有限公司 Method and system for compiling a unique sample code for an existing digital sample
CN103348341A (en) * 2010-11-24 2013-10-09 万梅戈切伦和蒂拉努斯有限公司 User-friendly method and system for compiling unique sample code for digital sample with help of user interface
KR20120070018A (en) * 2010-12-21 2012-06-29 한국인터넷진흥원 Javascript obfuscation by hooking automatically decrypted and how to detect malicious web sites
CN102520966A (en) * 2011-12-28 2012-06-27 东软集团股份有限公司 Method for prompting codes and device
CN106909411A (en) * 2015-12-23 2017-06-30 中国移动通信集团江苏有限公司 A kind of file updating method and device
CN106445700A (en) * 2016-09-20 2017-02-22 杭州华三通信技术有限公司 Method and device for uniform resource locator (URL) matching
CN106557423A (en) * 2016-11-22 2017-04-05 深圳市掌世界网络科技有限公司 A kind of internet code method for automatically releasing and system
CN107122182A (en) * 2017-04-14 2017-09-01 努比亚技术有限公司 A kind of code construction and the method and system of issue
CN107193607A (en) * 2017-05-26 2017-09-22 网易(杭州)网络有限公司 Method and apparatus, storage medium, processor and terminal for updating code file
CN107315687A (en) * 2017-06-29 2017-11-03 环球智达科技(北京)有限公司 Code method for automatically releasing
US20190156036A1 (en) * 2017-11-23 2019-05-23 Nicira, Inc. Detecting arbitrary code execution using a hypervisor
CN109030994A (en) * 2018-06-29 2018-12-18 北京经纬恒润科技有限公司 A kind of test method and system
CN109408392A (en) * 2018-11-06 2019-03-01 北京京航计算通讯研究所 Software System Integrated Testing method based on continuous integrating technology

Also Published As

Publication number Publication date
CN112000568B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN110647438B (en) Event monitoring method and device, computer equipment and storage medium
CN109766256B (en) Method and device for testing H5 page performance in application program and computer equipment
CN101515316B (en) Trusted computing terminal and trusted computing method
CN108399124B (en) Application testing method and device, computer equipment and storage medium
CN108848000B (en) Network request testing method and device, computer equipment and storage medium
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN109408261B (en) Application program crash processing method and device, computer equipment and storage medium
CN109190067B (en) Browser input box display method and device, computer equipment and storage medium
CN105095759A (en) File detection method and device
CN106550031A (en) The method and device of data backup
CN112637008B (en) Link simulation test method, device, system, computer equipment and storage medium
CN108566301B (en) Switch offline configuration method, device, system and computer equipment
CN110659435A (en) Page data acquisition processing method and device, computer equipment and storage medium
CN110231921B (en) Log printing method, device, equipment and computer readable storage medium
CN112000568B (en) Technical code testing method, device, computer equipment and storage medium
CN107861966B (en) Cache detection method, equipment and computer readable storage medium
CN114039760B (en) Security testing method and device, computer equipment and storage medium
CN113646763B (en) shellcode detection method and device
CN111176930B (en) Component operation data processing method and device, computer equipment and storage medium
WO2021139139A1 (en) Permission abnormality detection method and apparatus, computer device, and storage medium
CN113987506A (en) Test method, device, test equipment and storage medium of authentication system
CN112257106A (en) Data detection method and device
CN110704218B (en) Data processing method, data processing device, computer equipment and storage medium
CN110879757A (en) Restarting method and device for abnormal operation of client and computer equipment

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