CN109308257A - Test assignment executes method, apparatus, electronic equipment and computer storage medium - Google Patents

Test assignment executes method, apparatus, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN109308257A
CN109308257A CN201810917516.0A CN201810917516A CN109308257A CN 109308257 A CN109308257 A CN 109308257A CN 201810917516 A CN201810917516 A CN 201810917516A CN 109308257 A CN109308257 A CN 109308257A
Authority
CN
China
Prior art keywords
plug
unit
test assignment
test
target device
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
CN201810917516.0A
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810917516.0A priority Critical patent/CN109308257A/en
Publication of CN109308257A publication Critical patent/CN109308257A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

This application involves the field of test technology, it discloses a kind of test assignment and executes method, apparatus, electronic equipment and computer readable storage medium, wherein, it includes: to receive any plug-in unit test assignment that test platform is sent to execute request that test assignment, which executes method, and any plug-in unit test assignment generated based on the plug-in unit got;Then according to the request that executes received, the target device for executing any plug-in unit test assignment is determined;Then any plug-in unit test assignment is pushed to target device by agent equipment, and the implementing result that target device returns is received by agent equipment.The method of the embodiment of the present application, so that target device is able to carry out the plug-in unit test assignment generated according to tester's diversification testing requirement, and the implementing result for meeting tester's diversification testing requirement is returned to test platform server, thus the case where overcoming intrinsic test assignment type to be unable to satisfy the additional testing demand of tester.

Description

Test assignment executes method, apparatus, electronic equipment and computer storage medium
Technical field
This application involves the field of test technology, specifically, this application involves a kind of test assignment execute method, apparatus, Electronic equipment and computer storage medium.
Background technique
With the development of terminal technology, the performance of terminal device is become better and better, therefore more and more application programs start It emerges in large numbers.The operation needed for various application programs execute can be used in tester, such as plays game by game application, passes through video Application plays audio-video is scanned for, query information etc. by browser application.
Before application development completes simultaneously formal online publication, need to test application program, test is completed Just can be online after there is no problem, currently, being usually by compatible, UI (User Interface, tester interface) or script Etc. intrinsic test assignment type, to test application program.Although these intrinsic test assignment types are to a certain extent It can satisfy the basic test demand of tester, but due to different test equipments (such as mobile phone of different terminals manufacturer) There are certain differences for model, operating system etc., it is therefore desirable to survey on the terminal device of different model to application program Examination.
At this point, on the one hand it is possible that above-mentioned intrinsic test assignment type can not be completely adapted to these different tests The case where equipment, on the other hand, when tester is other than the test of above-mentioned intrinsic task type, it is also necessary to carry out When other additional testings, then it will appear the feelings that above-mentioned intrinsic task type is unable to satisfy the diversified testing requirement of tester Condition.
Summary of the invention
The purpose of the application is intended at least can solve above-mentioned one of technological deficiency, is especially unable to satisfy tester's The technological deficiency of diversified testing requirement.
In a first aspect, providing a kind of test assignment execution method, comprising:
The request that executes for any plug-in unit test assignment that test platform is sent is received, any plug-in unit test assignment is that test is flat Stylobate is generated in the plug-in unit got;
According to the request that executes received, the target device for executing any plug-in unit test assignment is determined;
Any plug-in unit test assignment is pushed to target device by agent equipment, and target is received by agent equipment The implementing result that equipment returns.
Specifically, plug-in unit includes the mission bit stream to match with user demand;
Mission bit stream includes at least one of the following: task names;Task definition;Task type;Task parameters;It is required that returning Resultant content.
Further, before receiving the execution request for any plug-in unit test assignment that test platform is sent, further includes:
The plug-in unit got is parsed by test platform, and verifies the correctness of plug-in unit based on analysis result.
Further, any plug-in unit test assignment is that test platform passes through configuration plug-in test assignment object, configuration plug-in In test assignment parameter and the specified equipment for executing plug-in unit test assignment at least one of generate.
Further, any plug-in unit test assignment is pushed to target device by agent equipment, comprising:
Packing processing is carried out to plug-in unit test assignment object and/or plug-in unit test assignment parameter and plug-in unit, is corresponded to Plug-in unit test assignment handle packet;
Plug-in unit test assignment processing packet is pushed to target device by agent equipment.
Further, after receiving the implementing result that target device returns by agent equipment, further includes:
Implementing result is parsed, and generates corresponding catalogue level and file download link based on analysis result, with Corresponding implementing result is obtained for user.
Second aspect provides a kind of test assignment executive device, comprising:
Receiving module, any plug-in unit test assignment for receiving test platform transmission execute request, any plug-in unit survey Trial business is that test platform is generated based on the plug-in unit got;
Determining module, for determining the target device for executing any plug-in unit test assignment according to the request that executes received;
Processing module for pushing any plug-in unit test assignment to target device by agent equipment, and is set by agency The standby implementing result for receiving target device and returning.
Specifically, plug-in unit includes the mission bit stream to match with user demand;
Mission bit stream includes at least one of the following: task names;Task definition;Task type;Task parameters;It is required that returning Resultant content.
It further, further include the first parsing module;
First parsing module, for being parsed by test platform to the plug-in unit got, and school based on analysis result Test the correctness of plug-in unit.
Further, any plug-in unit test assignment is that test platform passes through configuration plug-in test assignment object, configuration plug-in In test assignment parameter and the specified equipment for executing plug-in unit test assignment at least one of generate.
Further, processing module includes being packaged submodule and push submodule;
It is packaged submodule, for beating plug-in unit test assignment object and/or plug-in unit test assignment parameter and plug-in unit Packet processing obtains corresponding plug-in unit test assignment processing packet;
Submodule is pushed, for pushing plug-in unit test assignment processing packet to target device by agent equipment.
It further, further include the second parsing module;
Second parsing module for parsing to implementing result, and generates corresponding catalogue level based on analysis result It is linked with file download, to obtain corresponding implementing result for user.
The third aspect, provides a kind of electronic equipment, including memory, processor and storage on a memory and can located The computer program run on reason device, processor realize that above-mentioned test assignment executes method when executing described program.
Fourth aspect provides a kind of computer readable storage medium, calculating is stored on computer readable storage medium Machine program, the program realize that above-mentioned test assignment executes method when being executed by processor.
The application implements the test assignment provided and executes method, receives any plug-in unit test assignment that test platform is sent Request is executed, which generated based on the plug-in unit got, so that test platform being capable of basis What is got meets the plug-in unit of tester's diversification testing requirement, generates corresponding plug-in unit test assignment, and test platform Server receives the plug-in unit test assignment that test platform is sent, so that test platform server, which is able to carry out this, meets tester The plug-in unit test assignment of diversified testing requirement;According to the request that executes received, determines and execute any plug-in unit test assignment Target device, to lay the foundation to execute any plug-in unit test assignment subsequently through target device;By agent equipment to Target device pushes any plug-in unit test assignment, and receives the implementing result that target device returns by agent equipment, so that mesh Marking device can efficiently execute plug-in unit test assignment, and meet tester's diversification test need to the return of test platform server The implementing result asked, thus the case where overcoming intrinsic test assignment type to be unable to satisfy the additional testing demand of tester.
The additional aspect of the application and advantage will be set forth in part in the description, these will become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is that a kind of test assignment of the embodiment of the present application executes the flow diagram of method;
Fig. 2 is that another test assignment of the embodiment of the present application executes the flow diagram of method;
Fig. 3 is the overall process schematic diagram of the execution test assignment of the embodiment of the present application;
Fig. 4 is the basic structure schematic diagram of the test assignment executive device of the embodiment of the present application;
Fig. 5 is the detailed construction schematic diagram of the test assignment executive device of the embodiment of the present application;
Fig. 6 is the structural schematic diagram of the electronic equipment of the embodiment of the present application.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the application, and cannot be construed to the limitation to the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Presently, there are intrinsic task type, although the basic test of tester can satisfy to a certain extent Demand, but since model, operating system of different test equipments (such as mobile phone of different terminals manufacturer) etc. exist centainly Difference, it is therefore desirable to application program be tested on the terminal device of different model.At this point, on the one hand it is possible that on State the case where intrinsic task type can not be completely adapted to these different test equipments, on the other hand, when tester in addition to Except the test of above-mentioned intrinsic task type, it is also necessary to when carrying out some other additional testings, then will appear above-mentioned intrinsic task Type is unable to satisfy the case where diversified testing requirement of tester.
Test assignment provided by the present application executes method, apparatus, electronic equipment and computer readable storage medium, it is intended to solve The certainly technical problem as above of the prior art.
How the technical solution of the application and the technical solution of the application are solved with specifically embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, embodiments herein is described.
Embodiment one
The embodiment of the present application provides a kind of test assignment execution method, is executed by test platform server, such as Fig. 1 institute Show, comprising:
Step S110, receives the request that executes for any plug-in unit test assignment that test platform is sent, and any plug-in unit test is appointed Business is that test platform is generated based on the plug-in unit got.
Specifically, after tester writes completion plug-in unit according to testing requirement, plug-in unit can be uploaded to test platform, i.e., Test platform it is available to tester upload plug-in unit, while test platform can according to the testing requirement of tester, Corresponding any plug-in unit test assignment is generated based on the plug-in unit got, and any plug-in unit test assignment of generation is sent to survey Platform Server is tried, which is executed with request for test Platform Server, i.e. test platform server receives Any plug-in unit test assignment that test platform is sent executes request, wherein any plug-in unit test assignment is test platform base It is generated in the plug-in unit got.
Step S120 determines the target device for executing any plug-in unit test assignment according to the request that executes received.
Specifically, any plug-in unit test assignment that test platform server receives test platform transmission executes request Afterwards, request can be executed according to what is received, determine the target device for executing any plug-in unit test assignment, for subsequently through Target device executes any plug-in unit test assignment and lays the foundation.
Step S130 pushes any plug-in unit test assignment to target device by agent equipment, and is connect by agent equipment Receive the implementing result that target device returns.
Specifically, test equipment will not directly be connect with test platform server, but flat by agent equipment and test Platform server connection, wherein the terminal that agent equipment can play the role of agency for desktop computer, laptop etc. is set Standby, each agent equipment can connect the test equipment for executing in batches test assignment, and test equipment can be different manufacturers, difference Model, the mobile phone of different operating system, tablet computer etc., i.e., same agent equipment can act on behalf of different manufacturers, different shaped simultaneously Number, the mobile phone of different operating system, tablet computer etc..For example, desktop computer 1 can be connected with A mobile phone, B mobile phone and C hand simultaneously Machine etc., in another example, laptop 2 can be connected with A tablet computer, D mobile phone 1 and E mobile phone etc. simultaneously.
Further, test platform server determines to execute target device (such as Huawei of any plug-in unit test assignment Mobile phone) after, it can be by inquiring pre-stored database, to determine agent equipment belonging to target device, so that test is flat Platform server passes through the agent equipment determined and pushes any plug-in unit test assignment to target device, meanwhile, work as target device After having executed any plug-in unit test assignment, test platform server receives the execution knot that target device returns by agent equipment Fruit.
Further, agent equipment pass corresponding with proxied test equipment is stored in above-mentioned pre-stored database System, such as the corresponding relationship of desktop computer 1 and A mobile phone, B mobile phone and C mobile phone etc. is stored in database, in another example, database In be stored with the corresponding relationship of laptop 2 and A tablet computer, D mobile phone and F mobile phone etc..
Test assignment provided by the embodiments of the present application executes method, compared with prior art, receives what test platform was sent Any plug-in unit test assignment executes request, which generated based on the plug-in unit got, to make Corresponding plug-in unit test can be generated according to the plug-in unit for meeting tester's diversification testing requirement got by obtaining test platform Task, and test platform server receives the plug-in unit test assignment that test platform is sent, and enables test platform server Execute the plug-in unit test assignment for meeting tester's diversification testing requirement;According to the request that executes received, determines and execute The target device of any plug-in unit test assignment, to establish base to execute any plug-in unit test assignment subsequently through target device Plinth;Any plug-in unit test assignment is pushed to target device by agent equipment, and target device is received by agent equipment and is returned Implementing result, enable target device efficiently to execute plug-in unit test assignment, and return to meet to test platform server and survey The implementing result of examination personnel's diversification testing requirement, so that intrinsic test assignment type be overcome to be unable to satisfy the additional of tester The case where testing requirement.
Embodiment two
The embodiment of the present application provides alternatively possible implementation, further includes implementing on the basis of example 1 Method shown in example two, wherein
Further include step S100 (being not marked in figure) before step S110: by test platform to the plug-in unit got into Row parsing, and the correctness of plug-in unit is verified based on analysis result.
Specifically, plug-in unit includes the mission bit stream to match with user demand;Mission bit stream, which includes at least one of the following:, appoints Business title;Task definition;Task type;Task parameters;It is required that the resultant content returned.
Further, any plug-in unit test assignment is that test platform passes through configuration plug-in test assignment object, configuration plug-in In test assignment parameter and the specified equipment for executing plug-in unit test assignment at least one of generate.
In the embodiment of the present application, tester can be according to itself survey for being not fixed, changing to certain test objects Examination demand writes corresponding plug-in unit, so as to complete certain tests of certain test objects by the executive mode of plug-in unit Task.The plug-in unit that tester writes can be a Jar packet, which is the base class or parent for inheriting test platform , if the base class or parent of test platform be class B (i.e. Class B), the Jar packet that tester writes for subclass A (i.e. Class A), then tester's Jar packet write and the expression-form of " class A:public B " is had between test platform, Wherein, it is to inherit parent B which, which represents subclass A, and ": " indicates to inherit, and " public " indicates that base class is with publicly-owned side Formula is heritable.
Specifically, tester can write corresponding code in Jar packet, and realize and test by writing code The mission bit stream that personnel demand matches, to meet the diversified demand of tester.Above-mentioned mission bit stream may include task At least one of in the resultant content that title, task definition, task type, task parameters and requirement return.Wherein, task names It can be some subject informations for being used to distinguish the Jar packet Yu other Jar packets that tester writes;Task definition can be survey Some test contents, the tested entries etc. that examination personnel write according to demand;Task type can be tester and compile according to demand The different types of tasks such as some security tests, performance test, the suitability test write;Task parameters can be with tester's root The time parameter write according to demand, for how long indicating test, such as 5 minutes, furthermore task parameters can also be test Image parameter, such as test is executed in which application program, in another example executing test etc. on which mobile phone;It is required that returning The resultant content returned can be tester according to demand customized task return as a result, requiring return after the completion of test Data, the test result etc. that certain testers are concerned about, such as the information such as picture, log log.
Further, after tester completes the writing of corresponding plug-in unit, which can be uploaded into test platform, works as survey After the plug-in unit is uploaded to test platform by examination personnel, test platform can verify the correctness of plug-in unit, such as verify writing for plug-in unit Whether some code regulations of test platform are met, in another example verification plug-in unit writes the base class for whether inheriting test platform Deng.Wherein, test platform can first parse the plug-in unit got during verifying the correctness of plug-in unit, obtain Parsing result of the plug-in unit, such as some task parameters, task names, task type that obtain the plug-in unit etc., then based on solution Analysis result verifies the correctness of plug-in unit.In addition, test platform can show parsing result in corresponding plug-in unit list In, such as show in plug-in unit list subject name, package types, plug-in parameter and the plug-in unit purposes etc. of the plug-in unit, wherein it inserts Part parameter can be corresponding with input frame (such as can be for tester's input test duration), tick boxes (such as can for test Personnel choose some application program, a few money mobile phones etc.) etc..It should be noted that the mobile phone that tester can choose is to work as Before the mobile phone that is online, i.e. test platform can get the heartbeat that the mobile phone reports.
Further, after tester uploads to the plug-in unit of test platform by verification, tester can be according to need Will be in the plug-in parameter that test platform is shown, configuration plug-in test assignment object, configuration plug-in test assignment parameter and specified Execute at least one in the equipment of plug-in unit test assignment, wherein the test platform is similar to a client or is similar to One WEB page.For example, can using configuration plug-in test assignment object as application program 1, in another example, can be tested with configuration plug-in Task parameters are length of testing speech 10 minutes, execute on A mobile phone and B mobile phone etc., postpone when completing to match, just form a plug-in unit Test assignment, i.e., any plug-in unit test assignment are that the test platform is surveyed by configuration plug-in test assignment object, configuration plug-in At least one in the equipment of task parameters and specified execution plug-in unit test assignment is tried to generate.
Further, after forming plug-in unit test assignment, it is flat which is just issued to test by test platform Platform server executes the plug-in unit test assignment with request for test Platform Server, i.e. test platform server receives test platform Any plug-in unit test assignment sent executes request.
By the application implement in method, enable test platform according to get meet tester diversification The plug-in unit of testing requirement generates corresponding plug-in unit test assignment, and test platform server receives inserting for test platform transmission Part test assignment enables test platform server accurately to determine that executing this meets tester's diversification testing requirement The target device of plug-in unit test assignment.
Embodiment three
The embodiment of the present application provides alternatively possible implementation, further includes implementing on the basis of example 2 Method shown in example three, wherein
Step S130 includes step S1301 (being not marked in figure) and step S1302 (being not marked in figure), wherein
Step S1301: plug-in unit test assignment object and/or plug-in unit test assignment parameter and plug-in unit are carried out at packing Reason obtains corresponding plug-in unit test assignment processing packet;
Step S1302: plug-in unit test assignment processing packet is pushed to target device by agent equipment.
After step s 130 further include step S140 (being not marked in figure): implementing result is parsed, and based on solution It analyses result and generates corresponding catalogue level and file download link, to obtain corresponding implementing result for user.
Specifically, after the execution that test platform server receives any plug-in unit test assignment that test platform is sent is requested, Request is executed according to what is received, determines the target device for executing the plug-in unit test assignment, such as A mobile phone and B mobile phone, then Agent equipment belonging to target device, such as desktop computer 1 are determined, to pass through the agent equipment determined (such as desktop Brain 1) to target device (such as A mobile phone and B mobile phone) push the plug-in unit test assignment.Wherein, in the push of plug-in unit test assignment In the process, test platform server can be first to plug-in unit test assignment object (such as application program 1) and/or plug-in unit test assignment Parameter (such as length of testing speech is 10 minutes, target device is A mobile phone and B mobile phone) and plug-in unit itself carry out packing processing, obtain It is wrapped to the processing of corresponding plug-in unit test assignment, plug-in unit test assignment processing is then pushed to target device by agent equipment Packet, so that target device executes the plug-in unit test assignment.
Further, target device (such as A mobile phone and B mobile phone) can generate during executing plug-in unit test assignment Corresponding implementing result, wherein the implementing result includes that customized some tasks are returned the result, counted tester according to demand According to, log etc..After target device completes the execution of plug-in unit test assignment, implementing result can be packaged (such as being packaged into ZIP packet) And implementing result is sent to by test platform server by agent equipment, i.e. test platform server is received by agent equipment The implementing result that target device returns.
Further, after test platform server receives the implementing result (such as ZIP packet) of target device return, to holding Row result is parsed, such as is unziped it to ZIP packet, then generates corresponding catalogue level and file based on analysis result Download link, to obtain corresponding implementing result for tester, such as tester can check according to their own needs Or downloading concrete outcome file.Wherein, catalogue level can be in the form of file nesting, such as file P include subfile P1, Subfile P2 etc., subfile P1 may include corresponding subfile P11 and P12 etc. again, such as subfile P1 can be picture text Part, subfile P11 are .JPEG format picture file, and subfile P12 is .PNG format picture file.
By the method in the embodiment of the present application, target device is enabled efficiently to execute plug-in unit test assignment, and to survey Examination Platform Server returns to the implementing result for meeting tester's diversification testing requirement, to effectively avoid intrinsic task type The case where being unable to satisfy the additional testing demand of tester.
Example IV
The embodiment of the present application provides a kind of test assignment execution method, is executed by test platform, as shown in Figure 2, comprising:
Step S210: the plug-in unit that user uploads is obtained.
Step S220: corresponding plug-in unit test assignment is generated based on the plug-in unit got.
Step S230: request is executed to test platform server transmission plug-in unit test assignment.
Specifically, plug-in unit includes the mission bit stream to match with user demand;Mission bit stream, which includes at least one of the following:, appoints Business title;Task definition;Task type;Task parameters;It is required that the resultant content returned.
Further, any plug-in unit test assignment is that test platform passes through configuration plug-in test assignment object, configuration plug-in In test assignment parameter and the specified equipment for executing plug-in unit test assignment at least one of generate.
Further, tester can compile according to itself testing requirement for being not fixed, changing to certain test objects Corresponding plug-in unit is write, to complete certain fc-specific test FC tasks of certain test objects.The plug-in unit that tester writes can be one A Jar packet, the Jar packet are the base class or parent for inheriting test platform.Wherein, tester can compile in Jar packet Corresponding code is write, and realizes the mission bit stream to match with tester's demand by writing code, to meet tester The diversified demand of member.Above-mentioned mission bit stream may include task names, task definition, task type, task parameters and requirement At least one of in the resultant content of return.Wherein, what task names can be that tester writes some is used to distinguish the Jar The subject information of packet and other Jar packets;Task definition can be some test contents, the test that tester writes according to demand Entry etc.;Task type can be some security tests, performance test, the suitability test that tester writes according to demand Etc. different types of task;The time parameter that task parameters can be write according to demand with tester, for how long indicating test Time, such as 5 minutes, furthermore task parameters can also be test object parameter, such as execute test in which application program, In another example executing test etc. on which mobile phone;It is required that the resultant content returned can be tester and make by oneself according to demand It is that the task of justice returns as a result, requiring test after the completion of return to data, the test result etc. that certain testers are concerned about, such as The information such as picture, log log.
Further, after tester completes the writing of corresponding plug-in unit, which can be uploaded to test platform, that is, surveyed It tries platform and obtains the plug-in unit that tester uploads.Wherein, after test platform gets the plug-in unit of tester's upload, Ke Yigen In equipment according to the plug-in unit test assignment object of tester's configuration, plug-in unit test assignment parameter and execution plug-in unit test assignment At least one of, corresponding plug-in unit test assignment is generated, i.e. test platform generates corresponding plug-in unit test based on the plug-in unit got Task.
Further, after test platform generates corresponding plug-in unit test assignment based on the plug-in unit got, just this is inserted Part test assignment is issued to test platform server, executes the plug-in unit test assignment with request for test Platform Server, i.e., to survey Examination Platform Server transmission plug-in unit test assignment executes request.
By the method in the embodiment of the present application, obtain the plug-in unit that tester uploads, allow tester according to The individual demand of oneself writes corresponding plug-in unit;Corresponding plug-in unit test assignment is generated based on the plug-in unit got, so as to It is enough to generate the plug-in unit test assignment for meeting tester's demand;The execution for sending plug-in unit test assignment to test platform server is asked It asks, so that test platform server is able to carry out the plug-in unit test assignment for meeting tester's diversification testing requirement, thus The multiplicity of tester can be met according to the different testing requirements of different testers, personalized customization plug-in unit test assignment Change demand effectively avoids the limitation of intrinsic test assignment type.
It should be noted that above-mentioned implementation one to implement four in test assignment execute method, actually one with The process that execution is interacted between family, test platform, test platform server, agent equipment, test equipment, by interaction come complete At the execution of test assignment, wherein interactive process is as shown in figure 3, user (such as tester) will complete to write in Fig. 3 Plug-in unit uploads to test platform, and then test platform generates plug-in unit test assignment according to the plug-in unit got, then test platform Plug-in unit test assignment is issued to test platform server, then plug-in unit test assignment is distributed target by test platform server The corresponding agent equipment of equipment, then plug-in unit test assignment is pushed to target device by agent equipment, and then target device executes Plug-in unit test assignment, and after the execution for completing plug-in unit test assignment, implementing result is returned into agent equipment, then agency sets Standby that implementing result is sent to test platform server, then test platform server parses implementing result, and is based on Parsing result generates corresponding catalogue level and file download link, to obtain corresponding implementing result for tester.
Embodiment five
Fig. 4 is a kind of structural schematic diagram of test assignment executive device provided by the embodiments of the present application, as shown in figure 4, should Device 40 may include receiving module 41, determining module 42 and processing module 43, wherein
Receiving module 41 is used to receive the request that executes of any plug-in unit test assignment of test platform transmission, and any plug-in unit is surveyed Trial business is that test platform is generated based on the plug-in unit got;
Determining module 42 is used to determine that the target for executing any plug-in unit test assignment is set according to the request that executes received It is standby;
Processing module 43 is used to push any plug-in unit test assignment to target device by agent equipment, and is set by agency The standby implementing result for receiving target device and returning.
Specifically, plug-in unit includes the mission bit stream to match with user demand;
Mission bit stream includes at least one of the following: task names;Task definition;Task type;Task parameters;It is required that returning Resultant content.
Further, which further includes the first parsing module 44, as shown in Figure 5, wherein
First parsing module 44 is used to parse the plug-in unit got by test platform, and school based on analysis result Test the correctness of plug-in unit.
Further, any plug-in unit test assignment is that test platform passes through configuration plug-in test assignment object, configuration plug-in In test assignment parameter and the specified equipment for executing plug-in unit test assignment at least one of generate.
Further, processing module 43 includes being packaged submodule 431 and push submodule 432, as shown in Figure 5, wherein
Submodule 431 is packaged to be used to carry out plug-in unit test assignment object and/or plug-in unit test assignment parameter and plug-in unit Packing processing obtains corresponding plug-in unit test assignment processing packet;
Submodule 432 is pushed to be used to push plug-in unit test assignment processing packet to target device by agent equipment.
It further, further include the second parsing module 45, as shown in Figure 5, wherein
Second parsing module 45 generates corresponding catalogue level for parsing to implementing result based on analysis result It is linked with file download, to obtain corresponding implementing result for user.
Device provided by the embodiments of the present application receives any plug-in unit test that test platform is sent compared with prior art Task executes request, which generated based on the plug-in unit got, so that test platform energy The plug-in unit for meeting tester's diversification testing requirement that enough bases are got, generates corresponding plug-in unit test assignment, and survey It tries Platform Server and receives the plug-in unit test assignment that test platform is sent, so that test platform server is able to carry out satisfaction survey The plug-in unit test assignment of examination personnel's diversification testing requirement;According to the request that executes received, determines and execute any plug-in unit test The target device of task, to lay the foundation to execute any plug-in unit test assignment subsequently through target device;Pass through agency Equipment pushes any plug-in unit test assignment to target device, and receives the implementing result that target device returns by agent equipment, Enable target device efficiently to execute plug-in unit test assignment, and meets tester's diversification to the return of test platform server The implementing result of testing requirement, thus overcome intrinsic test assignment type be unable to satisfy tester additional testing demand feelings Condition.
Embodiment six
The embodiment of the present application provides a kind of electronic equipment, as shown in fig. 6, electronic equipment shown in fig. 6 600 includes: place Manage device 601 and memory 603.Wherein, processor 601 is connected with memory 603, is such as connected by bus 602.Further, Electronic equipment 600 can also include transceiver 604.It should be noted that transceiver 604 is not limited to one in practical application, it should The structure of electronic equipment 600 does not constitute the restriction to the embodiment of the present application.
Wherein, processor 601 is applied in the embodiment of the present application, for realizing determining module shown in Fig. 4 and processing mould The function of block.Transceiver 604 includes Receiver And Transmitter, and transceiver 604 is applied in the embodiment of the present application, for realizing figure The function of receiving module shown in 5.
Processor 601 can be CPU, general processor, DSP, ASIC, FPGA or other programmable logic device, crystalline substance Body pipe logical device, hardware component or any combination thereof.It, which may be implemented or executes, combines described by present disclosure Various illustrative logic blocks, module and circuit.Processor 601 is also possible to realize the combination of computing function, such as wraps It is combined containing one or more microprocessors, DSP and the combination of microprocessor etc..
Bus 602 may include an access, and information is transmitted between said modules.Bus 602 can be pci bus or EISA Bus etc..Bus 602 can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 6 only with one slightly Line indicates, it is not intended that an only bus or a type of bus.
Memory 603 can be ROM or can store the other kinds of static storage device of static information and instruction, RAM Or the other kinds of dynamic memory of information and instruction can be stored, it is also possible to EEPROM, CD-ROM or other CDs Storage, optical disc storage (including compression optical disc, laser disc, optical disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium Or other magnetic storage apparatus or can be used in carry or store have instruction or data structure form desired program generation Code and can by any other medium of computer access, but not limited to this.
Memory 603 is used to store the application code for executing application scheme, and is held by processor 601 to control Row.Processor 601 is for executing the application code stored in memory 603, to realize the survey of embodiment illustrated in fig. 4 offer Try the movement of task execution device.
Electronic equipment provided by the embodiments of the present application, including memory, processor and storage on a memory and can located The computer program that runs on reason device, when processor executes program, compared with prior art, it can be achieved that: receive test platform hair Any plug-in unit test assignment sent executes request, which generated based on the plug-in unit got, from And test platform is enabled to generate corresponding plug-in unit according to the plug-in unit for meeting tester's diversification testing requirement got Test assignment, and test platform server receives the plug-in unit test assignment that test platform is sent, so that test platform server It is able to carry out the plug-in unit test assignment for meeting tester's diversification testing requirement;According to the request that executes received, determine The target device of any plug-in unit test assignment is executed, to establish to execute any plug-in unit test assignment subsequently through target device Fixed basis;Any plug-in unit test assignment is pushed to target device by agent equipment, and target device is received by agent equipment The implementing result of return enables target device efficiently to execute plug-in unit test assignment, and returns completely to test platform server The implementing result of sufficient tester's diversification testing requirement, so that intrinsic test assignment type be overcome to be unable to satisfy tester's The case where additional testing demand.
The embodiment of the present application provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program realizes method shown in embodiment one when the program is executed by processor.Compared with prior art, test is received Any plug-in unit test assignment that platform is sent executes request, which generated based on the plug-in unit got , so that test platform can generate corresponding according to the plug-in unit for meeting tester's diversification testing requirement got Plug-in unit test assignment, and test platform server receive test platform send plug-in unit test assignment so that test platform Server is able to carry out the plug-in unit test assignment for meeting tester's diversification testing requirement;It is asked according to the execution received It asks, determines the target device for executing any plug-in unit test assignment, to be surveyed to execute any plug-in unit subsequently through target device Trial business lays the foundation;Any plug-in unit test assignment is pushed to target device by agent equipment, and is received by agent equipment The implementing result that target device returns enables target device efficiently to execute plug-in unit test assignment, and to test platform service Device returns to the implementing result for meeting tester's diversification testing requirement, so that intrinsic test assignment type be overcome to be unable to satisfy survey The case where additional testing demand of examination personnel.
Computer readable storage medium provided by the embodiments of the present application is suitable for any embodiment of the above method.Herein not It repeats again.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the application, it is noted that for the ordinary skill people of the art For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered It is considered as the protection scope of the application.

Claims (10)

1. a kind of test assignment executes method, which is characterized in that executed by test platform server, comprising:
The request that executes for any plug-in unit test assignment that test platform is sent is received, any plug-in unit test assignment is that test is flat Stylobate is generated in the plug-in unit got;
According to the request that executes received, the target device for executing any plug-in unit test assignment is determined;
Any plug-in unit test assignment is pushed to target device by agent equipment, and target device is received by agent equipment The implementing result of return.
2. the method according to claim 1, wherein the plug-in unit includes the task letter to match with user demand Breath;
The mission bit stream includes at least one of the following: task names;Task definition;Task type;Task parameters;It is required that returning Resultant content.
3. the method according to claim 1, wherein any plug-in unit test sent in the reception test platform Before the execution request of task, further includes:
The plug-in unit got is parsed by test platform, and verifies the correctness of the plug-in unit based on analysis result.
4. method according to claim 1-3, which is characterized in that any plug-in unit test assignment is the survey Examination platform is set by configuration plug-in test assignment object, configuration plug-in test assignment parameter and specified execution plug-in unit test assignment In standby at least one of generate.
5. according to the method described in claim 4, it is characterized in that, described appointed by agent equipment to target device push is described One plug-in unit test assignment, comprising:
Packing processing is carried out to the plug-in unit test assignment object and/or the plug-in unit test assignment parameter and the plug-in unit, Obtain corresponding plug-in unit test assignment processing packet;
The plug-in unit test assignment processing packet is pushed to target device by agent equipment.
6. method according to claim 1-5, which is characterized in that set described by agent equipment reception target After the standby implementing result returned, further includes:
The implementing result is parsed, and generates corresponding catalogue level and file download link based on analysis result, with Corresponding implementing result is obtained for user.
7. a kind of test assignment executive device, which is characterized in that executed by test platform server, comprising:
Receiving module, any plug-in unit test assignment for receiving test platform transmission execute request, any plug-in unit survey Trial business is that test platform is generated based on the plug-in unit got;
Determining module, for determining the target device for executing any plug-in unit test assignment according to the request that executes received;
Processing module for pushing any plug-in unit test assignment to target device by agent equipment, and is set by agency The standby implementing result for receiving target device and returning.
8. device according to claim 7, which is characterized in that the plug-in unit includes the task letter to match with user demand Breath;
The mission bit stream includes at least one of the following: task names;Task definition;Task type;Task parameters;It is required that returning Resultant content.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes test assignment described in any one of claims 1-6 when executing described program Execution method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the program realize that test assignment described in any one of claims 1-6 executes method when being executed by processor.
CN201810917516.0A 2018-08-13 2018-08-13 Test assignment executes method, apparatus, electronic equipment and computer storage medium Pending CN109308257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810917516.0A CN109308257A (en) 2018-08-13 2018-08-13 Test assignment executes method, apparatus, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810917516.0A CN109308257A (en) 2018-08-13 2018-08-13 Test assignment executes method, apparatus, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN109308257A true CN109308257A (en) 2019-02-05

Family

ID=65223851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810917516.0A Pending CN109308257A (en) 2018-08-13 2018-08-13 Test assignment executes method, apparatus, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109308257A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124646A (en) * 2019-12-23 2020-05-08 百度国际科技(深圳)有限公司 Privatization transformation implementation method and device, electronic equipment and storage medium
CN111913884A (en) * 2020-07-30 2020-11-10 百度在线网络技术(北京)有限公司 Distributed test method, device, equipment, system and readable storage medium
CN115033466A (en) * 2022-05-23 2022-09-09 珠海视熙科技有限公司 Batch flashing pressure testing method and device, storage medium and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
CN103593191A (en) * 2013-11-19 2014-02-19 乐视致新电子科技(天津)有限公司 Method and device for calling application program data
US20150100829A1 (en) * 2013-10-04 2015-04-09 Unisys Corporation Method and system for selecting and executing test scripts
CN104978259A (en) * 2014-04-01 2015-10-14 中国银联股份有限公司 Mobile equipment software automation test cluster system and test method thereof
CN106332162A (en) * 2015-06-25 2017-01-11 中兴通讯股份有限公司 Telephone traffic test system and method
CN107678941A (en) * 2017-08-31 2018-02-09 深圳市小牛在线互联网信息咨询有限公司 Method and device, storage medium and the computer equipment of Application testing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365770A (en) * 2012-04-09 2013-10-23 陆兵 Mobile terminal software testing system and software testing method
US20150100829A1 (en) * 2013-10-04 2015-04-09 Unisys Corporation Method and system for selecting and executing test scripts
CN103593191A (en) * 2013-11-19 2014-02-19 乐视致新电子科技(天津)有限公司 Method and device for calling application program data
CN104978259A (en) * 2014-04-01 2015-10-14 中国银联股份有限公司 Mobile equipment software automation test cluster system and test method thereof
CN106332162A (en) * 2015-06-25 2017-01-11 中兴通讯股份有限公司 Telephone traffic test system and method
CN107678941A (en) * 2017-08-31 2018-02-09 深圳市小牛在线互联网信息咨询有限公司 Method and device, storage medium and the computer equipment of Application testing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124646A (en) * 2019-12-23 2020-05-08 百度国际科技(深圳)有限公司 Privatization transformation implementation method and device, electronic equipment and storage medium
CN111124646B (en) * 2019-12-23 2023-03-14 百度国际科技(深圳)有限公司 Privatization transformation implementation method and device, electronic equipment and storage medium
CN111913884A (en) * 2020-07-30 2020-11-10 百度在线网络技术(北京)有限公司 Distributed test method, device, equipment, system and readable storage medium
CN115033466A (en) * 2022-05-23 2022-09-09 珠海视熙科技有限公司 Batch flashing pressure testing method and device, storage medium and computer equipment
CN115033466B (en) * 2022-05-23 2023-04-07 珠海视熙科技有限公司 Batch flashing pressure testing method and device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN110032511A (en) A kind of interface test method and interface testing equipment
CN111159049B (en) Automatic interface testing method and system
CN109308257A (en) Test assignment executes method, apparatus, electronic equipment and computer storage medium
CN107122258A (en) Method and apparatus for the state code check of test interface
CN109639636A (en) Business datum forwarding, business data processing method, device and electronic equipment
CN106357457A (en) Warning test method, warning test apparatus and warning test system
US20130183948A1 (en) Application Store System and Development Method Using the Application Store System
EP2635051A1 (en) Application shop system and application development method using the application shop system
CN102629194B (en) Novel application store adaptor facing mobile terminals
CN111694757B (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN105471968A (en) Data exchange method, data exchange system and data platform server
CN108804399A (en) The method of calibration and device of list
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
US20110138001A1 (en) Apparatus and method for testing web service interoperability
CN107040613A (en) A kind of message transmitting method and system
CN108089972A (en) interface test method and device
CN112910979A (en) Internet of things API (application program interface) sharing system, method and medium based on atomic data management
CN114022278B (en) Analog transaction processing method and device
CN106341449A (en) Data synchronization method and device
CN110489326A (en) HTTPAPI adjustment method device, medium and equipment based on IDS
CN113791766B (en) Method for combining data interfaces, electronic device and readable storage medium
CN109831335A (en) A kind of data monitoring method, monitor terminal, storage medium and data monitoring system
CN108153677A (en) The test method and intelligent terminal of intelligent terminal
CN112559348B (en) Test analysis method, system, equipment and medium based on jacoco
CN109151007B (en) Data processing method, core server and transmission server for application scheduling

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190205