Movatterモバイル変換


[0]ホーム

URL:


CN109753437B - Test program generation method and device, storage medium and electronic equipment - Google Patents

Test program generation method and device, storage medium and electronic equipment
Download PDF

Info

Publication number
CN109753437B
CN109753437BCN201910030105.4ACN201910030105ACN109753437BCN 109753437 BCN109753437 BCN 109753437BCN 201910030105 ACN201910030105 ACN 201910030105ACN 109753437 BCN109753437 BCN 109753437B
Authority
CN
China
Prior art keywords
page element
test action
test
element operation
user
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.)
Active
Application number
CN201910030105.4A
Other languages
Chinese (zh)
Other versions
CN109753437A (en
Inventor
刘艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co LtdfiledCriticalPing An Technology Shenzhen Co Ltd
Priority to CN201910030105.4ApriorityCriticalpatent/CN109753437B/en
Publication of CN109753437ApublicationCriticalpatent/CN109753437A/en
Application grantedgrantedCritical
Publication of CN109753437BpublicationCriticalpatent/CN109753437B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The present disclosure relates to a method and a device for generating a test program, which belongs to the technical field of test tools, and the method comprises: responding to the test request, and displaying a candidate test action list to a user; responsive to a user selection of a sequence of candidate test actions in the list of candidate test actions, recording a sequence of candidate test actions selected by the user in sequence; searching a corresponding relation table of the test actions and the page element operation sequences aiming at each candidate test action in the sequence of candidate test actions sequentially selected by a user to obtain the page element operation sequence of each candidate test action; linking page element operation sequences of each candidate test action in the sequence of candidate test actions selected by the user in sequence according to the sequence selected by the user, and running the page element operation sequences used by the test; and generating a corresponding test program according to the page element operation sequence used for the test. The method improves the efficiency of generating the test program and reduces the writing error of the test program.

Description

Test program generation method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the technical field of test tools, and in particular, to a test program generating method, a test program generating device, a computer-readable storage medium, and an electronic apparatus.
Background
Financial asset valuation systems are system software designed specifically for valuation of a financial asset. In the development and upgrade of a financial asset valuation system, the financial asset valuation system needs to be tested. Different testing operations, such as checking, clicking, etc., are required for different kinds of financial assets or different operational data agreeing to the financial assets, and thus different testing steps are required. The existing financial asset valuation system test program has the defects that after a programmer manually grabs various page elements of the financial asset valuation system, various operations of programming the page elements are high in labor cost, heavy in work content and easy to cause errors in the programming process.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a test program generating method, a test program generating apparatus, a computer-readable storage medium, and an electronic device.
According to a first aspect of the present disclosure, there is provided a test program generating method including:
Responding to the test request, and displaying a candidate test action list to a user;
Responsive to a user selection of a sequence of candidate test actions in the list of candidate test actions, recording a sequence of candidate test actions selected by the user in sequence;
searching a corresponding relation table of the test actions and the page element operation sequences aiming at each candidate test action in the sequence of candidate test actions sequentially selected by a user to obtain the page element operation sequence of each candidate test action;
Linking page element operation sequences of each candidate test action in the sequence of candidate test actions selected by the user in sequence according to the sequence selected by the user, and running the page element operation sequences used by the test;
And generating a corresponding test program according to the page element operation sequence used for the test.
In one exemplary embodiment of the present disclosure, before displaying the candidate test action list to the user in response to the test request, further comprising:
and establishing a candidate test action list, wherein each candidate test action in the candidate action test list is a test action in a corresponding relation table of the test action and the page element operation sequence.
In one exemplary embodiment of the present disclosure, after establishing the candidate test action list, the method further comprises:
responding to a test action list editing request of a user, and displaying a test action list editing interface to the user, wherein the test action list editing interface comprises a candidate test action deleting option;
responsive to the user selecting the delete candidate test action option, displaying a list of candidate test actions to the user;
Responsive to a user selection of a candidate test action in the candidate test action list, the selected candidate test action is deleted from the candidate test action list.
In one exemplary embodiment of the present disclosure, after establishing the candidate test action list, the method further comprises:
Responding to a test action list editing request of a user, and displaying a test action list editing interface to the user, wherein the test action list editing interface comprises an addition candidate test action option;
Responsive to the user selecting the add candidate test action option, displaying an input box of the added candidate test action to the user;
responding to the input of candidate test actions by a user in an input box, and determining whether the input candidate test actions exist in a corresponding relation table of the test actions and page element operation sequences;
and when the input candidate test action exists in the corresponding relation table of the test action and the page element operation sequence, adding the input candidate test action into the candidate test action list.
In one exemplary embodiment of the present disclosure, before displaying the candidate test action list to the user in response to the test request, the method further comprises:
Establishing a corresponding relation table of test actions and page element operation sequences;
And storing each pre-selected test action and the page element operation sequence corresponding to the pre-selected test action in a corresponding relation table of the test action and the page element operation sequence.
In an exemplary embodiment of the present disclosure, after establishing the test action and page element operation sequence correspondence table, the method further includes:
Responding to a corresponding relation editing request of a test action and a page element operation sequence of a user, and displaying a corresponding relation editing interface of the test action and the page element operation sequence to the user, wherein the corresponding relation editing interface of the test action and the page element operation sequence comprises a corresponding relation modification option of the test action and the page element operation sequence;
Responding to the user selection of the corresponding relation modification option of the test action and the page element operation sequence, and displaying the corresponding relation of the test action and the page element operation sequence in the corresponding relation table of the test action and the page element operation sequence to the user;
Responding to the selection of the corresponding relation between the test action and the page element operation sequence in the corresponding relation table of the test action and the page element operation sequence by a user, and placing the corresponding relation between the selected test action and the page element operation sequence in a modification state;
and receiving the modification of the corresponding relation between the selected test action and the page element operation sequence by the user in the modification state.
In an exemplary embodiment of the present disclosure, after establishing the test action and page element operation sequence correspondence table, the method further includes:
Responding to a corresponding relation editing request of a test action and a page element operation sequence of a user, and displaying a corresponding relation editing interface of the test action and the page element operation sequence to the user, wherein the corresponding relation editing interface of the test action and the page element operation sequence comprises a corresponding relation adding option of the test action and the page element operation sequence;
responding to the corresponding relation increasing option of the user selection test action and the page element operation sequence, and displaying a test action input box and a page element operation sequence input box to the user;
And responding to the input of the test action and the page element operation sequence by the user, and correspondingly storing the input test action and page element operation sequence into a corresponding relation table of the test action and the page element operation sequence.
According to a second aspect of the present disclosure, there is provided a test program generating apparatus including:
the display module is configured to respond to the test request and display a candidate test action list to a user;
A recording module configured to record a sequence of candidate test actions sequentially selected by a user in response to the sequential selection of candidate test actions in the list of candidate test actions by the user;
the acquisition module is configured to search a corresponding relation table of the test actions and the page element operation sequences aiming at each candidate test action in the sequence of candidate test actions sequentially selected by a user to obtain the page element operation sequence of each candidate test action;
The ordering module is configured to connect page element operation sequences of each candidate test action in the sequence of candidate test actions selected by the user in sequence according to the sequence selected by the user to form a page element operation sequence used for testing;
And the program generating module is configured to generate a corresponding test program according to the page element operation sequence used for the test.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a test program generating method as claimed in any one of the above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising:
A processor; and
A memory having a computer program stored thereon;
Wherein the processor is configured to implement the test program generating method according to any one of the preceding claims via execution of the computer program.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
Through the embodiments of the disclosure, by displaying a candidate test action list to a user, the user selects a candidate test action through the candidate test action list, the system records a sequence of the candidate action test selected by the user, generates a page operation element sequence corresponding to the sequence of the candidate action test, and generates a test program according to the page operation element sequence. Unlike available technology, which has high labor cost and easy error, the present invention has the candidate test action corresponding to the page operation element and the page operation element corresponding to the test program, so that the user can write the test program with high writing efficiency and no error.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 shows a flow diagram of a test program generation method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a process of establishing a table of correspondence between test actions and page element operation sequences, which is further included in the test program generating method of fig. 1 according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a correspondence between an edit test action and a page element operation sequence, which is further included in the test program generating method of fig. 2 according to an exemplary embodiment of the present disclosure.
Fig. 4 shows a block diagram of a test program generating device according to an exemplary embodiment of the present disclosure.
Fig. 5 shows an example block diagram of an electronic device for implementing the test program generation method described above, according to an example embodiment of the present disclosure.
Fig. 6 illustrates a computer-readable storage medium for implementing the test program generating method described above according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In this exemplary embodiment, a test program generating method is provided first, where the test program generating method may be executed on a terminal, and the terminal may be a mobile terminal (for example, a mobile phone, a portable computer, etc.), or a fixed terminal (for example, a working computer configured at a fixed location of an enterprise, etc.). Of course, those skilled in the art may also operate the method of the present invention on other platforms as required, and this is not a particular limitation in the present exemplary embodiment. Referring to fig. 1, fig. 1 is a flowchart illustrating a test program generating method according to an exemplary embodiment of the present disclosure, and in the embodiment shown in fig. 1, the test program generating method may include the steps of:
step S110, in response to the test request, displaying a candidate test action list to the user.
The test request refers to a request for requesting to start writing of the test program, and the test request may be sent by clicking a specific position on the interface (for example, a "writing start" button on the interface, etc.), or may be sent when a notification of upgrading the financial asset estimation system is received, which is not limited in this example. Candidate test actions refer to test operations, such as checkpointing, clicking, etc., performed in the testing of the financial asset valuation system. The candidate test action list refers to a table in which selectable candidate test actions are arranged. The candidate test action list may be a drop-down list or the like, or may be directly displayed in the middle of the page, which is not particularly limited in this example.
In an exemplary embodiment, before displaying the candidate test action list to the user in response to the test request, the method further comprises:
And establishing a candidate test action list, wherein each candidate test action in the candidate test action list is a test action in a corresponding relation table of the test action and the page element operation sequence.
In this exemplary embodiment, each candidate test action in the candidate test action list is recorded in the table of correspondence between test actions and page element operation sequences, so that the candidate test actions selected by the user in the candidate test action list can find the corresponding page element operation sequence through the table of correspondence between test actions and page element operation sequences.
Further, in an exemplary embodiment, after establishing the candidate test action list, the method further comprises:
responding to a test action list editing request of a user, and displaying a test action list editing interface to the user, wherein the test action list editing interface comprises a candidate test action deleting option;
responsive to the user selecting the delete candidate test action option, displaying a list of candidate test actions to the user;
Responsive to a user selection of a candidate test action in the candidate test action list, the selected candidate test action is deleted from the candidate test action list.
In this exemplary embodiment, the test action list edit request refers to a request for initiating editing of a candidate test action list, which may be generated and sent by a user clicking a specific area on the interface (e.g., an "initiate edit" button, etc.). When a test action list edit request is received, a test action list edit interface is displayed to the user, the interface including a delete candidate test action option. When the user selects the candidate test action deleting option, a candidate action test list is displayed to the user, and according to the selection (such as checking, dragging and the like) of the user on the candidate test action list, the candidate test action selected by the user is deleted from the candidate test action list, so that the user can edit conveniently.
In another exemplary embodiment, after establishing the candidate test action list, the method further comprises:
Responding to a test action list editing request of a user, and displaying a test action list editing interface to the user, wherein the test action list editing interface comprises an addition candidate test action option;
Responsive to the user selecting the add candidate test action option, displaying an input box of the added candidate test action to the user;
responding to the input of candidate test actions by a user in an input box, and determining whether the input candidate test actions exist in a corresponding relation table of the test actions and page element operation sequences;
and when the input candidate test action exists in the corresponding relation table of the test action and the page element operation sequence, adding the input candidate test action into the candidate test action list.
In this exemplary embodiment, when the user selects the add candidate test action option, an input box of the added candidate test action is displayed to the user, and the user can input the required added candidate test action in the input box, wherein the input can be the name or the number of the required added candidate test action, and the like, which is not particularly limited in this example. After the user input is completed, judging whether the candidate test action input by the user exists in a corresponding relation table of the test action and the page element operation sequence or not, so as to determine whether the input candidate test action can correspond to the page element operation sequence or not. When the input candidate test actions exist in the corresponding relation table of the test actions and the page element operation sequences, the candidate test actions input by the user are added into the candidate test action list.
Referring to fig. 2, fig. 2 is a schematic flow chart of establishing a correspondence table between test actions and page element operation sequences, where in the embodiment shown in fig. 2, before displaying a candidate test action list to a user in response to a test request, the method further includes:
step S210, a corresponding relation table of the test action and the page element operation sequence is established.
Step S220, each pre-selected test action and the page element operation sequence corresponding to the pre-selected test action are correspondingly stored in a corresponding relation table of the test action and the page element operation sequence.
In the exemplary embodiment, a page element operation sequence corresponding to each pre-selected test action is pre-configured, and each pre-selected test action and the page element operation sequence corresponding to the test action are correspondingly stored in a corresponding relation table of the test action and the page element operation sequence, so that the search is facilitated.
Referring to fig. 3, fig. 3 is a schematic flow chart of editing a correspondence between a test action and a page element operation sequence, where in the embodiment shown in fig. 3, the method further includes, after building a table of correspondence between test actions and page element operation sequences, the method further includes:
Step S310, responding to a request for editing the corresponding relation between the test action and the page element operation sequence of the user, and displaying an interface for editing the corresponding relation between the test action and the page element operation sequence to the user, wherein the interface for editing the corresponding relation between the test action and the page element operation sequence comprises a test action and page element operation sequence corresponding relation modification option.
Step S320, in response to the user selecting the corresponding relation modification option of the test action and the page element operation sequence, the corresponding relation of the test action and the page element operation sequence in the corresponding relation table of the test action and the page element operation sequence is displayed to the user.
The correspondence between the test action and the page element operation sequence in the page element operation sequence correspondence table may be displayed by a corresponding number (for example, a certain corresponding test action and page element operation sequence are all numbered 1, etc.), may be displayed by connecting the test action and the corresponding page element operation sequence, may also be displayed by placing the test action and the corresponding page element operation sequence in a corresponding position (for example, a certain corresponding test action and page element operation sequence are all placed in the first position of each queue, etc.), and the example is not limited in particular.
Step S330, in response to the user selecting the corresponding relation between the test action and the page element operation sequence in the corresponding relation table of the test action and the page element operation sequence, the corresponding relation between the selected test action and the page element operation sequence is put into a modification state.
The user may perform the relationship selection between the test action and the page element operation sequence by modifying the number of the test action and the page element operation sequence, may perform the relationship selection between the test action and the page element operation sequence by modifying the connection line between the test action and the page element operation sequence, may perform the relationship selection between the test action and the page element operation sequence at the positions of the respective queues by adjusting the positions of the test action and the page element operation sequence, and the like, which is not particularly limited in this example.
Step S340, the user is accepted to modify the corresponding relation between the selected test action and the page element operation sequence in the modification state.
In an exemplary embodiment, after establishing the test action and page element operation sequence correspondence table, the method further includes:
Responding to a corresponding relation editing request of a test action and a page element operation sequence of a user, and displaying a corresponding relation editing interface of the test action and the page element operation sequence to the user, wherein the corresponding relation editing interface of the test action and the page element operation sequence comprises a corresponding relation adding option of the test action and the page element operation sequence.
And responding to the selection of the corresponding relation increasing option of the test action and the page element operation sequence by the user, and displaying a test action input box and a page element operation sequence input box to the user.
And responding to the input of the test action and the page element operation sequence by the user, and correspondingly storing the input test action and page element operation sequence into a corresponding relation table of the test action and the page element operation sequence.
In the exemplary embodiment, through the setting of the option added according to the corresponding relation between the test action and the page element operation sequence, the user can add the test action and the page element operation sequence corresponding to the test action according to the actual requirement of the user, and the use is convenient.
Step S120, in response to the user selecting the sequence of the candidate test actions in the candidate test action list, recording the sequence of the candidate test actions sequentially selected by the user.
And the user selects the candidate test action in the candidate test action list according to the test action required by the test of the financial asset estimation system. Recording the selection sequence of the user and the candidate test actions selected by the user corresponding to the sequence to generate a sequence of candidate test actions, for example, the user selects a hook for the first time, selects a click for the second time, and so on. The record may be that a user clicks a candidate test action in the candidate test action list, generates a sequence number according to the clicking times, and stores the sequence number and the candidate test action corresponding to the sequence number; the candidate test actions in the candidate test action list may be dragged out of the list by the user to be arranged, and then sequentially numbered according to the dragged positions of the candidate test actions, where the sequential numbering may be automatic numbering from top to bottom, or automatic numbering from left to right, or the like, which is not particularly limited in this example.
Step S130, for each candidate test action in the sequence of candidate test actions sequentially selected by the user, searching a corresponding relation table of the test action and the page element operation sequence, and obtaining the page element operation sequence of each candidate test action.
Where a page element refers to an element in a page that is operable, such as a key, a checkbox, a hyperlink, etc. Page element operations refer to operational actions on page elements, such as: clicking on the page element, and so on. The page element operation sequence refers to a set of operation instructions on the page element required for completing each test action, and each test action corresponds to one page element operation sequence. For example: the page element operation sequence corresponding to the "checking" test action is as follows: click "tick box" -click "ok" key, etc.
The corresponding relation table of the test actions and the page element operation sequences can be preconfigured, and the page element operation sequence corresponding to each candidate test action in the sequence of the candidate test actions is obtained by searching the corresponding relation table of the test actions and the page element operation sequences according to the recorded sequence of the candidate test actions.
Step S140, connecting the page element operation sequences of each candidate test action in the sequence of candidate test actions selected by the user in sequence according to the sequence selected by the user to form a page element operation sequence used for testing.
And step S150, generating a corresponding test program according to the page element operation sequence used for the test.
In an exemplary embodiment, the program code segment corresponding to each page element operation is stored in advance, and generating the corresponding test program according to the page element operation sequence used for the test includes:
Acquiring a program code section corresponding to each page element operation in the page element operation sequence used for the test;
And assembling the program code segments corresponding to each page element operation according to the arrangement sequence of the page element operation in the page element operation sequence used for testing, so as to form a corresponding test program.
In the above exemplary embodiment, the program code segments refer to codes that can implement the corresponding page element operations, one for each page element operation. And combining corresponding program code segments according to a page element operation sequence to generate a test program capable of realizing the page element operation sequence.
The disclosure also provides a test program generating device. Referring to fig. 4, the test program generating apparatus may include a display module 410, a recording module 420, an acquisition module 430, a sorting module 440, and a program generating module 450. Wherein:
the display module 410 is configured to display a list of candidate test actions to a user in response to a test request.
The logging module 420 is configured to log a sequence of candidate test actions that are sequentially selected by a user in response to the sequential selection of candidate test actions in the list of candidate test actions by the user.
The obtaining module 430 is configured to search a table of correspondence between the test actions and the page element operation sequences for each candidate test action in the sequence of candidate test actions sequentially selected by the user, so as to obtain the page element operation sequence of each candidate test action.
The ranking module 440 is configured to concatenate the page element operation sequences of each candidate test action in the sequence of candidate test actions selected by the user in the order selected by the user to form a page element operation sequence for testing.
The program generation module 450 is configured to generate a corresponding test program according to the page element operation sequence used for the test.
The specific details of each module in the above test program generating device are described in detail in the corresponding test program generating method, so that the details are not repeated here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to such an embodiment of the invention is described below with reference to fig. 5. The electronic device 500 shown in fig. 5 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, and a bus 530 connecting the various system components, including the memory unit 520 and the processing unit 510.
Wherein the storage unit stores program code that is executable by the processing unit 510 such that the processing unit 510 performs steps according to various exemplary embodiments of the present invention described in the above section of the "exemplary method" of the present specification. For example, the processing unit 510 may perform step S110 as shown in fig. 1: responding to the test request, and displaying a candidate test action list to a user; step S120: responsive to a user selection of a sequence of candidate test actions in the list of candidate test actions, recording a sequence of candidate test actions selected by the user in sequence; step S130: searching a corresponding relation table of the test actions and the page element operation sequences aiming at each candidate test action in the sequence of candidate test actions sequentially selected by a user to obtain the page element operation sequence of each candidate test action; step S140: linking page element operation sequences of each candidate test action in the sequence of candidate test actions selected by the user in sequence according to the sequence selected by the user, and running the page element operation sequences used by the test; step S150: and generating a corresponding test program according to the page element operation sequence used for the test.
The storage unit 520 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 5201 and/or cache memory unit 5202, and may further include Read Only Memory (ROM) 5203.
The storage unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 530 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 500, and/or any device (e.g., router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 550. Also, electronic device 500 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 560. As shown, network adapter 560 communicates with other modules of electronic device 500 over bus 530. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 500, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 6, a program product 600 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (9)

CN201910030105.4A2019-01-112019-01-11Test program generation method and device, storage medium and electronic equipmentActiveCN109753437B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910030105.4ACN109753437B (en)2019-01-112019-01-11Test program generation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910030105.4ACN109753437B (en)2019-01-112019-01-11Test program generation method and device, storage medium and electronic equipment

Publications (2)

Publication NumberPublication Date
CN109753437A CN109753437A (en)2019-05-14
CN109753437Btrue CN109753437B (en)2024-06-25

Family

ID=66405558

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910030105.4AActiveCN109753437B (en)2019-01-112019-01-11Test program generation method and device, storage medium and electronic equipment

Country Status (1)

CountryLink
CN (1)CN109753437B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110348127B (en)*2019-07-122023-05-09北京物芯科技有限责任公司Method, device, equipment and storage medium for generating test cases
CN110781092A (en)*2019-11-072020-02-11北京博睿宏远数据科技股份有限公司Script testing method, device, terminal and storage medium
CN112579451A (en)*2020-12-222021-03-30建信金融科技有限责任公司Test method, device and equipment based on test element sequencing

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106326121A (en)*2016-08-222017-01-11上海亿账通互联网科技有限公司Method for automatically generating test script and terminal
CN106598869A (en)*2016-12-262017-04-26北京京东金融科技控股有限公司Method and device for realizing automatic software testing and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102306122A (en)*2011-09-142012-01-04北京星网锐捷网络技术有限公司Automated testing method and equipment
CN103984626B (en)*2014-05-132017-07-28华为技术有限公司A kind of method and device for generating test case script
CN105094511A (en)*2014-05-202015-11-25富士通株式会社Test case generating method and test case generating device
CN108255706A (en)*2017-11-272018-07-06平安科技(深圳)有限公司Edit methods, device, terminal device and the storage medium of automatic test script
CN108255709A (en)*2017-12-262018-07-06平安壹钱包电子商务有限公司Script tests method, apparatus, terminal device and the storage medium of written in code
CN108304329B (en)*2018-02-132020-12-15论客科技(广州)有限公司Test case design method and device, terminal and readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106326121A (en)*2016-08-222017-01-11上海亿账通互联网科技有限公司Method for automatically generating test script and terminal
CN106598869A (en)*2016-12-262017-04-26北京京东金融科技控股有限公司Method and device for realizing automatic software testing and electronic equipment

Also Published As

Publication numberPublication date
CN109753437A (en)2019-05-14

Similar Documents

PublicationPublication DateTitle
CN109739855B (en)Method and system for realizing data sheet splicing and automatically training machine learning model
CN112882953B (en)Automatic demonstration method and system of application program based on android debug bridge
CN111274154A (en)Automatic testing method, device, equipment and storage medium
CN111241111B (en)Data query method and device, data comparison method and device, medium and equipment
CN112015654B (en) Method and apparatus for testing
CN109753437B (en)Test program generation method and device, storage medium and electronic equipment
CN110716853A (en) A test script recording method, application program testing method and related device
CN110875858A (en)Application test data capturing method, system, equipment and storage medium
CN110597704B (en)Pressure test method, device, server and medium for application program
CN113296912B (en)Task processing method, device, system, storage medium and electronic equipment
CN111966335A (en)Platform creation method and device
CN111061522B (en)Method, device, equipment and storage medium for generating front-end card assembly based on back end
CN112905441A (en)Test case generation method, test method, device and equipment
CN109977005B (en)End-to-end test method, medium, device and computing equipment
CN113392002A (en)Test system construction method, device, equipment and storage medium
CN114356322B (en) Communication mapping method, device, equipment and storage medium for device configuration
CN114090514A (en) Log retrieval method and device for distributed system
CN110806981B (en)Application program testing method, device, equipment and storage medium
CN113760696A (en)Program problem positioning method and device, electronic equipment and storage medium
US9787552B2 (en)Operation process creation program, operation process creation method, and information processing device
CN113742240B (en) User interface testing method, device, storage medium and electronic device
CN110958243A (en)Network vulnerability submitting method and device, storage medium and electronic equipment
CN115269285A (en) Test method and apparatus, equipment, computer readable storage medium
CN116524986A (en)System level testing method and system for storage products
CN111563183A (en)Automatic generation method and device of visit record, computing equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp