CN113190451A - Test method, test device, electronic equipment and storage medium - Google Patents
Test method, test device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113190451A CN113190451A CN202110501156.8A CN202110501156A CN113190451A CN 113190451 A CN113190451 A CN 113190451A CN 202110501156 A CN202110501156 A CN 202110501156A CN 113190451 A CN113190451 A CN 113190451A
- Authority
- CN
- China
- Prior art keywords
- information
- positioning information
- current version
- target page
- element positioning
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 244
- 238000010998 test method Methods 0.000 title claims description 15
- 238000000034 method Methods 0.000 claims abstract description 31
- 238000012790 confirmation Methods 0.000 claims description 28
- 230000006870 function Effects 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 abstract description 9
- 238000012423 maintenance Methods 0.000 abstract description 7
- 238000011161 development Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 9
- 238000012986 modification Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test 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)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a testing method, a testing device, electronic equipment and a storage medium, relates to the technical field of computers, and particularly relates to the technical field of application testing and page development. The specific implementation scheme is as follows: sending current version information corresponding to a target page element to a server so that the server inquires element positioning information corresponding to the current version information; receiving element positioning information sent by the server; and testing the testing equipment according to the element positioning information. According to the embodiment of the application, the maintenance and updating efficiency cost of the page elements in the test process can be reduced, and the test efficiency is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application test technology, a page development technology, and the like, and more particularly, to a test method, an apparatus, an electronic device, and a storage medium.
Background
With the development of computer technology and the diversification of terminal functions, more and more application icons are applied to a user interface, and the style of the same icon changes frequently.
When a developer clicks an icon on a user interface, the user clicking operation can be generated through a testing tool and acts on the corresponding position of the icon, and the effect of simulating the user clicking the icon can be achieved. The test tool needs to acquire the accurate position of the icon to generate the click operation of the user.
Disclosure of Invention
The application provides a test method, a test device, electronic equipment and a storage medium.
According to an aspect of the present application, there is provided a test method including:
sending current version information corresponding to a target page element to a server so that the server inquires element positioning information corresponding to the current version information;
receiving element positioning information sent by the server;
and testing the testing equipment according to the element positioning information.
According to another aspect of the present application, there is provided a test method including:
receiving current version information corresponding to the target page element sent by the client,
inquiring element positioning information of the target page element under the current version information, and determining element positioning information corresponding to the current version information;
and sending the corresponding element positioning information to the client so that the client tests the test equipment according to the corresponding element positioning information.
According to another aspect of the present application, there is provided a test apparatus including:
the current version information sending module is used for sending current version information corresponding to a target page element to a server so that the server inquires element positioning information corresponding to the current version information;
the element positioning information receiving module is used for receiving the element positioning information sent by the server;
and the page function testing module is used for testing the testing equipment according to the element positioning information.
According to another aspect of the present application, there is provided a test apparatus including:
the current version information receiving module is used for receiving current version information corresponding to the target page element sent by the client;
the element positioning information query module is used for querying element positioning information of the target page element under the current version information and determining element positioning information corresponding to the current version information;
and the element positioning information feedback module is used for sending the corresponding element positioning information to the client so that the client tests the test equipment according to the corresponding element positioning information.
According to another aspect of the present application, there is provided 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 a test method as described in any of the embodiments of the present application.
According to another aspect of the present application, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a testing method according to any of the embodiments of the present application.
According to another aspect of the application, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a testing method according to any of the embodiments of the application.
According to the embodiment of the application, the maintenance and updating efficiency cost of the page elements in the test process can be reduced, and the test efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a schematic diagram of a testing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a testing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a method for storing element location information according to an embodiment of the present application;
fig. 4 is a schematic diagram of a method for acquiring element positioning information according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a testing method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a testing method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a testing method according to an embodiment of the present application;
FIG. 8 is a schematic view of a testing device according to an embodiment of the present application;
FIG. 9 is a schematic view of a testing device according to an embodiment of the present application;
FIG. 10 is a block diagram of an electronic device for implementing the testing method of an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a testing method disclosed in an embodiment of the present application, and this embodiment may be applied to a case where, in a case where a function of a page element of a testing device is tested, positioning information of the page element is acquired and an operation of triggering the page element by a user is simulated. The method of the embodiment may be executed by a testing apparatus, which may be implemented in a software and/or hardware manner, and is specifically configured in an electronic device with a certain data operation capability, where the electronic device may be a client device, a mobile phone, a tablet computer, a vehicle-mounted terminal, a desktop computer, and the like.
S101, sending current version information corresponding to a target page element to a server so that the server inquires element positioning information corresponding to the current version information.
The server is used for storing element positioning information of the page elements, storing element positioning information of a plurality of page elements and element positioning information of the page elements under various versions of information. The server can be understood as a cloud database for storing, modifying, querying and deleting element location information. A page element may refer to a constituent element of a user interface. The page element may be an object that can be operated by a user in the user interface, and when the operation object is clicked, slid, or detected, the page element corresponding to the operation object is actually operated. Illustratively, the page elements may include icons, tables, or areas, etc., which are presented on the user interface in the form of page elements. For example, the page element is an icon of an application or an avatar of a chat object, etc. The element location information is used to uniquely identify the page element. The page element is a visual image on the user interface and is in a fixed position on the user interface, and the information can uniquely determine the page element and can be used as element positioning information of the page element. The current version information is used to identify the element positioning information to identify the page element corresponding to the element positioning information, for example, the current version information is used to identify the element positioning information of the same application program in different versions, and the page element can be uniquely determined according to the element positioning information. The current version information is a query parameter of the element positioning information, the client can also send other query parameters corresponding to the target page element to the server, so that the server queries the element positioning information corresponding to the target page element in combination with the current version information, and the other query parameters refer to query parameters except the current version information. Illustratively, other query parameters include at least one of: identification information of the test script file, identification information of the execution step, information of the test device, and the like.
Wherein the element positioning information may include at least one of: an image of a page element, region information of the page element, identification information of the page element, and the like. The image of the page element may be an image obtained by capturing the page element in the user interface image. The region information of the page element may refer to position information of the page element in the user interface image, and for example, the position information may be determined by key points (e.g., two diagonal vertices) of a rectangular region of the image including the page element. The identification information of the page element may refer to information for distinguishing the page element, for example, an identification number (ID) of the page element in the user interface image, wherein the identification numbers of the same page element may be different in different user interface images.
S102, receiving the element positioning information sent by the server.
And the server inquires element positioning information according to the current version information and feeds the element positioning information back to the client.
S103, testing the testing equipment according to the element positioning information.
The element positioning information is further used for testing the test equipment, so as to query the corresponding target page element in the user interface according to the element positioning information, generate a trigger operation of a simulation user on the target page element for the target page element, and act on the target page element in the test equipment, so as to test the function of the test equipment, for example, the function may include a system function, and/or a function of an application program corresponding to the target page element. The client can generate the trigger operation of the simulation user on the target page element through the test module. The client is in communication connection with the testing device. The test module of the client can simulate the operation of the user on the test equipment. The test equipment is a device with functions to be tested, and the test equipment can display user interface images. Illustratively, the client is configured in a desktop computer, and the testing device is a mobile terminal electrically connected with the desktop computer, such as a mobile phone or a tablet computer.
In a specific example, the chat function of the application program, for example, the chat message sending function in the application program a, needs to (1) click an icon of the application program a on the user interface to jump to an application program page, (2) click a chat object icon on the application program page to jump to a chat page, (3) click a dialog box on the chat page, (4) input a test text in the dialog box, and (5) click a sending icon to complete sending of the chat message. The icon of the application program a, the chat object icon, the dialog box, the sending icon and the like are all page elements of the located page. For example, an icon for application A is a page element of the user interface; the chat object icon is a page element of the application page; a dialog box is a page element of a chat page; the send icon is a page element of the chat page.
In the prior art, application icons on a user interface of a mobile terminal frequently change. For example, an icon of an e-commerce application may adjust the image of the icon as the holiday or festive. When an automated user interface of the mobile terminal is tested, after the application program icon is frequently changed and the corresponding manual modification of the test script is needed, and the positioning data of the application program icon is maintained, the test module can correctly position the application program icon in the user interface, simulate the user operation, act on the application program icon, and execute the subsequent function test. Application icons frequently change, resulting in high labor and maintenance costs for testing, and manual modification, which is inefficient.
According to the technical scheme, the current version information corresponding to the target page element is sent to the server, the element positioning information corresponding to the current version information fed back by the server is received, and the element positioning information is provided for the test module to test the test equipment.
Fig. 2 is a flow chart of another testing method disclosed in the embodiments of the present application, which is further optimized and expanded based on the above technical solutions, and can be combined with the above various optional embodiments. Sending current version information corresponding to the target page element to the server, specifically: executing an execution step in the test script file by taking the target page element as an operation object to acquire current version information corresponding to the target page element; sending current version information corresponding to the target page element to the server; and, according to the element positioning information, testing the testing equipment, specifically: and according to the element positioning information, continuing to execute the execution step of taking the target page element as an operation object in the test script file, calling a test module, and testing the test equipment.
S201, sending current version information corresponding to a target page element to a server, so that the server inquires element positioning information corresponding to the current version information.
S202, receiving the element positioning information sent by the server.
S203, testing the testing equipment according to the element positioning information.
And S204, acquiring a user interface image of the test equipment.
The user interface image may refer to an image of a user interface generated by the test device and may be displayed through a display screen of the test device. Illustratively, the user interface image may be a user interface image of an android operating system.
S205, detecting the target page element in the user interface image to obtain element updating information.
The element updating information is used for updating element positioning information corresponding to the target page element in the server. The element update information may refer to element positioning information corresponding to a target page element under the current version information. The method includes detecting a target page element in a user interface image, and specifically acquiring at least one of an image of the target page element, an area of the target page element in the user interface image, identification information of the target page element in a user interface, and the like, and determining the target page element as element update information.
Optionally, the testing method further includes: the sending of the current version information corresponding to the target page element to the server includes: executing an execution step in the test script file by taking the target page element as an operation object to acquire current version information corresponding to the target page element; sending current version information corresponding to the target page element to the server; the testing equipment according to the element positioning information comprises: and according to the element positioning information, continuing to execute the execution step of taking the target page element as an operation object in the test script file, calling a test module, and testing the test equipment.
The test script file is used for being executed by the client and realizing automatic test on the test equipment, wherein the automatic test refers to the automatic test of the user interface. The test script file includes a plurality of execution steps. The test script files are configured with identification information to distinguish between different test script files. Each execution step is configured with identification information to distinguish the different execution steps. Different execution steps are used for testing different functions, for example, different page elements may be used as operation objects to perform operations, or different trigger operations may be performed on the same page element to implement testing different functions, and the like.
And the execution step taking the target page element as an operation object is used for executing the trigger operation of the target page element. When the execution step is executed, the version information of the application program represented by the target page element on the user interface of the test equipment is obtained, the current version information corresponding to the target page element is determined and sent to the server, the element positioning information of the target page element sent by the server is received, the test module is called according to the element positioning information, the user trigger operation is generated, and the user trigger operation acts on the target page element.
In addition, when the execution of the execution step of which the target page element is the operation object is completed, the next execution step in the test script file is continuously executed.
By executing the test script file and when executing the execution step that the target page element is the operation object, acquiring and sending the current version information, acquiring the element positioning information and calling the test module to test the test equipment, the element positioning information is acquired in the process execution process of testing the script file, the automatic test is executed, and in the scene of the application of the automatic test, the automatic acquisition of the element positioning information is realized, so that the labor cost of the automatic test can be reduced, the adaptability of the automatic test to different frequently-changed page elements is improved, and the stability and the test accuracy of the automatic test system are improved.
In a specific example, as shown in fig. 3, the method for storing element location information in the process of writing the test script file may include:
s210, compiling a test script file.
And inputting codes by a user and compiling a test script file.
S211, determining the clicked icon.
And determining an icon of the clicked application program on a user interface of the test equipment as a page element. Wherein, clicking can be replaced by sliding and other triggering operations.
S212, recording the icon of the clicked area, and executing S213 and S214.
Recording the icon of the clicked area may refer to obtaining the identification information of the test script file, the identification information of the execution step, the information of the test device, the current version information, the element positioning information, and the like. The identification information of the test script file uniquely identifies the test script file. The identification information of the execution step uniquely identifies the execution step. The information of the test device may include a device model or size, etc. The current version information may refer to a version model of the application program to be tested, and an icon of the application program to be tested on the user interface is a target page element.
S213, locally generating a test script file.
And the user continues to input the codes, writes the test script file, completes the development process and generates the test script file.
And S214, cloud storage.
And uploading the identification information of the test script file, the identification information of the execution step, the information of the test equipment, the current version information, the element positioning information and other information to a server for storage.
S215, record data, and configure the weight upper limit value.
The server stores information such as identification information of the test script file, identification information of the execution step, information of the test device, current version information, and element location information, and configures a weight value of the element location information to be a weight upper limit value, for example, 100.
In a specific example, as shown in fig. 4, the method for acquiring element location information during execution of the test script file may include:
s220, executing the test script file.
The client executes the test script file.
S221, executing the executing step taking the target page element as an operation object.
And the client sequentially executes the execution steps in the test script file. The client executes the execution steps taking the target page element as an operation object.
S222, acquiring element positioning information of the target page element.
The client side interacts with the server to obtain element positioning information of the target page element.
And S223, clicking the target page element according to the element positioning information.
And the client calls the test module according to the element positioning information to generate a click operation of the simulation user and click the target page element.
And S224, completing the execution and generating a report.
The client executes all execution steps in the test script file and generates a test report, wherein the test report is used for the execution result of each execution step, the exception positioning information and the like.
And S225, inquiring and feeding back element positioning information according to the received current version information.
The server acquires the current version information of the target page element, the identification information of the test script file, the identification information of the execution step, the information of the test equipment and the like through interaction with the client, and inquires corresponding element positioning information from a plurality of prestored element positioning information and feeds the corresponding element positioning information back to the client.
Optionally, the testing method further includes, when the execution of the test script file is completed, that: generating an element updating information confirmation item aiming at the execution step taking the target page element as an operation object, and displaying the element updating information confirmation item; receiving input information of a user for the element update information confirmation item; and sending the input information of the element updating information confirmation item to the server so as to enable the server to update the element positioning information of the target page element under the current version information.
And the element updating information confirmation item is used for judging whether the element updating information is element positioning information of the target page element under the current version information by the user. The element update information confirmation item corresponds to the execution step, and the element update information confirmation item of the page element is configured for each execution step that takes the page element as an operation object. The input information is used for the server to determine whether the element updating information is element positioning information of the target page element under the current version information. Illustratively, the element update information confirmation item includes: a confirm button and a deny button, and the input information is the button for which the user inputs the trigger operation (click or press, etc.). The user clicks a confirmation button to indicate that the element updating information is determined as the element positioning information of the target page element under the current version information, and the server can store the element updating information as the element positioning information of the target page element under the current version information; the user clicks the denial button to indicate that the element updating information is not determined to be the element positioning information of the target page element under the current version information, and the server can use the element positioning information stored in history as the element positioning information of the target page element under the current version information.
The element positioning information of the target page element stored in the server under the current version information is updated by acquiring an element updating information confirmation item of a user for the target page element, the element positioning information of the target page element under the current version information can be quickly adjusted in a manual mode, the element positioning information of the target page element stored in the server under the current version information is corrected, manual interference options are added, and therefore the accuracy of the element positioning information is improved.
S206, sending the element updating information to the server, so that the server updates the element positioning information of the target page element under the current version information according to the element updating information.
The server stores element positioning information of the same page element under different versions, element positioning information of a target page element in the server is updated through the element updating information, the element positioning information stored in the server can be automatically updated in real time, the labor cost for updating the element positioning information is reduced, and the updating efficiency of the element positioning information is improved.
Optionally, the testing device according to the element positioning information includes: and calling a test module according to the element positioning information, and testing the test equipment, wherein the test module is used for generating user trigger operation according to the element positioning information and acting on the test equipment so as to operate the target page element in the user interface.
The user trigger operation is used for performing a trigger operation on a target page element on a user interface of the test device, such as a click operation, a sliding operation or a detection operation. The user trigger operation is different from the actual operation performed by the user on the user interface. The user trigger operation is an operation generated by the test module and simulating the actual operation of the user. In fact, when an operation such as clicking on an operation object is performed on the user interface, the page element corresponding to the operation object is actually operated. The test module can inquire a target page element on the user interface according to the element positioning information, determine the target page element as an operation object, generate a trigger operation simulating a user, and act the trigger operation on the target page element. The test module may include an adb command module or a monkeyrounder module, etc.
The user trigger operation is generated through the test module and acts on the test equipment, the target page element on the user interface of the test equipment is triggered, the user operation can be simulated, the function test of the test equipment is realized, the automatic test is realized, the test efficiency is improved, and the labor cost of the test is reduced.
According to the technical scheme, the element updating information is obtained by detecting the target page elements and is sent to the server, so that the element positioning information corresponding to the target page elements stored by the server is updated, the element positioning information of the page elements is updated in real time, the updating labor cost of the element positioning information is reduced, and the updating efficiency of the element positioning information is improved.
Fig. 5 is a flowchart of a testing method disclosed in an embodiment of the present application, where the embodiment may be applied to a case where version information of a page element is obtained from a client and element positioning information is fed back when a page element function of a testing device is tested. The method of this embodiment may be executed by a testing apparatus, which may be implemented in a software and/or hardware manner, and is specifically configured in an electronic device with a certain data operation capability, where the electronic device may be a server-side device.
S301, receiving current version information corresponding to the target page element sent by the client.
Similar or identical features may be referred to the previous description.
S302, inquiring element positioning information of the target page element under the current version information, and determining element positioning information corresponding to the current version information.
The element location information of the target page element may be queried by the current version information. In addition, the server can also receive other query parameters sent by the client, and query the element positioning information of the target page element under the current version information by combining the current version information. Other query parameters include at least one of: identification information of the test script file, identification information of the execution step, information of the test device, and the like. If the server does not store the element positioning information under the current version information, the server can inquire the element positioning information under the historical version information stored in history, and determine the element positioning information corresponding to the current version information.
And S303, sending the corresponding element positioning information to the client, so that the client tests the test equipment according to the corresponding element positioning information.
According to the technical scheme, the server receives the current version information of the target page element, inquires corresponding element positioning information and sends the element positioning information to the client, the latest version of element positioning information can be sent to the client in the testing process of the testing equipment, the target page element is accurately positioned, the triggering operation of the target page element is achieved, the function testing of the testing equipment is achieved, meanwhile, the element positioning information of the page element is managed and maintained in the server in a centralized mode, the maintenance labor cost of the page element is reduced, and the maintenance and updating efficiency of the page element is improved.
Fig. 6 is a flowchart of another testing method disclosed in the embodiments of the present application, which is further optimized and expanded based on the above technical solutions, and can be combined with the above various alternative embodiments. Determining element positioning information corresponding to the current version information, specifically: under the condition that the query result is not empty, acquiring element positioning information of the target page element under the current version information; and under the condition that the query result is empty, querying element positioning information of the target page element under historical version information, and determining element positioning information corresponding to the current version information, wherein the historical version information and the current version information are adjacent version information.
S401, receiving current version information corresponding to the target page element sent by the client.
S402, inquiring element positioning information of the target page element under the current version information.
S403, under the condition that the query result is not empty, acquiring element positioning information of the target page element under the current version information.
And if the query result is not null, indicating that the server stores the element positioning information of the target page element under the current version information. When the server stores a plurality of element positioning information of the target page element under the current version information, one element positioning information can be screened according to the weight value configured by each element positioning information and fed back to the client.
S404, under the condition that the query result is empty, querying element positioning information of the target page element under the historical version information, and determining element positioning information corresponding to the current version information, wherein the historical version information and the current version information are adjacent version information.
And if the query result is null, indicating that the server does not store the element positioning information of the target page element under the current version information. The historical version information may refer to version information before the current version information, and the release time is adjacent to the release time of the current version information, that is, there is no other version information between the historical version information and the current version information.
In fact, the element positioning information under the historical version information is the same as or similar to the element positioning information under the current version information, and the element positioning information under the historical version information can be provided to the client in advance when the query result is empty, so that no information can be provided, and the stability of the automatic test is improved.
Optionally, the querying element positioning information of the target page element under the historical version information, and determining the element positioning information corresponding to the current version information include: acquiring weight values configured by the element positioning information of the target page element under the historical version information; selecting element positioning information with the highest weight value, and determining the element positioning information corresponding to the current version information to be stored; configuring the weight value of the element positioning information with the highest weight value as a first weight value, wherein the first weight value is smaller than a weight upper limit value.
A plurality of element positioning information exists in the target page element under the historical version information, and different weight values are configured in different element positioning information. The weighted value configured by the element positioning information is used for screening out element positioning information of the target page element under certain version information, wherein the screened element positioning information is the element positioning information which can represent the target page element most under the version information, for example, the element positioning information which is positioned to the target page element most accurately, and/or the element positioning information which is most similar to the visual image of the target page element. The element positioning information with the highest weight value can refer to the element positioning information which can represent the target page element most under the historical version information.
The element positioning information with the highest weight value is stored as the element positioning information corresponding to the current version information, and the element positioning information corresponding to the current version information can be directly acquired when the element positioning information corresponding to the current version information is inquired next time, so that iteration from the element positioning information corresponding to the historical version information to the element positioning information corresponding to the current version information is realized, the element positioning information corresponding to the current version information is automatically generated, and the element positioning information corresponding to the current version information can be prevented from being manually added.
Configuring the weight value of the element positioning information with the highest weight value as the first weight value means configuring the first weight value for the element positioning information corresponding to the current version information while storing the element positioning information with the highest weight value as the element positioning information corresponding to the current version information. The weight upper limit value is the maximum weight value of the element positioning information. The weight value of the element positioning information can be changed but is not larger than the weight upper limit value. The weight value of the element positioning information with the highest weight value is configured to be the first weight value smaller than the upper limit value of the weight, and when the element positioning information corresponding to the current version information is updated, a higher weight value can be configured for the more accurate element positioning information, so that the server can screen out the most accurate element positioning information according to the higher weight value and provide the most accurate element positioning information for the client, and the generation and updating accuracy of the element positioning information is improved.
By configuring the weighted value for the element positioning information, and when the element positioning information corresponding to the current version information is not stored, the element positioning information under the historical version information is used as the element positioning information corresponding to the current version information, and the first weighted value smaller than the upper limit value of the weighted value is configured, a modification space is provided for subsequently adding the more accurate element positioning information corresponding to the current version information, so that the server can update and iterate to obtain the more accurate element positioning information corresponding to the current version information, the modification content of the element positioning information is automatically updated and adapted, the modification accuracy of the element positioning information is improved, and the test accuracy of the client is improved.
S405, the corresponding element positioning information is sent to the client, so that the client tests the test equipment according to the corresponding element positioning information.
Optionally, the testing method further includes: receiving element updating information corresponding to the target page element; and updating the element positioning information of the target page element under the current version information according to the element updating information.
Updating the element positioning information of the target page element under the current version information according to the element updating information means that the element updating information is stored as the element positioning information under the current version, the page element on the user interface of the test equipment can be detected, accurate element positioning information is obtained and used as the element updating information, the element positioning information is stored in the server as the element positioning information under the current version, and the element positioning information under the current version information can be updated in real time according to the change of the page element. In the case where the element location information identical to the element update information has been prestored in the current version, the element update information may not be stored repeatedly.
The element positioning information under the current version information is updated according to the element updating information sent by the client, so that the updating real-time performance of the element positioning information under the current version information is improved, the most accurate element positioning information under the current version information is provided for the client, and the testing accuracy of the client is finally improved.
Optionally, the updating, according to the element update information, element positioning information of the target page element under the current version information includes: under the condition that the target page element has target element positioning information which is the same as the element updating information under the current version information, increasing the weight value of the target element positioning information; and under the condition that each element positioning information of the target page element under the current version information is different from the element updating information, determining the element updating information as the element positioning information under the current version information to be stored, configuring a second weight value, and reducing the weight value of each element positioning information under the current version information.
The target element location information is the same as the element update information. The target element positioning information is element positioning information of the target page element under the current version information. The target element positioning information exists, which indicates that the element updating information is the same as the element positioning information stored under the current version information, so that the target element positioning information is the element positioning information which can represent the target page element most in all the element positioning information under the current version information. And increasing the weight value of the target element positioning information to improve the probability that the server determines the target element positioning information as the element positioning information under the current version information and sends the element positioning information to the client.
The element positioning information and the element updating information under the current version information are different, which indicates that the element updating information is new element positioning information under the current version information. And adding the element updating information into each element positioning information under the current version information, and configuring a second weight value for the element updating information. The second weight value may be configured arbitrarily, may be the same as the first weight value, and may also be different. And reducing the weight value of each element positioning information under the current version information, and reducing the probability that the server determines the element positioning information except the element updating information as the element positioning information under the current version information and sends the element positioning information to the client.
By detecting whether the element updating information is stored as the positioning information of each element under the current version information, the weight value of the element updating information is relatively increased, and/or relatively reducing the weight values of other element positioning information, improving the probability that the element updating information is used as the element positioning information under the current version information and is sent to the client, and/or reduce the probability that other element positioning information is used as the element positioning information under the current version information and is sent to the client, continuously iterating according to the element updating information, increasing the weight value of the element updating information so as to enable the server to finally select the element updating information and send the element updating information to the client, therefore, the element positioning information of the target page element is updated, the accuracy of automatically updating the element positioning information is improved, the updating real-time performance of the element positioning information is improved, and the adaptation efficiency of the automatic test is improved.
Optionally, the testing method further includes: configuring a weight value of the element update information as a weight upper limit value in a case where the input information of the element update information confirmation item is received; and aiming at other element positioning information except the element updating information of the target page element under the current version information, reducing the weight value of configuration.
The server receives the input information of the element updating information confirmation item, and indicates that the element positioning information of the target page element can be represented by the element updating information determined manually. The weight value of the element updating information is configured to be the weight upper limit value, the weight values of other element positioning information except the element updating information are reduced, the weight value of the element updating information can be increased, the weight values of other element positioning information are reduced, the probability that the element updating information is used as the element positioning information under the current version information and is sent to the client side is increased to be the maximum probability, and the probability that other element positioning information is used as the element positioning information under the current version information and is sent to the client side is reduced.
The element positioning information of the target page element stored in the server under the current version information is updated according to the input information, the element positioning information of the target page element under the current version information can be quickly adjusted in a manual mode, the element positioning information of the target page element stored in the server under the current version information is corrected, manual interference options are added, the accuracy of the element positioning information is further improved, the iteration speed can be improved through manual adjustment, and the updating efficiency of the element positioning information is improved.
In a specific example, as shown in fig. 7, a method for adaptively updating element location information includes:
and S410, executing the test script file.
S411, executing the executing step taking the target page element as an operation object.
S412, element positioning information of the target page element is obtained.
And the client sends the current version information to the server and acquires the element positioning information fed back by the server under the current version information.
S413, inquiring element positioning information of the target page element under the current version information.
And the server inquires element positioning information of the target page element under the current version information.
S414, judging whether element positioning information under the current version information exists; if so, go to S416; otherwise, S415 is performed.
And the server inquires element positioning information of the target page element under the current version information.
S415, copying the element positioning information with the highest weight value under the historical version information to the element positioning information under the current version information, and configuring the weight value to be 90.
The weight upper limit value is 100. And under the condition that the query result is empty, the server queries the element positioning information of the target page element under the historical version information and determines the element positioning information corresponding to the current version information, wherein the historical version information and the current version information are adjacent version information.
And S416, acquiring element positioning information under the current version information.
And the server acquires the element positioning information of the target page element under the current version information under the condition that the query result is not empty.
S417, clicking the target page element according to the element positioning information.
And the client calls the test module according to the element positioning information to generate a click operation of the simulation user and click the target page element.
S418, element update information is generated.
The client acquires a user interface image of the test equipment; and detecting the target page element in the user interface image to obtain element updating information.
And S419, cloud storage.
And the client uploads the element updating information to the server for storage.
S420, judging whether the same element positioning information exists or not; if so, executing S421; otherwise, S422 is performed.
And the server judges whether the target page element has target element positioning information which is the same as the element updating information under the current version information.
S421, weight of element location information 1.2.
And the server increases the weight value of the target element positioning information under the condition that the target page element has the target element positioning information which is the same as the element updating information under the current version information.
S422, the weight of the element updating information is 50, and the weights of the rest element positioning information are-10.
And under the condition that the element positioning information and the element updating information of the target page element under the current version information are different, the server determines the element updating information as the element positioning information under the current version information to be stored, configures a second weight value and reduces the weight value of the element positioning information under the current version information.
And S423, finishing the execution and generating a report.
And the client executes the test script file to generate a report.
S424, the report provides a user element update information confirmation item.
The client generates an element updating information confirmation item aiming at the execution step taking the target page element as an operation object and displays the element updating information confirmation item
S425, upload the input information of the element update information confirmation item.
And the client uploads the input information of the element updating information confirmation item to the server.
S426, the weight of the element updating information is configured to be 100, and the weight of the rest element positioning information is modified to be 50.
The server configures the weight value of the element updating information as a weight upper limit value under the condition of receiving the input information of the element updating information confirmation item; and aiming at other element positioning information except the element updating information of the target page element under the current version information, reducing the weight value of the configuration.
According to the technical scheme, the element positioning information returned by the server is determined to be the element positioning information under the current version information or the element positioning information under the historical version information through the query result of the element positioning information of the target page element under the current version information, the element positioning information under the historical version information can be provided in advance when the element positioning information under the current version information is not stored, no information is provided, the stability of automatic testing is improved, meanwhile, the server stores the element positioning information of the historical version, the element positioning information of the low version can be traced back, the test application scene of the page element of the low version is adapted, and the application test compatibility of the low version is improved.
According to an embodiment of the present application, fig. 8 is a structural diagram of a testing apparatus in the embodiment of the present application, and the embodiment of the present application is suitable for acquiring positioning information of a page element and simulating a situation where a user triggers an operation of the page element in a case where a function of the page element is tested on a testing device. The device is realized by software and/or hardware and is specifically configured in electronic equipment with certain data operation capacity.
A test apparatus 500 as shown in fig. 8, comprising: a current version information sending module 501, an element positioning information receiving module 502 and a page function testing module 503; wherein,
a current version information sending module 501, configured to send current version information corresponding to a target page element to a server, so that the server queries element positioning information corresponding to the current version information;
an element positioning information receiving module 502, configured to receive element positioning information sent by the server;
and the page function testing module 503 is configured to test the testing device according to the element positioning information.
According to the technical scheme, the current version information corresponding to the target page element is sent to the server, the element positioning information corresponding to the current version information fed back by the server is received, and the element positioning information is provided for the test module to test the test equipment.
Further, the testing device further comprises: the user interface image acquisition module is used for acquiring a user interface image of the test equipment; the element updating information acquisition module is used for detecting the target page element in the user interface image to obtain element updating information; and the element updating information sending module is used for sending the element updating information to the server so that the server updates the element positioning information of the target page element under the current version information according to the element updating information.
Further, the module 501 for sending the current version information includes: the script execution unit is used for executing the execution step of taking the target page element as an operation object in the test script file and acquiring the current version information corresponding to the target page element; a current version information sending unit, configured to send current version information corresponding to the target page element to a server; the page function testing module 503 includes: and the script test unit is used for continuously executing the execution step which takes the target page element as an operation object in the test script file according to the element positioning information, calling a test module and testing the test equipment.
Further, the testing device further comprises: the element updating information confirmation display module is used for generating and displaying an element updating information confirmation item aiming at the execution step taking the target page element as an operation object under the condition that the execution of the test script file is finished; the user input information receiving module is used for receiving input information of a user aiming at the element updating information confirmation item; and the user input information sending module is used for sending the input information of the element updating information confirmation item to the server so as to enable the server to update the element positioning information of the target page element under the current version information.
Further, the page function testing module 503 includes: the test module calling unit is used for calling a test module according to the element positioning information and testing the test equipment, and the test module is used for generating user trigger operation according to the element positioning information and acting on the test equipment so as to operate the target page element in the user interface.
The target detection device can execute the test method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects for executing the test method.
According to an embodiment of the present application, fig. 9 is a structural diagram of a testing apparatus in the embodiment of the present application, and the embodiment of the present application is suitable for a case where version information of a page element is obtained from a client and element positioning information is fed back when a function of the page element is tested on a testing device. The device is realized by software and/or hardware and is specifically configured in electronic equipment with certain data operation capacity.
A test apparatus 600 as shown in fig. 9, comprising: a current version information receiving module 601, an element positioning information query module 602 and an element positioning information feedback module 603; wherein,
a current version information receiving module 601, configured to receive current version information corresponding to a target page element sent by a client;
an element positioning information query module 602, configured to query element positioning information of the target page element under the current version information, and determine element positioning information corresponding to the current version information;
an element positioning information feedback module 603, configured to send the corresponding element positioning information to the client, so that the client tests the test device according to the corresponding element positioning information.
According to the technical scheme, the server receives the current version information of the target page element, inquires corresponding element positioning information and sends the element positioning information to the client, the latest version of element positioning information can be sent to the client in the testing process of the testing equipment, the target page element is accurately positioned, the triggering operation of the target page element is achieved, the function testing of the testing equipment is achieved, meanwhile, the element positioning information of the page element is managed and maintained in the server in a centralized mode, the maintenance labor cost of the page element is reduced, and the maintenance and updating efficiency of the page element is improved.
Further, the element positioning information query module 602 includes: the current element positioning information acquisition unit is used for acquiring the element positioning information of the target page element under the current version information under the condition that the query result is not empty; and the historical element positioning information acquisition unit is used for inquiring the element positioning information of the target page element under the historical version information under the condition that the inquiry result is empty, and determining the element positioning information corresponding to the current version information, wherein the historical version information and the current version information are adjacent version information.
Further, the history element positioning information obtaining unit includes: the element positioning information weight acquiring subunit is used for acquiring weight values configured by each element positioning information of the target page elements under the historical version information; the element positioning information screening subunit is used for selecting the element positioning information with the highest weight value and determining the element positioning information corresponding to the current version information to be stored; and the element positioning information weight updating subunit is used for configuring the weight value of the element positioning information with the highest weight value as a first weight value, and the first weight value is smaller than the weight upper limit value.
Further, the testing device further comprises: the element updating information acquisition module is used for receiving element updating information corresponding to the target page element; and the current version element positioning information updating module is used for updating the element positioning information of the target page element under the current version information according to the element updating information.
Further, the module for updating the current version element location information includes: an element update information weight increasing unit, configured to increase a weight value of the target element location information when the target page element has target element location information that is the same as the element update information in the current version information; and adding element updating information, wherein the element updating information is used for determining the element updating information as the element positioning information under the current version to be stored, configuring a second weight value and reducing the weight value of each element positioning information under the current version information under the condition that each element positioning information of the target page element under the current version information is different from the element updating information.
Further, the testing device further comprises: the element updating information weight configuration module is used for configuring the weight value of the element updating information as a weight upper limit value under the condition of receiving the input information of the element updating information confirmation item; and the other element positioning information weight reducing module is used for reducing the configured weight value aiming at other element positioning information of the target page element under the current version information except the element updating information.
The target detection device can execute the test method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects for executing the test method.
There is also provided, in accordance with an embodiment of the present application, an electronic device, a readable storage medium, and a computer program product.
FIG. 10 shows a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present application. 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 10, the apparatus 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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 application, 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. A 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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 host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (15)
1. A method of testing, comprising:
sending current version information corresponding to a target page element to a server so that the server inquires element positioning information corresponding to the current version information;
receiving element positioning information sent by the server;
and testing the testing equipment according to the element positioning information.
2. The method of claim 1, further comprising:
acquiring a user interface image of the test equipment;
detecting the target page element in the user interface image to obtain element updating information;
and sending the element updating information to the server so that the server updates the element positioning information of the target page element under the current version information according to the element updating information.
3. The method of claim 1, wherein the sending current version information corresponding to the target page element to the server comprises:
executing an execution step in the test script file by taking the target page element as an operation object to acquire current version information corresponding to the target page element;
sending current version information corresponding to the target page element to a server;
the testing equipment according to the element positioning information comprises:
and according to the element positioning information, continuing to execute the execution step of taking the target page element as an operation object in the test script file, calling a test module, and testing the test equipment.
4. The method of claim 3, further comprising, upon completion of execution of the test script file:
generating an element updating information confirmation item aiming at the execution step taking the target page element as an operation object, and displaying the element updating information confirmation item;
receiving input information of a user for the element update information confirmation item;
and sending the input information of the element updating information confirmation item to the server so as to enable the server to update the element positioning information of the target page element under the current version information.
5. A method of testing, comprising:
receiving current version information corresponding to a target page element sent by a client;
inquiring element positioning information of the target page element under the current version information, and determining element positioning information corresponding to the current version information;
and sending the corresponding element positioning information to the client so that the client tests the test equipment according to the corresponding element positioning information.
6. The method of claim 5, wherein the determining element positioning information corresponding to the current version information comprises:
under the condition that the query result is not empty, acquiring element positioning information of the target page element under the current version information;
and under the condition that the query result is empty, querying element positioning information of the target page element under historical version information, and determining element positioning information corresponding to the current version information, wherein the historical version information and the current version information are adjacent version information.
7. The method of claim 6, wherein the querying element positioning information of the target page element under historical version information and determining element positioning information corresponding to the current version information comprises:
acquiring weight values configured by the element positioning information of the target page element under the historical version information;
selecting element positioning information with the highest weight value, and determining the element positioning information corresponding to the current version information to be stored;
configuring the weight value of the element positioning information with the highest weight value as a first weight value, wherein the first weight value is smaller than a weight upper limit value.
8. The method of claim 5, further comprising:
receiving element updating information corresponding to the target page element;
and updating the element positioning information of the target page element under the current version information according to the element updating information.
9. The method of claim 8, wherein the updating the element positioning information of the target page element under the current version information according to the element update information comprises:
under the condition that the target page element has target element positioning information which is the same as the element updating information under the current version information, increasing the weight value of the target element positioning information;
and under the condition that each element positioning information of the target page element under the current version information is different from the element updating information, determining the element updating information as the element positioning information under the current version information to be stored, configuring a second weight value, and reducing the weight value of each element positioning information under the current version information.
10. The method of claim 8, further comprising:
configuring a weight value of the element update information as a weight upper limit value in a case where the input information of the element update information confirmation item is received;
and aiming at other element positioning information except the element updating information of the target page element under the current version information, reducing the weight value of configuration.
11. A test apparatus, comprising:
the current version information sending module is used for sending current version information corresponding to a target page element to a server so that the server inquires element positioning information corresponding to the current version information;
the element positioning information receiving module is used for receiving the element positioning information sent by the server;
and the page function testing module is used for testing the testing equipment according to the element positioning information.
12. A test apparatus, comprising:
the current version information receiving module is used for receiving current version information corresponding to the target page element sent by the client;
the element positioning information query module is used for querying element positioning information of the target page element under the current version information and determining element positioning information corresponding to the current version information;
and the element positioning information feedback module is used for sending the corresponding element positioning information to the client so that the client tests the test equipment according to the corresponding element positioning information.
13. 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.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the testing method of any of claims 1-10.
15. A computer program product comprising a computer program which, when executed by a processor, implements a testing method according to any one of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110501156.8A CN113190451A (en) | 2021-05-08 | 2021-05-08 | Test method, test device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110501156.8A CN113190451A (en) | 2021-05-08 | 2021-05-08 | Test method, test device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113190451A true CN113190451A (en) | 2021-07-30 |
Family
ID=76984477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110501156.8A Pending CN113190451A (en) | 2021-05-08 | 2021-05-08 | Test method, test device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113190451A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113590496A (en) * | 2021-09-01 | 2021-11-02 | 建信金融科技有限责任公司 | Automatic testing method and device |
CN118503142A (en) * | 2024-07-19 | 2024-08-16 | 阿里云计算有限公司 | Test case modification method, device, storage medium and program product |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150370688A1 (en) * | 2014-06-20 | 2015-12-24 | Vmware, Inc. | Automatic updating of graphical user interface element locators based on dimension comparison |
CN109669873A (en) * | 2018-12-27 | 2019-04-23 | 拉扎斯网络科技(上海)有限公司 | User interface automatic test method and device, electronic equipment and storage medium |
CN110287101A (en) * | 2019-05-22 | 2019-09-27 | 深圳壹账通智能科技有限公司 | User interface automated testing method, device, computer equipment and storage medium |
CN111897740A (en) * | 2020-08-24 | 2020-11-06 | 北京字节跳动网络技术有限公司 | User interface testing method and device, electronic equipment and computer readable medium |
US20200356469A1 (en) * | 2019-05-10 | 2020-11-12 | Vmware, Inc. | Test automation systems and methods using logical identifiers |
-
2021
- 2021-05-08 CN CN202110501156.8A patent/CN113190451A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150370688A1 (en) * | 2014-06-20 | 2015-12-24 | Vmware, Inc. | Automatic updating of graphical user interface element locators based on dimension comparison |
CN109669873A (en) * | 2018-12-27 | 2019-04-23 | 拉扎斯网络科技(上海)有限公司 | User interface automatic test method and device, electronic equipment and storage medium |
US20200356469A1 (en) * | 2019-05-10 | 2020-11-12 | Vmware, Inc. | Test automation systems and methods using logical identifiers |
CN110287101A (en) * | 2019-05-22 | 2019-09-27 | 深圳壹账通智能科技有限公司 | User interface automated testing method, device, computer equipment and storage medium |
CN111897740A (en) * | 2020-08-24 | 2020-11-06 | 北京字节跳动网络技术有限公司 | User interface testing method and device, electronic equipment and computer readable medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113590496A (en) * | 2021-09-01 | 2021-11-02 | 建信金融科技有限责任公司 | Automatic testing method and device |
CN113590496B (en) * | 2021-09-01 | 2023-06-02 | 建信金融科技有限责任公司 | Automatic test method and device |
CN118503142A (en) * | 2024-07-19 | 2024-08-16 | 阿里云计算有限公司 | Test case modification method, device, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111984476B (en) | Test method and device | |
CN113704063B (en) | Performance monitoring method, device, equipment and storage medium of cloud mobile phone | |
CN113138927B (en) | Software function test method and device | |
CN113190451A (en) | Test method, test device, electronic equipment and storage medium | |
CN114389969B (en) | Method and device for testing client, electronic equipment and storage medium | |
CN112487312B (en) | Method and device for associating interest points and method and device for determining interest point state | |
CN113656315B (en) | Data testing method and device, electronic equipment and storage medium | |
CN116107589B (en) | Automatic compiling method, device and equipment of software codes and storage medium | |
CN112269706A (en) | Interface parameter checking method and device, electronic equipment and computer readable medium | |
KR20230006601A (en) | Alignment methods, training methods for alignment models, devices, electronic devices and media | |
CN114721686A (en) | Configuration data updating method and device, electronic equipment and storage medium | |
CN113127357B (en) | Unit test method, apparatus, device, storage medium, and program product | |
CN114328739A (en) | Data synchronization method, data reading method, data synchronization device, data reading device, electronic equipment, storage medium and product | |
CN113434432B (en) | Performance test method, device, equipment and medium for recommendation platform | |
CN115269431A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN114861773A (en) | Model training visualization method and device and cloud platform | |
CN114661274A (en) | Method and device for generating intelligent contract | |
CN114546799A (en) | Point burying log checking method and device, electronic equipment, storage medium and product | |
CN114327577A (en) | Code change determining method and device, electronic equipment and storage medium | |
CN113946357A (en) | Cloud application updating method, device, system, electronic equipment and computer medium | |
CN112966201A (en) | Object processing method, device, electronic equipment and storage medium | |
CN116521199B (en) | Component upgrading method, device, equipment and storage medium | |
CN114741072B (en) | Page generation method, device, equipment and storage medium | |
US11921608B2 (en) | Identifying a process and generating a process diagram | |
CN116993365A (en) | Identification method, device, equipment and storage medium of cheating equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |