CN116561015A - Map application testing method, electronic device and computer readable medium - Google Patents

Map application testing method, electronic device and computer readable medium Download PDF

Info

Publication number
CN116561015A
CN116561015A CN202310827485.0A CN202310827485A CN116561015A CN 116561015 A CN116561015 A CN 116561015A CN 202310827485 A CN202310827485 A CN 202310827485A CN 116561015 A CN116561015 A CN 116561015A
Authority
CN
China
Prior art keywords
page
map application
map
log
test
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
CN202310827485.0A
Other languages
Chinese (zh)
Other versions
CN116561015B (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.)
Zhongguancun Smart City Co Ltd
Original Assignee
Zhongguancun Smart City 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 Zhongguancun Smart City Co Ltd filed Critical Zhongguancun Smart City Co Ltd
Priority to CN202310827485.0A priority Critical patent/CN116561015B/en
Publication of CN116561015A publication Critical patent/CN116561015A/en
Application granted granted Critical
Publication of CN116561015B publication Critical patent/CN116561015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

Embodiments of the present disclosure disclose a map application testing method, an electronic device, and a computer-readable medium. One embodiment of the method comprises the following steps: the map application testing terminal responds to the received testing configuration information, and installs the map application to be tested according to the testing configuration information, wherein the testing configuration information comprises page links of map application pages; acquiring page configuration information of a corresponding map application page; loading a map application page on line in an installed map application to be tested according to page links and page configuration information so as to acquire a page on-line log; according to the page configuration information, loading a map application page offline in an installed map application to be tested so as to acquire a page offline log; combining the page online log and the page offline log into an application test log; and generating an application test text according to the application test log. According to the embodiment, the testing efficiency is improved, and the testing time is shortened.

Description

Map application testing method, electronic device and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a map application testing method, an electronic device, and a computer readable medium.
Background
The map application is typically tested prior to release of the map application. Currently, for testing of map applications, the following methods are generally adopted: and using the tool to grab the network request, adding the debugging code of the test end and setting the test page for testing.
However, the following technical problems generally exist in the above manner:
firstly, a tool grabs a network request, adds a debugging code of a test end and sets a test page for testing, and the tool, the debugging code and the customized test page are combined, so that the operation is complicated, and the test efficiency is low;
second, application source file packaging typically involves multi-terminal development, which is prone to format conversion errors, resulting in long application development cycles.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a map application testing method, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a map application testing method, the method comprising: the method comprises the steps that a test configuration end sends pre-built test configuration information corresponding to a map application to be tested to an associated map application test end, wherein the test configuration information is configuration information of a map application page of the map application to be tested; the map application testing end responds to the received testing configuration information, and installs the map application to be tested according to the testing configuration information, wherein the testing configuration information comprises page links of the map application pages; the map application testing end obtains page configuration information corresponding to the map application page; the map application testing end loads the map application page on line in the installed map application to be tested according to the page link and the page configuration information so as to acquire a page on-line log; the map application testing end loads the map application page offline in the installed map application to be tested according to the page configuration information so as to acquire a page offline log; the map application test terminal merges the page online log and the page offline log into an application test log; and the map application test terminal generates an application test text according to the application test log.
In a second aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a third aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the map application testing method of some embodiments of the present disclosure, testing steps for testing the map application to be tested are simplified, testing efficiency is improved, and testing time is shortened. Specifically, the operation is comparatively loaded down with trivial details, and the lower reason of test efficiency lies in: the method for testing the map application in some embodiments of the present disclosure includes that firstly, a testing configuration terminal sends pre-built testing configuration information corresponding to a map application to be tested to an associated map application testing terminal. The test configuration information is configuration information of a map application page of the map application to be tested. And secondly, the map application testing end responds to the received testing configuration information, and installs the map application to be tested according to the testing configuration information. The test configuration information comprises page links of the map application page. Therefore, the application can be locally installed at the map application testing end according to the pre-configured configuration information of the map application page of the map application to be tested, so as to construct an offline testing basic software environment. And then, the map application testing end acquires page configuration information corresponding to the map application page. Therefore, the page configuration information of the map application page during loading can be obtained through the map application to be tested. And then, the map application testing end loads the map application page on line in the installed map application to be tested according to the page link and the page configuration information so as to acquire a page on-line log. Therefore, the map application page can be loaded on line in the map application to be tested in advance, so that the log of the map application page can be collected on line, and the static resources are cached in the map application test end in advance. And then, the map application testing end loads the map application page offline in the installed map application to be tested according to the page configuration information so as to acquire a page offline log. Therefore, the map application page can be locally and offline loaded at the map application test end, so that the log of the offline loaded map application page can be collected. And then, the map application test terminal merges the page online log and the page offline log into an application test log. And finally, the map application test terminal generates an application test text according to the application test log. Therefore, the method is realized through the pre-configured test configuration information and page configuration information, and a mode of capturing a network request by a tool is not adopted, so that the offline loading test operation is simplified. The testing efficiency is improved, and the testing time is shortened.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a map application testing method according to the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow chart of some embodiments of a map application testing method according to the present disclosure. A flow 100 of some embodiments of a map application testing method according to the present disclosure is shown. The map application testing method comprises the following steps:
step 101, the test configuration terminal sends the pre-constructed test configuration information corresponding to the map application to be tested to the associated map application test terminal.
In some embodiments, the test configuration end may send pre-built test configuration information corresponding to the map application to be tested to the associated map application test end. The test configuration information is configuration information of a map application page of the map application to be tested. The test configuration information may be configuration related information when a map application page of the map application to be tested is pre-configured. The test configuration information may include a page link of the map application page described above. The page links may be uniform resource locators (Uniform Resource Locator, URLs). The test configuration information may also include, but is not limited to: user information, test equipment type. The test device type may be a type of a map application test end that tests a map application to be tested (e.g., the test device type may be Android or iOS). The map application test terminal may be a test device communicatively coupled to the test configuration terminal. The test configuration end may be a server that assigns test configuration information for the map application to be tested.
Optionally, the map application to be tested is constructed by the following steps:
first, a map page document to be converted by a source file is selected according to a map application catalog document to be developed. The map application catalog document may be a total catalog that is developed by pointers to the respective pages to which the map application corresponds. The map page document may be a page document developed in advance by a technician to be transcoded into respective pages corresponding to the map application. For example, a subordinate catalog set corresponding to a map application catalog document may be first determined. And traversing the map application catalog document and the document set in the subordinate catalog set in a traversing mode. Finally, a map page document to be converted by the source file can be selected through a sample-list in each document in the document set.
And secondly, carrying out content analysis on the map page document to obtain a content text of the map page document. The map page document content text comprises map document content text and map page image text. For example, the executing body may perform content parsing on the map page document through a text analysis neural network model. The text analysis neural network model may be a pre-trained CRNN neural network model.
And thirdly, converting the map document content text into a map document content source file, and converting the map page image text into a map page image source file. The map document content source file may be a file after source file format conversion of map document content text. The map page image source file may be a file after source file format conversion of map page image text. For example, the map document content text may be transcoded by a mammoth open source tool to obtain a map document content source file. For another example, the map document content text may also be converted into a source file format by a prettier tool to obtain a map document content source file.
In practice, the execution subject may convert the page image text into a page image source file by:
firstly, converting the map page image into a preset image coding format to obtain map page image coding information. The preset image encoding format may be a UTF-8 encoding format. For example, the map page image may be converted into a preset image encoding format by a Buffer class.
And secondly, storing the map page image coding information into a preset map page image folder. For example, the map page image encoding information may be stored in an image format into a preset map page image folder.
Thirdly, performing variable conversion on the map page image folder to generate a map page image folder variable. For example, the folder names of the map page image folder may be converted into a dynamic variable in the form of a character string to generate the map page image folder variable.
Fourth, format stitching is carried out on the map page image folder variable and the preset image reference instruction, and map page image folder stitching information is obtained. For example, the image reference instruction may be an import command. Format stitching may refer to stitching.
Fifth, generating the initial map page image source file information corresponding to the map page image folder splicing information. The initial map page image source file information may be an initial map source file to which a source file template is to be added.
Sixthly, carrying out variable adjustment on each preset image variable included in the initial map page image source file information so as to generate map adjustment variable information. For example, style keywords (preset image variables) included in the initial page image source file information may be replaced with classList.
Seventh, the map adjustment variable information is subjected to source file format adjustment processing to generate a sub-page map image source file. For example, the map adjustment variable information described above may be subjected to a source file format adjustment process by a pretter tool to generate a sub-page map image source file.
Finally, the sub-page map image source files may be combined into a map page image source file.
Fourth, constructing a map page conversion source file according to the map document content source file and the map page image source file. For example, the execution body may perform file merging on the map document content source file and the map page image source file to obtain a merged source file as the map page conversion source file.
And fifthly, inputting the map page converted source file into a source file template corresponding to the map page document to generate an executable map application source file corresponding to the map page document. First, a source file template corresponding to a map page document may be determined. The source file template may be a filler template for page-converted source file format (i.e., code format). For example, the source file template may be: react corresponds to the source file template. For example, a source file template corresponding to a map page document may be determined by a correspondence between the map page document and the source file format. The executable map application source file may refer to a source file with complete page code that is executable to generate a map application page.
And sixthly, packaging the executable map application source file to generate a map application package to be tested.
The above related matters are taken as an invention point of the present disclosure, and solve the technical problem mentioned in the background art, namely, two-step application source file packaging generally relates to multi-end development, and format conversion errors are easily caused, so that the application development period is long. ". Factors that lead to long application development cycles tend to be as follows: application source file packaging typically involves multi-terminal development, which is prone to format conversion errors. If the above factors are solved, the effect of shortening the development period can be achieved. To achieve this, first, a map page document to be converted by a source file is selected according to a map application catalog document to be developed. And secondly, carrying out content analysis on the map page document to obtain a content text of the map page document. Thus, the source file conversion can be quickly performed on the content text of the map page document. Then, the map document content text is converted into a map document content source file, and the map page image text is converted into a map page image source file. And then, constructing a map page conversion source file according to the map document content source file and the map page image source file. Then, the map page converted source file is input into a source file template corresponding to the map page document to generate an executable map application source file corresponding to the map page document. And finally, packaging the executable map application source file to generate a map application package to be tested. Therefore, a source file template of a corresponding terminal can be used, and the problem of format conversion errors caused by multi-terminal packaging is avoided. Therefore, format conversion errors can be reduced, and the application development period can be shortened.
Step 102, the map application testing end responds to the received testing configuration information, and installs the map application to be tested according to the testing configuration information.
In some embodiments, the map application testing terminal may install the map application to be tested according to the test configuration information in response to receiving the test configuration information. The test configuration information comprises page links of the map application page.
In practice, the map application testing terminal may install the map application to be tested by:
and firstly, in response to determining that the map application to be tested is installed, uninstalling the locally installed map application to be tested. And unloading the map application to be tested which is locally installed at the map application testing end.
And secondly, installing the map application to be tested according to the test configuration information corresponding to the map application to be tested.
Step 103, the map application testing end obtains page configuration information corresponding to the map application page.
In some embodiments, the map application test end may obtain page configuration information corresponding to the map application page. The page configuration information comprises a test account group. The page configuration information may refer to configuration related information of a pre-configured map application webpage when the map application test end is loaded. The page configuration information may include, but is not limited to: check information, login state synchronization information and downloading time information. The verification information may be information related to a real-time update mechanism of the resource to be loaded. The resources to be loaded may include, but are not limited to: html, css, pictures. The verification information may include, but is not limited to: and the identification of each resource to be loaded. The login state synchronization information may be information of a login state to be synchronized. The login state synchronization information may include various login states to be synchronized. The downloading time information may be time related information that the resource to be loaded needs to be downloaded. For example, the download timing information may be, but is not limited to: downloading after entering the application, waiting for downloading for a preset time after starting the application, and entering the page for downloading for the first time. In practice, the map application test end can read the page configuration information issued by the interface through the page link.
And 104, the map application testing end loads the map application page on line in the installed map application to be tested according to the page link and the page configuration information so as to acquire a page on-line log.
In some embodiments, the map application testing end loads the map application page on line in the installed map application to be tested according to the page link and the page configuration information, so as to collect a page on-line log. In practice, the map application testing end can access the page link in the map application to be tested so as to load the map application page on line in the map application to be tested, and can collect page on-line logs when the map application page is loaded.
In practice, the map application testing end can load the map application page on line in the installed map application to be tested through the following steps to collect page on-line log:
and the first step, acquiring page online information of the map application page. The page online information may be various parameter information of various variables output to a front-end console when the map application page is loaded online. For example, the page presence information may be content output by the control.
And secondly, generating a page online log according to the page online information. The page presence information may be printed as a page presence log.
And 105, the map application testing end loads the map application page offline in the installed map application to be tested according to the page configuration information so as to acquire a page offline log.
In some embodiments, the map application testing end loads the map application page offline in the installed map application to be tested according to the page configuration information, so as to collect a page offline log. Optionally, the page configuration information includes a test account group. The test account group may refer to individual accounts that may be tested.
In practice, the map application testing end can offline load the map application page in the installed map application to be tested according to the page configuration information through the following steps to collect a page offline log:
and firstly, logging in a target test account number in the map application to be tested.
And secondly, determining whether the test account group comprises a target test account registered in the map application to be tested.
And thirdly, in response to determining that the target user account registered in the map application to be tested is included in the user account group, offline loading the map application page in the installed map application to be tested.
And step four, acquiring the page offline information of the map application page. Communication between JS and the native can be realized through a JSbridge tool, so that the JSbridge obtains the content of a method of the log () of JS in a hook mode.
And fifthly, generating a webpage offline log according to the webpage offline information. The page offline information may be printed as a web page offline log.
And 106, the map application test terminal merges the page online log and the page offline log into an application test log.
In some embodiments, the map application test end may combine the page online log and the page offline log into an application test log. The page online log comprises performance information, and the page offline log comprises performance information and resource information. Here, the performance information may include, but is not limited to, at least one of: load-consuming, primary rendering consuming. The initial rendering time may be the time taken to render the first content. The resource information may include, but is not limited to, at least one of: resource linking, identification of whether offline resources are used or not by characterization, item type. For example, the linking of picture resources may be denoted as "https://.png". The item type may be a type of offline resource. For example, the item type may be a public item class or a self-service item class.
And determining the resource information included in the page offline log as resource detection information. Resource detection information to include, but is not limited to: an offline loading technology name, and an identification of whether the offline loading technology corresponding to the offline loading technology name is used or not.
And a second step of determining performance detection information according to the performance information included in the page online log and the performance information included in the page offline log. The map application test end can respectively determine the first rendering time consumption and the loading time consumption included in the webpage offline loading log relative to the first rendering time consumption and the loading time consumption lifting percentage included in the webpage online loading information as a first rendering time consumption lifting proportion and a loading time consumption lifting proportion. And then, the first rendering time consumption included in the webpage offline loading log, the first rendering time consumption included in the webpage online log and the first rendering time consumption lifting proportion can be determined to be first-time performance information. Then, the loading time consumption included in the webpage offline loading log, the loading time consumption included in the webpage online log and the loading time consumption lifting proportion can be determined to be loading time performance information. Finally, the first-on time performance information and the load time performance information may be determined as performance detection information.
And thirdly, combining the resource detection information and the performance detection information into the application test log. Merging may refer to stitching.
And 107, the map application test terminal generates an application test text according to the application test log.
In some embodiments, the map application test end may generate an application test text according to the application test log.
In practice, the map application test terminal can generate an application test text through the following steps:
first, determining page attribute information corresponding to the map application page. Wherein, the page attribute information includes: test creation information, application information, and test information. The test creation information may be trigger user information included in the page configuration information. The application information may be related information of the map application to be tested. The application information may include: application version, login account. The test information may be information related to an offline loading test task. The test information may include: test target and test platform.
And secondly, acquiring the screenshot information of the test page of the map application page. The test page screenshot information comprises: an online page screenshot group and an offline page screenshot group. When the map application page is displayed online, each page screenshot which slides down can be obtained as an online page screenshot group. For example, the online page screenshot group may include a screenshot of the map application page initially displayed online, a screenshot of the map application page after the page has been slid down once. Then, the executing body can acquire each page screenshot of the downslide as an offline page screenshot group when the map application page is displayed offline.
And thirdly, generating an application test text according to the page attribute information, the test page screenshot information and the application test log. And filling the page attribute information, the test page screenshot information and the resource detection information and performance detection information included in the application test log into a preset text template to obtain an application test text.
The above-mentioned related matters serve as an invention point of the present disclosure, thereby solving the second technical problem mentioned in the background art, which results in that the identified address information is not accurate enough. ". Factors that lead to insufficient accuracy of the identified address information are often as follows: in identifying feature information in an image, fewer hierarchical features are considered, resulting in insufficient accuracy of the identified address information. If the above factors are solved, the effect of improving the accuracy of the identified address information can be achieved. To achieve this, first, the multi-level address feature information is input to a character class output layer included in the multi-level detection head model, and character class information is obtained. And then, inputting the multi-level address characteristic information into a character position output layer included in the multi-level detection head model to obtain character position information. And then, inputting the multi-level address characteristic information into a character probability output layer included in the multi-level detection head model to obtain character probability information. And finally, combining the character category information, the character position information and the character probability information into an address character information group. Thus, the address character information set can be generated for the multi-level address feature information set and the multi-level detection head model set. In the process of generating the address character information, the address characteristic information of various layers is considered, and the address character information set can be accurately output by utilizing the correspondingly arranged multi-layer detection head model. Thus, the accuracy of the identified address information is improved.
Referring now to fig. 2, a schematic structural diagram of an electronic device (e.g., a test configuration side and/or a map application test side) 200 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 2 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 2, the electronic device 200 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 201, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 202 or a program loaded from a storage means 208 into a Random Access Memory (RAM) 203. In the RAM203, various programs and data necessary for the operation of the electronic apparatus 200 are also stored. The processing device 201, ROM202, and RAM203 are connected to each other through a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
In general, the following devices may be connected to the I/O interface 205: input devices 206 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 207 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 208 including, for example, magnetic tape, hard disk, etc.; and a communication device 209. The communication means 209 may allow the electronic device 200 to communicate with other devices wirelessly or by wire to exchange data. While fig. 2 shows an electronic device 200 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 2 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 209, or from the storage device 208, or from the ROM 202. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 201.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps that a test configuration end sends pre-built test configuration information corresponding to a map application to be tested to an associated map application test end, wherein the test configuration information is configuration information of a map application page of the map application to be tested; the map application testing end responds to the received testing configuration information, and installs the map application to be tested according to the testing configuration information, wherein the testing configuration information comprises page links of the map application pages; the map application testing end obtains page configuration information corresponding to the map application page; the map application testing end loads the map application page on line in the installed map application to be tested according to the page link and the page configuration information so as to acquire a page on-line log; the map application testing end loads the map application page offline in the installed map application to be tested according to the page configuration information so as to acquire a page offline log; the map application test terminal merges the page online log and the page offline log into an application test log; and the map application test terminal generates an application test text according to the application test log.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (6)

1. A map application testing method, comprising:
the method comprises the steps that a test configuration end sends pre-built test configuration information corresponding to a map application to be tested to an associated map application test end, wherein the test configuration information is configuration information of a map application page of the map application to be tested;
the map application testing end responds to the received testing configuration information, and installs the map application to be tested according to the testing configuration information, wherein the testing configuration information comprises page links of the map application pages;
the map application testing end obtains page configuration information corresponding to the map application page;
the map application testing end loads the map application page on line in the installed map application to be tested according to the page link and the page configuration information so as to acquire a page on-line log;
the map application testing end loads the map application page offline in the installed map application to be tested according to the page configuration information so as to acquire a page offline log;
the map application test end merges the page online log and the page offline log into an application test log;
and the map application test terminal generates an application test text according to the application test log.
2. The method of claim 1, wherein the installing the map under test application according to the test configuration information comprises:
uninstalling the locally installed map application to be tested in response to determining that the map application to be tested has been installed;
and installing the map application to be tested according to the test configuration information corresponding to the map application to be tested.
3. The method of claim 1, wherein the online loading of the map application page in the installed map application to be tested according to the page links and the page configuration information to collect page online logs comprises:
acquiring page online information of the map application page;
and generating a page online log according to the page online information.
4. The method of claim 1, wherein the page online log includes performance information, the page offline log includes performance information and resource information; and
the merging the page online log and the page offline log into an application test log comprises the following steps:
determining resource information included in the page offline log as resource detection information;
determining performance detection information according to the performance information included in the page online log and the performance information included in the page offline log;
and combining the resource detection information and the performance detection information into the application test log.
5. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
6. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-4.
CN202310827485.0A 2023-07-07 2023-07-07 Map application testing method, electronic device and computer readable medium Active CN116561015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310827485.0A CN116561015B (en) 2023-07-07 2023-07-07 Map application testing method, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310827485.0A CN116561015B (en) 2023-07-07 2023-07-07 Map application testing method, electronic device and computer readable medium

Publications (2)

Publication Number Publication Date
CN116561015A true CN116561015A (en) 2023-08-08
CN116561015B CN116561015B (en) 2023-09-12

Family

ID=87496847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310827485.0A Active CN116561015B (en) 2023-07-07 2023-07-07 Map application testing method, electronic device and computer readable medium

Country Status (1)

Country Link
CN (1) CN116561015B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180011780A1 (en) * 2016-07-08 2018-01-11 Accenture Global Solutions Limited Web application test script generation to test software functionality
CN109144842A (en) * 2017-06-16 2019-01-04 百度在线网络技术(北京)有限公司 Method and apparatus for test application
US20210248060A1 (en) * 2020-06-19 2021-08-12 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for testing map service
CN113419940A (en) * 2021-07-07 2021-09-21 广州方硅信息技术有限公司 Program log collecting and returning method and corresponding device, equipment and medium
CN113868126A (en) * 2021-09-17 2021-12-31 北京顺达同行科技有限公司 Application debugging method, device and storage medium of equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180011780A1 (en) * 2016-07-08 2018-01-11 Accenture Global Solutions Limited Web application test script generation to test software functionality
CN109144842A (en) * 2017-06-16 2019-01-04 百度在线网络技术(北京)有限公司 Method and apparatus for test application
US20210248060A1 (en) * 2020-06-19 2021-08-12 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for testing map service
CN113419940A (en) * 2021-07-07 2021-09-21 广州方硅信息技术有限公司 Program log collecting and returning method and corresponding device, equipment and medium
CN113868126A (en) * 2021-09-17 2021-12-31 北京顺达同行科技有限公司 Application debugging method, device and storage medium of equipment

Also Published As

Publication number Publication date
CN116561015B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN111555940B (en) Client test method and device, electronic equipment and computer readable storage medium
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN110046310B (en) Method and device for analyzing jump link in page
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN115660589B (en) Business auditing method, device, equipment and computer readable medium
CN112395188B (en) Test-oriented software project development method and device, electronic equipment and storage medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN113760729A (en) Code detection method and device
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN109669720B (en) Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN116561015B (en) Map application testing method, electronic device and computer readable medium
CN111240786A (en) Walkthrough method and device, electronic equipment and storage medium
CN113407229B (en) Method and device for generating offline scripts
CN113704079B (en) Protobuf-based interface testing method and device
CN112084114B (en) Method and apparatus for testing interfaces
CN111367791B (en) Method, device, medium and electronic equipment for generating test case
CN113849416A (en) Test method, test device, storage medium and electronic equipment
CN111797009A (en) Method and device for detecting code compatibility and electronic equipment
CN116880901B (en) Application page analysis method, device, electronic equipment and computer readable medium
CN116467178B (en) Database detection method, apparatus, electronic device and computer readable medium
CN113779952B (en) Text processing method and device and electronic equipment
CN118036561A (en) Lightweight markup language text conversion method, lightweight markup language text conversion device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant