CN115858331A - Task testing method and device, storage medium and electronic equipment - Google Patents

Task testing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115858331A
CN115858331A CN202210693527.1A CN202210693527A CN115858331A CN 115858331 A CN115858331 A CN 115858331A CN 202210693527 A CN202210693527 A CN 202210693527A CN 115858331 A CN115858331 A CN 115858331A
Authority
CN
China
Prior art keywords
test
task
testing
test system
information
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
CN202210693527.1A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202210693527.1A priority Critical patent/CN115858331A/en
Publication of CN115858331A publication Critical patent/CN115858331A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a task testing method, a task testing device, a storage medium and electronic equipment, wherein the method comprises the following steps: receiving a test request sent by a user terminal, and sending task submission page information to the user terminal in response to the test request so that the user terminal can display a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time; receiving test task information sent by a user terminal based on a task submission page, and determining a test task type based on the test task information; determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type; and calling the target test system to execute the test task corresponding to the test task information based on the test task information through the test system scheduling platform. According to the embodiment of the application, different types of test tasks can be integrated, a user can put the different types of test tasks into the same test system to test, and the test efficiency is high.

Description

Task testing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for task testing, a storage medium, and an electronic device.
Background
The system has many types to be tested, and for different types of test tasks, in the prior art, users are generally required to put different types of test tasks into different test systems to be tested, and the test efficiency is low because the different types of test tasks cannot be put into the same test system.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a task testing method and device, a storage medium and electronic equipment, which can integrate different types of testing tasks, so that users can put different types of testing tasks into the same testing system to test, and the testing efficiency is improved.
The embodiment of the application provides a task testing method, which comprises the following steps:
receiving a test request sent by a user terminal, and sending task submission page information to the user terminal in response to the test request so that the user terminal can display a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time;
receiving test task information sent by a user terminal based on the task submission page, and determining the type of the test task based on the test task information;
determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
and calling the target test system to execute the test task corresponding to the test task information based on the test task information through the test system scheduling platform.
In the task testing method according to the embodiment of the present application, the determining, based on the test task type, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform, where the test task information includes at least one test task data and a test task type corresponding to the test task data, includes:
determining a target test system for processing data of each test task from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
the calling the target test system to execute the test task corresponding to the test task information through the test system scheduling platform based on the test task information includes:
and calling each target test system to execute each test task based on the corresponding test task data through the test system scheduling platform.
In the task testing method according to the embodiment of the present application, the receiving test task information sent by the user terminal based on the task submission page, and determining the test task type based on the test task information include:
and receiving test task data sent by the user terminal based on the task submission page, and determining the type of the test task based on the test task data.
In the task testing method according to the embodiment of the present application, determining, based on the test task type, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform includes:
acquiring a task type mapping table, wherein the task type mapping table comprises mapping relations between a plurality of preset test systems and a plurality of test task types;
and searching the determined target test system corresponding to the test task type from the task type mapping table.
In the task testing method according to the embodiment of the present application, the method further includes: obtaining a test result corresponding to each test task data from the target test system;
generating a test report based on the test result, and storing the test report and the corresponding relation between the test report and a submitting user of the test task information;
responding to a report viewing request sent by the submitting user, acquiring the test report of the submitting user based on the corresponding relation, and displaying the test report to the submitting user.
In the task testing method according to the embodiment of the present application, the method further includes:
acquiring a test report corresponding to each test task data from the target test system through the test system scheduling platform;
the method further comprises the following steps:
storing the test report at the test system dispatch platform;
receiving a report query request of a user through the test scheduling platform, querying a corresponding test report from the test reports stored in the test scheduling platform based on the report query request, and displaying the queried test report to the user.
In the task testing method according to the embodiment of the application, the testing system platform is provided with a jump entry of each testing system, the jump entry is used for a user to jump from the testing system platform to the testing system, a testing report corresponding to testing task information is stored in the target testing system, and the target testing system is provided with an inquiry entry for the user to inquire the testing report.
An embodiment of the present application further provides a task testing apparatus, the apparatus includes:
the response module is used for receiving a test request sent by a user terminal and sending task submission page information to the user terminal in response to the test request so that the user terminal can display a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time;
the first determining module is used for receiving test task information sent by the user terminal based on the task submitting page and determining the type of the test task based on the test task information;
the second determining module is used for determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
and the execution module is used for calling the target test system to execute the test task corresponding to the test task information through the test system scheduling platform based on the test task information.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the task testing method according to any embodiment.
The embodiment of the application further provides an electronic device, which includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the task testing method according to any embodiment by calling the computer program stored in the memory.
According to the embodiment of the application, all types of test tasks are integrated by communicating all the test systems, when task testing is to be performed, only the test task information needs to be obtained, then the test task type is determined based on the test task information, the target test system corresponding to the test task type is determined from a plurality of preset test systems connected with the test system scheduling platform based on the test task type, and finally the target test system is called to execute the test task corresponding to the test task information through the test system scheduling platform based on the test task information, so that the test tasks of different types can be integrated, a user can place the test tasks of different types into the same test system to perform testing, and the testing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of a task testing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a task testing device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of another task testing device according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are intended to be within the scope of the present application.
The embodiment of the application provides a task testing method which can be applied to electronic equipment.
Referring to fig. 1, fig. 1 is a schematic flow chart of a task testing method according to an embodiment of the present disclosure. The task testing method is applied to electronic equipment, and can comprise the following steps:
step 101, receiving a test request sent by a user terminal, and sending task submission page information to the user terminal in response to the test request, so that the user terminal displays a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time.
The task submitting page can be used for a user to submit at least one piece of test task information at the same time, so that the user can submit a plurality of pieces of test task information only through one entrance.
The task submitting page provides a function for selecting a plurality of test task information, and a user can upload the plurality of test task information after selecting the function. And in the task submitting page, the user can increase the quantity of the test task information according to the requirement.
For example, when a user terminal sends a test request a, after receiving the test request a sent by the user terminal, the user terminal sends task submission page information to the user terminal in response to the test request a, so that a task submission page is displayed on the user terminal, and then the user can send the test task information on the task submission page.
And 102, receiving test task information sent by the user terminal based on the task submitting page, and determining the type of the test task based on the test task information.
The test task types can include unit tests, smoking tests, system tests, regression tests, benchmark tests, acceptance tests, load tests, pressure tests, stability tests, process experiments, node experiments, system resource experiments, network experiments, disk experiments, database experiments, message queue experiments, gateway experiments, associated microservice experiments and the like.
And 103, determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type.
The preset test systems are communicated, each test task is provided with a corresponding preset test system, and each test task at least corresponds to one test system. For example, five preset test systems are connected to the test system scheduling platform and respectively marked as a first preset test system, a second preset test system, a third preset test system, a fourth preset test system and a fifth preset test system, the first preset test system is respectively communicated with the second preset test system, the third preset test system, the fourth preset test system and the fifth preset test system, the second preset test system is respectively communicated with the first preset test system, the third preset test system, the fourth preset test system and the fifth preset test system, the third preset test system is respectively communicated with the first preset test system, the second preset test system, the fourth preset test system and the fifth preset test system, the fourth preset test system is respectively communicated with the first preset test system, the second preset test system, the third preset test system and the fifth preset test system, and the fifth preset test system is respectively communicated with the first preset test system, the second preset test system, the third preset test system and the fourth preset test system. The smoking test corresponds to a first preset test system, the benchmark test corresponds to a second preset test system, the process experiment corresponds to a third preset test system, the unit test corresponds to a fourth preset test system, and the system test corresponds to a fifth preset test system. When one test task corresponds to one preset test system, the preset test system is the target test system, and when one test task corresponds to a plurality of preset test systems, one preset test system can be selected from the plurality of preset test systems to serve as the target system.
The test system scheduling platform may implement scheduling of the preset test system based on a star link (starlink) system, for example, the test system scheduling platform implements scheduling of the preset test system by performing information interaction with the preset test system through the star link system.
And 104, calling the target test system to execute the test task corresponding to the test task information through the test system scheduling platform based on the test task information.
After the target test system is determined, the target test system is directly called by the test system scheduling platform to execute the test task corresponding to the test task information.
In some embodiments, the determining, by the test task information, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform based on the test task type includes:
determining a target test system for processing data of each test task from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
the step of calling the target test system to execute the test task corresponding to the test task information through the test system scheduling platform based on the test task information comprises the following steps:
and calling each target test system to execute respective test task based on the corresponding test task data through the test system scheduling platform.
The test task information includes at least one test task data and a test task type corresponding to the test task data, that is, one user can simultaneously submit a plurality of different types of test tasks for testing, and the plurality of test tasks correspond to the plurality of test task data.
For example, when a user submits two different types of test tasks a and B simultaneously, a target test system a for processing test task data 1 corresponding to the test task a is determined from a plurality of preset test systems connected to a test system scheduling platform based on the test task a, a target test system B for processing test task data 2 corresponding to the test task B is determined from a plurality of preset test systems connected to the test system scheduling platform based on the test task B, and then the target test system a is called to execute the test task a based on the test task data 1 and the target test system B is called to execute the test task B based on the test task data 2 through the test system scheduling platform.
In some embodiments, the determining, by the receiving user terminal, a test task type based on the test task information sent by the task submission page includes:
and receiving test task data sent by the user terminal based on the task submitting page, and determining the type of the test task based on the test task data.
The task submitting page can be used for a user to simultaneously submit at least one piece of test task data and test task types corresponding to the test task data, so that the user can submit multiple types of test tasks only through one entry.
The task submitting page provides a function of selecting a plurality of types of test tasks, and a user can upload data after selecting the types. In the task submitting page, the user can increase the number of the test task data according to the requirement, so that the submitted task test information comprises at least one test task data and a corresponding test task type.
In some embodiments, the determining, based on the test task type, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform includes:
acquiring a task type mapping table, wherein the task type mapping table comprises mapping relations between a plurality of preset test systems and a plurality of test task types;
and searching and determining a target test system corresponding to the test task type from the task type mapping table.
The method comprises the steps of establishing a task type mapping table in advance, wherein the task type mapping table comprises mapping relations between a plurality of preset test systems and a plurality of test task types, so that after the test task types are determined, the task type mapping table can be obtained, and then a target test system corresponding to the test task types is searched and determined through the task type mapping table.
In some embodiments, the task testing method further comprises:
obtaining a test result corresponding to each test task data from the target test system;
generating a test report based on the test result, and storing the test report and the corresponding relation between the test report and a submitting user of the test task information;
and responding to a report viewing request sent by the submitting user, acquiring the test report of the submitting user based on the corresponding relation, and displaying the test report to the submitting user.
When the test report is stored, the corresponding relation between the test report and a submitting user of the test task information is stored, so that the test report of the submitting user can be acquired based on the corresponding relation when a report checking request sent by the user is received subsequently. For example, the test report a is generated based on the test task data in the test task information B, the test task information B is submitted by the user C, and when the test report a is stored, the user C is also stored to express the corresponding relationship between the test report a and the user C, and the user C is referred to as the submitting user of the test task information B. And when a report query request sent by the user C is received subsequently, the test report A can be directly obtained through the user C based on the corresponding relation between the user C and the test report A, and then the test report A is displayed to the user C.
In some embodiments, the task testing method further comprises:
acquiring a test report corresponding to each test task data from the target test system through the test system scheduling platform;
the method further comprises the following steps:
storing the test report at the test system dispatch platform;
receiving a report query request of a user through the test scheduling platform, querying a corresponding test report from the test reports stored in the test scheduling platform based on the report query request, and displaying the queried test report to the user.
The report query request includes query conditions, such as at least one of a user identifier, a query time period, a test task type of the query, and the like.
That is, the test report may be stored in the target test system, or may be stored in the test system scheduling platform. The test system scheduling platform acquires the test report corresponding to each test task data from the target test system, stores the test report in the test system scheduling platform, can directly receive a report query request of a user through the test scheduling platform, directly queries the corresponding test report from the test scheduling platform based on the request, and displays the test report to the user.
In some embodiments, the test system platform is provided with a jump entry of each test system, the jump entry is used for a user to jump from the test system platform to the test system, the target test system stores a test report corresponding to the test task information, and the target test system is provided with an inquiry entry for the user to inquire the test report.
The test report can be stored in the test system scheduling platform and also can be stored in the target test system.
The query entry may be a control corresponding to each test system displayed on the page, and an icon or text description information of the test system is displayed on the control.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the task testing method provided in the embodiment of the present application integrates all types of test tasks by linking each test system, when a task test is to be performed, only the test task information needs to be obtained, then the test task type is determined based on the test task information, a target test system corresponding to the test task type is determined from a plurality of preset test systems connected to the test system scheduling platform based on the test task type, and finally, the target test system is called by the test system scheduling platform based on the test task information to execute the test task corresponding to the test task information, so that different types of test tasks can be integrated, users can place different types of test tasks into the same test system to perform the test, and further, the test efficiency is improved.
The embodiment of the application also provides a task testing device, and the task testing device can be integrated in the electronic equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a task testing device according to an embodiment of the present disclosure. The task testing device 30 may include:
a response module 31, configured to receive a test request sent by a user terminal, and send task submission page information to the user terminal in response to the test request, so that the user terminal displays a task submission page, where the task submission page allows a user to submit at least one piece of test task information at the same time;
a first determining module 32, configured to receive test task information sent by the user terminal based on the task submission page, and determine a test task type based on the test task information;
a second determining module 33, configured to determine, based on the test task type, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform;
and the execution module 34 is configured to invoke, by the test system scheduling platform, the target test system to execute the test task corresponding to the test task information based on the test task information.
In some embodiments, the first determining module 32 is configured to receive test task data sent by the user terminal based on the task submission page, and determine the type of the test task based on the test task data.
In some embodiments, the second determining module 33 is configured to determine, by using the test task information including at least one test task data and a test task type corresponding to the test task data, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform based on the test task type, and includes:
and determining a target test system for processing data of each test task from a plurality of preset test systems connected with the test system scheduling platform based on the test task type.
In some embodiments, the second determining module 33 is configured to invoke, by the test system scheduling platform, each target test system to execute a respective test task based on the corresponding test task data.
In some embodiments, the second determining module 33 is configured to obtain a task type mapping table, where the task type mapping table includes mapping relationships between a plurality of preset test systems and a plurality of test task types; and searching and determining a target test system corresponding to the test task type from the task type mapping table.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, the task testing device 30 provided in the embodiment of the present application receives a test request sent by a user terminal through the response module 31, and sends task submission page information to the user terminal in response to the test request, so that the user terminal displays a task submission page, where the task submission page is available for a user to submit at least one piece of test task information at the same time; receiving test task information sent by the user terminal based on the task submission page through a first determination module 32, and determining the type of the test task based on the test task information; determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform through a second determination module 33 based on the test task type; the execution module 34 calls the target test system to execute the test task corresponding to the test task information based on the test task information through the test system scheduling platform.
Referring to fig. 3, fig. 3 is another structural diagram of a task testing device according to an embodiment of the present disclosure, the task testing device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a response module 31, a first determination module 32, a second determination module 33, and an execution module 34. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
a response module 31, configured to receive a test request sent by a user terminal, and send task submission page information to the user terminal in response to the test request, so that the user terminal displays a task submission page, where the task submission page allows a user to submit at least one piece of test task information at the same time;
a first determining module 32, configured to receive test task information sent by the user terminal based on the task submission page, and determine a test task type based on the test task information;
a second determining module 33, configured to determine, based on the test task type, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform;
and the execution module 34 is configured to invoke, by the test system scheduling platform, the target test system to execute the test task corresponding to the test task information based on the test task information.
In some embodiments, the first determining module 32 is configured to receive test task data sent by the user terminal based on the task submission page, and determine the type of the test task based on the test task data.
In some embodiments, the second determining module 33 is configured to determine, by using the test task information including at least one test task data and a test task type corresponding to the test task data, a target test system corresponding to the test task type from a plurality of preset test systems connected to a test system scheduling platform based on the test task type, and includes:
and determining a target test system for processing data of each test task from a plurality of preset test systems connected with the test system scheduling platform based on the test task type.
In some embodiments, the second determining module 33 is configured to invoke, by the test system scheduling platform, each target test system to execute a respective test task based on the corresponding test task data.
In some embodiments, the second determining module 33 is configured to obtain a task type mapping table, where the task type mapping table includes mapping relationships between a plurality of preset test systems and a plurality of test task types; and searching and determining a target test system corresponding to the test task type from the task type mapping table.
The embodiment of the application also provides the electronic equipment. Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the electronic device may be used to implement the task testing method provided in the foregoing embodiment.
As shown in fig. 4, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the configuration of the electronic device 1200 shown in FIG. 4 is not intended to be limiting of the electronic device 1200 and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be configured to store software programs and modules, such as program instructions/modules corresponding to the task testing method in the foregoing embodiment, and the processor 180 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 120, so that different types of testing tasks may be integrated and then tested in the same system, thereby improving testing efficiency. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the electronic device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment) and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device 1200, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4 touch sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The electronic device 1200 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the electronic device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the electronic device 1200, detailed descriptions thereof are omitted.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and the electronic device 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the electronic device 1200.
The electronic device 1200, via the transport module 170 (e.g., a Wi-Fi module), may assist a user in emailing, browsing web pages, accessing streaming media, etc., which provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the electronic device 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the electronic device 1200, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The electronic device 1200 also includes a power supply 190 (e.g., a battery) that powers the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, and the one or more programs include instructions for:
receiving a test request sent by a user terminal, and sending task submission page information to the user terminal in response to the test request so that the user terminal can display a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time;
receiving test task information sent by a user terminal based on the task submitting page, and determining the type of the test task based on the test task information;
determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
and calling the target test system to execute the test task corresponding to the test task information based on the test task information through the test system scheduling platform.
In some embodiments, the processor 180 is configured to determine a target test system for processing data of each test task from a plurality of predetermined test systems connected to the test system scheduling platform based on the test task type.
In some embodiments, the processor 180 is configured to invoke, by the test system scheduling platform, each target test system to execute a respective test task based on the corresponding test task data.
In some embodiments, the processor 180 is configured to receive test task data sent by the user terminal based on the task submission page, and determine a test task type based on the test task data.
In some embodiments, the processor 180 is configured to obtain a task type mapping table, where the task type mapping table includes mapping relationships between a plurality of preset test systems and a plurality of test task types;
and searching and determining a target test system corresponding to the test task type from the task type mapping table.
In some embodiments, the processor 180 is configured to obtain a test result corresponding to each test task data from the target test system;
generating a test report based on the test result, and storing the test report and the corresponding relation between the test report and a submitting user of the test task information;
and responding to a report viewing request sent by the submitting user, acquiring the test report of the submitting user based on the corresponding relation, and displaying the test report to the submitting user.
In some embodiments, the processor 180 is configured to obtain, by the test system scheduling platform, a test report corresponding to each test task data from the target test system;
the method further comprises the following steps:
storing the test report at the test system dispatch platform;
receiving a report query request of a user through the test scheduling platform, querying a corresponding test report from the test reports stored in the test scheduling platform based on the report query request, and displaying the queried test report to the user.
As can be seen from the above, an embodiment of the present application provides an electronic device 1200, where the electronic device 1200 executes the following steps: receiving a test request sent by a user terminal, and sending task submission page information to the user terminal in response to the test request so that the user terminal can display a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time; receiving test task information sent by a user terminal based on the task submission page, and determining the type of the test task based on the test task information; determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type; and calling the target test system to execute the test task corresponding to the test task information based on the test task information through the test system scheduling platform.
The embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the task testing method according to any one of the above embodiments.
It should be noted that, for the task testing method described in the present application, it may be understood by a person of ordinary skill in the art that all or part of the process of implementing the task testing method described in the embodiments of the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of implementing the embodiment of the task testing method may be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the task testing device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The task testing method, the task testing device, the storage medium, and the electronic device provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for task testing, the method comprising:
receiving a test request sent by a user terminal, and sending task submission page information to the user terminal in response to the test request so that the user terminal can display a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time;
receiving test task information sent by a user terminal based on the task submission page, and determining the type of the test task based on the test task information;
determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
and calling the target test system to execute the test task corresponding to the test task information based on the test task information through the test system scheduling platform.
2. The task testing method according to claim 1, wherein the test task information includes at least one test task data and a test task type corresponding to the test task data, and the determining, based on the test task type, a target test system corresponding to the test task type from among a plurality of preset test systems connected to a test system scheduling platform includes:
determining a target test system for processing data of each test task from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
the step of calling the target test system to execute the test task corresponding to the test task information through the test system scheduling platform based on the test task information comprises the following steps:
and calling each target test system to execute each test task based on the corresponding test task data through the test system scheduling platform.
3. The task testing method of claim 2, wherein the determining, by the receiving user terminal, a test task type based on the test task information sent by the task submission page comprises:
and receiving test task data sent by the user terminal based on the task submission page, and determining the type of the test task based on the test task data.
4. The task testing method of claim 1, wherein the determining a target testing system corresponding to the testing task type from a plurality of preset testing systems connected to a testing system scheduling platform based on the testing task type comprises:
acquiring a task type mapping table, wherein the task type mapping table comprises mapping relations between a plurality of preset test systems and a plurality of test task types;
and searching and determining a target test system corresponding to the test task type from the task type mapping table.
5. The task testing method of any one of claims 1-4, further comprising:
obtaining a test result corresponding to each test task data from the target test system;
generating a test report based on the test result, and storing the test report and the corresponding relation between the test report and the submitting user of the test task information;
and responding to a report viewing request sent by the submitting user, acquiring the test report of the submitting user based on the corresponding relation, and displaying the test report to the submitting user.
6. The task testing method of any one of claims 1-4, further comprising:
acquiring a test report corresponding to each test task data from the target test system through the test system scheduling platform;
the method further comprises the following steps:
storing the test report at the test system dispatch platform;
receiving a report query request of a user through the test scheduling platform, querying a corresponding test report from the test reports stored in the test scheduling platform based on the report query request, and displaying the queried test report to the user.
7. The task testing method according to any one of claims 1 to 4, wherein the testing system platform is provided with a jump entry of each testing system, the jump entry is used for a user to jump from the testing system platform to the testing system, the target testing system stores a testing report corresponding to the testing task information, and the target testing system is provided with a query entry for the user to query the testing report.
8. A task testing apparatus, characterized in that the apparatus comprises:
the response module is used for receiving a test request sent by a user terminal and sending task submission page information to the user terminal in response to the test request so that the user terminal can display a task submission page, wherein the task submission page can be used for a user to submit at least one piece of test task information at the same time;
the first determining module is used for receiving test task information sent by the user terminal based on the task submitting page and determining the type of the test task based on the test task information;
the second determining module is used for determining a target test system corresponding to the test task type from a plurality of preset test systems connected with a test system scheduling platform based on the test task type;
and the execution module is used for calling the target test system to execute the test task corresponding to the test task information through the test system scheduling platform based on the test task information.
9. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method of task testing of any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the task testing method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
CN202210693527.1A 2022-06-17 2022-06-17 Task testing method and device, storage medium and electronic equipment Pending CN115858331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210693527.1A CN115858331A (en) 2022-06-17 2022-06-17 Task testing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210693527.1A CN115858331A (en) 2022-06-17 2022-06-17 Task testing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115858331A true CN115858331A (en) 2023-03-28

Family

ID=85660203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210693527.1A Pending CN115858331A (en) 2022-06-17 2022-06-17 Task testing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115858331A (en)

Similar Documents

Publication Publication Date Title
CN111143005B (en) Application sharing method, electronic equipment and computer readable storage medium
CN106708676B (en) Interface test method and device
CN105471931B (en) Method, device and system for inquiring service data
CN106649126B (en) Method and device for testing application program
CN108039963B (en) Container configuration method and device and storage medium
CN111078556B (en) Application testing method and device
CN108874653B (en) Task testing method, tester, shared server and readable storage medium
CN108287706B (en) Data processing method and device
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN104809055B (en) Application program testing method and device based on cloud platform
CN112749074B (en) Test case recommending method and device
CN112415367A (en) Drive chip abnormality detection method and device, electronic equipment and readable storage medium
CN105631059B (en) Data processing method, data processing device and data processing system
CN112243259A (en) Network disconnection method, device, storage medium and mobile terminal
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN111359210A (en) Data processing method and device, electronic equipment and storage medium
CN115065609A (en) B-end SaaS system hybrid deployment method and system
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN112667868B (en) Data detection method and device
CN115858331A (en) Task testing method and device, storage medium and electronic equipment
CN111475141A (en) List generation method and device and electronic equipment
CN111027406A (en) Picture identification method and device, storage medium and electronic equipment
CN114064447B (en) Interface testing method and device, storage medium and terminal
CN117234137B (en) MCU clock frequency switching circuit, MCU and electronic equipment
CN115222263A (en) Flexible updating method, device, medium and electronic equipment for order routes of salesmen

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