CN111258879A - Service test scheduling method and device based on page acquisition and intelligent terminal - Google Patents

Service test scheduling method and device based on page acquisition and intelligent terminal Download PDF

Info

Publication number
CN111258879A
CN111258879A CN201910228480.XA CN201910228480A CN111258879A CN 111258879 A CN111258879 A CN 111258879A CN 201910228480 A CN201910228480 A CN 201910228480A CN 111258879 A CN111258879 A CN 111258879A
Authority
CN
China
Prior art keywords
test
subtasks
testing
sub
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910228480.XA
Other languages
Chinese (zh)
Inventor
梁砾
邹海锋
何明璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Vispractice Technology Co ltd
Original Assignee
Shenzhen Vispractice Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Vispractice Technology Co ltd filed Critical Shenzhen Vispractice Technology Co ltd
Priority to CN201910228480.XA priority Critical patent/CN111258879A/en
Publication of CN111258879A publication Critical patent/CN111258879A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • 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 invention belongs to the technical field of automatic testing, and provides a service testing scheduling method, a service testing scheduling device and an intelligent terminal based on page acquisition, wherein the method comprises the following steps: collecting complete page operation actions of a user input service flow, and identifying and segmenting the complete page operation actions to obtain N sub-operation actions; generating a corresponding test main task according to the complete page operation action; generating N corresponding testing subtasks according to the N sub-operation actions, and establishing an incidence relation between the N testing subtasks and the testing main task; determining the sequence of executing the N test subtasks according to the sequence of the N sub-operation actions; calling corresponding task running ends to execute the N testing subtasks according to the sequence of executing the N testing subtasks; and acquiring the execution results of the N test subtasks, and performing summary analysis to obtain the test result of the test main task. The embodiment of the invention improves the flexibility of test execution.

Description

Service test scheduling method and device based on page acquisition and intelligent terminal
Technical Field
The invention belongs to the technical field of automatic testing, and particularly relates to a service testing scheduling method and device based on page acquisition and an intelligent terminal.
Background
The automated testing has been widely used in the construction process of IT systems, and the automated testing range includes interface testing, function testing, flow testing and the like. The process type test is usually based on an actual business scene, simulates user operation to perform the test, and is an indispensable test type in the automatic test.
However, with the expansion of the test range, the increase of the test cases faces the processes of code development, maintenance and task execution, in different test flows, the test codes in the same link overlap, if the overlapped codes change, the codes of a plurality of test cases need to be updated, and the test can be executed only according to a fixed flow, so that the test codes are redundant and the flexibility of test execution is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a service test scheduling method and apparatus based on page acquisition, and an intelligent terminal, which aim to solve the problems of code redundancy and low flexibility of test execution in the existing service test.
A first aspect of an embodiment of the present invention provides a service test scheduling method based on page acquisition, including:
collecting a complete page operation action of a user input service flow, and identifying and segmenting the complete page operation action to obtain N sub-operation actions; wherein N is ≧ 0 and an integer;
generating a corresponding test main task according to the complete page operation action;
generating N corresponding testing subtasks according to the N sub-operation actions, and establishing an incidence relation between the N testing subtasks and the testing main task;
determining the sequence of executing the N test subtasks according to the sequence of the N sub-operation actions;
calling corresponding task running ends to execute the N testing subtasks according to the sequence of executing the N testing subtasks;
and acquiring the execution results of the N test subtasks, and performing summary analysis to obtain the test result of the test main task.
In one embodiment, invoking the corresponding task running end to execute the N test subtasks before the N test subtasks are executed according to the sequence of executing the N test subtasks includes:
and mapping the N testing subtasks corresponding to the N sub-operation actions to corresponding task running ends.
In one embodiment, the task running end runs the corresponding automated testing code when executing the corresponding testing subtask;
and programming automatic test codes corresponding to the test subtasks in advance on the task running end.
In one embodiment, generating a corresponding test primary task according to the complete page operation action includes:
generating a corresponding test main task according to the sequence of the N sub-operation actions and the N sub-operation actions in the complete page operation action; the test main task comprises N sub-operation actions, and each sub-operation action is associated with a corresponding test sub-task in advance.
In one embodiment, the service test scheduling method further includes:
after a corresponding task execution end is called to execute an ith test subtask, if a result returned by the ith test subtask is received, the corresponding task execution end is controlled to release a resource of a process where the ith test subtask is executed; wherein 1 ≦ i ≦ N.
In one embodiment, before acquiring a complete page operation action of a business process input by a user, and identifying and segmenting the complete page operation action to obtain N sub-operation actions, the method further includes:
when receiving a service test instruction of a user, prompting the user to input a complete page operation action of a service flow to be tested.
A second aspect of the embodiments of the present invention provides a service test scheduling apparatus based on page acquisition, including:
the acquisition module is used for acquiring the complete page operation action of the business process input by the user, and identifying and segmenting the complete page operation action to obtain N sub-operation actions; wherein N is ≧ 0 and an integer;
the generating module is used for generating a corresponding testing main task according to the complete page operation action;
the establishing module is used for generating N corresponding testing subtasks according to the N sub-operation actions and establishing an incidence relation between the N testing subtasks and the testing main task;
the determining module is used for determining the sequence of executing the N testing subtasks according to the sequence of the N sub-operation actions;
the calling module is used for calling the corresponding task running end to execute the N test subtasks according to the sequence of executing the N test subtasks;
and the summarizing module is used for acquiring the execution results of the N testing subtasks and summarizing and analyzing the execution results to obtain the testing result of the testing main task.
In one embodiment, the service test scheduling apparatus further includes:
and the mapping module is used for mapping the N testing subtasks corresponding to the N sub-operation actions to the N task running ends.
A third aspect of the embodiments of the present invention provides an intelligent terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the steps of the above-described method.
In the embodiment of the invention, on one hand, the corresponding test subtasks are generated by collecting the corresponding sub-operation actions of the complete operation page input by the user, then the corresponding task execution terminals are called to execute the test subtasks according to the sequence of executing the test subtasks, and the corresponding task execution terminals are called to execute the test subtasks, so that when different test tasks execute the same test subtasks, the corresponding task execution terminals can be called to execute the test subtasks, thereby ensuring the independence of executing the test subtasks, and the corresponding task execution terminals are called to execute the test subtasks according to the sequence of executing the test subtasks, thereby accurately and flexibly scheduling the corresponding task execution terminals to execute the test subtasks, and further improving the flexibility of test execution. On the other hand, the complete page operation action of the user input business process is collected, the corresponding test main task is generated, and the business test case can be flexibly realized, so that the flexibility of test execution is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a service test scheduling method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a service test scheduling method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service test scheduling apparatus according to a third embodiment of the present invention
Fig. 4 is a schematic structural diagram of an intelligent terminal according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the sequence numbers of the steps in the method embodiments described below do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of each embodiment.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
The service test scheduling method based on page acquisition provided by the embodiment of the invention can be applied to desktop computers, notebooks, palm computers, cloud servers and other devices, and as shown in fig. 1, the service test scheduling method comprises the following steps:
step S101, collecting complete page operation actions of a user input service process, and identifying and segmenting the complete page operation actions to obtain N sub-operation actions;
in an embodiment of the present invention, N ≧ 0 is an integer. When detecting that a user inputs a complete page operation action of a business process, acquiring the complete page operation action input by the user, wherein the complete page operation action comprises an action track (such as an operation sequence and the like) of the user operation and user input data, identifying and segmenting the complete page operation action input by the user to obtain N sub-operation actions corresponding to the complete page operation action, and the obtained N sub-operations correspond to preset action services.
In one particular application, for example, the full page operation described above includes three information entered by the user, sign-on-query-purchase, and the order in which the three information were entered by the user. Therefore, the operation action of the complete page is identified and divided to obtain three sub-operation actions, and the three sub-operation actions correspond to preset action services. If the user inputs three actions of login, inquiry and purchase, but the preset action service does not "inquire" the single action, the complete page operation action is automatically identified and divided, and the three sub-operation actions of login, inquiry and purchase are obtained. The sub-operation acts may further include: logging out of the system, uploading/downloading files, addition, deletion, modification and the like of entities. For convenience of understanding, this is by way of illustration only and is not to be construed as limiting the invention.
Step S102, generating a corresponding test main task according to the complete page operation action;
in the embodiment of the present invention, the full page operation action includes an action track (such as an operation sequence) of a user operation and user input data. Therefore, the corresponding test main task can be generated according to the complete page operation action.
In one embodiment, generating a corresponding test primary task according to the complete page operation action includes: generating a corresponding test main task according to the sequence of the N sub-operation actions and the N sub-operation actions in the complete page operation action; the test main task comprises N sub-operation actions, and each sub-operation action is associated with a corresponding test sub-task in advance. The test subtasks may be executed by automated test code pre-deployed at the distributed nodes (i.e., task execution ends).
In one specific application, for example, a full page operation includes three actions entered by the user, login-query-purchase, and the user enters the order of the three actions, thus generating the corresponding test primary task as login-query-purchase; if the complete page operation includes three actions of query-login-purchase input by the user and the sequence of the three actions input by the user, the corresponding test main task is generated as query-login-purchase. Therefore, the inflexible setting that the execution sequence of each link of the flow is fixedly written by a tester every time a flow type test case is added can be avoided. For convenience of understanding, this is by way of illustration only and is not to be construed as limiting the invention.
Step S103, generating N corresponding test subtasks according to the N sub-operation actions, and establishing an incidence relation between the N test subtasks and the test main task.
In the embodiment of the present invention, each sub-operation that is stored is associated with a corresponding test sub-task in advance, for example, a query may have a test sub-task corresponding to the query, and the test sub-task may be executed by automated test code that is pre-deployed at a distributed node (i.e., a task execution end) where the corresponding test sub-task is located. The task running end can be deployed on the execution terminal of the invention according to the requirements of users, or on other execution terminals, or the task running end does not need a physical server, and can fully utilize the virtual container technology to establish a docker or a virtual machine as the task running end in real time in a cloud computing resource pool formed by a plurality of servers.
Step S104, determining the sequence of executing the N test subtasks according to the sequence of the N sub-operation actions;
in the embodiment of the invention, the sequence of the N sub-operations can be obtained according to the sequence of the user operation, the sequence of executing the N test sub-tasks is determined according to the sequence of the N sub-operation actions of the N sub-operations, and the sequence of executing the test sub-tasks by each task running end to be called can be determined.
And step S105, calling the corresponding task running end to execute the N test subtasks according to the sequence of executing the N test subtasks.
In the embodiment of the invention, the corresponding task running ends are called in sequence to execute the N test subtasks according to the sequence of executing the N test subtasks, so that the task execution ends are accurately scheduled to execute the test subtasks.
In one embodiment, when the corresponding task execution terminal is called to execute the test subtask, if user data is needed in the execution process, a prompt of inputting data is returned to the execution terminal to prompt the user to input information, for example, when the test subtask corresponding to the 'login' sub-operation is executed, a prompt of inputting a login name and a password by the user is needed to be input by the user, and a prompt of inputting the login name and the password by the user can be returned to the execution terminal to prompt the user to input a user name and a password. And when receiving user input information, using the input information as data used by the current sub-test task.
In one embodiment, invoking the corresponding task running end to execute the N test subtasks before the N test subtasks are executed according to the sequence of executing the N test subtasks includes: and mapping the N testing subtasks corresponding to the N sub-operation actions to corresponding task running ends. The test subtasks can be mapped to the corresponding task running end to be executed. Different test subtasks and task running ends for correspondingly executing the test subtasks are associated in advance, the different test subtasks can be mapped to the different task running ends, a plurality of test subtasks can also be mapped to the same task running end, and the setting can be carried out according to actual requirements, and the setting is not limited here.
In one embodiment, the task running end runs the corresponding automated testing code when executing the corresponding testing subtask; and programming automatic test codes corresponding to the test subtasks in advance on the task running end. The automatic test code is previously written in a python, ruby and other formats, and is pre-deployed to the task execution end.
And step S106, acquiring the execution results of the N test subtasks, and performing summary analysis to obtain the test result of the test main task.
In the embodiment of the invention, after the task running end executes the test subtask, the execution results of the test subtask are obtained and are subjected to summary analysis, so that the test result of the test main task can be obtained.
Therefore, in the embodiment of the invention, on one hand, the corresponding test subtasks are generated by collecting the corresponding sub-operation actions of the complete operation page input by the user, then the corresponding task execution ends are called to execute the test subtasks according to the sequence of executing the test subtasks, and the corresponding task execution ends are called to execute the test subtasks, so that when different test tasks execute the same test subtasks, the corresponding task execution ends can be called to execute the test subtasks, the independence of executing the test subtasks is ensured, the corresponding task execution ends are called to execute the test subtasks according to the sequence of executing the test subtasks, and the corresponding task execution ends can be accurately and flexibly scheduled to execute the test subtasks, thereby improving the flexibility of test execution. On the other hand, the complete page operation action of the user input business process is collected, the corresponding test main task is generated, and the business test case can be flexibly realized, so that the flexibility of test execution is further improved.
Example two
The service test scheduling method based on page acquisition provided by the embodiment of the invention can be applied to desktop computers, notebooks, palm computers, cloud servers and other devices, and as shown in fig. 2, the service test scheduling method comprises the following steps:
step S201, when receiving a service test instruction of a user, prompting the user to input a complete page operation action of a service process to be tested.
In the embodiment of the invention, if a user wants to start a service test, a service test instruction can be input, and when the service test instruction input by the user is received, the preset complete page operation action page information is called to prompt the user to input the complete page operation action of the service flow to be tested.
Step S202, collecting complete page operation actions of a user input service process, and identifying and segmenting the complete page operation actions to obtain N sub-operation actions;
in an embodiment of the present invention, N ≧ 0 is an integer.
Step S203, generating a corresponding test main task according to the complete page operation action;
and step S204, generating N corresponding test subtasks according to the N sub-operation actions, and establishing an incidence relation between the N test subtasks and the test main task.
Step S205, determining the sequence of executing the N test subtasks according to the sequence of the N sub-operation actions;
step S206, according to the sequence of executing the N test subtasks, calling the corresponding task running end to execute the N test subtasks.
Step S207, after the corresponding task execution end is called to execute the ith test subtask, if a result returned by the ith test subtask is received, the corresponding task execution end is controlled to release the resource of the process where the ith test subtask is executed;
in the embodiment of the present invention, 1 ≦ i ≦ N. After the corresponding task execution end executes the corresponding ith test subtask, if a result returned by the ith test subtask is obtained, the corresponding task execution end is controlled to release the resource of the process corresponding to the execution end, and if the command for releasing the resource of the corresponding process can be sent to the task execution end for control. So that the task running end corresponds to the process resource for being called by other test services.
And S208, acquiring the execution results of the N test subtasks, and performing summary analysis to obtain the test result of the test main task.
In this embodiment, where the steps are the same as or similar to those in the first embodiment, reference may be specifically made to the description of the first embodiment, and details are not repeated here.
Therefore, in the embodiment of the present invention, after the corresponding task execution end is called to execute the ith test subtask, if a result returned by the ith test subtask is received, the corresponding task execution end is controlled to release the resource of the process in which the ith test subtask is executed. When a plurality of main test tasks run, the task running end executing the same sub-test task can be called by the main test tasks and can be called by the next main test task after being released by the previous main test task, so that the resource utilization rate is improved, and the test completion time is shortened.
EXAMPLE III
An embodiment of the present invention provides a service test scheduling device based on page acquisition, which can be integrated in a desktop computer, a notebook, a palmtop computer, a cloud server, and other devices, and is configured to execute the method steps in the first embodiment or the second embodiment, for convenience of description, only the relevant parts of the present invention are shown, as shown in fig. 3, where the service test scheduling device 300 includes:
the acquisition module 301 is configured to acquire a complete page operation action of a service process input by a user, and identify and segment the complete page operation action to obtain N sub-operation actions; wherein N is ≧ 0 and an integer;
a generating module 302, configured to generate a corresponding test main task according to the complete page operation action;
in an embodiment, the generating module 302 is configured to generate a corresponding test main task according to a sequence of N sub-operation actions in the complete page operation action and the N sub-operation actions; the test main task comprises N sub-operation actions, and each sub-operation action is associated with a corresponding test sub-task in advance.
An establishing module 303, configured to generate N corresponding test subtasks according to the N sub-operation actions, and establish an association relationship between the N test subtasks and the test main task;
a determining module 304, configured to determine, according to the sequence of the N sub-operation actions, a sequence of executing the N test sub-tasks;
a calling module 305, configured to call a corresponding task running end to execute the N test subtasks according to a sequence of executing the N test subtasks;
in one embodiment, the task running end is used for running corresponding automatic test codes when corresponding test subtasks are executed; and programming automatic test codes corresponding to the test subtasks in advance on the task running end.
And the summarizing module 306 is configured to obtain the execution results of the N test subtasks, and perform summarizing analysis to obtain the test result of the test main task.
In one embodiment, the service test scheduling apparatus further includes:
and the mapping module is used for mapping the N testing subtasks corresponding to the N sub-operation actions to the N task running ends.
In one embodiment, the service test scheduling apparatus further includes:
the release module is used for controlling the corresponding task execution end to release resources of a process where the ith test subtask is executed if a result returned by the ith test subtask is received after the corresponding task execution end is called to execute the ith test subtask; wherein 1 ≦ i ≦ N.
In one embodiment, the service test scheduling apparatus further includes:
and the prompting module is used for prompting the user to input a complete page operation action of the service flow to be tested when the service test instruction of the user is received.
Therefore, in the embodiment of the invention, on one hand, the corresponding test subtasks are generated by collecting the corresponding sub-operation actions of the complete operation page input by the user, then the corresponding task execution ends are called to execute the test subtasks according to the sequence of executing the test subtasks, and the corresponding task execution ends are called to execute the test subtasks, so that when different test tasks execute the same test subtasks, the corresponding task execution ends can be called to execute the test subtasks, the independence of executing the test subtasks is ensured, the corresponding task execution ends are called to execute the test subtasks according to the sequence of executing the test subtasks, and the corresponding task execution ends can be accurately and flexibly scheduled to execute the test subtasks, thereby improving the flexibility of test execution. On the other hand, the complete page operation action of the user input business process is collected, the corresponding test main task is generated, and the business test case can be flexibly realized, so that the flexibility of test execution is further improved.
Example four
Fig. 4 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present invention. The smart terminal 400 includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, steps in the service test scheduling method embodiment based on page acquisition, for example, method steps in the first embodiment, or method steps in the second embodiment, are implemented.
Illustratively, the computer program 403 may be divided into one or more units/modules, which are stored in the memory 402 and executed by the processor 401 to implement the present invention. The one or more units/modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 403 in the intelligent terminal 400. For example, the computer program 403 may be divided into an acquisition module, a generation module, an establishment module, a determination module, a call module, a summary module, and the like, and specific functions of each module are described in the third embodiment, which is not described herein again.
The intelligent terminal 400 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The smart terminal 400 may include, but is not limited to, a processor 401 and a memory 402. It will be understood by those skilled in the art that fig. 4 is merely an example of the smart terminal 400 and is not intended to limit the smart terminal 400, and may include more or less components than those shown, or some components in combination, or different components, for example, the smart terminal 400 may further include input and output devices, network access devices, buses, etc.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 402 may be an internal storage unit of the smart terminal 400, such as a hard disk or a memory of the smart terminal 400. The memory 402 may also be an external storage device of the Smart terminal 400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the Smart terminal 400. Further, the memory 402 may include both an internal storage unit and an external storage device of the smart terminal 400. The memory 402 is used to store the computer programs and other programs and data required by the smart terminal 400. The memory 402 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the intelligent terminal may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the above-described modules or units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media excludes electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A service test scheduling method based on page acquisition is characterized by comprising the following steps:
collecting a complete page operation action of a user input service flow, and identifying and segmenting the complete page operation action to obtain N sub-operation actions; wherein N is ≧ 0 and an integer;
generating a corresponding test main task according to the complete page operation action;
generating N corresponding testing subtasks according to the N sub-operation actions, and establishing an incidence relation between the N testing subtasks and the testing main task;
determining the sequence of executing the N test subtasks according to the sequence of the N sub-operation actions;
calling corresponding task running ends to execute the N testing subtasks according to the sequence of executing the N testing subtasks;
and acquiring the execution results of the N test subtasks, and performing summary analysis to obtain the test result of the test main task.
2. The service test scheduling method according to claim 1, wherein, according to the sequence of executing the N test subtasks, before invoking the corresponding task running end to execute the N test subtasks, the method includes:
and mapping the N testing subtasks corresponding to the N sub-operation actions to corresponding task running ends.
3. The service test scheduling method of claim 2, wherein the task execution end executes a corresponding automated test code when executing a corresponding test subtask;
and programming automatic test codes corresponding to the test subtasks in advance on the task running end.
4. The service test scheduling method of claim 1, wherein generating a corresponding test primary task according to the complete page operation action comprises:
generating a corresponding test main task according to the sequence of the N sub-operation actions and the N sub-operation actions in the complete page operation action; the test main task comprises N sub-operation actions, and each sub-operation action is associated with a corresponding test sub-task in advance.
5. The traffic test scheduling method of claim 4, wherein the traffic test scheduling method further comprises:
after a corresponding task execution end is called to execute an ith test subtask, if a result returned by the ith test subtask is received, the corresponding task execution end is controlled to release a resource of a process where the ith test subtask is executed; wherein 1 ≦ i ≦ N.
6. The service test scheduling method according to any one of claims 1 to 5, wherein, before acquiring a complete page operation action of a service process input by a user, identifying and segmenting the complete page operation action to obtain N sub-operation actions, the method further comprises:
when receiving a service test instruction of a user, prompting the user to input a complete page operation action of a service flow to be tested.
7. A service test scheduling device based on page collection is characterized by comprising:
the acquisition module is used for acquiring the complete page operation action of the business process input by the user, and identifying and segmenting the complete page operation action to obtain N sub-operation actions; wherein N is ≧ 0 and an integer;
the generating module is used for generating a corresponding testing main task according to the complete page operation action;
the establishing module is used for generating N corresponding testing subtasks according to the N sub-operation actions and establishing an incidence relation between the N testing subtasks and the testing main task;
the determining module is used for determining the sequence of executing the N testing subtasks according to the sequence of the N sub-operation actions;
the calling module is used for calling the corresponding task running end to execute the N test subtasks according to the sequence of executing the N test subtasks;
and the summarizing module is used for acquiring the execution results of the N testing subtasks and summarizing and analyzing the execution results to obtain the testing result of the testing main task.
8. The traffic test scheduler according to claim 7, further comprising:
and the mapping module is used for mapping the N testing subtasks corresponding to the N sub-operation actions to the N task running ends.
9. An intelligent terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910228480.XA 2019-03-25 2019-03-25 Service test scheduling method and device based on page acquisition and intelligent terminal Pending CN111258879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910228480.XA CN111258879A (en) 2019-03-25 2019-03-25 Service test scheduling method and device based on page acquisition and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910228480.XA CN111258879A (en) 2019-03-25 2019-03-25 Service test scheduling method and device based on page acquisition and intelligent terminal

Publications (1)

Publication Number Publication Date
CN111258879A true CN111258879A (en) 2020-06-09

Family

ID=70948423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910228480.XA Pending CN111258879A (en) 2019-03-25 2019-03-25 Service test scheduling method and device based on page acquisition and intelligent terminal

Country Status (1)

Country Link
CN (1) CN111258879A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115525554A (en) * 2022-09-27 2022-12-27 北京瑞莱智慧科技有限公司 Automatic test method and system of model and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445681A (en) * 2016-08-31 2017-02-22 东方网力科技股份有限公司 Distributed task scheduling system and method
US20170060640A1 (en) * 2015-08-31 2017-03-02 Mstar Semiconductor, Inc. Routine task allocating method and multicore computer using the same
CN107451062A (en) * 2017-08-09 2017-12-08 百度在线网络技术(北京)有限公司 A kind of user interface traversal method of testing, device, server, storage medium
CN107832231A (en) * 2017-12-05 2018-03-23 郑州云海信息技术有限公司 A kind of system detection method, device and medium
US20180113780A1 (en) * 2016-10-26 2018-04-26 Yoongu Kim Systems and methods for discovering automatable tasks
CN109062780A (en) * 2018-06-25 2018-12-21 深圳市远行科技股份有限公司 The development approach and terminal device of automatic test cases

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170060640A1 (en) * 2015-08-31 2017-03-02 Mstar Semiconductor, Inc. Routine task allocating method and multicore computer using the same
CN106445681A (en) * 2016-08-31 2017-02-22 东方网力科技股份有限公司 Distributed task scheduling system and method
US20180113780A1 (en) * 2016-10-26 2018-04-26 Yoongu Kim Systems and methods for discovering automatable tasks
CN107451062A (en) * 2017-08-09 2017-12-08 百度在线网络技术(北京)有限公司 A kind of user interface traversal method of testing, device, server, storage medium
CN107832231A (en) * 2017-12-05 2018-03-23 郑州云海信息技术有限公司 A kind of system detection method, device and medium
CN109062780A (en) * 2018-06-25 2018-12-21 深圳市远行科技股份有限公司 The development approach and terminal device of automatic test cases

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115525554A (en) * 2022-09-27 2022-12-27 北京瑞莱智慧科技有限公司 Automatic test method and system of model and storage medium
CN115525554B (en) * 2022-09-27 2024-01-30 北京瑞莱智慧科技有限公司 Automatic test method, system and storage medium for model

Similar Documents

Publication Publication Date Title
CN108346028B (en) Business approval processing method, device and system
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
CN111899008B (en) Resource transfer method, device, equipment and system
CN112434982A (en) Task processing method, device and system, storage medium and electronic equipment
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN113792341A (en) Privacy compliance automation detection method, device, equipment and medium for application program
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN107357721B (en) Method and device for testing system
US11243868B2 (en) Application containerization based on trace information
CN112860538B (en) Method and device for carrying out interface regression test based on online log
CN111258879A (en) Service test scheduling method and device based on page acquisition and intelligent terminal
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN116955148A (en) Service system testing method, device, equipment, storage medium and product
CN115022201B (en) Data processing function test method, device, equipment and storage medium
CN113746924B (en) Cross-region transmission method and device for power grid business data
CN114564249A (en) Recommendation scheduling engine, recommendation scheduling method, and computer-readable storage medium
US20180004629A1 (en) Run time smf/rmf statistical formula methodology for generating enhanced workload data points for customer profiling visualization
CN114170006A (en) Information data acquisition method, device, equipment and medium based on state machine
CN114036523A (en) Vulnerability shooting range automatic building method and device based on virtualization technology
CN113392002A (en) Test system construction method, device, equipment and storage medium
CN112183982A (en) Workflow creating method and device, computer equipment and storage medium
CN112395081A (en) Resource online automatic recovery method, system, server and storage medium
CN115794353B (en) Cloud network service quality optimization processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination