CN116166536A - Test method, test device, electronic equipment and storage medium - Google Patents

Test method, test device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116166536A
CN116166536A CN202211677648.3A CN202211677648A CN116166536A CN 116166536 A CN116166536 A CN 116166536A CN 202211677648 A CN202211677648 A CN 202211677648A CN 116166536 A CN116166536 A CN 116166536A
Authority
CN
China
Prior art keywords
test
scene
protocol
reproduction
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211677648.3A
Other languages
Chinese (zh)
Inventor
任涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202211677648.3A priority Critical patent/CN116166536A/en
Publication of CN116166536A publication Critical patent/CN116166536A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

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

Abstract

The disclosure provides a testing method, a testing device, an electronic device and a storage medium, which relate to the technical field of computers, in particular to the technical fields of testing technology, internet and the like, and comprise the following steps: triggering a protocol access identifier of a reproduction test scene protocol, and acquiring the reproduction test scene protocol according to a triggering result of the protocol access identifier; operating a reproduction test scene of the object to be tested according to the reproduction test scene protocol; acquiring scene function test data of the object to be tested according to the reproduction test scene protocol; and testing the reproduction test scene of the object to be tested according to the scene function test data. The embodiment of the disclosure can improve the testing efficiency and reduce the testing cost.

Description

Test method, test device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the technical fields of testing technologies, the internet, and the like.
Background
With the development of computer technology, software technology, internet and other related technologies, testing work has become one of the important links in the product research and development process. When testing the product, a tester needs to reproduce the scene when the abnormal problem occurs, find the reason for the abnormal problem, and repair the abnormal problem. The test technology plays a role in both hardware equipment and software systems, and can find out abnormal problems in a test object by a certain detection means so as to repair the abnormal problems. For example, hardware device testing may test the performance of a hardware device in a certain operating state to determine component failure of the hardware device, and so on. Software program testing may operate on a program under specified conditions to discover program BUGs (BUGs), measure software program quality, and evaluate whether the software meets design requirements. In the field of internet technology, program testing refers to a process in which testers find and reduce computer program errors.
By reproducing the test scene of the test object to perform single-point test on the function of the test object in the reproduced test scene, whether the single-point function of the test object is normal or not can be effectively tested. At present, the main means for reproducing the test scene is to obtain the operation data of the test object, for example, obtain log monitoring data through a buried point log as the operation data, or use related data such as request operation and response operation of the test object as the operation data, so as to perform a complex data processing process according to the operation data, so as to reproduce the test scene of the test object. Or, a test case is constructed by a tester for reproducing a test scene of the test object, etc.
It can be understood that the reproduction mode of the test scene of the current test object usually involves operation data or development data with larger magnitude, and the existing method for reproducing the test scene by the related operation data or development data has the problems of high test cost, low test efficiency and the like because of the complex data processing process of a large amount of data.
Disclosure of Invention
The embodiment of the disclosure provides a testing method, a testing device, electronic equipment and a storage medium, which can improve testing efficiency and reduce testing cost.
In a first aspect, an embodiment of the present disclosure provides a test method, including:
triggering a protocol access identifier of a reproduction test scene protocol, and acquiring the reproduction test scene protocol according to a triggering result of the protocol access identifier;
operating a reproduction test scene of the object to be tested according to the reproduction test scene protocol;
acquiring scene function test data of the object to be tested according to the reproduction test scene protocol;
and testing the reproduction test scene of the object to be tested according to the scene function test data.
In a second aspect, embodiments of the present disclosure provide a test apparatus, comprising:
the reproduction test scene protocol acquisition module is used for triggering a protocol access identifier of the reproduction test scene protocol and acquiring the reproduction test scene protocol according to a triggering result of the protocol access identifier;
the reproduction test scene operation module is used for operating the reproduction test scene of the object to be tested according to the reproduction test scene protocol;
the scene function test data acquisition module is used for acquiring scene function test data of the object to be tested according to the reproduction test scene protocol;
and the scene test module is used for testing the reproduction test scene of the object to be tested according to the scene function test data.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the test method provided by the embodiment of the first aspect.
In a fourth aspect, embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the test method provided by the embodiments of the first aspect.
In a fifth aspect, embodiments of the present disclosure also provide a computer program product comprising a computer program which, when executed by a processor, implements the test method provided by the embodiments of the first aspect.
According to the embodiment of the disclosure, the protocol access identifier of the reproduction test scene protocol is triggered, and the reproduction test scene protocol is acquired according to the triggering result of the protocol access identifier, so that the reproduction test scene of the object to be tested is operated according to the acquired reproduction test scene protocol, and the scene function test data of the object to be tested is acquired, so that the reproduction test scene of the object to be tested is tested according to the scene function test data, the problems of low test efficiency, high test cost and the like of the conventional test method are solved, the test efficiency can be improved, and the test cost is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow diagram of a prior art collection of applet exception log data;
FIG. 2 is a flow chart of prior art exception testing of applets based on applet exception log data;
FIG. 3 is a flow chart of a test method provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart of a test method provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a replication test scenario protocol provided by an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart of a test using a recurring test scenario protocol provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of an effect of loading an abnormal page by a web page link according to an embodiment of the present disclosure;
FIG. 8 is a block diagram of a test apparatus provided by an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device for implementing the test method of the embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
FIG. 1 is a flow diagram of a prior art collection of applet exception log data; FIG. 2 is a flow chart of prior art exception testing of applets based on applet exception log data. In a specific example, as shown in fig. 1 and 2, an applet is specifically described as an object to be measured. The applet is a special Application program, which needs to be loaded in a corresponding APP (Application program), and is an Application that can be used without downloading and installing. The problem of the abnormal function location type of the applet is complicated because the applet is implemented using a hybrid of Web and native. The native (applet client framework), server (applet client framework side communication server), framework web (applet front end framework), and applet web (applet developer) of the applet may all be abnormal. Usually, the exception of the applet framework side can be quickly checked, but the exception of the applet web is caused by improper use of the applet developer, so how to quickly find out the problem of the applet developer is an important link for carrying out exception test on the applet.
Currently, when an exception error occurs in a client side frame, an applet server side and an applet front end frame of an applet, collected log data needs to be uploaded to an applet log platform from exception point logs respectively hit at each end. The small program log platform processes the collected log data to produce different types of abnormal reports, and promotes corresponding developers such as client side frames, front end frames or servers to conduct investigation according to different abnormal types. If the problem is abnormal to the applet developer, the method needs to find out the recurrence scene of the abnormal problem and then stream the scene to the applet developer for repair. That is, after the online problem occurs in the applet, the online problem is uploaded to a unified log platform through the abnormal logs of each end, and finally the problem flow can be transferred to the applet developer through log checking, analysis and positioning by the developer of each end. This results in post-problems for the applet developer, and the processing time of the program exception is too long, which ultimately affects the user experience of using the applet. Reasons for postponing the exception problem for the applet developer: there is no current applet developer environment in the applet, such as: the applet developer applies for some rights (such as white list of domain name or authority etc.), and needs to use the environment of the current developer to find out the abnormal problem.
In one example, fig. 3 is a flowchart of a test method provided by an embodiment of the present disclosure, which may be applicable to a case where a test scenario is repeated using a repeated test scenario protocol to test a test object, the method may be performed by a test apparatus, which may be implemented by software and/or hardware, and may be generally integrated in an electronic device. The electronic device may be a terminal device or a server device as a test device to execute a test method, so long as a reproduction test scenario protocol can be identified, and the embodiment of the present disclosure does not limit a specific device type of the electronic device. Accordingly, as shown in fig. 3, the method includes the following operations:
and S310, triggering a protocol access identifier of the reproduction test scene protocol, and acquiring the reproduction test scene protocol according to a triggering result of the protocol access identifier.
The reproduction test scene protocol may be a protocol configured according to test requirements, and is used for reproducing a certain operation scene of the object to be tested. The object to be tested can be an object to be tested for abnormality, can be a hardware object, such as a hardware device, and can be a software object, such as various application programs or system programs, and the like, so long as the object to be tested has a test requirement, and the embodiment of the present disclosure does not limit the object type of the object to be tested. The protocol access identification may be an entry tool for the test equipment to obtain a recurring test scenario protocol.
In the embodiment of the disclosure, the test equipment can perform abnormal test on the object to be tested. Alternatively, the test device may be any type of electronic device, such as a terminal device or a server device, so long as the protocol content of the reproduction test scenario protocol can be identified, and the embodiment of the present disclosure does not limit the device type of the test device.
Before the object to be tested is tested, a corresponding repeated test scene protocol can be configured for the test scene of the object to be tested, which needs to be subjected to abnormal test. Optionally, a test scene of the object to be tested may be configured with a corresponding recurring test scene protocol. I.e. the number of the repeated test scene protocols of the object to be tested is the same as the number of the test scenes thereof. Optionally, all functional scenes of the object to be tested can be pre-used as test scenes, and the repeated test scene protocol of all the test scenes is pre-configured, so that the prior test is performed on the object to be tested by using the repeated test scene protocol. Or, after the object to be tested is put into use and has problems, positioning an abnormal function scene according to the specific problems, and configuring a specific reproduction test scene protocol for the test scene according to the abnormal function scene as a test scene so as to perform posterior test on the object to be tested by using the reproduction test scene protocol.
Specifically, the reproduction test scenario protocol may be triggered by a protocol access identifier. When the object to be tested is tested, the protocol access identifier of the reproduction test scene protocol can be triggered by the test equipment, so that the reproduction test scene protocol is obtained according to the triggering result of the protocol access identifier. The repeated test scene protocol is obtained through the triggering result of the triggering protocol access identifier, so that a large amount of data of the repeated test scene protocol can be prevented from being stored in the test equipment, and the processing efficiency of the test equipment on the repeated test scene protocol is improved.
And S320, running the reproduction test scene of the object to be tested according to the reproduction test scene protocol.
Correspondingly, after the reproduction test scene protocol is obtained, the test equipment can analyze the reproduction test scene protocol so as to operate the reproduction test scene of the object to be tested according to the mechanical result of the reproduction test scene protocol.
For example, assuming that the object to be tested is a computer device, the test device runs a boot scene of the computer device according to the recurring test scene protocol to test a boot function of the computer device. Assuming that the test object is a certain APP, the test equipment operates the login scene of the APP according to the repeated test scene protocol so as to test the login function of the APP.
S330, acquiring scene function test data of the object to be tested according to the reproduction test scene protocol.
The scene function test data may be data for performing an abnormal test on a function of a reproduction test scene of the object to be tested.
S340, testing the reproduction test scene of the object to be tested according to the scene function test data.
Correspondingly, after obtaining the reproduction test scene protocol, the test equipment can obtain scene function test data for performing functional test on the object to be tested according to the analysis result of the reproduction test scene protocol, and perform abnormal test on the reproduction test scene of the object to be tested according to the scene function test data obtained by analysis.
Therefore, in the embodiment of the disclosure, the test device does not need to collect a large amount of complex operation data of the object to be tested, and test the object to be tested after performing a complex data processing process on the operation data. The test equipment can fast reproduce the reproduction test scene of the object to be tested directly through the reproduction test scene protocol, and test the reproduction test scene of the object to be tested based on the scene function test data acquired by the reproduction test scene protocol, so that the processing flow of the test data is greatly simplified, the processing cost of the test data is reduced, and the test efficiency is improved.
According to the embodiment of the disclosure, the protocol access identifier of the reproduction test scene protocol is triggered, and the reproduction test scene protocol is acquired according to the triggering result of the protocol access identifier, so that the reproduction test scene of the object to be tested is operated according to the acquired reproduction test scene protocol, and the scene function test data of the object to be tested is acquired, so that the reproduction test scene of the object to be tested is tested according to the scene function test data, the problems of low test efficiency, high test cost and the like of the conventional test method are solved, the test efficiency can be improved, and the test cost is reduced.
In an example, fig. 4 is a flowchart of a testing method provided by an embodiment of the present disclosure, and the embodiment of the present disclosure performs optimization and improvement on the basis of the technical solutions of the foregoing embodiments, and provides various specific alternative implementations of obtaining a recurring test scenario protocol according to a trigger result of a protocol access identifier, running a recurring test scenario of an object to be tested, obtaining scenario function test data of the object to be tested, and testing the recurring test scenario of the object to be tested.
A test method as shown in fig. 4, comprising:
s410, triggering a protocol access identifier of the reproduction test scene protocol, and acquiring the reproduction test scene protocol according to a triggering result of the protocol access identifier.
In an optional embodiment of the disclosure, the protocol access identifier may be a two-dimensional code; the protocol access identifier for triggering the reproduction test scene protocol and acquiring the reproduction test scene protocol according to the triggering result of the protocol access identifier may include: scanning or clicking to identify the two-dimensional code of the reproduction test scene protocol to obtain a two-dimensional code analysis result; and acquiring the reproduction test scene protocol according to the two-dimensional code analysis result.
In the disclosed embodiments, the protocol access identification may include a variety of implementations. Optionally, when the two-dimensional code is used as the protocol access identifier, the test device can open the camera to scan and identify the two-dimensional code of the repeated test scene protocol, or identify the picture of the two-dimensional code of the repeated test scene protocol by long-time clicking operation, so as to obtain the analysis result of the two-dimensional code. Further, the test equipment can acquire the reproduction test scene protocol based on the two-dimensional code analysis result.
According to the technical scheme, the two-dimensional code mode is adopted as the protocol access identifier of the reproduction test scene protocol, so that the practice mode of the protocol access identifier can be enriched, a large number of reproduction test scene protocols are not required to be stored at the test equipment side, and the acquisition efficiency and the processing efficiency of the reproduction test scene protocol can be improved.
In an alternative embodiment of the present disclosure, the protocol access identifier may be a web site link; the protocol access identifier for triggering the reproduction test scene protocol and acquiring the reproduction test scene protocol according to the triggering result of the protocol access identifier may include: opening the website link of the reproduction test scene protocol; and acquiring the reproduction test scene protocol based on the jump result of the website link of the reproduction test scene protocol.
In the disclosed embodiments, the protocol access identification may include a variety of implementations. Optionally, when the website link is used as the protocol access identifier, the test device may open the website link for reproducing the protocol of the test scenario, for example, open the website link by clicking, or open the website link by a voice command for opening the website link, etc. Correspondingly, the test equipment can respond to the opening instruction of the network connection and acquire the reproduction test scene protocol based on the jump result of the website link of the reproduction test scene protocol.
According to the technical scheme, the website link mode is adopted as the protocol access identifier of the reproduction test scene protocol, so that the practice mode of the protocol access identifier can be enriched, a large number of reproduction test scene protocols are not required to be stored at the test equipment side, and the acquisition efficiency and the processing efficiency of the reproduction test scene protocol can be improved.
S420, determining route jump data according to the reproduction test scene protocol.
The route jump data may be route data of a reproduction test scene from the reproduction test scene protocol to the object to be tested.
In an optional embodiment of the disclosure, the object to be tested may include an applet to be tested, and accordingly, determining the route jump data according to the recurring test scenario protocol may include: determining a bearing program of the applet to be tested according to the protocol name of the reproduction test scene protocol; determining the applet to be tested according to the designated test object name of the reproduction test scene protocol; determining the reproduction test scene of the applet to be tested according to the reproduction test scene name of the reproduction test scene protocol; and constructing the route jump data according to the bearing program of the applet to be tested, the applet to be tested and the reproduction test scene of the applet to be tested.
The applet to be tested is the applet to be tested. The carrier program is the application program carrying the applet to be tested.
Optionally, when the object to be tested is an applet to be tested, the protocol structure of the reproduction test scenario protocol may include, but is not limited to, a protocol name, a specified test object name, a reproduction test scenario name, and scenario function test data. The protocol name may specify information of a carrier program that carries the applet to be tested, such as a name of the carrier program. Specifying the test object name may be used to specify information about the applet to be tested, such as the name of the applet to be tested, etc. The reproduction test scene name can be used for designating the test scene of the applet to be tested to be reproduced.
Fig. 5 is a schematic structural diagram of a replication test scenario protocol provided in an embodiment of the present disclosure. In a specific example, as shown in fig. 5, assuming that the object to be tested is an applet to be tested, the test device analyzes the replication test scenario protocol, and may determine a replication protocol name, i.e., a protocol name, a specified applet, i.e., a specified test object name, a replication function name, i.e., a replication test scenario name, and a replication function parameter, i.e., scenario function test data. The test equipment can determine the bearing APP 'baidoubox APP' of the applet to be tested according to the reproduction protocol name, and determine the applet '123' to be tested according to the assigned applet assignment. Meanwhile, the test equipment can determine a test scene 'domain name white list scene' of the applet to be tested, which needs to be reproduced, according to the reproduction function name. The protocol parameters (belonging to fixed field values in the protocol), the specified applet, the reproduction function name and the reproduction function parameters constitute an applet specific reproduction scene value. Correspondingly, the test equipment can construct route jump data corresponding to the repeated test scene protocol according to the load APP, the applet to be tested and the test scene to be repeated by the applet to be tested.
In an optional embodiment of the disclosure, if the object to be tested is an object that can be independently operated, the determining the route jump data according to the recurring test scene protocol may include: determining the object to be tested according to the protocol name of the reproduction test scene protocol; determining the reproduction test scene of the object to be tested according to the reproduction test scene name of the reproduction test scene protocol; and constructing the route jump data according to the position of the object to be detected and the reproduction test scene of the object to be detected.
Accordingly, if the object to be tested can work independently, i.e., is an independently running object, the protocol structure of the replication test scenario protocol may include, but is not limited to, a protocol name, a replication test scenario name, and scenario function test data. The protocol name may specify information of the object to be measured, such as a name of the object to be measured. The reproduction test scene name can be used for designating the test scene of the object to be tested to be reproduced.
In a specific example, referring to the replication test scenario protocol shown in fig. 5, when the object to be tested is an object that runs alone, such as "baibuox app", only part of protocol structure data of an appointed applet in the replication test scenario protocol shown in fig. 5 needs to be deleted, so as to obtain the replication test scenario protocol for testing the domain name whitelist scene of "baibuox app". The protocol parameter, the reproduction function name and the reproduction function parameter construct a specific reproduction scene value of the independently operated object to be detected.
According to the technical scheme, the route jump data is determined by utilizing the analysis result of the reproduction test scene protocol, so that the fast switching and positioning of the reproduction test scene can be realized.
And S430, performing route distribution operation according to the route jump data so as to enter a functional scene of the object to be tested and serve as a reproduction test scene of the object to be tested.
Correspondingly, after the test equipment acquires the reproduction test scene protocol, the route skip data which is skipped to the reproduction test scene can be determined according to the analysis result of the reproduction test scene protocol, so that the route distribution operation is executed according to the route skip data, the function scene corresponding to the object to be tested is entered, and the function scene is used as the reproduction test scene of the object to be tested.
The route skip data determined by the reproduction test scene protocol can directly enter the functional scene corresponding to the object to be tested, so that the reproduction efficiency of the reproduction test scene is improved.
S440, acquiring scene function test data of the object to be tested according to the reproduction test scene protocol.
In a specific example, as shown in fig. 5, according to the protocol structure and the analysis result of the reproduction test scene protocol, all data except the positioning symbol "@" in the reproduction function parameter may be used as the scene function test data of the object to be tested.
S450, sending the scene function test data to an abnormal test tool.
The abnormal testing tool can be a tool for testing the object to be tested, can run on the side of the testing equipment, and can also run in remote equipment such as a server which is in communication connection with the testing equipment, so long as the abnormal testing tool can be matched with the testing equipment to perform abnormal testing on the object to be tested, and the operation environment of the abnormal testing tool is not limited in the embodiment of the disclosure.
S460, testing the reproduction test scene of the object to be tested according to the scene function test data through the abnormal test tool.
After the test equipment analyzes the reproduction test scene protocol to obtain scene function test data, the scene function test data can be sent to an abnormal test tool, and the abnormal test tool is used for testing the reproduction test scene of the object to be tested by using the scene function test data. Optionally, the abnormal testing tool may test sequentially according to the opening sequence of the reproduction testing scenario, or may test multiple reproduction testing scenarios in parallel, which is not limited by the embodiment of the present disclosure.
According to the technical scheme, the scene function test data are obtained based on the analysis of the reproduction test scene protocol, the reproduction test scene of the object to be tested is tested by using the abnormal test tool, the processing cost of the scene function test data is reduced, and the efficiency of the abnormal test of the object to be tested is improved.
Fig. 6 is a schematic flow chart of a test using a replication test scenario protocol according to an embodiment of the present disclosure. In a specific example, as shown in fig. 6, when a test scene protocol is repeated in the form of a two-dimensional code to test an object to be tested, test equipment first opens an APP having a two-dimensional code recognition function to scan the two-dimensional code. After the code scanning is completed, the reproduction function protocol, namely the reproduction test scene protocol, can be obtained. Further, the test equipment analyzes the acquired reproduction function protocol, acquires the reproduction function name and the reproduction function parameter, enters the reproduction function scene according to the analyzed reproduction function name, and tests the triggered reproduction function scene by utilizing the reproduction function parameter. After the test is completed, abnormal information can be collected, and early warning display can be carried out in a warning mode or uploaded to a relevant platform such as a log platform.
In an optional embodiment of the disclosure, the object to be tested may include an application to be tested, the reproduction test scenario may include a web page link response scenario, and the scenario function test data may include a domain name whitelist; the testing the reproduction test scene of the object to be tested according to the scene function test data may include: sequentially loading all website links in the domain name white list in the webpage link response scene; and under the condition that the website link cannot be normally loaded, determining that the white list of the domain name is abnormal.
The application program to be tested can be an applet to be tested, an application program or a system program which can be independently operated, and the like, and the embodiment of the disclosure does not limit the program type of the application program to be tested. The whitelist of domain names may include security controllable URL (uniform resource locator, uniform resource location system) addresses that allow access. It should be noted that, all the web page links included in the domain name whitelist are links that the application program to be tested needs to be loaded normally, and are not only web page links included in the domain name whitelist configured by the application program to be tested. Due to the error of the development process of a developer, partial web page links may be omitted from the white list of the domain name configured by the application program to be tested. The web page links respond to the scene, i.e., the scene of opening the web page.
In a specific example, the detection of anomalies in a white list of domain names of an application to be tested is specifically described. It will be appreciated that all network links included in the domain name whitelist should be able to respond normally and be able to jump to the corresponding web page with normal open links. Therefore, each website link in the domain name white list can be loaded in turn in the webpage link response scene, if the network link can be loaded normally, the webpage link is indicated to be normal; if the network link cannot be normally loaded, an abnormally loaded page as shown in fig. 7 appears, which indicates that the web link is abnormal and may not be added to the domain name white list of the application program configuration to be tested.
By using the domain name white list configured in the scene function test data to perform abnormality detection on the domain name white list of the application program to be tested, the abnormality problem of the domain name white list of the application program to be tested can be detected rapidly.
In an alternative embodiment of the present disclosure, the object to be tested may include an application to be tested, the recurring test scenario may include a login scenario, and the scenario functional test data may include a disabled account login parameter; the testing the reproduction test scene of the object to be tested according to the scene function test data may include: attempting to log in the application program to be tested through the forbidden account login parameter in the login scene; and under the condition that the login of the application program to be tested is successful, determining the abnormal login function of the application program to be tested.
The login scene is a scene that a user logs in an application program to be tested. The forbidden account login parameter may be an account login parameter forbidden to be adopted in the application program to be tested.
It can be appreciated that in the context of a user login application, a user may often use a plurality of different login modes to log in, such as an account password login mode, a fingerprint login mode, a single sign-on mode, and a face recognition login mode. However, some applications cannot support all login modes due to technical limitations. Therefore, the login scene can be used as a reproduction test scene, and the disabled account login parameter is configured in the scene function test data of the reproduction test scene protocol. When the login function of the application program to be tested is tested, the login of the application program to be tested can be tried in a login scene by disabling the account login parameter, and if the login success of the application program to be tested is determined, the user is indicated to log in the application program to be tested through disabling the account login parameter, and the login function of the application program to be tested is determined to be abnormal.
By using the forbidden account login parameters configured in the scene function test data to perform abnormal detection on the login function of the application program to be tested, the abnormal problem of the login function of the application program to be tested can be rapidly detected.
In an optional embodiment of the disclosure, the object to be tested may include an application to be tested, the reproduction test scenario may include a login scenario, and the scenario function test data may include an abnormal login parameter call sequence; the testing the reproduction test scene of the object to be tested according to the scene function test data may include: logging in the application program to be tested according to the abnormal logging parameter calling sequence in the logging scene; and determining that the login function of the application program to be tested is abnormal under the condition that the login state of the application program to be tested meets the abnormal login state.
The abnormal login parameter call sequence may be a call sequence of a login API (Application Programming Interface, application program interface).
It will be appreciated that in the context of a user logging into an application, there may be a restriction on the order in which the login API calls. For example, when the user logs out temporarily after logging in the application program to be tested, and needs to log in the application program to be tested again in a short time, if the login mechanism of the application program to be tested allows the user to log in the application program to be tested between the last logged-in information, the user does not need to re-execute the login operation, and can directly use the application program to be tested in the login state. Therefore, the login scene can be used as a reproduction test scene, and the abnormal login parameter calling sequence is configured in the scene function test data of the reproduction test scene protocol. When the login function of the application program to be tested is tested, the application program to be tested can be logged in according to the abnormal login parameter calling sequence in a login scene, and if the login state of the application program to be tested is determined to meet the abnormal login state, for example, the user is still required to log in the application program to be tested again in the user logged-in state, the login function of the application program to be tested is determined to be abnormal.
By using the abnormal login parameter call sequence configured in the scene function test data to perform abnormal detection on the login function of the application program to be tested, the abnormal problem of the login function of the application program to be tested can be detected rapidly.
Besides the test content, a tester can configure a reproduction test scene protocol according to specific test requirements, and repeatedly operate the reproduction test scene of the object to be tested according to the reproduction test scene protocol, and test the reproduction test scene of the object to be tested by using scene function test data of the reproduction test scene protocol. For example, the form scenario of the application to be tested may also be reproduced to test whether the form of the program is functioning properly, including but not limited to an input box test, a drop-down box test, a form submit button test, and the like. The deleting function of the application program to be tested can be reproduced to test whether the deleting function of the program is normal, including but not limited to, selecting no data, clicking to delete, and whether friendly prompt exists; selecting one piece of data, clicking to delete, and judging whether to prompt to delete the confirmation information or not, wherein secondary confirmation is needed; selecting full selection, clicking delete, noting whether all data is deleted, etc.
According to the technical scheme, the repeated test scene protocol is constructed according to the reasons for the occurrence of the abnormal problems, so that the repeated test environment is repeated through the repeated test scene protocol, and the repeated test environment is used for testing based on the repeated test environment, so that the on-line problems of the object to be tested and the cost for detecting the abnormal problems can be reduced, and the test efficiency of the abnormal problems can be improved.
It should be noted that any permutation and combination of the technical features in the above embodiments also belong to the protection scope of the present disclosure.
In one example, fig. 8 is a block diagram of a test apparatus provided in an embodiment of the present disclosure, where the embodiment of the present disclosure may be applicable to a case where a test scenario is repeated using a repeated test scenario protocol to test a test object, the apparatus is implemented in software and/or hardware, and is specifically configured in an electronic device. The electronic device may be a terminal device or a server device as a test device to execute a test method, so long as a reproduction test scenario protocol can be identified, and the embodiment of the present disclosure does not limit a specific device type of the electronic device.
A test apparatus 800 as shown in fig. 8, comprising: the reproduction test scenario protocol acquisition module 810, the reproduction test scenario execution module 820, the scenario function test data acquisition module 830, and the scenario test module 840. Wherein,,
The reproduction test scene protocol acquisition module 810 is configured to trigger a protocol access identifier of a reproduction test scene protocol, and acquire the reproduction test scene protocol according to a trigger result of the protocol access identifier;
a reproduction test scenario running module 820, configured to run a reproduction test scenario of the object to be tested according to the reproduction test scenario protocol;
a scene function test data acquisition module 830, configured to acquire scene function test data of the object to be tested according to the recurring test scene protocol;
the scene test module 840 is configured to test a reproduction test scene of the object to be tested according to the scene function test data.
According to the embodiment of the disclosure, the protocol access identifier of the reproduction test scene protocol is triggered, and the reproduction test scene protocol is acquired according to the triggering result of the protocol access identifier, so that the reproduction test scene of the object to be tested is operated according to the acquired reproduction test scene protocol, and the scene function test data of the object to be tested is acquired, so that the reproduction test scene of the object to be tested is tested according to the scene function test data, the problems of low test efficiency, high test cost and the like of the conventional test method are solved, the test efficiency can be improved, and the test cost is reduced.
Optionally, the protocol access identifier is a two-dimensional code; the reproduction test scenario protocol acquisition module 810 is specifically configured to: scanning or clicking to identify the two-dimensional code of the reproduction test scene protocol to obtain a two-dimensional code analysis result; and acquiring the reproduction test scene protocol according to the two-dimensional code analysis result.
Optionally, the protocol access identifier is a two-dimensional code; the reproduction test scenario protocol acquisition module 810 is specifically configured to: opening the website link of the reproduction test scene protocol; and acquiring the reproduction test scene protocol based on the jump result of the website link of the reproduction test scene protocol.
Optionally, the reproduction test scenario operation module 820 is specifically configured to: determining route jump data according to the reproduction test scene protocol; and executing route distribution operation according to the route jump data so as to enter the functional scene of the object to be tested as a reproduction test scene of the object to be tested.
Optionally, the object to be tested includes an applet to be tested; the reproduction test scenario operation module 820 is specifically configured to: determining a bearing program of the applet to be tested according to the protocol name of the reproduction test scene protocol; determining the to-be-tested object according to the designated test object name of the reproduction test scene protocol
A applet; determining the reproduction test scene of the small program to be tested according to the reproduction test scene name of the reproduction test scene protocol; and constructing the route jump data according to the bearing program of the applet to be tested, the applet to be tested and the reproduction test scene of the applet to be tested.
Optionally, the object to be tested includes an object that operates independently; the reproduction test scenario operation module 820 is specifically configured to: determining the object to be tested according to the protocol name of the reproduction test scene protocol;
determining a reproduction 0 test scene of the object to be tested according to the reproduction test scene name of the reproduction test scene protocol; and constructing the route jump data according to the position of the object to be detected and the reproduction test scene of the object to be detected.
Optionally, the scenario test module 840 is specifically configured to: transmitting the scene function test data to an anomaly test tool; and testing the reproduction test scene of the object to be tested according to the scene function test data through the abnormal test tool.
5 optionally, the object to be tested comprises an application to be tested, and the reproduction test scene comprises a network
Page link response scenarios, the scenario functional test data comprising a whitelist of domain names; the scenario test module 840 is specifically configured to: sequentially loading all website links in the domain name white list in the webpage link response scene; and under the condition that the website link cannot be normally loaded, determining that the white list of the domain name is abnormal.
0, wherein the object to be tested comprises an application to be tested, and the reproduction test scene comprises a log-in
Recording a scene, wherein the scene function test data comprise forbidden account login parameters; the scenario test module 840 is specifically configured to: attempting to log in the application program to be tested through the forbidden account login parameter in the login scene; and under the condition that the login of the application program to be tested is successful, determining the abnormal login function of the application program to be tested.
5 optionally, the object to be tested comprises an application to be tested, and the reproduction test scene comprises a log-in
Recording a scene, wherein the scene function test data comprise abnormal login parameter calling sequences; the scenario test module 840 is specifically configured to: logging in the application program to be tested according to the abnormal logging parameter calling sequence in the logging scene; and determining that the login function of the application program to be tested is abnormal under the condition that the login state of the application program to be tested meets the abnormal login state.
The test device can execute the test method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be found in the test method provided in any embodiment of the present disclosure.
Since the test apparatus described above is an apparatus capable of performing the test method in the embodiments of the present disclosure, those skilled in the art will be able to understand the specific implementation of the test apparatus of the present embodiment and various modifications thereof based on the test method described in the embodiments of the present disclosure, so how the test apparatus implements the test method in the embodiments of the present disclosure will not be described in detail herein. The apparatus used to implement the test methods of the embodiments of the present disclosure are within the scope of the present disclosure.
In one example, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
Fig. 9 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the apparatus 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM903 are connected to each other by a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
Various components in device 900 are connected to I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, or the like; an output unit 907 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, an optical disk, or the like; and a communication unit 909 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 909 allows the device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunications networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the respective methods and processes described above, such as a test method. For example, in some embodiments, the test method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into RAM903 and executed by the computing unit 901, one or more steps of the test method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the test method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome. The servers may also be servers of a distributed system or servers that incorporate blockchains.
According to the embodiment of the disclosure, the protocol access identifier of the reproduction test scene protocol is triggered, and the reproduction test scene protocol is acquired according to the triggering result of the protocol access identifier, so that the reproduction test scene of the object to be tested is operated according to the acquired reproduction test scene protocol, and the scene function test data of the object to be tested is acquired, so that the reproduction test scene of the object to be tested is tested according to the scene function test data, the problems of low test efficiency, high test cost and the like of the conventional test method are solved, the test efficiency can be improved, and the test cost is reduced.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (23)

1. A method of testing, comprising:
triggering a protocol access identifier of a reproduction test scene protocol, and acquiring the reproduction test scene protocol according to a triggering result of the protocol access identifier;
operating a reproduction test scene of the object to be tested according to the reproduction test scene protocol;
acquiring scene function test data of the object to be tested according to the reproduction test scene protocol;
and testing the reproduction test scene of the object to be tested according to the scene function test data.
2. The method of claim 1, wherein the protocol access identifier is a two-dimensional code; the protocol access identifier for triggering the reproduction test scene protocol, and acquiring the reproduction test scene protocol according to the triggering result of the protocol access identifier, comprises the following steps:
scanning or clicking to identify the two-dimensional code of the reproduction test scene protocol to obtain a two-dimensional code analysis result;
and acquiring the reproduction test scene protocol according to the two-dimensional code analysis result.
3. The method of claim 1, wherein the protocol access identifier is a web site link; the protocol access identifier for triggering the reproduction test scene protocol, and acquiring the reproduction test scene protocol according to the triggering result of the protocol access identifier, comprises the following steps:
Opening the website link of the reproduction test scene protocol;
and acquiring the reproduction test scene protocol based on the jump result of the website link of the reproduction test scene protocol.
4. The method of claim 1, wherein the running the reproduction test scenario of the object under test according to the reproduction test scenario protocol comprises:
determining route jump data according to the reproduction test scene protocol;
and executing route distribution operation according to the route jump data so as to enter the functional scene of the object to be tested as a reproduction test scene of the object to be tested.
5. The method of claim 4, wherein the object under test comprises an applet under test; the determining the route jump data according to the reproduction test scene protocol comprises the following steps:
determining a bearing program of the applet to be tested according to the protocol name of the reproduction test scene protocol;
determining the applet to be tested according to the designated test object name of the reproduction test scene protocol;
determining the reproduction test scene of the applet to be tested according to the reproduction test scene name of the reproduction test scene protocol;
and constructing the route jump data according to the bearing program of the applet to be tested, the applet to be tested and the reproduction test scene of the applet to be tested.
6. The method of claim 4, wherein the object under test comprises an independently running object; the determining the route jump data according to the reproduction test scene protocol comprises the following steps:
determining the object to be tested according to the protocol name of the reproduction test scene protocol;
determining the reproduction test scene of the object to be tested according to the reproduction test scene name of the reproduction test scene protocol;
and constructing the route jump data according to the position of the object to be detected and the reproduction test scene of the object to be detected.
7. The method of claim 1, wherein the testing the recurring test scenarios of the object under test according to the scenario functional test data comprises:
transmitting the scene function test data to an anomaly test tool;
and testing the reproduction test scene of the object to be tested according to the scene function test data through the abnormal test tool.
8. The method of claim 1, wherein the object under test comprises an application under test, the recurring test scenario comprises a web page link response scenario, and the scenario functional test data comprises a whitelist of domain names;
The step of testing the reproduction test scene of the object to be tested according to the scene function test data comprises the following steps:
sequentially loading all website links in the domain name white list in the webpage link response scene;
and under the condition that the website link cannot be normally loaded, determining that the white list of the domain name is abnormal.
9. The method of claim 1, wherein the object under test comprises an application under test, the recurring test scenario comprises a login scenario, and the scenario functional test data comprises a disabled account login parameter;
the step of testing the reproduction test scene of the object to be tested according to the scene function test data comprises the following steps:
attempting to log in the application program to be tested through the forbidden account login parameter in the login scene;
and under the condition that the login of the application program to be tested is successful, determining the abnormal login function of the application program to be tested.
10. The method of claim 1, wherein the object under test comprises an application under test, the recurring test scenario comprises a login scenario, and the scenario functional test data comprises an abnormal login parameter call order;
The step of testing the reproduction test scene of the object to be tested according to the scene function test data comprises the following steps:
logging in the application program to be tested according to the abnormal logging parameter calling sequence in the logging scene;
and determining that the login function of the application program to be tested is abnormal under the condition that the login state of the application program to be tested meets the abnormal login state.
11. A test apparatus comprising:
the reproduction test scene protocol acquisition module is used for triggering a protocol access identifier of the reproduction test scene protocol and acquiring the reproduction test scene protocol according to a triggering result of the protocol access identifier;
the reproduction test scene operation module is used for operating the reproduction test scene of the object to be tested according to the reproduction test scene protocol;
the scene function test data acquisition module is used for acquiring scene function test data of the object to be tested according to the reproduction test scene protocol;
and the scene test module is used for testing the reproduction test scene of the object to be tested according to the scene function test data.
12. The apparatus of claim 11, wherein the protocol access identifier is a two-dimensional code; the reproduction test scene protocol acquisition module is specifically configured to:
Scanning or clicking to identify the two-dimensional code of the reproduction test scene protocol to obtain a two-dimensional code analysis result;
and acquiring the reproduction test scene protocol according to the two-dimensional code analysis result.
13. The apparatus of claim 11, wherein the protocol access identifier is a web site link; the reproduction test scene protocol acquisition module is specifically configured to:
opening the website link of the reproduction test scene protocol;
and acquiring the reproduction test scene protocol based on the jump result of the website link of the reproduction test scene protocol.
14. The apparatus of claim 11, wherein the recurring test scenario execution module is specifically configured to:
determining route jump data according to the reproduction test scene protocol;
and executing route distribution operation according to the route jump data so as to enter the functional scene of the object to be tested as a reproduction test scene of the object to be tested.
15. The apparatus of claim 14, wherein the object under test comprises an applet under test; the reproduction test scene operation module is specifically configured to:
determining a bearing program of the applet to be tested according to the protocol name of the reproduction test scene protocol;
Determining the applet to be tested according to the designated test object name of the reproduction test scene protocol;
determining the reproduction test scene of the applet to be tested according to the reproduction test scene name of the reproduction test scene protocol;
and constructing the route jump data according to the bearing program of the applet to be tested, the applet to be tested and the reproduction test scene of the applet to be tested.
16. The apparatus of claim 14, wherein the object under test comprises an independently running object; the reproduction test scene operation module is specifically configured to:
determining the object to be tested according to the protocol name of the reproduction test scene protocol;
determining the reproduction test scene of the object to be tested according to the reproduction test scene name of the reproduction test scene protocol;
and constructing the route jump data according to the position of the object to be detected and the reproduction test scene of the object to be detected.
17. The apparatus of claim 11, wherein the scenario testing module is specifically configured to:
transmitting the scene function test data to an anomaly test tool;
and testing the reproduction test scene of the object to be tested according to the scene function test data through the abnormal test tool.
18. The apparatus of claim 11, wherein the object under test comprises an application under test, the recurring test scenario comprises a web page link response scenario, and the scenario functionality test data comprises a whitelist of domain names; the scene test module is specifically configured to:
sequentially loading all website links in the domain name white list in the webpage link response scene;
and under the condition that the website link cannot be normally loaded, determining that the white list of the domain name is abnormal.
19. The apparatus of claim 11, wherein the object under test comprises an application under test, the recurring test scenario comprises a login scenario, and the scenario functional test data comprises a disabled account login parameter; the scene test module is specifically configured to:
attempting to log in the application program to be tested through the forbidden account login parameter in the login scene;
and under the condition that the login of the application program to be tested is successful, determining the abnormal login function of the application program to be tested.
20. The apparatus of claim 11, wherein the object under test comprises an application under test, the recurring test scenario comprises a login scenario, and the scenario functional test data comprises an abnormal login parameter call order; the scene test module is specifically configured to:
Logging in the application program to be tested according to the abnormal logging parameter calling sequence in the logging scene;
and determining that the login function of the application program to be tested is abnormal under the condition that the login state of the application program to be tested meets the abnormal login state.
21. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the test method of any one of claims 1-10.
22. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the test method of any one of claims 1-10.
23. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the test method of any one of claims 1-10.
CN202211677648.3A 2022-12-26 2022-12-26 Test method, test device, electronic equipment and storage medium Pending CN116166536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211677648.3A CN116166536A (en) 2022-12-26 2022-12-26 Test method, test device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211677648.3A CN116166536A (en) 2022-12-26 2022-12-26 Test method, test device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116166536A true CN116166536A (en) 2023-05-26

Family

ID=86415677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211677648.3A Pending CN116166536A (en) 2022-12-26 2022-12-26 Test method, test device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116166536A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117421253A (en) * 2023-12-19 2024-01-19 深圳市智慧城市科技发展集团有限公司 Interface security test method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117421253A (en) * 2023-12-19 2024-01-19 深圳市智慧城市科技发展集团有限公司 Interface security test method, device, equipment and storage medium
CN117421253B (en) * 2023-12-19 2024-04-02 深圳市智慧城市科技发展集团有限公司 Interface security test method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108399114B (en) System performance testing method and device and storage medium
CN113114680B (en) Detection method and detection device for file uploading vulnerability
US20180357143A1 (en) Testing computing devices
CN109657475A (en) Code vulnerabilities check method, apparatus, equipment and storage medium
CN113792341B (en) Automatic detection method, device, equipment and medium for privacy compliance of application program
KR102488582B1 (en) Method and apparatus for verifying operation state of application
CN110119350A (en) Software Development Kit test method, device and equipment and computer storage medium
CN112906011A (en) Vulnerability discovery method, testing method, security testing method, related device and platform
CN111554219A (en) Display equipment testing method and device, electronic product and storage medium
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
CN116166536A (en) Test method, test device, electronic equipment and storage medium
CN111522749A (en) Page testing method and device, readable storage medium and electronic equipment
KR102162024B1 (en) Apparatus and method for checking problem of mobile communication network using operational logic modeling and comparative analysis
CN110134558B (en) Method and device for detecting server
CN115705190A (en) Method and device for determining dependence degree
CN111010308B (en) KVM service test method and device
CN113448795A (en) Method, apparatus and computer program product for obtaining system diagnostic information
CN116260643A (en) Security testing method, device and equipment for web service of Internet of things
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN111106979B (en) Method and equipment for switch threshold alarm test
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN110647458A (en) Testing method and device based on distributed testing platform and electronic equipment
CN117331758B (en) Verification method and device for target virtual machine mirror image, electronic equipment and storage medium
CN116915838B (en) State maintenance method for virtual private network, terminal 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