CN108399132A - A kind of scheduling tests method, apparatus and storage medium - Google Patents

A kind of scheduling tests method, apparatus and storage medium Download PDF

Info

Publication number
CN108399132A
CN108399132A CN201810237216.8A CN201810237216A CN108399132A CN 108399132 A CN108399132 A CN 108399132A CN 201810237216 A CN201810237216 A CN 201810237216A CN 108399132 A CN108399132 A CN 108399132A
Authority
CN
China
Prior art keywords
task
tested
test
module
configuration file
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.)
Granted
Application number
CN201810237216.8A
Other languages
Chinese (zh)
Other versions
CN108399132B (en
Inventor
崔圆
林嫣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810237216.8A priority Critical patent/CN108399132B/en
Publication of CN108399132A publication Critical patent/CN108399132A/en
Application granted granted Critical
Publication of CN108399132B publication Critical patent/CN108399132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses scheduling tests method, apparatus and storage mediums, are applied to technical field of information processing.When the first operation information for receiving a certain task to be tested by task scheduling platform, then task scheduling platform can determine whether the configuration file of task to be tested, including executes the identification information of multiple test modules of task to be tested and execute sequence;Then corresponding test module is called according to configuration file, and the test module by calling executes task to be tested.In this way, method during execution test assignment is divided into multiple independent test modules, and the sequence for each test module for executing test assignment is limited by configuration file, it can be not limited to execute the ad hoc approach flow of a certain test assignment, enable and a variety of test assignments are integrated by a task scheduling platform, facilitate the extension of task scheduling platform, and largely improves testing efficiency.

Description

A kind of scheduling tests method, apparatus and storage medium
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of scheduling tests method, apparatus and storage medium.
Background technology
During development and application program, need to test application program, and various test may be used Application program is tested, and each test method corresponds to a set of task scheduling platform, in particular it is required that task scheduling platform Corresponding test assignment is handed down to the application terminal for loading application program, and the test assignment is executed by application terminal, and is answered Implementing result can be reported to task scheduling platform with terminal.
Existing each task scheduling platform is built using integrated mode, is only supported under single test assignment Hair, and the flow for issuing test assignment is fixed, when if necessary to be tested application program by executing other test assignments, The task scheduling platform for needing to develop a set of adaptation again, to cause testing efficiency low.
Invention content
A kind of scheduling tests method, apparatus of offer of the embodiment of the present invention and storage medium, realize according to determining configuration File calls corresponding test module, and the test module by calling executes task to be tested.
First aspect of the embodiment of the present invention provides a kind of scheduling tests method, including:
The first operation information of task to be tested is received by task scheduling platform;
According to first operation information, determine that the configuration file of the task to be tested, the configuration file include holding The identification information of multiple test modules of the row task to be tested and execute sequence;
Corresponding test module is called according to the configuration file, and described to be measured by the execution of the test module of the calling Trial is engaged in.
First aspect of the embodiment of the present invention provides a kind of scheduling tests device, including:
Operate receiving unit, the first operation information for receiving task to be tested by the scheduling tests device;
Determination unit is configured, for according to first operation information, determining the configuration file of the task to be tested, institute State the identification information and execute sequence that configuration file includes the multiple test modules for executing the task to be tested;
Test cell, for calling corresponding test module according to the configuration file, and by the test mould of the calling Block executes the task to be tested.
The third aspect of the embodiment of the present invention provides a kind of storage medium, and the storage medium stores a plurality of instruction, the finger It enables and is suitable for being loaded by processor and executing the scheduling tests method as described in first aspect of the embodiment of the present invention.
A kind of terminal device of fourth aspect of embodiment of the present invention offer, including pocessor and storage media, the processor, For realizing each instruction;
The storage medium is for storing a plurality of instruction, and described instruction is for being loaded by processor and being executed as of the invention real Apply the scheduling tests method described in a first aspect.
In the method for the present embodiment, task scheduling platform combines a variety of test assignments, in this way when passing through task scheduling Platform receives the first operation information of a certain task to be tested, then task scheduling platform can determine whether the configuration text of task to be tested Part, including execute the identification information of multiple test modules of task to be tested and execute sequence;Then it is called according to configuration file Corresponding test module, and the test module by calling executes task to be tested.In this way, by the side during execution test assignment Method is divided into multiple independent test modules, and limits each test executed used in different test assignments by configuration file Module executes sequence, can be not limited to execute the ad hoc approach flow of a certain test assignment so that pass through a task Dispatching platform can integrate a variety of test assignments, when newly increasing a certain test assignment, it is only necessary to appoint the test newly increased The relevant information of business is stored into task scheduling platform, facilitates the extension of task scheduling platform, and largely improves survey Try efficiency.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art With obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of structural schematic diagram of task scheduling platform provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of scheduling tests method provided by one embodiment of the present invention;
Fig. 3 is the schematic diagram for the user interface that task scheduling platform provides in one embodiment of the invention;
Fig. 4 a are a kind of structural schematic diagrams of the task scheduling platform provided in Application Example of the present invention;
Fig. 4 b are the schematic diagrames of each test module in task scheduling platform in Application Example of the present invention;
Fig. 5 is the method flow diagram that module and each test module execute in Application Example sub-process of the present invention;
Fig. 6 is that the main thread that module includes in Application Example sub-process of the present invention and the execution of each test module are to be measured The flow chart of trial business;
Fig. 7 is the method flow diagram that service module executes in Application Example of the present invention;
Fig. 8 is a kind of structural schematic diagram of scheduling tests device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another scheduling tests device provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Term " first ", " second ", " third " " in description and claims of this specification and above-mentioned attached drawing The (if present)s such as four " are for distinguishing similar object, without being used to describe specific sequence or precedence.It should manage The data that solution uses in this way can be interchanged in the appropriate case, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " comprising " and " having " and theirs is any Deformation, it is intended that cover not exclusively include, for example, containing the process of series of steps or unit, method, system, production Product or equipment those of are not necessarily limited to clearly to list step or unit, but may include not listing clearly or for this The intrinsic other steps of processes, method, product or equipment or unit a bit.
The embodiment of the present invention provides a kind of scheduling tests method, and it is flat mainly to can be applied to task scheduling as shown in Figure 1 In platform, which includes:Main control module and multiple test modules (illustrating by taking n execution module as an example in Fig. 1), In, main control module is used to determine the configuration file of each test assignment, and calls corresponding test mould successively according to configuration file Block;Each test module is for executing corresponding method, and during the method performed by a certain test module is scheduling tests At least one step.The task scheduling platform of the embodiment of the present invention combine a variety of test assignments issue and a variety of tests The execution flow of task has wide applicability.
In embodiments of the present invention, task scheduling platform can be scheduled test by the following method:
The first operation information of task to be tested is received by task scheduling platform;According to the first operation information, determination waits for The configuration file of test assignment, configuration file include the identification information for the multiple test modules for executing task to be tested and execute suitable Sequence;Corresponding test module is called according to configuration file, and the test module by calling executes task to be tested.
In this way, the method during execution test assignment is divided into multiple independent test modules, and by configuring text Part limit execute each test module used in different test assignments execute sequence, can be not limited to execute a certain survey The ad hoc approach flow of trial business so that a variety of test assignments can be integrated by a task scheduling platform, it is a certain when newly increasing When kind test assignment, it is only necessary to the relevant information of the test assignment newly increased is stored into task scheduling platform, it is convenient The extension of task scheduling platform, and largely improve testing efficiency.
The embodiment of the present invention provides a kind of scheduling tests method, mainly by the side performed by task scheduling platform as above Method, flow chart is as shown in Fig. 2, include:
Step 101, the first operation information of task to be tested is received by task scheduling platform.
It is appreciated that in the present invention is implemented, the main control module of task scheduling platform can provide a user user's operation Interface, to initiate the execution flow of each task to be tested, for example, task scheduling platform can provide user as shown in Figure 3 Operation interface includes the first choice interface of task to be tested on the user interface, and can also include trial to be measured Second selection interface for corresponding application program of being engaged in etc..Wherein, first choice interface and the second selection interface can be arbitrary shapes A kind of formula, only specific implementation shown in Fig. 3, i.e., indicated by pulling down key (inverted triangle i.e. in figure), work as user When clicking first drop-down key, task scheduling platform can show information (the i.e. test times of the test assignment selected for user Test assignment p) is arrived in business 1, and when the user clicks when second drop-down key, task scheduling platform can show answers for what user selected With the information of program, (i.e. application program 1 arrives application program m).
User can select any one test assignment by the first choice interface on user interface in this way, and click " determination " button, such main control module just pass through the first operation information of first choice interface to task to be tested.Into one Step ground, user can also select interface that at least one of test assignment is selected to apply journey by second on user interface Sequence, and click " determination " button, in this way, main control module can pass through the of the second selection interface at least one application program Two operation informations, the application program which can be relied on for execution task to be tested.
Wherein, test assignment is the purpose tested application program, can specifically include but is not limited to following any Item information:Performance test, RAM leakage test, installation kit inspection, quiet code sweep test, data report test, user interface (User Interface, UI) interim card is tested, and harsh pattern (strictmode) checks, Buddha's warrior attendant scanning, and Robotiummonkey and googlemonkey equistabilities are tested.Application program can be the program for realizing certain function, than Such as news program or video program etc..
For example, monkey stability tests can cover the function used in application program, but emphasis can be paid close attention to using journey Whether sequence can collapse (crash), and memory overflow test can also cover that application program institute is functional, but emphasis can focus on traversal Whether institute has memory spilling when functional.
Step 102, according to the first operation information, determine that the configuration file of task to be tested, configuration file include executing to be somebody's turn to do The identification information of multiple test modules of task to be tested and execute sequence.
In the present invention is implemented, multiple test modules in task scheduling platform can be divided according to a variety of benchmark, For example, the benchmark of the method sequence executed according to test assignment, can be divided into following test module:Report task status module (reportTaskStatus), screen capture module (makeScreenShot), report daily record (log) module (runLogUpload), Installation is tested application module (installPackage), testing results tool model (runTestTool), downloads to be tested and apply mould Block (downloadTestPackage) and download testing tool module (downloadTestTool), wherein testing tool refers to The type of test assignment is executed, it refers to application program to be tested application.
In another example according to the external benchmark relied on for executing test assignment, following test module can be divided into:Installation kit Module (the methods of download, peace loading, unloading can be executed) and tool model (can execute and the methods of start, stop) etc..Its In, external rely on for executing test assignment refers to except the task scheduling platform relied on during executing test assignment Program, for example above-mentioned installation kit module depends on application program, and tool model depends on testing tool etc..
Above-mentioned each test module is independent executable program, can individually be called, and in task dispatching platform Local data base in the information of each test module store independently of each other.
When executing this step, the main control module of task scheduling platform can be according to the corresponding implementation strategy of task to be tested It determines that the configuration file, different test assignments correspond to different configuration files, may include in the configuration file:It executes to be measured Which test module trial business needs, and is indicated especially by the identification information of test module;And the execution of these test modules Sequentially, the multiple test modules for executing task to be tested here can be all test modules included by task scheduling platform, It can also be partial test module.Wherein, it is in office can be that user pre-sets for each corresponding implementation strategy of task to be tested Business dispatching platform.In this way, when task scheduling platform needs to extend new test assignment, it is only necessary to be stored up in task dispatching platform The information for newly increasing test assignment is deposited, which includes newly increasing the corresponding execution plan of test assignment Slightly, it can also include the identification information etc. for newly increasing test assignment.
Further, since some test module in task scheduling platform can execute at least one method, such as on That states reports task status module that can execute the state for reporting test assignment to start execution, test assignment can also be reported to execute The state of end, then in this step in determining configuration file if the identification information including reporting task status module, It also needs to include the specific method for reporting task status module to execute in above-mentioned task process to be tested in configuration file.
In some cases, configuration file may include the multiple test modules execution correlation method for executing task to be tested The parameter etc. relied on.For example, the parameter for downloading tested application module dependence may include:Project label, application program are System and packet mark etc.;Installation is tested the parameter that application module relies on:Device identification, the system of application program, Bao Biao Knowledge and packet title etc..
Step 103, corresponding test module is called according to configuration file, and the test module by calling executes trial to be measured Business.
Specifically, after the main control module in task scheduling platform determines configuration file, can according to configuration file, according to Sequence calls corresponding test module successively, and corresponding method is executed by the test module called.In the mistake for calling test module Cheng Zhong, if it is calling for the first time, then main control module understands first load test module, i.e., by the information cache of test module to task tune It spends in the memory of platform, test module of then reruning;If non-call for the first time, due in the memory of task dispatching platform Through being loaded with the information of test module, then main control module can jump directly to testing results module.
It should be noted that above-mentioned steps 101 to 103 are user's operations circle when user is provided by task scheduling platform Face, when initiating a task to be tested, the method that executes the task to be tested.In specific Application Example, user can be with The user interface provided by task scheduling platform, while multiple tasks to be tested are initiated, such task scheduling platform meeting Concurrently according to the method for above-mentioned steps 101 to 103, multiple tasks to be tested are executed.
As it can be seen that in the method for the present embodiment, task scheduling platform combines a variety of test assignments, in this way when passing through task Dispatching platform receives the first operation information of a certain task to be tested, then task scheduling platform can determine whether matching for task to be tested File is set, including executes the identification information of multiple test modules of task to be tested and executes sequence;Then according to configuration file Corresponding test module is called, and the test module by calling executes task to be tested.In this way, during test assignment will be executed Method be divided into multiple independent test modules, and limited by configuration file execute it is each used in different test assignments Test module executes sequence, can be not limited to execute the ad hoc approach flow of a certain test assignment so that pass through one Task scheduling platform can integrate a variety of test assignments, when newly increasing a certain test assignment, it is only necessary to the survey for newly increasing this The relevant information of trial business is stored into task scheduling platform, facilitates the extension of task scheduling platform, and largely improve Testing efficiency.
It should be noted that the method for above-described embodiment is user does not depend on task scheduling by the initiation of task scheduling platform Other application program except platform executes the flow of task to be tested, and in other specific embodiments, user can also lead to Crossing the initiation of task scheduling platform needs at least one application program except dependence task dispatching platform to execute task to be tested Flow.In this way, before the main control module of task dispatching platform executes above-mentioned steps 102, task scheduling platform can also be passed through Receive the second operation information of the corresponding at least one application program of task to be tested;Then when executing above-mentioned steps 103, work as root It is the first test module to call corresponding test module according to configuration file, then by the first test module according to the second operation information, Task to be tested is sent to the corresponding application terminal of application program to execute.Here the application of at least one application program is eventually End can be the application terminal for a physics for loading at least one application program;Or at least one application program is loaded respectively At least one physics application terminal;It can also be multiple physical terminals that at least one application program has all been loaded.And the One test module is performed for the module of task to be tested.
It is the second test module when calling corresponding test module according to configuration file, then when executing above-mentioned steps 103 The execution information for the task to be tested that the application terminal of at least one application program reports is received by the second test module.Here it holds Row information may include executing the daily record (log) of task to be tested, execute shot image information when task to be tested, and execute to be measured The label (flag) etc. that trial business generates in the process.Here the second test module is for obtaining the module for reporting information.
Scheduling tests method is illustrated with specific application example below, as shown in fig. 4 a, appointing in the present embodiment Business dispatching platform may include subprocess (subprocess) main control module, service (server) module, multiple test modules and Database, and multiple test modules in the present embodiment are that the benchmark of the method sequence executed according to test assignment divides, such as Shown in Fig. 4 b, following module is specifically included:It reports task status module, screen capture module, report daily record (log) module, installation quilt Application module, testing results tool model are surveyed, tested application module is downloaded and downloads testing tool module.
Wherein, subprocess main control module, the configuration file for determining each test assignment, and successively according to configuration file Call corresponding test module.
Service module, the data for being responsible for transmitting between subprocess main control module and each test module, and pipe Manage the data etc. transmitted between each test module.
Database, for storing the information for independently storing each test module, such as program code etc.;And it can also store up In the presence of label (flag), daily record and the sectional drawing etc. during execution test assignment.The database can be specifically sqlite data Library.
Wherein, label is for linking each test module, for example, downloading completion test when downloading testing tool module After tool, a strip label can be generated, label record testing tool downloads the information completed and download path;Then operation is surveyed Examination tool model only reads the label, can just execute testing tool.
Journal module is reported, for reporting daily record in the implementation procedure of test assignment, mainly test assignment is reported to hold The information such as the problem of being encountered during row;The stopping of notice reporting journal module is additionally operable to report.
Task status module is reported, the state for reporting test assignment to start to execute can also report test assignment to hold The state that row terminates.
Screen capture module intercepts picture for starting, convenient that the problems in test assignment implementation procedure is positioned, can be with Screen capture module is notified to stop sectional drawing.
Installation is tested application module, and for installing tested application, and unloading is tested applies (i.e. application program).
Testing results tool model, for executing testing tool, i.e. test assignment.
It downloads and is tested application module, for downloading tested application.
Testing tool module is downloaded, for downloading testing tool.
Above-mentioned each test module can be roughly divided into obstruction (block) module and non-obstruction (unblock) module, In, non-blocking module refers to the module that returns the result without waiting after calling, for example above-mentioned screen capture module starts to cut in execution Belong to non-blocking module when the step for taking picture;Blocking module refers to the module called in order, and the execution of current block is necessary It is just executed after a upper module runs succeeded, for example above-mentioned download is tested application module and download testing tool module etc..
And in the present embodiment, the test assignment that task scheduling platform can issue may include following at least one test Task:Performance test, RAM leakage test, installation kit inspection, quiet code sweep test, data report test, UI interim cards to test, Strictmode checks that Buddha's warrior attendant scans, robotiummonkey and googlemonkey stability tests etc..Wherein, some are surveyed Trial business is monitoring of tools task, refers to being executed dependent on the equipment except task scheduling platform for task, i.e., is held in test assignment It needs to connect the equipment except task scheduling platform in capable process, loads application program on the device, and by application program Execute test assignment, such as googleMonkey stability tests.Some test assignments are non-equipment tasks, refer to independent of appoint The task of the external equipment of business dispatching platform executes test assignment, for example, quiet code sweep test etc. by task scheduling platform.
Refering to what is shown in Fig. 5, the subprocess main control module of the present embodiment and each test module can be as follows It executes:
Step 201, subprocess main control module can provide user interface, and user can be sent out by user interface Play the flow of task to be tested.
Step 202, subprocess main control module can start main thread and management thread simultaneously, and main thread can be according to above-mentioned steps 201 tasks to be tested initiated, determine corresponding configuration file, and by the configuration file by the interface of database, for example cover Word (soket) interface is connect to be written in local data base.
Wherein, after main thread determines configuration file, can first check each test module whether be latest edition survey Die trial block, if it is not, needing the test module of download latest edition.
Step 203, main thread calls corresponding each test in a certain order according to the configuration file in database Module, and each test module called is run, and each test module joins together to execute task to be tested.
Wherein, it for each blocking module in test module, needs after the completion of waiting for another test module to execute, then transport Blocking module before the trade, and the operation result of current blocking module is obtained, and operation result is stored into database, and Terminate flow;And each non-blocking module can directly terminate flow after the completion of execution.
Specifically, task to be tested, stream can be executed between main thread and each test module with A to D as follows Journey figure is as shown in fig. 6, include:
Step A, main thread can read the corresponding configuration text of task to be tested by the interface of database from database Part includes the identification information for the test module for needing to use, the execution method of each test module and execution in configuration file Sequentially, some call parameters when can also be including test module operation.
Step B, main thread can parse configuration file, in the database according to configuration file after having read configuration file Establish file directory, wherein a test module corresponds to a catalogue.
Step C, main thread obtains the identification information of each test module from configuration file, executes method and executes suitable Sequence, also some necessary parameters.
Step D, the information that main thread is obtained according to above-mentioned steps C calls corresponding test module, by testing mould accordingly Block executes task to be tested.After having executed task to be tested, terminate flow.
Step 204, when main thread executes above-mentioned steps 202 and 203, whether management thread can judge each test module Operation failure, if operation failure, thens follow the steps 205;If operation does not fail, 206 are thened follow the steps.
Wherein, management thread can obtain each when judging whether blocking module runs unsuccessfully according to blocking module The operation result of blocking module judges.
Step 205, terminate flow, and terminate the operation of each test module.
Step 206, the user interface for needing user to be supplied to by managing thread terminates the test of each not running failure Module.
Refering to what is shown in Fig. 7, the service module of the present embodiment can execute as follows:
Step 301, service module can open a port (such as 60080 ports), and monitor the port, and service module It can safeguard that a queue, the queue are stored into the information in database for temporary cache.
Step 302, if service module listens to the port when having data write-in, than if any label, sectional drawing or log write Fashionable, service module can will need in the queue that the data buffer storage that is written is safeguarded to service module;If to be read from database Access according to when, the data in the queue of maintenance can be written in database by service module, and be read from database corresponding Data.
Step 303, service module can open a timed task while executing above-mentioned steps 301 and 302, i.e., fixed When check whether the queue that the service module is safeguarded is empty, if it is sky, continues checking for whether queue is empty;If non- Data in queue are then written to database by sky.
The embodiment of the present invention also provides a kind of calling test device, such as above-mentioned task scheduling platform, structural representation Figure is as shown in figure 8, can specifically include:
Operate receiving unit 10, the first operation information for receiving task to be tested by the scheduling tests device.
Determination unit 11 is configured, described according to first operation information for operating receiving unit 10 and receiving, determining The configuration file of task to be tested, the configuration file include the mark letter for the multiple test modules for executing the task to be tested Cease and execute sequence.
The configuration determination unit 11, is specifically used for according to the corresponding implementation strategy of the task to be tested, determine described in Configuration file.
Wherein, the multiple test module includes the arbitrary combination of following module:Report task status module, sectional drawing mould Block reports journal module, installation to be tested application module, testing results tool model, download tested application module and download test Tool model.
Alternatively, the multiple test module includes tool model, or including tool model and installation kit module;Wherein, institute Installation kit module is stated for obtaining, installs and uninstalls application program, the tool model for start to execute task to be tested and Stop executing task to be tested.
Test cell 12, the configuration file for being determined according to the configuration determination unit 11 call corresponding test mould Block, and the task to be tested is executed by the test module of the calling.
Further, the operation receiving unit 10 is additionally operable to receive by the scheduling tests device described to be tested Second operation information of the corresponding at least one application program of task;Then when test cell 12 is according to configuration file calling pair The test module answered is that the first test module will be described to be measured by first test module according to second operation information Trial business is sent to the corresponding application terminal of at least one application program and is executed.
And it is the second test module to work as test cell 12 to call corresponding test module according to the configuration file, by described Second test module receives the execution information for the task to be tested that the application terminal of at least one application program reports.
As it can be seen that a variety of test assignments are combined in the device of the present embodiment, in this way when operation receiving unit 10 passes through tune Degree test device receives the first operation information of a certain task to be tested, then configures determination unit 11 and can determine whether task to be tested Configuration file, including execute the identification information of multiple test modules of task to be tested and execute sequence;Then test cell 12 call corresponding test module according to configuration file, and the test module by calling executes task to be tested.In this way, will execute Method during test assignment is divided into multiple independent test modules, and is limited by configuration file and execute different tests times The used each test module of business executes sequence, can be not limited to execute the ad hoc approach stream of a certain test assignment Journey so that a variety of test assignments can be integrated by a task scheduling platform, when newly increasing a certain test assignment, it is only necessary to The relevant information of the test assignment newly increased is stored into scheduling tests device, facilitates the extension of task scheduling platform, And largely improve testing efficiency.
Refering to what is shown in Fig. 9, in a specific embodiment, scheduling tests device is in addition to may include as shown in Figure 8 Outside structure, can also include:Interface providing unit 13 and storage element 14, wherein:
Interface providing unit 13, for providing user interface, the user interface includes the trial to be measured The first choice interface of business;The then operation receiving unit 10 is specifically used for provided by the interface providing unit 13 the First operation information of task to be tested described in one selection interface.
Storage element 14, for storing the information for newly increasing test assignment, the information for newly increasing test assignment includes described Newly increase the corresponding implementation strategy of test assignment.In this way, when configuration determination unit 11 is determining that this newly increases matching for test assignment When setting file, can the implementation strategy that be stored according to storage element 14 determine.
The embodiment of the present invention also provides a kind of terminal device, and structural schematic diagram is as shown in Figure 10, which can be because Configuration or performance are different and generate bigger difference, may include one or more central processing units (central Processing units, CPU) 20 (for example, one or more processors) and memory 21, one or more are deposited Store up the storage medium 22 (such as one or more mass memory units) of application program 221 or data 222.Wherein, it stores Device 21 and storage medium 22 can be of short duration storage or persistent storage.The program for being stored in storage medium 22 may include one or More than one module (diagram does not mark), each module may include to the series of instructions operation in terminal device.More into one Step ground, central processing unit 20 could be provided as communicating with storage medium 22, execute one in storage medium 22 on the terminal device Series of instructions operates.
Specifically, the application program 221 stored in storage medium 22 includes the application program of scheduling tests, and the program It may include the operation receiving unit 10 in above-mentioned scheduling tests device, configure determination unit 11, test cell 12, interface provides Unit 13 and storage element 14, herein without repeating.Further, central processing unit 20 could be provided as and storage medium 22 communications, execute the corresponding sequence of operations of application program of the scheduling tests stored in storage medium 22 on the terminal device.
Terminal device can also include one or more power supplys 23, one or more wired or wireless networks connect Mouth 24, one or more input/output interfaces 25, and/or, one or more operating systems 223, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
It can be based on that this is shown in Fig. 10 by the step performed by scheduling tests device described in above method embodiment The structure of terminal device.
The embodiment of the present invention also provides a kind of storage medium, and the storage medium stores a plurality of instruction, and described instruction is suitable for It is loaded by processor and executes the scheduling tests method as performed by above-mentioned scheduling tests device.
The embodiment of the present invention also provides a kind of terminal device, including pocessor and storage media, the processor, for real Existing each instruction;
The storage medium is for storing a plurality of instruction, and described instruction is for being loaded by processor and being executed such as above-mentioned scheduling Scheduling tests method performed by test device.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:Read-only memory (ROM), random access memory ram), disk or CD etc..
It is provided for the embodiments of the invention scheduling tests method, apparatus above and storage medium is described in detail, Principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (13)

1. a kind of scheduling tests method, which is characterized in that including:
The first operation information of task to be tested is received by task scheduling platform;
According to first operation information, determine that the configuration file of the task to be tested, the configuration file include executing institute It states the identification information of multiple test modules of task to be tested and executes sequence;
Corresponding test module is called according to the configuration file, and the trial to be measured is executed by the test module of the calling Business.
2. the method as described in claim 1, which is characterized in that described to receive the of task to be tested by task scheduling platform Before one operation information, the method further includes:
User interface is provided, the user interface includes the first choice interface of the task to be tested;
Then first operation information that task to be tested is received by task scheduling platform, specifically includes:Pass through described first Select the first operation information of task to be tested described in interface.
3. the method as described in claim 1, which is characterized in that the configuration file of the determination task to be tested, specifically Including:According to the corresponding implementation strategy of the task to be tested, the configuration file is determined;
The method further includes:Storage newly increases the information of test assignment, and the information for newly increasing test assignment includes described newly-increased Add the corresponding implementation strategy of test assignment.
4. the method as described in claim 1, which is characterized in that the multiple test module includes arbitrary group of following module It closes:
Report task status module, screen capture module, report journal module, installation be tested application module, testing results tool model, It downloads and is tested application module and download testing tool module.
5. the method as described in claim 1, which is characterized in that the multiple test module includes tool model, or including work Have module and installation kit module;
Wherein, the installation kit module installs and uninstalls application program, the tool model is waited for for starting to execute for obtaining Test assignment and stopping execute task to be tested.
6. such as method described in any one of claim 1 to 5, which is characterized in that
Before the configuration file of the determination task to be tested, the method further includes:Pass through the task scheduling platform Receive the second operation information of the corresponding at least one application program of the task to be tested;
It is then the first test module, the test by the calling when calling corresponding test module according to the configuration file Module executes the task to be tested, specifically includes:First test module is waited for according to second operation information by described Test assignment is sent to the corresponding application terminal of at least one application program and is executed.
7. method as claimed in claim 6, which is characterized in that
It is the second test module, the test mould by the calling when calling corresponding test module according to the configuration file Block executes the task to be tested, specifically includes:Second test module receives the application of at least one application program The execution information for the task to be tested that terminal reports.
8. a kind of scheduling tests device, which is characterized in that including:
Operate receiving unit, the first operation information for receiving task to be tested by the scheduling tests device;
Determination unit is configured, it is described to match for according to first operation information, determining the configuration file of the task to be tested Set the identification information and execute sequence that file includes the multiple test modules for executing the task to be tested;
Test cell for calling corresponding test module according to the configuration file, and is held by the test module of the calling The row task to be tested.
9. device as claimed in claim 8, which is characterized in that
Interface providing unit, for providing user interface, the user interface includes the of the task to be tested One selection interface;
The then operation receiving unit is specifically used for the first behaviour by task to be tested described in the first choice interface Make information.
10. device as claimed in claim 8, which is characterized in that
The configuration determination unit is specifically used for, according to the corresponding implementation strategy of the task to be tested, determining that the configuration is literary Part;
Described device further includes:Storage element newly increases the information of test assignment for storing the information for newly increasing test assignment The corresponding implementation strategy of test assignment is newly increased including described.
11. such as claim 9 to 10 any one of them device, which is characterized in that
The operation receiving unit is additionally operable to receive the task to be tested corresponding at least one by the scheduling tests device Second operation information of a application program;
It is then the first test module when the test cell calls corresponding test module according to the configuration file, by described the One test module is sent at least one application program according to second operation information, by the task to be tested and corresponds to Application terminal executed;
It is the second test module when the test cell calls corresponding test module according to the configuration file, by described second Test module receives the execution information for the task to be tested that the application terminal of at least one application program reports.
12. a kind of storage medium, which is characterized in that the storage medium stores a plurality of instruction, and described instruction is suitable for by processor It loads and executes scheduling tests method as described in any one of claim 1 to 7.
13. a kind of terminal device, which is characterized in that including pocessor and storage media, the processor, for realizing each finger It enables;
The storage medium is for storing a plurality of instruction, and described instruction by processor for being loaded and executing such as claim 1 to 7 Any one of them scheduling tests method.
CN201810237216.8A 2018-03-21 2018-03-21 Scheduling test method, device and storage medium Active CN108399132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810237216.8A CN108399132B (en) 2018-03-21 2018-03-21 Scheduling test method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810237216.8A CN108399132B (en) 2018-03-21 2018-03-21 Scheduling test method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108399132A true CN108399132A (en) 2018-08-14
CN108399132B CN108399132B (en) 2021-01-08

Family

ID=63091557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810237216.8A Active CN108399132B (en) 2018-03-21 2018-03-21 Scheduling test method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108399132B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710508A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Test method, test device, test equipment and computer readable storage medium
CN109992506A (en) * 2019-03-18 2019-07-09 平安科技(深圳)有限公司 Scheduling tests method, apparatus, computer equipment and storage medium
CN110704311A (en) * 2019-09-24 2020-01-17 香港乐蜜有限公司 Application program testing method and device, electronic equipment and readable storage medium
CN110968504A (en) * 2019-11-07 2020-04-07 京东数字科技控股有限公司 Test method, test platform, electronic device and computer storage medium
CN111008124A (en) * 2019-10-25 2020-04-14 武汉迎风聚智科技有限公司 Task scheduling method and device for database test
CN111352668A (en) * 2020-02-27 2020-06-30 珠海格力智能装备有限公司 Device testing method and device based on plug-in and testing system based on plug-in
CN111580989A (en) * 2020-04-30 2020-08-25 成都新潮传媒集团有限公司 File processing method and device
CN112527312A (en) * 2020-12-15 2021-03-19 西安中朗智控科技有限公司 Test method and test device for embedded system
CN113535560A (en) * 2021-07-14 2021-10-22 杭州网易云音乐科技有限公司 Test execution method and device, storage medium and computing equipment
CN114116450A (en) * 2021-10-25 2022-03-01 北京快乐茄信息技术有限公司 Quality testing method, quality testing device, electronic equipment and storage medium
CN114356771A (en) * 2021-12-31 2022-04-15 龙芯中科(武汉)技术有限公司 Operation method, device and equipment of data processing entity
CN114860576A (en) * 2022-03-31 2022-08-05 北京达佳互联信息技术有限公司 Test method, test device, electronic equipment and storage medium
CN115623077A (en) * 2022-10-18 2023-01-17 开元华创科技(集团)有限公司 Autonomous controllable test system
CN111435227B (en) * 2018-12-25 2023-07-21 中移(杭州)信息技术有限公司 Smart home equipment testing method, device, equipment and medium
CN116594884A (en) * 2023-05-16 2023-08-15 上海安般信息科技有限公司 Fuzzy test method and device based on concurrent mode

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577527A (en) * 2017-08-30 2018-01-12 北京金山安全软件有限公司 Task generation and scheduling method and device
CN107608878A (en) * 2017-08-11 2018-01-19 北京奇虎科技有限公司 A kind of Web automated testing methods and device
CN108334454A (en) * 2018-03-02 2018-07-27 东信和平科技股份有限公司 A kind of automatic scheduling method and system of smart card test platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608878A (en) * 2017-08-11 2018-01-19 北京奇虎科技有限公司 A kind of Web automated testing methods and device
CN107577527A (en) * 2017-08-30 2018-01-12 北京金山安全软件有限公司 Task generation and scheduling method and device
CN108334454A (en) * 2018-03-02 2018-07-27 东信和平科技股份有限公司 A kind of automatic scheduling method and system of smart card test platform

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710508B (en) * 2018-08-20 2024-03-15 天航长鹰(江苏)科技有限公司 Test method, test device, test apparatus, and computer-readable storage medium
CN109710508A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Test method, test device, test equipment and computer readable storage medium
CN111435227B (en) * 2018-12-25 2023-07-21 中移(杭州)信息技术有限公司 Smart home equipment testing method, device, equipment and medium
CN109992506A (en) * 2019-03-18 2019-07-09 平安科技(深圳)有限公司 Scheduling tests method, apparatus, computer equipment and storage medium
CN109992506B (en) * 2019-03-18 2024-05-31 平安科技(深圳)有限公司 Scheduling test method, scheduling test device, computer equipment and storage medium
CN110704311A (en) * 2019-09-24 2020-01-17 香港乐蜜有限公司 Application program testing method and device, electronic equipment and readable storage medium
CN110704311B (en) * 2019-09-24 2023-11-21 卓米私人有限公司 Application program testing method and device, electronic equipment and readable storage medium
CN111008124A (en) * 2019-10-25 2020-04-14 武汉迎风聚智科技有限公司 Task scheduling method and device for database test
CN110968504A (en) * 2019-11-07 2020-04-07 京东数字科技控股有限公司 Test method, test platform, electronic device and computer storage medium
CN111352668A (en) * 2020-02-27 2020-06-30 珠海格力智能装备有限公司 Device testing method and device based on plug-in and testing system based on plug-in
CN111580989A (en) * 2020-04-30 2020-08-25 成都新潮传媒集团有限公司 File processing method and device
CN112527312B (en) * 2020-12-15 2022-03-01 西安中朗智控科技有限公司 Test method and test device for embedded system
CN112527312A (en) * 2020-12-15 2021-03-19 西安中朗智控科技有限公司 Test method and test device for embedded system
CN113535560A (en) * 2021-07-14 2021-10-22 杭州网易云音乐科技有限公司 Test execution method and device, storage medium and computing equipment
CN114116450A (en) * 2021-10-25 2022-03-01 北京快乐茄信息技术有限公司 Quality testing method, quality testing device, electronic equipment and storage medium
CN114356771A (en) * 2021-12-31 2022-04-15 龙芯中科(武汉)技术有限公司 Operation method, device and equipment of data processing entity
CN114860576A (en) * 2022-03-31 2022-08-05 北京达佳互联信息技术有限公司 Test method, test device, electronic equipment and storage medium
CN115623077A (en) * 2022-10-18 2023-01-17 开元华创科技(集团)有限公司 Autonomous controllable test system
CN115623077B (en) * 2022-10-18 2023-08-18 开元华创科技(集团)有限公司 Autonomous controllable test system
CN116594884A (en) * 2023-05-16 2023-08-15 上海安般信息科技有限公司 Fuzzy test method and device based on concurrent mode
CN116594884B (en) * 2023-05-16 2023-10-27 上海安般信息科技有限公司 Fuzzy test method and device based on concurrent mode

Also Published As

Publication number Publication date
CN108399132B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN108399132A (en) A kind of scheduling tests method, apparatus and storage medium
CN109302522B (en) Test method, test device, computer system, and computer medium
US10127143B2 (en) Generating an evolving set of test cases
CN110377520B (en) Transaction scenario testing method and device, electronic equipment and readable storage medium
CN105740138B (en) Test method, test device and the test macro of application
CN111125444A (en) Big data task scheduling management method, device, equipment and storage medium
US20080010535A1 (en) Automated and configurable system for tests to be picked up and executed
CN108228407A (en) Apparatus function test method, apparatus and readable storage medium storing program for executing
CN107045475B (en) Test method and device
CN108241582A (en) A kind of software automated testing platform based on RabbitMQ message-oriented middlewares
CN110013672A (en) Method, unit and the computer readable storage medium of the automatic test of game for machine operation
CN104346279A (en) Method and device for software testing
CN113792341A (en) Privacy compliance automation detection method, device, equipment and medium for application program
US7277827B2 (en) Device testing framework for creating device-centric scenario-based automated tests
CN112445692A (en) Case testing method and terminal
CN112527312B (en) Test method and test device for embedded system
CN112583663B (en) Automatic network performance testing method based on domestic operating system
CN113852610A (en) Message processing method and device, computer equipment and storage medium
CN112183982A (en) Workflow creating method and device, computer equipment and storage medium
CN111930625A (en) Log obtaining method, device and system based on cloud service platform
CN113535560B (en) Test execution method, device, storage medium and computing equipment
US20200167156A1 (en) Cognitive selection of software developer for software engineering task
CN112306850B (en) Test case generation method, device and storage medium
CN116149978A (en) Service interface testing method and device, electronic equipment and storage medium
CN114385493A (en) Performance test method and device, electronic 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
GR01 Patent grant
GR01 Patent grant