CN114090428A - Information processing method, information processing device, computer-readable storage medium and computer equipment - Google Patents

Information processing method, information processing device, computer-readable storage medium and computer equipment Download PDF

Info

Publication number
CN114090428A
CN114090428A CN202111284988.5A CN202111284988A CN114090428A CN 114090428 A CN114090428 A CN 114090428A CN 202111284988 A CN202111284988 A CN 202111284988A CN 114090428 A CN114090428 A CN 114090428A
Authority
CN
China
Prior art keywords
abnormal
information
test
target
file
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.)
Pending
Application number
CN202111284988.5A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111284988.5A priority Critical patent/CN114090428A/en
Publication of CN114090428A publication Critical patent/CN114090428A/en
Pending legal-status Critical Current

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/3692Test management for test results analysis
    • 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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Abstract

The embodiment of the application discloses an information processing method, an information processing device, a computer readable storage medium and computer equipment, wherein an authentication report and a reason set are obtained; extracting a storage path of each target file in the authentication report; searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file; and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item. Therefore, the authentication report is analyzed, the abnormal test information in the authentication report is extracted, the abnormal reason information corresponding to the abnormal test information is obtained from the reason set, and the target abnormal information file is generated based on the abnormal test information and the abnormal reason information corresponding to the abnormal test information, so that the condition that the mode for manually processing the authentication report is low in efficiency is avoided, and the information processing efficiency is improved.

Description

Information processing method, information processing device, computer-readable storage medium and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method, an information processing apparatus, a computer-readable storage medium, and a computer device.
Background
With the development of computer technology, intelligent devices, such as smart phones, smart televisions and the like, are increasingly popularized, and the lives of people are enriched. Most of the devices are products designed by developers based on an Android (Android) system, in order to ensure Compatibility and stability of various Android-based smart devices designed and produced by hardware manufacturers all over the world and Compatibility and stability of various software APP (application) products and Services carried by the hardware and the Android, before the smart devices are on the market, the smart devices need to pass Google certification, for example, tests such as Compatibility Test Suite (CTS), Google Mobile Services Test Suite (GTS) and the like, and a certification result can be obtained through a Google certification report.
However, in the prior art, the google certification report is presented in a hypertext Markup Language (HTML), and developers need to manually process the certification report to obtain a certification result and manually select and store important information in the test report, and this manual processing mode of the certification report has a slow rate and is prone to errors, so that the information processing efficiency is low.
Disclosure of Invention
Embodiments of the present application provide an information processing method and apparatus, a computer-readable storage medium, and a computer device, which can improve efficiency of obtaining an authentication result of an authentication report and improve information processing efficiency.
An embodiment of the present application provides an information processing method, including:
acquiring an authentication report and a reason set, wherein the reason set comprises test items and corresponding abnormal reason information;
extracting a storage path of each target file in the authentication report;
searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file, wherein the abnormal test information comprises abnormal test items;
and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
Correspondingly, an embodiment of the present application provides an information processing apparatus, including:
the system comprises an acquisition unit, a verification unit and a processing unit, wherein the acquisition unit is used for acquiring an authentication report and a reason set, and the reason set comprises test items and corresponding abnormal reason information;
the extraction unit is used for extracting the storage path of each target file in the authentication report;
the analysis unit is used for searching the target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file, wherein the abnormal test information comprises an abnormal test item;
and the generating unit is used for searching the abnormal reason information corresponding to the abnormal test item in the reason set and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
In an embodiment, the parsing unit includes:
the searching subunit is used for searching in the authentication report according to the storage path to obtain at least one target file;
the analysis subunit is used for analyzing the labels in each target file to obtain the label categories of each label;
and the extracting subunit is used for extracting the abnormal test information of each target file based on the label category.
In one embodiment, the extraction subunit includes:
the acquisition module is used for acquiring a total summary table, a test summary table and a test detail table in each target file based on the label category;
the first extraction module is used for extracting the suite version information in the general summary table and splicing the suite version information to obtain a splicing result;
the second extraction module is used for extracting abnormal module information of modules with abnormal items in the test summary table;
the third extraction module is used for extracting the abnormal test items corresponding to each module with the abnormal items in the test detail table;
and the storage module is used for obtaining the abnormal test information of each target file based on the splicing result, the abnormal module information and the abnormal test item and storing the abnormal test information into an abnormal information file.
In one embodiment, the storage module includes:
converting the abnormal test information into a list data structure to obtain abnormal list data;
performing data analysis on the abnormal list data, and converting the data structure of the abnormal test information from a list data structure into a data frame structure according to an analysis result;
and storing the abnormal test information of the data frame structure into an abnormal information file.
In one embodiment, the extraction unit includes:
the traversal subunit is used for determining a target keyword and traversing the authentication report according to the target keyword;
and the storage path acquisition subunit is used for acquiring the storage path of the target file in the authentication report based on the traversal result.
In one embodiment, the generating unit includes:
the reading subunit is configured to read the reason set, and search for a target test item matched with the abnormal test item in the reason set;
the abnormal reason information acquisition subunit is used for acquiring the abnormal reason information corresponding to the target test item;
and the storage subunit is used for storing the abnormal reason information corresponding to the target test item into an abnormal information file in which the abnormal test information is located to obtain a target abnormal information file.
In one embodiment, the storage subunit includes:
storing the abnormal reason information corresponding to the target test item to a position associated with the abnormal test item matched with the target test item in the abnormal information file to obtain a target abnormal information file;
and storing each target abnormal information file to a position corresponding to each target file in the authentication report according to the storage path.
In one embodiment, the information processing apparatus further includes:
the reason acquisition unit is used for acquiring the test items and the abnormal reason information;
the establishing unit is used for establishing the mapping relation between the test items and the corresponding abnormal reason information;
and the construction unit is used for constructing a reason set based on the mapping relation.
In addition, a computer-readable storage medium is provided, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in any one of the information processing methods provided in the embodiments of the present application.
In addition, the embodiment of the present application further provides a computer device, which includes a processor and a memory, where the memory stores an application program, and the processor is configured to run the application program in the memory to implement the information processing method provided in the embodiment of the present application.
Embodiments of the present application also provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the steps in the information processing method provided by the embodiment of the application.
The embodiment of the application acquires an authentication report and a reason set; extracting a storage path of each target file in the authentication report; searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file; and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item. Therefore, the page of the target file in the authentication report is analyzed, the abnormal test information in the authentication report is further extracted, the abnormal reason information corresponding to the abnormal test information is obtained from the reason set, the target abnormal information file is generated based on the abnormal test information and the abnormal reason information corresponding to the abnormal test information, the authentication result of the authentication report can be obtained based on the target abnormal information file, the problem that the efficiency of a mode of obtaining the authentication result by manually processing the authentication report in the prior art is low is solved, the information processing efficiency is improved, and the efficiency of obtaining the authentication result based on the authentication report is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an implementation scenario of an information processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an information processing method provided in an embodiment of the present application;
fig. 3 is another schematic flow chart of an information processing method according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an information processing apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an information processing method, an information processing device, a computer readable storage medium and computer equipment. The information processing apparatus may be integrated into a computer device, and the computer device may be a server or a terminal.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, Network acceleration service (CDN), big data and an artificial intelligence platform. The terminal may be various computer devices capable of performing information processing, such as a smart television, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like, but is not limited thereto.
The terminal and the server may be directly or indirectly connected through a wired or wireless communication manner, and the server may obtain data uploaded by the terminal to perform a corresponding information processing operation, which is not limited herein.
With the development of computer technology, intelligent devices, such as smart phones, smart televisions and the like, are increasingly popularized, and the lives of people are enriched. Most of these devices are products designed by developers based on the Android System, and in order to ensure Compatibility, stability and standardization of various Android-based smart devices designed and produced by hardware manufacturers all over the world, and Compatibility, stability and standardization of these hardware and various self-contained software app (application) products and Services of these Android, these smart devices need to pass Google certification before they are marketed, wherein the Google certification may include Test results of multiple kits, for example, a Compatibility Test kit (CTS), a System image Test (GSI), a Google Mobile Services Test kit (GTS), a Security Test kit (Security Test kit, STS), a television Test kit (TV Test kit, abbreviated as TVTS) and Vendor Test Suite (VTS).
However, in the prior art, the google certification report is presented in the form of HTML, and developers need to manually process the certification report to obtain a certification result and manually select and store important information in the test report, and this manual processing of the certification report is slow in speed and prone to errors, so that the information processing efficiency is low.
In order to solve the above problems, an embodiment of the present application provides an information processing method, where a page of a target file in an authentication report is analyzed, so as to extract abnormal test information in the authentication report, obtain abnormal reason information corresponding to the abnormal test information in a reason set, and generate a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test information, so that an authentication result of the authentication report can be obtained based on the target abnormal information file, a problem that an efficiency of obtaining the authentication result by manually processing the authentication report in the prior art is low is solved, an efficiency of information processing is improved, and an efficiency of obtaining the authentication result based on the authentication report is improved.
Referring to fig. 1, taking an example that an information processing apparatus is integrated in a computer device, where the computer device may be a server or a terminal, and is not limited herein, fig. 1 is a schematic view of an implementation scenario of an information processing method provided in an embodiment of the present application, where the computer device may obtain an authentication report and a reason set; extracting a storage path of each target file in the authentication report; searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file; and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
It should be noted that the schematic diagram of the implementation environment scenario of the information processing method shown in fig. 1 is only an example, and the implementation environment scenario of the information processing method described in the embodiment of the present application is for more clearly explaining the technical solution of the embodiment of the present application, and does not constitute a limitation to the technical solution provided by the embodiment of the present application. As can be seen by those skilled in the art, with the evolution of information processing and the emergence of new service scenarios, the technical solution provided in the present application is also applicable to similar technical problems.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The embodiment will be described from the perspective of an information processing apparatus, which may be specifically integrated in a computer device, which may be a terminal, and the application is not limited herein.
Referring to fig. 2, fig. 2 is a schematic flow chart of an information processing method according to an embodiment of the present disclosure. The information processing method includes:
in step 101, an authentication report and a set of reasons are obtained.
The certification report may be a report obtained based on a google certification test, after a developer applies for google certification to google corporation and performs a test, related personnel of the google corporation may generate a test result in a certification report manner and send the generated certification report to the developer applying for google certification, where the certification report may specifically include files corresponding to test suites such as a Compatibility Test Suite (CTS), a system image test (GSI), a google mobile service test suite GTS), a Security Test Suite (STS), a television test suite (TVTS), and a Vendor Test Suite (VTS), and the file of each suite may exist in the certification report in the form of a subfile.
In order to further improve the efficiency of processing the authentication report, a reason set may be obtained, and the reason set may include the test item and the corresponding abnormality reason information. The Test items can be any Test suite in Google certification, the abnormal reason information is the reason for generating errors of the corresponding Test items, as many Test items with errors in the certification report are already processed by developers, the developers can avoid repeatedly sorting and inputting the processed Test items with errors, meanwhile, in order to improve the processing efficiency of the certification report, the historical processing information of the developers can be obtained, and a reason set is established according to the relation between each Test item (Test item) and the corresponding abnormal reason information. Optionally, the reason set may support operations such as rewriting, deleting, adding an abnormal reason information item, and the like, each reason item may be arranged in a row, and the writing format may be:
test item | anomaly cause information
Optionally, in order to facilitate identification of the test item and the abnormal cause information in the cause set, the name of the test item and the abnormal cause information of the test item may be distinguished at an interval of a "|" symbol, and if the "|" symbol does not appear in the item where the abnormal cause information is located, the content of the line may be regarded as an invalid line and is not matched into the result report as the content of the cause set.
In step 102, the storage path of each target file in the authentication report is extracted.
The target file may be a file in which information that the developer needs to obtain in the authentication report in order to obtain the authentication result of the authentication report is located, that is, the developer may obtain corresponding information in the target file of the authentication report, and may perform analysis according to the information to obtain the authentication result of the authentication report, where the target file may be an HTML file, or the authentication result may include information on whether the current authentication passes, and related information of each test item that is abnormal or wrong.
The certification report may include many large and small files, and these files may have many different file types, such as a text document file (Txt file), an HTML file, an Extensible Markup Language (XML) file, a picture file, etc., where the information recorded in these files may help to obtain the certification result and may not have any relation to the certification result of the certification report, and when a developer processes the certification report, the developer may selectively obtain the information of the corresponding file based on the content of each file to analyze and obtain the final certification result, and improve the product according to the obtained certification result to pass google certification test, so as to traverse each file in the certification report, thereby finding out the target file having information related to the certification result, and simultaneously, storing the storage path of each target file, so that the target file can be searched according to the storage path and important information related to the authentication test can be extracted, thereby obtaining the authentication result.
In step 103, the target files are searched according to the storage paths and the page structure of each target file is analyzed to obtain the abnormal test information of each target file.
The abnormal test information may include an abnormal test item, which may be a test item for testing an abnormal test in the suite test, for example, a test item failing to test or a test item having a test error, specifically, each target file may be searched according to a stored storage path of the target file, a page structure of each target file may be analyzed, and the abnormal test information of each target file, that is, the abnormal test information corresponding to each suite, may be obtained according to an analysis result of the page structure of each target file.
Optionally, the page structure of each target file corresponding to each test suite authenticated by google is the same, and may include 4 block (div) layout structures, specifically, a Title table (Title), a Summary table (Summary), a test Summary table (Testsummary) and a test details table (Testdetails). The title table may include a title of each Test suite in the certification report, the general summary table may include information related to a suite used for the Test, time used for the Test, a number of passes and a number of failures of a Module (Module) in the suite, the Test summary table includes a pass count and a failure count of a Test item in each Module in the suite, and the Test detail table includes a specific Module for each abnormal Test item in the suite and specific failure details listed in a corresponding Test item (Test).
Therefore, the page structure of each target file can be analyzed, the test item with abnormal test and the related information of the test item are extracted according to the analysis result of the page structure of each target file, that is, the related information of the abnormal test item and the abnormal test item is extracted, and the related information can be suite information, module information and specific failure details corresponding to the abnormal test item, so that the abnormal test information of each target file is obtained, that is, the abnormal test information corresponding to each suite is obtained.
In step 104, the abnormal reason information corresponding to the abnormal test item is searched in the reason set, and a target abnormal information file is generated based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
The method includes the steps that a test item corresponding to an abnormal test item can be searched in a pre-constructed reason set, abnormal reason information corresponding to the test item searched in the reason set is further obtained, a target abnormal information file can be generated according to the abnormal test information and the abnormal reason information corresponding to the abnormal test item, developers can obtain an authentication result according to the generated target abnormal information file, and therefore processing efficiency of an authentication report is improved.
As can be seen from the above, the present application obtains the authentication report and the reason set; extracting a storage path of each target file in the authentication report; searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file; and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item. Therefore, the abnormal test information in the authentication report is extracted by analyzing the page of the target file in the authentication report, the abnormal reason information corresponding to the abnormal test information is obtained from the reason set, and the target abnormal information file is generated based on the abnormal test information and the abnormal reason information corresponding to the abnormal test information, so that the problem of low efficiency of a mode of manually processing the authentication report to obtain an authentication result in the prior art is solved, the information processing efficiency is improved, and the efficiency of obtaining the authentication result based on the authentication report is improved.
The method described in the above examples is further illustrated in detail below by way of example.
In the present embodiment, a specific description will be given taking an example in which the information processing apparatus is specifically integrated in a server.
As shown in fig. 3, fig. 3 is another schematic flow chart of the information processing method according to the embodiment of the present application. The specific process is as follows:
in step 201, the terminal obtains the test item and the abnormal reason information, establishes a mapping relationship between the test item and the corresponding abnormal reason information, and constructs a reason set based on the mapping relationship.
The Test item can be any Test item in a Test suite for google certification, the abnormal reason information is the reason for generating abnormality of the corresponding Test item, many Test items with errors in the certification report are already processed by developers, so that the developers can avoid repeatedly sorting and inputting the processed Test items with errors, meanwhile, in order to improve the processing efficiency of the certification report, the terminal can obtain the historical processing information of the developers, obtain each Test item (Test item) and the corresponding abnormal reason information according to the historical processing information, and can establish a reason set according to the mapping relation between the Test items and the corresponding abnormal reason information. Optionally, in order to facilitate updating and accuracy of information, the reason set may support operations such as rewriting, deleting, adding an abnormal reason information item, and the like, each reason item may be arranged in a row, and the writing format may be:
test item | anomaly cause information
Optionally, in order to facilitate identification of the test item and the abnormal cause information in the cause set, the name of the test item and the abnormal cause information of the test item may be distinguished at an interval of a "|" symbol, and if the "|" symbol does not appear in the item where the abnormal cause information is located, the content of the line may be regarded as an invalid line and is not matched into the result report as the content of the cause set.
In an embodiment, a dictionary data structure may be employed to store data in the cause set, for example, using dic ═ { key1: value1, key2: value2} to represent that ditt ═ Test 1: reason1, Test 2: and (3) reason2, … … }, wherein key is a key, value is a value, Test is a Test item, reason is abnormal reason information, and the reason item can be uniquely corresponding to a certain Test item.
In step 202, the terminal obtains an authentication report and a reason set, determines a target keyword, traverses the authentication report according to the target keyword, and obtains a storage path of a target file in the authentication report based on a traversal result.
The target keywords are used for searching for the target file, the number of the target keywords may be multiple, or one, and the determination of the target keywords may be specifically determined according to the name of the target file.
In an embodiment, since the target file recorded with the information related to the test result in the authentication report received by the developer from google company is generally stored in an HTML file, and the HTML file is generally named as test _ result _ failures.
The authentication report may include many large and small files, and the files may have a plurality of different file types, such as text document files, HTML files, extensible markup language files, picture files, etc., where information recorded in the files may be helpful for obtaining the authentication result, and may also have no relation to obtaining the authentication result of the authentication report, and when a developer processes the authentication report, the developer may selectively obtain information of corresponding files based on the content of each file to analyze and obtain a final authentication result, and improve a product according to the obtained authentication result, so as to pass google authentication tests.
The target file may be a file in which information that the developer needs to obtain in the authentication report in order to obtain the authentication result of the authentication report is located, that is, the developer may obtain corresponding information in the target file of the authentication report, and may perform analysis according to the information to obtain the authentication result of the authentication report, where the target file may be an HTML file, or the authentication result may include information on whether the current authentication passes, and related information of each test item that is abnormal or wrong.
Therefore, in order to improve the processing efficiency of the authentication report, the terminal may obtain the authentication report and the reason set, determine the target keyword, and find the target file corresponding to each test suite by the target keyword, specifically, traverse the authentication report according to the target keyword, extract paths of all files conforming to the target keyword based on the traversal result, and simultaneously save a storage path of each target file, so as to obtain a storage path of the target file in the authentication report, and the terminal may find the target file according to the storage path and extract important information related to the authentication result, so as to obtain the authentication result according to the information.
In an embodiment, the terminal may traverse the files in the authentication report by using an output operating system interface module (os) of python (computer programming language), specifically, may generate a file name of each file in a directory tree formed by the authentication report by using a path method (walk) of an os module, and specifically, may browse the directory tree corresponding to the authentication report by using an os. And then the target keywords can be matched with the file name of each file, and the file path of the file matched with the target keywords is extracted and stored.
In step 203, the terminal searches in the authentication report according to the storage path to obtain at least one target file, analyzes the tag in each target file to obtain the tag category of each tag, and obtains the total summary table, the test summary table, and the test detail table in each target file based on the tag category.
The page structure of each target file corresponding to each test suite in the google certification report is generally formed by 4 block (div) layouts, and specifically may include a Title table (Title), a total Summary table (Summary), a test Summary table (Testsummary) and a test detail table (Testdetails). The title table may include a title of each Test suite in the certification report, the general summary table may include related information such as a suite used for the Test, a time used for the Test, a number of passes and a number of failures of a Module (Module) in the suite, the general summary table includes a pass count and a fail count of a Test item in each Module in the suite, the Test detail table includes a specific Module for each abnormal item in the suite and specific failure details listed in a corresponding Test item (Test), and each abnormal item may be listed as a separate table tag, so that the Test detail table with a tag category of "testdetails" may have 0 to more.
Therefore, the terminal may search in the authentication report according to the storage path to obtain at least one target file, so as to analyze the div tag in each target file to obtain a tag category (Table Class) of each div tag, which may be, for example, Title, Summary, Testsummary and Testdetails, and obtain a total Summary Table, a test Summary Table and a test detail Table in each target file based on the tag category.
In an embodiment, an HTML parser in python may be used to parse a page structure of the target file, that is, to parse tags in the target file, for example, beautilfroup may be used to parse tags in a page of the target file, so as to obtain a tag category of each tag, and obtain information related to an authentication result, such as a total summary table, a test summary table, and a test detail table, in each target file according to the tag category.
In step 204, the terminal extracts and splices the suite version information in the summary table to obtain a splicing result, and extracts abnormal module information of the module with the abnormal item in the test summary table.
After the summary table, the test summary table and the test detail table in each target file are obtained, information related to the test result may be extracted from the content of the tags, so as to obtain abnormal test information of each target file according to the information, specifically, the terminal may extract and splice kit version information in the summary table, where the kit version information may be version information of a kit corresponding to the current target file, and in order to facilitate processing efficiency of the information, a position of the kit version information in the summary table may be determined, and the kit version information in the summary table may be spliced according to the position to obtain a splicing result, for example, assuming that for a target file corresponding to a CTS kit, the kit version information is in the second row and the third row in the summary table, so that kit version information in the second row and the third row in the summary table may be extracted and spliced, and obtaining and storing a splicing result.
Meanwhile, abnormal module information of a module having an abnormal item in the test summary table may be extracted, and the abnormal module information may include.
In an embodiment, since the third column of each row in the test summary table is the pass count and the fail count of the test item in each Module, it can be determined whether the fail count of the third column of fail item in each row in the test summary table is 0, the value of this column represents the number of failed test items in the Module, and when the fail count of the third column of fail item is greater than 0, the Module information in the first column of the row can be extracted and stored, that is, the Module has an abnormal test item with a test failure, so the Module with the abnormal test item can be extracted and stored. In addition, in addition to the case where the storage fail is not 0, the Module item information needs to be extracted and recorded in the case where the value of the fifth column (done column) is false.
In step 205, the terminal extracts an abnormal test item corresponding to each module having an abnormal item in the test detail table, and obtains abnormal test information of each target file based on the splicing result, the abnormal module information, and the abnormal test item.
Specifically, the terminal may extract the abnormal test item corresponding to each module having the abnormal item in the test detail table according to the abnormal module information extracted from the test summary table, where each module having the abnormal item in the test detail table may correspond to a plurality of abnormal test items, that is, one module having the abnormal item may have a plurality of abnormal problems, and thus, the abnormal test information of each target file may be obtained based on the concatenation result, the abnormal module information, and the abnormal test item.
In step 206, the terminal performs list data structure conversion on the abnormal test information to obtain abnormal list data, performs data analysis on the abnormal list data, converts the data structure of the abnormal test information from the list data structure to a data frame structure according to the analysis result, and stores the abnormal test information of the data frame structure in an abnormal information file.
Specifically, after storing the abnormal test information of each target file, the terminal may perform list (list) data structure conversion on the abnormal test information to obtain abnormal list data, further perform data analysis on the abnormal list data, convert the data structure of the abnormal test information from the list data structure to a data frame structure according to an analysis result, and store the abnormal test information of the data frame structure in the abnormal information file.
In one embodiment, the terminal may store the exception test information using a data frame (Dataframe) of Python, where the Dataframe is a two-dimensional tabular data structure in a data analysis package for pandas. Optionally, the data analysis may be performed on the exception list data through a dataframe, the data structure of the exception test information is converted from the list data structure into a data frame structure according to the analysis result, and the exception test information of the data frame structure is stored in an exception information file, where the exception information file may be in the form of an excel table.
In step 207, the terminal reads the reason set, searches for the target test item matched with the abnormal test item in the reason set, obtains abnormal reason information corresponding to the target test item, and stores the abnormal reason information corresponding to the target test item to a position in the abnormal information file associated with the abnormal test item matched with the target test item to obtain a target abnormal information file.
After the abnormal test item is obtained, the terminal may read the reason set, search for the target test item matched with the abnormal test item in the reason set in a traversing manner, obtain abnormal reason information corresponding to the target test item in the reason set, further store the abnormal reason information corresponding to the target test item to a position in the abnormal information file associated with the abnormal test item matched with the target test item, for example, store the abnormal reason information corresponding to the target test item to the same row of the abnormal test item matched with the target test item in the abnormal information file, and so on, so as to realize matching between the abnormal test item and the corresponding abnormal reason information, and facilitate a developer to check to obtain an authentication result, thereby obtaining the target abnormal information file.
In step 208, the terminal stores each target exception information file to a corresponding location of each target file in the authentication report according to the storage path.
Specifically, the terminal may store each target exception information file to a corresponding position of each target file in the authentication report according to the storage path, for example, may store each target exception information file to a sub-path of a path where each target file is located in the authentication report.
Optionally, each target exception information file may be summarized to obtain a summary table, and the summary table may be placed under a root path in the authentication report, where a file name of the summary table may be the same as a file name of the authentication report, for example, may be named as test _ result _ failures.
In an embodiment, a CTS Verifier page may be added to the summary table to increase the integrity of the authentication result of the authentication report, where the CTS Verifier is a supplementary test item of the CTS test, and the CTS Verifier is used to provide a test for an Application Program Interface (API) and functions of a test for a fixed device (such as an audio quality, a touch screen, an accelerometer, a camera, etc.) which cannot be automatically tested and must be manually input.
As can be seen from the above, in the embodiment of the present application, the terminal obtains the test item and the abnormal reason information, establishes the mapping relationship between the test item and the corresponding abnormal reason information, and constructs the reason set based on the mapping relationship; the terminal acquires an authentication report and a reason set, determines a target keyword, traverses the authentication report according to the target keyword, and acquires a storage path of a target file in the authentication report based on a traversal result; the terminal searches in the authentication report according to the storage path to obtain at least one target file, analyzes the label in each target file to obtain the label category of each label, and obtains a total summary table, a test summary table and a test detail table in each target file based on the label category; the terminal extracts the suite version information in the general summary table and splices the suite version information to obtain a splicing result, and extracts abnormal module information of modules with abnormal items in the test summary table; the terminal extracts an abnormal test item corresponding to each module with the abnormal item in the test detail table, and obtains abnormal test information of each target file based on the splicing result, the abnormal module information and the abnormal test item; the terminal converts the abnormal test information into a list data structure to obtain abnormal list data, performs data analysis on the abnormal list data, converts the data structure of the abnormal test information from the list data structure into a data frame structure according to an analysis result, and stores the abnormal test information of the data frame structure into an abnormal information file; the terminal reads the reason set, searches a target test item matched with the abnormal test item in the reason set, obtains abnormal reason information corresponding to the target test item, and stores the abnormal reason information corresponding to the target test item to a position in the abnormal information file, which is associated with the abnormal test item matched with the target test item, so as to obtain a target abnormal information file; and the terminal stores each target abnormal information file to a position corresponding to each target file in the authentication report according to the storage path. Therefore, the page of the target file in the authentication report is analyzed, so that a general summary table, a test summary table and a test detail table can be searched, important information in the authentication report is extracted according to the tables to obtain abnormal test information, abnormal reason information corresponding to the abnormal test information is obtained in the reason set, and the abnormal reason information corresponding to the abnormal test information is stored to the corresponding position of the abnormal test item in the abnormal information file, so that the target abnormal information file is obtained, the problem of low efficiency of a mode of manually processing the authentication report to obtain an authentication result in the prior art is solved, the information processing efficiency is improved, and the efficiency of obtaining the authentication result based on the authentication report is improved.
In order to better implement the above method, an embodiment of the present invention further provides an information processing apparatus, which may be integrated in a computer device, and the computer device may be a terminal.
For example, as shown in fig. 4, for a schematic structural diagram of an information processing apparatus provided in an embodiment of the present application, the information processing apparatus may include an obtaining unit 301, an extracting unit 302, a parsing unit 303, and a generating unit 304, as follows:
an obtaining unit 301, configured to obtain an authentication report and a reason set, where the reason set includes a test item and corresponding abnormal reason information;
an extracting unit 302, configured to extract a storage path of each target file in the authentication report;
the parsing unit 303 is configured to search for a target file according to the storage path and parse a page structure of each target file to obtain abnormal test information of each target file, where the abnormal test information includes an abnormal test item;
the generating unit 304 is configured to search the reason set for the abnormal reason information corresponding to the abnormal test item, and generate a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
In an embodiment, the parsing unit 303 includes:
the searching subunit is used for searching in the authentication report according to the storage path to obtain at least one target file;
the analysis subunit is used for analyzing the labels in each target file to obtain the label categories of each label;
and the extracting subunit is used for extracting the abnormal test information of each target file based on the label category.
In one embodiment, the extraction subunit includes:
the acquisition module is used for acquiring a total summary table, a test summary table and a test detail table in each target file based on the label category;
the first extraction module is used for extracting the suite version information in the general summary table and splicing the suite version information to obtain a splicing result;
the second extraction module is used for extracting abnormal module information of modules with abnormal items in the test summary table;
the third extraction module is used for extracting the abnormal test items corresponding to each module with the abnormal items in the test detail table;
and the storage module is used for obtaining the abnormal test information of each target file based on the splicing result, the abnormal module information and the abnormal test item and storing the abnormal test information into the abnormal information file.
In one embodiment, the memory module includes:
converting the abnormal test information into a list data structure to obtain abnormal list data;
performing data analysis on the abnormal list data, and converting the data structure of the abnormal test information from a list data structure into a data frame structure according to an analysis result;
and storing the abnormal test information of the data frame structure into an abnormal information file.
In one embodiment, the extracting unit 302 includes:
the traversal subunit is used for determining a target keyword and traversing the authentication report according to the target keyword;
and the storage path acquisition subunit is used for acquiring the storage path of the target file in the authentication report based on the traversal result.
In an embodiment, the generating unit 304 includes:
the reading subunit is used for reading the reason set and searching a target test item matched with the abnormal test item in the reason set;
the abnormal reason information acquisition subunit is used for acquiring the abnormal reason information corresponding to the target test item;
and the storage subunit is used for storing the abnormal reason information corresponding to the target test item into the abnormal information file in which the abnormal test information is located to obtain a target abnormal information file.
In one embodiment, the memory sub-unit includes:
storing the abnormal reason information corresponding to the target test item to a position associated with the abnormal test item matched with the target test item in the abnormal information file to obtain a target abnormal information file;
and storing each target abnormal information file to a position corresponding to each target file in the authentication report according to the storage path.
In one embodiment, the information processing apparatus further includes:
the reason acquisition unit is used for acquiring the test items and the abnormal reason information;
the establishing unit is used for establishing the mapping relation between the test item and the corresponding abnormal reason information;
and the construction unit is used for constructing a reason set based on the mapping relation.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the embodiment of the present application, the obtaining unit 301 obtains the authentication report and the reason set; the extracting unit 302 extracts a storage path of each target file in the authentication report; the parsing unit 303 searches for a target file according to the storage path and parses the page structure of each target file to obtain abnormal test information of each target file; the generating unit 304 searches the reason set for the abnormal reason information corresponding to the abnormal test item, and generates a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item. Therefore, the abnormal test information in the authentication report is extracted by analyzing the page of the target file in the authentication report, the abnormal reason information corresponding to the abnormal test information is obtained from the reason set, and the target abnormal information file is generated based on the abnormal test information and the abnormal reason information corresponding to the abnormal test information, so that the problem of low efficiency of a mode of manually processing the authentication report to obtain an authentication result in the prior art is solved, the information processing efficiency is improved, and the efficiency of obtaining the authentication result based on the authentication report is improved.
An embodiment of the present application further provides a computer device, as shown in fig. 5, which shows a schematic structural diagram of a computer device according to an embodiment of the present application, where the computer device may be a terminal, and specifically:
the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 5 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and information processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 404, the input unit 404 being operable 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.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
acquiring an authentication report and a reason set; extracting a storage path of each target file in the authentication report; searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file; and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein. It should be noted that the computer device provided in the embodiment of the present application and the information processing method in the foregoing embodiment belong to the same concept, and specific implementation processes thereof are described in the foregoing method embodiment and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the information processing methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring an authentication report and a reason set; extracting a storage path of each target file in the authentication report; searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file; and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any information processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any information processing method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the details, see the foregoing embodiments.
According to an aspect of the application, there is provided, among other things, a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations provided by the embodiments described above.
The foregoing detailed description has provided an information processing method, an information processing apparatus, a computer-readable storage medium, and a computer device according to embodiments of the present application, and specific examples are applied herein to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. An information processing method characterized by comprising:
acquiring an authentication report and a reason set, wherein the reason set comprises test items and corresponding abnormal reason information;
extracting a storage path of each target file in the authentication report;
searching for target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file, wherein the abnormal test information comprises abnormal test items;
and searching abnormal reason information corresponding to the abnormal test item in the reason set, and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
2. The information processing method according to claim 1, wherein the searching for the target file according to the storage path and analyzing the page structure of each target file to obtain the abnormal test information of each target file comprises:
searching in the authentication report according to the storage path to obtain at least one target file;
analyzing the label in each target file to obtain the label category of each label;
and extracting the abnormal test information of each target file based on the label category.
3. The information processing method according to claim 2, wherein said extracting anomaly test information for each target file based on the tag category includes:
acquiring a total summary table, a test summary table and a test detail table in each target file based on the label category;
extracting the suite version information in the general summary table and splicing to obtain a splicing result;
extracting abnormal module information of modules with abnormal items in the test summary table;
extracting abnormal test items corresponding to each module with abnormal items in the test detail table;
and obtaining the abnormal test information of each target file based on the splicing result, the abnormal module information and the abnormal test items, and storing the abnormal test information into an abnormal information file.
4. The information processing method of claim 3, wherein the storing the exception test information into an exception information file comprises:
converting the abnormal test information into a list data structure to obtain abnormal list data;
performing data analysis on the abnormal list data, and converting the data structure of the abnormal test information from a list data structure into a data frame structure according to an analysis result;
and storing the abnormal test information of the data frame structure into an abnormal information file.
5. The information processing method as claimed in claim 1, wherein said extracting a storage path of each target file in said authentication report comprises:
determining a target keyword, and traversing the authentication report according to the target keyword;
and acquiring a storage path of the target file in the authentication report based on the traversal result.
6. The information processing method according to any one of claims 1 to 5, wherein searching the cause set for abnormality cause information corresponding to the abnormal test item, and generating a target abnormality information file based on the abnormality test information and the abnormality cause information corresponding to the abnormal test item, includes:
reading the reason set, and searching a target test item matched with the abnormal test item in the reason set;
acquiring abnormal reason information corresponding to the target test item;
and storing the abnormal reason information corresponding to the target test item into an abnormal information file in which the abnormal test information is located to obtain a target abnormal information file.
7. The information processing method according to claim 6, wherein the storing the abnormality cause information corresponding to the target test item in an abnormality information file in which the abnormality test information is located to obtain a target abnormality information file includes:
storing the abnormal reason information corresponding to the target test item to a position associated with the abnormal test item matched with the target test item in the abnormal information file to obtain a target abnormal information file;
and storing each target abnormal information file to a position corresponding to each target file in the authentication report according to the storage path.
8. The information processing method of claim 1, wherein before the obtaining the authentication report and the cause set, further comprising:
acquiring test items and abnormal reason information;
establishing a mapping relation between the test items and corresponding abnormal reason information;
and constructing a reason set based on the mapping relation.
9. An information processing apparatus characterized by comprising:
the system comprises an acquisition unit, a verification unit and a processing unit, wherein the acquisition unit is used for acquiring an authentication report and a reason set, and the reason set comprises test items and corresponding abnormal reason information;
the extraction unit is used for extracting the storage path of each target file in the authentication report;
the analysis unit is used for searching the target files according to the storage path and analyzing the page structure of each target file to obtain abnormal test information of each target file, wherein the abnormal test information comprises an abnormal test item;
and the generating unit is used for searching the abnormal reason information corresponding to the abnormal test item in the reason set and generating a target abnormal information file based on the abnormal test information and the abnormal reason information corresponding to the abnormal test item.
10. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the information processing method according to any one of claims 1 to 8.
11. A computer device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps of the information processing method according to any one of claims 1 to 8.
CN202111284988.5A 2021-11-01 2021-11-01 Information processing method, information processing device, computer-readable storage medium and computer equipment Pending CN114090428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111284988.5A CN114090428A (en) 2021-11-01 2021-11-01 Information processing method, information processing device, computer-readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111284988.5A CN114090428A (en) 2021-11-01 2021-11-01 Information processing method, information processing device, computer-readable storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN114090428A true CN114090428A (en) 2022-02-25

Family

ID=80298566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111284988.5A Pending CN114090428A (en) 2021-11-01 2021-11-01 Information processing method, information processing device, computer-readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN114090428A (en)

Similar Documents

Publication Publication Date Title
US10621212B2 (en) Language tag management on international data storage
US8745641B1 (en) Automatic verification and anomaly detection in a representational state transfer (REST) application programming interface
US9424115B2 (en) Analysis engine for automatically analyzing and linking error logs
US8473916B2 (en) Method and system for providing a testing framework
US8468391B2 (en) Utilizing log event ontology to deliver user role specific solutions for problem determination
US8601438B2 (en) Data transformation based on a technical design document
CN106550038B (en) Data configuration diagnosis system and method of digital control system
US9417991B2 (en) Translation verification testing
US11423232B2 (en) Systems and methods for deploying computerized conversational agents
CN113505082B (en) Application program testing method and device
US20150161160A1 (en) Application Localization
US10111064B2 (en) Automatic system and method for conversion of smart phone applications to basic phone applications
CN113962597A (en) Data analysis method and device, electronic equipment and storage medium
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN114416481A (en) Log analysis method, device, equipment and storage medium
CN113778897A (en) Automatic test method, device, equipment and storage medium of interface
US10275462B2 (en) Automatic translation of string collections
CN117499287A (en) Web testing method, device, storage medium and proxy server
WO2023151397A1 (en) Application program deployment method and apparatus, device, and medium
CN111508562A (en) Visual display method, device, equipment and medium of flow descriptive language
CN114090428A (en) Information processing method, information processing device, computer-readable storage medium and computer equipment
CN114021756A (en) Fault analysis method and device and electronic equipment
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium
CN113419738A (en) Interface document generation method and device and interface management equipment
CN116841900A (en) Interface document, test case generation method, test case generation device, computer equipment and storage medium

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