CN113094268A - Test method, device, equipment, medium and program product - Google Patents

Test method, device, equipment, medium and program product Download PDF

Info

Publication number
CN113094268A
CN113094268A CN202110374775.5A CN202110374775A CN113094268A CN 113094268 A CN113094268 A CN 113094268A CN 202110374775 A CN202110374775 A CN 202110374775A CN 113094268 A CN113094268 A CN 113094268A
Authority
CN
China
Prior art keywords
test
page
performance
testing
present disclosure
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
CN202110374775.5A
Other languages
Chinese (zh)
Other versions
CN113094268B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110374775.5A priority Critical patent/CN113094268B/en
Publication of CN113094268A publication Critical patent/CN113094268A/en
Application granted granted Critical
Publication of CN113094268B publication Critical patent/CN113094268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • 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

Landscapes

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

Abstract

The present disclosure provides a testing method that may be applied in the financial or other fields. The test method comprises the following steps: identifying the identity of one or more page elements in the test scenario; executing respective corresponding operations of the identifiers of the one or more page elements to realize page testing aiming at the test scene, and simultaneously collecting performance index data of the test scene to realize performance testing aiming at the test scene; and generating a page test result of the page test and a performance test result of the performance test. The present disclosure also provides a test apparatus, a device, a storage medium and a program product.

Description

Test method, device, equipment, medium and program product
Technical Field
The present disclosure relates to the field of finance or otherwise, in particular to the field of testing, and more particularly to a testing method, apparatus, device, medium and program product.
Background
With the rapid development of the information technology industry, the client tends to have high complexity, and the requirement on the development quality of the client is increased day by day. Before the client is put into use formally, errors which may occur in the operation of the client can be found through client test and can be processed in time.
In the course of implementing the disclosed concept, the inventors found that there are at least the following problems in the prior art: currently, a mobile client UI (User Interface) testing tool such as Appium can only support UI testing and cannot support performance testing of a client, and a client performance testing tool such as PerfDog can only support performance testing of a client and cannot support UI testing.
Disclosure of Invention
In view of the above, the present disclosure provides a test method, apparatus, device, medium, and program product.
According to a first aspect of the present disclosure, there is provided a test method comprising: identifying the identity of one or more page elements in the test scenario; executing respective corresponding operations of the identifiers of the one or more page elements to realize page testing aiming at the test scene, and simultaneously collecting performance index data of the test scene to realize performance testing aiming at the test scene; and generating a page test result of the page test and a performance test result of the performance test.
According to the embodiment of the disclosure, the test scenario includes a plurality of test scenarios, and the test method further includes: generating a page test result and a performance test result of each test scene in a plurality of test scenes; and/or generating a page test result and a performance test result of the whole of the plurality of test scenes.
According to an embodiment of the present disclosure, generating a page test result of a page test includes: determining whether a page of the test scene contains a preset page element; under the condition that the page of the test scene contains preset page elements, the page test is considered to be successful; and considering that the page test fails under the condition that the page of the test scene does not contain the preset page elements.
According to an embodiment of the present disclosure, the performance indicators include at least one of: CPU utilization, memory occupancy, network traffic, battery temperature, and CPU temperature.
According to an embodiment of the present disclosure, the test method further comprises: based on the performance indicator data, a trend graph of the change in one or more performance indicators is generated.
According to an embodiment of the present disclosure, the test method further comprises: and when the abnormal interruption of the page test or the abnormal interruption of the performance test is detected, outputting alarm information.
A second aspect of the present disclosure provides a test apparatus comprising: the element identification module is used for identifying the identification of one or more page elements in the test scene; the test module is used for executing the operation corresponding to the identification of one or more page elements respectively so as to realize the page test aiming at the test scene, and meanwhile, collecting the performance index data of the test scene so as to realize the performance test aiming at the test scene; and the result generating module is used for generating a page test result of the page test and a performance test result of the performance test.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described testing method.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described test method.
A fifth aspect of the disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described testing method.
According to the embodiment of the disclosure, the technical problems that the UI test tool of the client cannot support the performance test and the performance test tool of the client cannot support the UI test can be at least partially solved, and therefore, the performance of the client can be simultaneously tested in the UI test process of the client, so that the test cost of the client is reduced, the test time is saved, and the test efficiency is improved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a testing method, apparatus, device, medium, and program product according to embodiments of the disclosure;
FIG. 2 schematically illustrates a flow diagram of a testing method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a testing method according to an embodiment of the present disclosure;
FIG. 4 schematically shows a block diagram of a test apparatus according to an embodiment of the present disclosure; and
fig. 5 schematically shows a block diagram of an electronic device suitable for implementing a testing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Embodiments of the present disclosure provide a test method, apparatus, device, medium, and program product. The test method comprises the following steps: identifying the identity of one or more page elements in the test scenario; executing respective corresponding operations of the identifiers of the one or more page elements to realize page testing aiming at the test scene, and simultaneously collecting performance index data of the test scene to realize performance testing aiming at the test scene; and generating a page test result of the page test and a performance test result of the performance test.
It should be noted that the testing method, apparatus, device, medium, and program product determined by the present disclosure may be used for testing clients in the financial field, for example, testing clients in mobile banking, or testing clients in any field other than the financial field, for example, testing clients in shopping applications and communication tools.
Fig. 1 schematically illustrates an application scenario diagram of a testing method, apparatus, device, medium, and program product according to embodiments of the disclosure. It should be noted that fig. 1 is only an example of an application scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the application scenario 100 according to this embodiment may include first devices 101, 102, 103, a network 104, a second device 105, and a server 106. The network 104 serves as a medium for providing communication links between the first devices 101, 102, 103, the second device 105 and the server 106. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The first devices 101, 102, 103 may be various electronic devices having a display screen and supporting client applications, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The user may use the first device 101, 102, 103 to interact with the server 106 via the network 104 to receive or send messages or the like. The first devices 101, 102, 103 may have installed thereon various communication client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).
The second device 105 may be a variety of electronic devices having a display screen and capable of communicating with the first devices 101, 102, 103, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, and the like.
The server 106 may be a server providing various services, such as a background management server (for example only) providing support for clients used by users with the first devices 101, 102, 103. The background management server may analyze and/or otherwise process the received data, such as the user request, and feed back a processing result (e.g., a web page, information, or data obtained or generated according to the user request) to the first device.
It should be noted that the test method provided by the embodiment of the present disclosure may be generally performed by the second device 105. Accordingly, the testing apparatus provided by the embodiments of the present disclosure may be generally disposed in the second device 105. The testing method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster different from the second device 105 and capable of communicating with the first devices 101, 102, 103 and/or the second device 105. Correspondingly, the testing apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the second device 105 and capable of communicating with the first devices 101, 102, 103 and/or the second device 105.
It should be understood that the number of first devices, networks, second devices, and servers in fig. 1 is merely illustrative. There may be any number of first devices, networks, second devices, and servers, as desired for an implementation.
The test method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 3 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a testing method according to an embodiment of the present disclosure.
As shown in fig. 2, the test method of this embodiment includes operations S210 to S230, and the test method may be performed by the second device described above, for example.
In operation S210, an identification of one or more page elements in a test scenario is identified.
According to an embodiment of the present disclosure, the test scenario may be a scenario for testing a part of functions of the client, for example, testing a login function, an account query function, and the like of the client. The test scenario comprises a page corresponding to the test scenario, the page comprises one or more page elements, and each page element has an identifier uniquely corresponding to the page element. Operation S210 may be performed by the second device described above for identifying the identity of one or more page elements in the first device described above, according to an embodiment of the present disclosure. For example, the operation of identifying page elements in the test scenario may be pre-programmed in a script, and the second device may execute the script and send an identification instruction to the first device, where the identification information of one or more page elements is included in the instruction. The second device may receive feedback information from the first device, the feedback information indicating whether the one or more page elements are present. Taking a login page corresponding to the login function as an example, the login page of the client a includes three page elements, namely a user name input box, a password input box and a login button. The identifier of the userName input box may be an attribute id ═ userName ", the identifier of the password input box may be an attribute id ═ password", and the identifier of the login button may be an attribute id ═ login ". The identification instruction sent by the second device to the first device may be used to determine whether page elements with attribute ids "userName", "password", and "login" exist in the login page of the client a, and receive the identification result. Those skilled in the art can understand that different test scenarios may have different page elements, and different test scenarios may also have the same page element, and the types and numbers of the page elements in the embodiments are merely examples to facilitate understanding of the present disclosure, and the present disclosure does not limit the types and numbers of the page elements in the test scenarios.
In operation S220, operations corresponding to the identifications of the one or more page elements are performed to implement a page test for the test scenario, and meanwhile, performance index data of the test scenario is collected to implement a performance test for the test scenario.
According to an embodiment of the present disclosure, the operation corresponding to each of the identifiers of the one or more page elements may be an operation to implement a function corresponding to the test scenario. Operation S220 may be performed, for example, after operation S210 identifies the identity of one or more page elements in the test scenario. The execution of the operation corresponding to each of the identifiers of one or more page elements may also be pre-programmed in the script, and after the identification of a page element is completed, an input method, a click method, etc. of the page element may be invoked. For example, the second device recognizes that the login page of the client a includes three page elements of a username input box, a password input box and a login button. In order to implement the login function, the second device may send an input instruction to the first device, where the input instruction is used to input a registered user name in a user name input box, input a login password corresponding to the user name in a password input box, and click a login button, so as to implement a page test for a test scenario.
According to the embodiment of the disclosure, the performance index data of the test scene can be collected while the page test is carried out. For example, the second device may send a performance index data collection instruction to the first device while sending the input instruction, so as to collect performance index data of the client in the page test process. The second device may collect the performance index data of the first device by calling the pre-packaged API when the page test is performed. According to an embodiment of the present disclosure, a time interval (e.g., 5 seconds) for performance index data collection may also be set in advance by a configuration file, for example, and the second device may periodically transmit a performance index data collection instruction to the first device based on the time interval. The second device may stop sending the performance indicator data collection instruction after receiving the information indicating that the page test is completed. Therefore, after the page test of the test scenario is finished, the call of the second device to the API is also finished, thereby completing the performance index data collection of one test scenario. Wherein the performance index comprises at least one of: CPU utilization, memory occupancy, network traffic, battery temperature, and CPU temperature. For example, the collection of multiple performance indicator data from the performance indicators may be implemented in one test scenario by multithreading. It should be understood that the type and time interval for collecting performance indicator data can be selected by one skilled in the art as desired, and the present disclosure is not limited thereto.
In operation S230, a page test result of the page test and a performance test result of the performance test are generated.
According to an embodiment of the present disclosure, generating a page test result of a page test includes: determining whether a page of the test scene contains a preset page element; under the condition that the page of the test scene contains preset page elements, the page test is considered to be successful; and considering that the page test fails under the condition that the page of the test scene does not contain the preset page elements. Taking the login page corresponding to the login function as an example, when the login is successful, the first device may perform page jump after the login button is clicked, and the page after the page jump may include, for example, a text page element "huan uses XX client". The second device may send an identification instruction to the first device to determine whether the skipped page contains the page element, so as to obtain a page test result of the page test. The specific manner of determining whether the page of the test scenario includes the preset page element is similar to operation S210, and details of this disclosure are not repeated herein.
According to an embodiment of the present disclosure, the second device may further record the relevant operation data of the page test in the system log. The operation data may be, for example, information indicating whether the instruction was successfully sent, and whether the page test was successful. Therefore, the user can inquire the execution progress, the execution result and the like of the page test by reading the system log, and timely find out the problems reflected by the operation data.
According to embodiments of the present disclosure, the collected performance indicator data may be recorded, for example, in a designated file (e.g., an XLS file, an XML file, etc.) that a user may read to learn the data for each performance indicator in a performance test.
According to an embodiment of the present disclosure, the test scenario may include a plurality of test scenarios, and the test method further includes: generating a page test result and a performance test result of each test scene in the plurality of test scenes; and/or generating a page test result and a performance test result of the whole plurality of test scenes. For example, the client a may include n test scenarios, each for testing n functions of the client a, where n is a positive integer. For the page test and the performance test of the first function, a page test result and a performance test result may be generated respectively, for the page test and the performance test of the second function, after the page test result and the performance test result … … are generated respectively and the test is completed in n test scenarios, the page test result of the whole n test scenarios and the performance test result of the whole n test scenarios may also be generated, for example, the whole performance test result may be "k scenario test succeeds, m scenario test fails", where k and m are both non-negative integers.
FIG. 3 schematically shows a flow chart of a testing method according to an embodiment of the present disclosure.
As shown in fig. 3, the testing method of this embodiment may further include operation S340 in addition to operation S210 to operation S230, where operation S340 may be executed after operation S210 to operation S230, for example, and operation S340 may be executed by the second device described above, for example.
In operation S340, a trend graph of one or more performance indicators is generated based on the performance indicator data.
According to the embodiment of the disclosure, the second device may generate a time-varying trend graph of each performance index according to the performance index data recorded in the designated file, for example, so that a user can more intuitively and clearly understand the performance index data and observe and analyze the varying trend of the performance index.
According to the embodiment of the disclosure, the performance test of the client is performed while the page test of the client is performed, and the performance index data is collected, so that the technical problems that the UI test tool of the client cannot support the performance test and the performance test tool of the client cannot support the UI test can be at least partially solved, and therefore, the performance of the client can be simultaneously tested in the UI test process of the client, the test cost of the client is further reduced, the test time is saved, and the technical effect of the test efficiency is improved.
According to an embodiment of the present disclosure, the test method may further include: and when the abnormal interruption of the page test or the abnormal interruption of the performance test is detected, outputting alarm information. Optionally, when a page test abort or a performance test abort is detected, an interrupt reason may be analyzed, and a generation reason of the interrupt may be classified. For example, in a case where the second device determines from the system log that the interruption is caused by a network failure between the first device and the server, it is presumed that the cause of the interruption may be an environmental abnormality; in the case where the second device determines from the system log that the interrupt is caused by not recognizing the identification of the page element, it is presumed that the cause of the interrupt may be a script error. According to the embodiment of the disclosure, by outputting the alarm information and analyzing the interruption reason when the interruption is abnormal, a user can conveniently perceive the abnormality in the test process, and can timely know the reason causing the abnormality.
Based on the test method, the disclosure also provides a test device. The apparatus will be described in detail below with reference to fig. 4.
Fig. 4 schematically shows a block diagram of a test apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the test apparatus 400 of this embodiment includes an element identification module 410, a test module 420, and a result generation module 430.
The element identification module 410 is used to identify the identity of one or more page elements in a test scenario. In an embodiment, the element identification module 410 may be configured to perform the operation S210 described above, which is not described herein again.
The test module 420 is configured to perform operations corresponding to the identifiers of the one or more page elements, so as to implement a page test for a test scenario, and collect performance index data of the test scenario, so as to implement a performance test for the test scenario. In an embodiment, the testing module 420 may be configured to perform the operation S220 described above, which is not described herein again.
The result generating module 430 is configured to generate a page test result of the page test and a performance test result of the performance test. In an embodiment, the result generating module 430 may be configured to perform the operation S230 described above, which is not described herein again.
According to an embodiment of the present disclosure, any plurality of the element identifying module 410, the testing module 420, and the result generating module 430 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the element identification module 410, the test module 420, and the result generation module 430 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one of the element identification module 410, the testing module 420 and the result generation module 430 may be implemented at least in part as a computer program module that, when executed, may perform a corresponding function.
Fig. 5 schematically shows a block diagram of an electronic device suitable for implementing a testing method according to an embodiment of the present disclosure.
As shown in fig. 5, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the programs may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, electronic device 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), 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 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. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the item recommendation method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 501. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 509, and/or installed from the removable medium 511. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart 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 or flowchart illustration, and combinations of blocks in the block diagrams 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.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A method of testing, comprising:
identifying the identity of one or more page elements in the test scenario;
executing respective operations corresponding to the identifications of the one or more page elements to realize page testing for the test scenario, and collecting performance index data of the test scenario to realize performance testing for the test scenario; and
and generating a page test result of the page test and a performance test result of the performance test.
2. The testing method of claim 1, wherein the test scenario comprises a plurality of test scenarios, the method further comprising:
generating a page test result and a performance test result of each test scene in the plurality of test scenes; and/or
And generating a page test result and a performance test result of the whole plurality of test scenes.
3. The testing method of claim 1, wherein generating page test results for the page test comprises:
determining whether a page of the test scene contains a preset page element;
considering that the page test is successful under the condition that the page of the test scene contains preset page elements; and
and under the condition that the page of the test scene does not contain the preset page element, considering that the page test fails.
4. The testing method of claim 1, wherein the performance indicators comprise at least one of: CPU utilization, memory occupancy, network traffic, battery temperature, and CPU temperature.
5. The testing method of claim 1, further comprising:
based on the performance indicator data, a trend graph of changes in one or more performance indicators is generated.
6. The testing method of claim 1, further comprising:
and outputting alarm information when the abnormal interruption of the page test or the abnormal interruption of the performance test is detected.
7. A test apparatus, comprising:
the element identification module is used for identifying the identification of one or more page elements in the test scene;
the test module is used for executing the operation corresponding to the identification of the one or more page elements respectively so as to realize the page test aiming at the test scene, and meanwhile, collecting the performance index data of the test scene so as to realize the performance test aiming at the test scene; and
and the result generating module is used for generating a page test result of the page test and a performance test result of the performance test.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 6.
CN202110374775.5A 2021-04-07 2021-04-07 Test method, test device, test equipment and test medium Active CN113094268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110374775.5A CN113094268B (en) 2021-04-07 2021-04-07 Test method, test device, test equipment and test medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110374775.5A CN113094268B (en) 2021-04-07 2021-04-07 Test method, test device, test equipment and test medium

Publications (2)

Publication Number Publication Date
CN113094268A true CN113094268A (en) 2021-07-09
CN113094268B CN113094268B (en) 2024-05-07

Family

ID=76674821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110374775.5A Active CN113094268B (en) 2021-04-07 2021-04-07 Test method, test device, test equipment and test medium

Country Status (1)

Country Link
CN (1) CN113094268B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260318A (en) * 2015-11-25 2016-01-20 飞天诚信科技股份有限公司 Automatic testing method and device based on web pages
CN108304723A (en) * 2018-01-17 2018-07-20 链家网(北京)科技有限公司 A kind of anomaly detection method and device
CN111694735A (en) * 2020-05-28 2020-09-22 北京城市网邻信息技术有限公司 Page performance testing method and device, electronic equipment and storage medium
CN111930629A (en) * 2020-08-14 2020-11-13 工银科技有限公司 Page testing method and device, electronic equipment and storage medium
WO2020233331A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 User interface automated testing method and apparatus, and computer-readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260318A (en) * 2015-11-25 2016-01-20 飞天诚信科技股份有限公司 Automatic testing method and device based on web pages
CN108304723A (en) * 2018-01-17 2018-07-20 链家网(北京)科技有限公司 A kind of anomaly detection method and device
WO2020233331A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 User interface automated testing method and apparatus, and computer-readable storage medium
CN111694735A (en) * 2020-05-28 2020-09-22 北京城市网邻信息技术有限公司 Page performance testing method and device, electronic equipment and storage medium
CN111930629A (en) * 2020-08-14 2020-11-13 工银科技有限公司 Page testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113094268B (en) 2024-05-07

Similar Documents

Publication Publication Date Title
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN109684188B (en) Test method and device
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
CN109218041B (en) Request processing method and device for server system
CN113535577B (en) Application testing method and device based on knowledge graph, electronic equipment and medium
CN112954056B (en) Method and device for processing monitoring data, electronic equipment and storage medium
CN113132400A (en) Business processing method, device, computer system and storage medium
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
CN113296911B (en) Cluster calling method, cluster calling device, electronic equipment and readable storage medium
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN113094268B (en) Test method, test device, test equipment and test medium
CN112379967B (en) Simulator detection method, device, equipment and medium
CN115374207A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN110554892A (en) Information acquisition method and device
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
CN109756393B (en) Information processing method, system, medium, and computing device
CN113434382A (en) Database performance monitoring method and device, electronic equipment and computer readable medium
CN113626301A (en) Method and device for generating test script
CN112084114A (en) Method and apparatus for testing an interface
CN115190008B (en) Fault processing method, fault processing device, electronic equipment and storage medium
CN115499292B (en) Alarm method, device, equipment and storage medium
CN116975200A (en) Method, device, equipment and medium for controlling working state of server
CN117493207A (en) Page processing method, device, electronic equipment and storage medium
CN114861054A (en) Information acquisition method and device, electronic 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
GR01 Patent grant
GR01 Patent grant