CN108845898A - A kind of test method and test macro - Google Patents

A kind of test method and test macro Download PDF

Info

Publication number
CN108845898A
CN108845898A CN201810530456.7A CN201810530456A CN108845898A CN 108845898 A CN108845898 A CN 108845898A CN 201810530456 A CN201810530456 A CN 201810530456A CN 108845898 A CN108845898 A CN 108845898A
Authority
CN
China
Prior art keywords
script
server
measured
mark
test
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
CN201810530456.7A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810530456.7A priority Critical patent/CN108845898A/en
Publication of CN108845898A publication Critical patent/CN108845898A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback

Landscapes

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

Abstract

The embodiment of the present invention provides a kind of test method and test macro, order is executed to server to be measured transmission by controlling terminal, it carries first task mark, first position index, the first script mark and the first script argument, indicates that server to be measured obtains test script from script server and executes;Acquisition request is sent to server to be measured, it carries the second task identification, second position index, the second script mark and the second script argument, indicate that server to be measured when the second task identification is identified with first position index, the second script with the first script mark and the second script argument and consistent the first script argument with first task mark, second position index, sends test result to controlling terminal.Controlling terminal issues test assignment, and controls server to be measured and obtain test script completion deployment, effectively saves manpower, after the completion of test, can collect test result according to test assignment, facilitate test analysis, effectively increase testing efficiency.

Description

A kind of test method and test macro
Technical field
The present invention relates to the field of test technology, more particularly to a kind of test method and test macro.
Background technique
Server test is the key that guarantee properties of product, as measuring technology develops, more and more server tests Available scripts are realized.At present in server test process, tester usually copies to script on server to be measured, to Perform script on server is surveyed to read journal file after script execution from server to be measured, check test result, And then judge server test whether by or extremely.
However, inventors discovered through research that, before being tested using the above method server, test script needs thing It first configures on server to be measured, if necessary to carry out test to server cluster or carry out batch survey to a large amount of servers Examination needs to take a substantial amount of time and energy progress script configuration;Moreover, after the completion of test, it is also the same to need to a large amount of days Will file is collected, and causes server testing efficiency low in this way.
Therefore, the technical issues of server testing efficiency is those skilled in the art's urgent need to resolve how is improved.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of test method and test systems System, for solving the problems, such as that testing efficiency is low in the prior art.
In order to achieve the above objects and other related objects, according to the first aspect of the invention, the embodiment of the present invention provides one Kind test method, is applied to controlling terminal, this approach includes the following steps:
Order is executed to server to be measured transmission, the execution order carries first task mark, first position indexes, First script mark and the first script argument are used to indicate server to be measured according to first position index and described first Script mark obtains test script from script server, and executes the test script using first script argument;
Acquisition request is sent to server to be measured, the acquisition request carries the second task identification, the second position indexes, Second script mark and the second script argument, be used to indicate server to be measured when second task identification with it is described first Business mark, second position index are identified with first position index, second script mark with first script And when second script argument and consistent first script argument, test result is sent to controlling terminal.
Optionally, before sending acquisition request to the server to be measured, this method further includes:
Inquiry request is sent to server to be measured, the inquiry request carries third task identification, the third place index And third scenario mark, server to be measured is used to indicate when the third task identification identifies with the first task, is described The third place index identifies with first position index and third scenario mark with first script consistent When, corresponding status information is sent to controlling terminal;
It is described to include to server to be measured transmission acquisition request:
When status information mark is successfully tested, acquisition request is sent to the server to be measured.
Optionally, it is sent before executing order to server to be measured, the method also includes:
Multiple servers to be measured are divided into multiple test groups;
It is described to execute order to server to be measured transmission, including:
The server to be measured transmission into each test group executes order respectively, the clothes to be measured being sent in a test group The execution order of business device carries identical first task mark, and the execution order of the server to be measured of each test group carries not Same first task mark.
Optionally, it is sent before executing order to server to be measured, further includes:
More newer command is sent to script server and more new script, the more newer command carry the 4th location index, is used The more new script is stored in the corresponding storage location of the 4th location index in instruction script server.
According to the second aspect of the invention, the embodiment of the present invention also provides a kind of test method, is applied to server to be measured, This method includes:
The execution order from controlling terminal is received, the execution order carries first task mark, first position rope Draw, the first script mark and the first script argument, according to the first position index and first script identify, from script Server obtains test script, and executes the test script using first script argument;
The acquisition request from controlling terminal is received, the acquisition request carries the second task identification, second position rope Draw, the second script mark and the second script argument, when second task identification and the first task mark, described second Location index and first position index, second script mark and first script mark and second script When parameter and first script argument are consistent, test result is sent to controlling terminal.
Optionally, this method further includes:
The inquiry request that controlling terminal is sent is received, the inquiry request carries third task identification, the third place rope Regard it as and third scenario identifies, when the third task identification and first task mark, the third place index and institute When stating a location index and third scenario mark and consistent first script mark, phase is sent to controlling terminal The status information answered.
According to the third aspect of the invention we, the embodiment of the present invention also provides a kind of test macro, which includes foot Book server and controlling terminal, for testing server to be measured, wherein:
The script server, for storing test script;
The controlling terminal, for executing order to server to be measured transmission, the execution order carries first task Mark, first position index, the first script mark and the first script argument, are used to indicate the server to be measured according to First position index and first script mark obtain test script from script server, and use first script Parameter executes the test script;And acquisition request is sent to server to be measured, the acquisition request carries the second task Mark, second position index, the second script mark and the second script argument, are used to indicate server to be measured when described second Business mark is identified with first task mark, second position index and first position index, second script When with first script mark and second script argument and consistent first script argument, sent out to controlling terminal Send test result.
Optionally, before sending acquisition request to the server to be measured, the controlling terminal is also used to,
Inquiry request is sent to server to be measured, the inquiry request carries third task identification, the third place index And third scenario mark, be used to indicate the server to be measured when the third task identification and the first task mark, The third place index identifies with first position index and third scenario mark with first script uniform When cause, corresponding status information is sent to controlling terminal;
It is described to include to server to be measured transmission acquisition request:
When status information mark is successfully tested, acquisition request is sent to the server to be measured.
Optionally, the controlling terminal is also used to,
It is sent before executing order to server to be measured, multiple servers to be measured is divided into multiple test groups;
It is described to execute order to server to be measured transmission, including:
The server to be measured transmission into each test group executes order respectively, the clothes to be measured being sent in a test group The execution order of business device carries identical first task mark, and the execution order of the server to be measured between each test group is taken It is identified with different first tasks.
Optionally, the controlling terminal is also used to,
It is sent before executing order to server to be measured, sends more newer command and more new script to script server, it is described More newer command carries the 4th location index, is used to indicate script server for the more new script and is stored in the 4th position Index corresponding storage location.
As described above, a kind of test method provided in an embodiment of the present invention and test macro, have the advantages that:This The test method that inventive embodiments provide executes order to server to be measured transmission by controlling terminal, and the execution order is taken With first task mark, first position index, the first script mark and the first script argument, it is used to indicate server to be measured According to first position index and first script mark, obtained described in test script and use from script server First script argument executes the test script;Acquisition request is sent to server to be measured, the acquisition request carries second Task identification, second position index, the second script mark and the second script argument, are used to indicate server to be measured when described the Two task identifications and first task mark, second position index and first position index, second script When mark is with first script mark and second script argument and consistent first script argument, eventually to control End sends test result.Controlling terminal can issue test assignment, and control server to be measured and obtain test script, complete test Script deployment, effectively saves manpower and material resources, moreover, can complete test result according to test item after the completion of test It collects, facilitates test analysis, to effectively increase testing efficiency.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
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 technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of controlling terminal side test method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another test method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of server side test method to be measured provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of test macro provided in an embodiment of the present invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
It please refers to Fig.1 to Fig.4.It should be noted that diagram provided in the present embodiment only illustrates this in a schematic way The basic conception of invention, only shown in diagram then with related component in the present invention rather than package count when according to actual implementation Mesh, shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its Assembly layout kenel may also be increasingly complex.
The test method of the embodiment of the present invention for a clear description first retouches the system architecture of the embodiment of the present invention It states, in embodiments of the present invention, controlling terminal can be used as client, be communicated with each server to be measured, control to be measured Server implementation testing procedure;Moreover, the controlling terminal can also be communicated with script server, the script server In be stored with test script, when executing testing procedure, server to be measured is able to access that script server, obtains test script and exists It is executed in server to be measured.In one exemplary embodiment, it in order to realize the system architecture of foregoing invention embodiment, can be used Java is development language, with spring boot as main frame, realizes the interaction with the external world by restful API, When deployment, jar file can be copied to and be executed on controlling terminal and server to be measured, between controlling terminal and server to be measured HTTP request can be used and realize interaction.Certainly, above-described embodiment is only that an exemplary embodiment may be used also in the specific implementation By use it is any other in a manner of realize above system framework, the embodiment of the present invention is without limitation.
It is a kind of flow diagram of controlling terminal side test method provided in an embodiment of the present invention, such as Fig. 1 referring to Fig. 1 Shown, the embodiment of the present invention shows the process that controlling terminal executes test method:
Step S101:Order is executed to server to be measured transmission, the execution order carries first task mark, first Location index, the first script mark and the first script argument, are used to indicate server to be measured and are indexed according to the first position It is identified with first script, obtains test script from script server, and using described in first script argument execution Test script.
In the specific implementation, controlling terminal can send to server to be measured and execute order, can take in the execution order Band first task mark, first position index, the first script mark and the first script argument;Wherein, the first task mark Know for identifying the title for executing test assignment;First position index for identifying script position so that server to be measured according to First position index obtains test script;First script mark is for identifying the title for executing test script;First script ginseng Number, when to execute the test assignment, the test parameter that corresponding test script needs to call in the process of implementation, for controlling test The execution of script.In one exemplary embodiment, { " taskId " can be carried in the execution order:"3.2"," projectName":"project1","testCaseNumber":"PCIEtest","scriptParam":[{"time": " 4 "] }, wherein it is entitled " 3.2 " that first task mark can execute test assignment for " 3.2 " mark;First position index can Think " project1 ", mark obtains corresponding test script from script server " project1 " file;First script mark It can be " PCIEtest " that mark test script is entitled " PCIEtest ";First script argument can be " time ":" 4 ", mark It needs to call the parameter when knowing script test, controls the testing time at 4 minutes etc..Certainly, it should be noted that above-mentioned to execute life Order is only an exemplary embodiment, and in the specific implementation, which can be the source body of any other form, at this In inventive embodiments without limitation.
Further, after controlling terminal is issued to server to be measured executes order, server to be measured receives this and executes life It can also be returned success message to controlling terminal after order, be used to indicate mission dispatching success.In one exemplary embodiment, to be measured Server can return to message " 200 " to controlling terminal, to indicate that controlling terminal successfully issues control instruction.
In order to be managed to test script, guarantees measuring accuracy, in one exemplary embodiment, executing to clothes to be measured Device of being engaged in is sent before executing order, and controlling terminal can also send more newer command and more new script to script server, it is described more Newer command carries the 4th location index, is used to indicate script server for the more new script and is stored in the 4th position rope Draw corresponding storage location.In this way, can upload by more new script when there is script to need to update and be stored in script server Respective memory locations;Meanwhile if necessary to upload new script, new script can also be added to by script by more newer command The respective memory locations of server.
Step S102:Acquisition request is sent to server to be measured, the acquisition request carries the second task identification, second Location index, the second script mark and the second script argument, be used to indicate server to be measured when second task identification with First task mark, second position index and first position index, second script mark and described the When one script mark and second script argument and consistent first script argument, test knot is sent to controlling terminal Fruit.
Controlling terminal can send acquisition request to server to be measured with the fixed cycle, be tested with collecting from server to be measured As a result.In the specific implementation, controlling terminal can send acquisition request to server to be measured, each to be measured in order to accurately correspond to Server, transmission request can carry the second task identification, second position index, the second script mark and the second script ginseng Number, further summarize in test result database, by being identified with first task, first position index, the first script mark with And first the matching judgment of script argument extract corresponding test result, and the test result is sent if matching is consistent Return controlling terminal.
In one exemplary embodiment, in order to obtain test result, before sending acquisition request to server to be measured, control Terminal processed can also send inquiry request to server to be measured, and the inquiry request carries third task identification, the third place Index and third scenario mark, be used to indicate server to be measured when the third task identification and the first task mark, The third place index identifies with first position index and third scenario mark with first script uniform When cause, corresponding status information is sent to controlling terminal, in the specific implementation, the status information can be WAIT/READY/ START/BLOCK/SUCCESS/FAILED.Wherein, " WAIT " expression task has received to dispatch not yet;" READY " is indicated Task is scheduled, but script executes not yet, it may be possible to download test script from script server;" START " is indicated Test script has begun execution;" BLOCK " expression executes failure, generation of coming to nothing, and needs to check that program log investigation is asked Topic;" SUCCESS " indicates that destination file generation, the judgement that server to be measured provides are to run succeeded;" FAILED " is indicated Destination file generates, and it is to execute failure that server to be measured, which executes the judgement provided after test script,.Further, when the state is believed When breath mark runs succeeded, controlling terminal sends acquisition request to the server to be measured.
By the description of above-described embodiment as it can be seen that a kind of test method provided in an embodiment of the present invention, by controlling terminal to Server transmission to be measured executes order, and the execution order carries first task mark, first position index, the first script mark Knowledge and the first script argument are used to indicate server to be measured and are identified according to first position index and first script, Test script is obtained from script server, and executes the test script using first script argument;To service to be measured Device sends acquisition request, and the acquisition request carries the second task identification, second position index, the second script mark and the Two script arguments are used to indicate server to be measured when second task identification and first task mark, the second Index is set to join with first position index, second script mark and first script mark and second script When several consistent with first script argument, test result is sent to controlling terminal.Controlling terminal can issue test assignment, And control server to be measured and obtain test script, test script deployment is completed, manpower and material resources are effectively saved, moreover, testing After the completion, the collection that test result can be completed according to test item, facilitates test analysis, to effectively increase test effect Rate.
It referring to fig. 2, is the flow diagram of another test method provided in an embodiment of the present invention, in order to improve test effect Rate, as shown in Fig. 2, the embodiment of the present invention is shown to multiple servers to be measured on the basis of test method shown in Fig. 1 Control process:
Step S201:Multiple servers to be measured are divided into multiple test groups.
In the present invention is implemented, batch testing can be carried out to server cluster to be measured, in a server cluster to be measured It may include multiple servers to be measured;Moreover, during the test, it may be necessary to execute multiple test assignments, such as CPU is surveyed The test assignments such as examination, hard disk test, memory test, multiple servers are performed simultaneously same test assignment may be due to service to be measured Interference effect measuring accuracy between device, and since test script writes problem, moreover it is possible to lead to the same of a large amount of servers to be measured When delay machine.In order to control multiple servers to be measured while be tested, multiple servers to be measured can be divided into more by controlling terminal A test group, each test group may include the server to be measured of identical or different quantity, the embodiment of the present invention without limitation.
Step S202:The server to be measured transmission into each test group executes order respectively, is sent to a test group The execution order of interior server to be measured carries identical first task mark, and the execution of the server to be measured of each test group Order carries different first task marks.
According to the test group that step S201 is determined, controlling terminal can send first to the first test group and execute order, to Second test group sends second and executes order;First task mark " CPU " is carried in first execution order, mark is surveyed to first Server to be measured in examination group carries out cpu test;Second executes and carries first task mark " hard disk " in order, and mark is to the Server to be measured in two test groups carries out hard disk test.Moreover, also carrying execution cpu test in the first execution order First position index, the first script mark and the first script argument needed, is used to indicate server to be measured and obtains cpu test Test script and execution;Described second executes the first position index for carrying execution hard disk test in order and needing, first Script mark and the first script argument are used to indicate test script and execution that server to be measured obtains hard disk test.
Place same as the previously described embodiments of the embodiment of the present invention, reference can be made to the description of above-described embodiment, details are not described herein.
By the description of above-described embodiment as it can be seen that a kind of test method provided in an embodiment of the present invention, by will be multiple to be measured Server is divided into multiple test groups, and different test groups executes different test assignments, can by multiple test assignments respectively under It issues different test groups to execute, the interference that same test project can be effectively prevent to may cause, and dispersion test script The test delay machine risk that may cause, effectively improves testing efficiency.
It is a kind of flow chart of server side test method to be measured provided in an embodiment of the present invention, such as Fig. 3 institute referring to Fig. 3 Show, the embodiment of the present invention shows the process that server to be measured executes test method:
Step S301:The execution order from controlling terminal is received, order is executed at any time and carries first task mark, the One location index, the first script mark and the first script argument, according to first position index and the first script mark Know, obtains test script from script server, and execute the test script using first script argument.
Step S302:The acquisition request from controlling terminal is received, the acquisition request carries the second task identification, the Two location indexs, the second script mark and the second script argument, when second task identification and the first task mark, The second position index is indexed with the first position, second script mark is identified with first script and described When second script argument and first script argument are consistent, test result is sent to controlling terminal.
In the specific implementation process, server to be measured can also receive the inquiry request of controlling terminal transmission, the inquiry Request carry third task identification, the third place index and third scenario mark, when the third task identification with it is described First task mark, the third place index and a location index and third scenario mark and described first When script mark is consistent, corresponding status information is sent to controlling terminal.
Place same as the previously described embodiments of the embodiment of the present invention, reference can be made to the description of above-described embodiment, details are not described herein.
By the description of above embodiment of the method, it is apparent to those skilled in the art that the present invention can Realize by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially makes tribute to the prior art in other words The part offered can be embodied in the form of software products, which is stored in a storage medium, packet Some instructions are included to use so that a computer equipment (can be personal computer, server or the network equipment etc.) executes All or part of the steps of the method according to each embodiment of the present invention.And storage medium above-mentioned includes:Read-only memory (ROM), the various media that can store program code such as random access memory (RAM), magnetic or disk.
Corresponding with test method embodiment provided by the invention, the present invention also provides a kind of test macros.
It referring to fig. 4, is a kind of structural schematic diagram of test macro provided in an embodiment of the present invention, as shown in figure 4, the test System includes script server 1 and controlling terminal 2, for testing server 3 to be measured, wherein:
The script server 1, for storing test script;
The controlling terminal 2, for executing order to server 3 to be measured transmission, the execution order carries first Business mark, first position index, the first script mark and the first script argument, are used to indicate 3 basis of server to be measured The first position index and first script mark obtain test script from script server 1, and use described first Script argument executes the test script;And acquisition request is sent to server 3 to be measured, the acquisition request carries the Two task identifications, second position index, the second script mark and the second script argument, are used to indicate server 3 to be measured and work as institute State the second task identification and first task mark, second position index and first position index, described second When script mark is with first script mark and second script argument and consistent first script argument, to control Terminal 2 processed sends test result.
In one exemplary embodiment, before sending acquisition request to server 3 to be measured, the controlling terminal 2 is also used In, to server 3 to be measured send inquiry request, the inquiry request carry third task identification, the third place index and Third scenario mark is used to indicate the server to be measured 3 when the third task identification identifies with the first task, is described The third place index identifies with first position index and third scenario mark with first script consistent When, corresponding status information is sent to controlling terminal 2;
It is described to include to server 3 to be measured transmission acquisition request:
When status information mark is successfully tested, acquisition request is sent to the server 3 to be measured.
In one exemplary embodiment, the management to server 3 to be measured for convenience, improves testing efficiency, the control Terminal 2 is also used to, and sends before executing order to server 3 to be measured, multiple servers 3 to be measured are divided for multiple test groups;
It is described to execute order to server 3 to be measured transmission, including:
The transmission of server to be measured 3 into each test group executes order respectively, is sent to be measured in a test group The execution order of server 3 carries identical first task mark, and the server to be measured 3 between each test group executes life It enables and carries different first task marks.
In one exemplary embodiment, in order to manage test script, the precision of test is improved, the controlling terminal 2 is also used In before sending execution order to server 3 to be measured, to the transmission more newer command of script server 1 and more new script, the update Order carries the 4th location index, is used to indicate script server 1 for the more new script and is stored in the 4th position rope Draw corresponding storage location.
Certainly, it should be noted that in embodiments of the present invention, the controlling terminal 2 and server to be measured 3 can be used In executing step described in above method embodiment, technical effect having the same, details are not described herein.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of test method is applied to controlling terminal, which is characterized in that include the following steps:
Order is executed to server to be measured transmission, the execution order carries first task mark, first position index, first Script mark and the first script argument are used to indicate server to be measured according to first position index and first script Mark obtains test script from script server, and executes the test script using first script argument;
Acquisition request is sent to server to be measured, the acquisition request carries the second task identification, second position index, second Script mark and the second script argument are used to indicate server to be measured when second task identification and the first task mark Know, the second position index with the first position index, second script mark with first script mark and When second script argument and first script argument are consistent, test result is sent to controlling terminal.
2. test method according to claim 1, which is characterized in that
Before sending acquisition request to the server to be measured, further include:
To server to be measured send inquiry request, the inquiry request carry third task identification, the third place index and Third scenario mark is used to indicate server to be measured when the third task identification and first task mark, the third When location index and the first position index and third scenario mark identifies consistent with first script, to Controlling terminal sends corresponding status information;
It is described to include to server to be measured transmission acquisition request:
When status information mark is successfully tested, acquisition request is sent to the server to be measured.
3. test method according to claim 1, which is characterized in that
It is sent before executing order to server to be measured, the method also includes:
Multiple servers to be measured are divided into multiple test groups;
It is described to execute order to server to be measured transmission, including:
The server to be measured transmission into each test group executes order respectively, the server to be measured being sent in a test group Execution order carry identical first task mark, and the executions order carrying of the server to be measured of each test group is different First task mark.
4. test method according to claim 1, which is characterized in that sent before executing order to server to be measured, also Including:
More newer command and more new script are sent to script server, the more newer command carries the 4th location index, for referring to Show that the more new script is stored in the corresponding storage location of the 4th location index by script server.
5. a kind of test method is applied to server to be measured, which is characterized in that including:
The execution order from controlling terminal is received, executions order carries first task mark, first position indexes, the One script mark and the first script argument are identified according to first position index and first script, from subscription services Device obtains test script, and executes the test script using first script argument;
The acquisition request from controlling terminal is received, the acquisition request carries the second task identification, second position index, the Two scripts mark and the second script argument, when second task identification and first task mark, the second position Index and first position index, second script mark and first script mark and second script argument When consistent with first script argument, test result is sent to controlling terminal.
6. test method according to claim 5, which is characterized in that further include:
Receive controlling terminal send inquiry request, the inquiry request carry third task identification, the third place index with And third scenario mark, when the third task identification and first task mark, the third place index and described one When location index and third scenario mark and consistent first script mark, sent to controlling terminal corresponding Status information.
7. a kind of test macro, which is characterized in that including script server and controlling terminal, for being surveyed to server to be measured Examination, wherein:
The script server, for storing test script;
The controlling terminal, for executing order to server to be measured transmission, the execution order carry first task identify, First position index, the first script mark and the first script argument, are used to indicate the server to be measured according to described first Location index and first script mark obtain test script from script server, and use first script argument Execute the test script;And acquisition request is sent to server to be measured, the acquisition request carries the second task mark Knowledge, second position index, the second script mark and the second script argument, are used to indicate server to be measured when second task Mark with the first task mark, the second position index with the first position index, second script mark with When the first script mark and second script argument and consistent first script argument, sent to controlling terminal Test result.
8. system according to claim 7, which is characterized in that before sending acquisition request to the server to be measured, The controlling terminal is also used to,
To server to be measured send inquiry request, the inquiry request carry third task identification, the third place index and Third scenario mark is used to indicate the server to be measured when the third task identification identifies with the first task, is described The third place index identifies with first position index and third scenario mark with first script consistent When, corresponding status information is sent to controlling terminal;
It is described to include to server to be measured transmission acquisition request:
When status information mark is successfully tested, acquisition request is sent to the server to be measured.
9. test macro according to claim 7, which is characterized in that the controlling terminal is also used to,
It is sent before executing order to server to be measured, multiple servers to be measured is divided into multiple test groups;
It is described to execute order to server to be measured transmission, including:
The server to be measured transmission into each test group executes order respectively, the server to be measured being sent in a test group Execution order carry identical first task mark, and the execution order of the server to be measured between each test group carries not Same first task mark.
10. test macro according to claim 7, which is characterized in that the controlling terminal is also used to,
It is sent before executing order to server to be measured, sends more newer command and more new script, the update to script server Order carries the 4th location index, is used to indicate script server for the more new script and is stored in the 4th location index Corresponding storage location.
CN201810530456.7A 2018-05-29 2018-05-29 A kind of test method and test macro Pending CN108845898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810530456.7A CN108845898A (en) 2018-05-29 2018-05-29 A kind of test method and test macro

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810530456.7A CN108845898A (en) 2018-05-29 2018-05-29 A kind of test method and test macro

Publications (1)

Publication Number Publication Date
CN108845898A true CN108845898A (en) 2018-11-20

Family

ID=64209916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810530456.7A Pending CN108845898A (en) 2018-05-29 2018-05-29 A kind of test method and test macro

Country Status (1)

Country Link
CN (1) CN108845898A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206604A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 Method for testing automatic updating test script
US20130041900A1 (en) * 2011-08-10 2013-02-14 Bank Of America Corporation Script Reuse and Duplicate Detection
CN104461856A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Performance test method, device and system based on cloud computing platform
CN106775968A (en) * 2016-11-29 2017-05-31 上海斐讯数据通信技术有限公司 A kind of server test method, apparatus and system
CN106933729A (en) * 2015-12-29 2017-07-07 苏宁云商集团股份有限公司 A kind of method of testing and system based on cloud platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206604A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 Method for testing automatic updating test script
US20130041900A1 (en) * 2011-08-10 2013-02-14 Bank Of America Corporation Script Reuse and Duplicate Detection
CN104461856A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Performance test method, device and system based on cloud computing platform
CN106933729A (en) * 2015-12-29 2017-07-07 苏宁云商集团股份有限公司 A kind of method of testing and system based on cloud platform
CN106775968A (en) * 2016-11-29 2017-05-31 上海斐讯数据通信技术有限公司 A kind of server test method, apparatus and system

Similar Documents

Publication Publication Date Title
US10372600B2 (en) Systems and methods for automated web performance testing for cloud apps in use-case scenarios
CN109302522B (en) Test method, test device, computer system, and computer medium
CN104978258B (en) Automatic software test method and system
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN105760286B (en) Application database dynamic property detection method and detection device
CN110162471A (en) A kind of method for testing pressure and system based on container cloud
CN102693183B (en) Method and system for realizing automatic software testing
CN104410543B (en) Automated testing method and system based on cloud resource
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN106776280B (en) Configurable performance testing device
CN102868573B (en) Method and device for Web service load cloud test
CN108959059B (en) Test method and test platform
CN110221962A (en) A kind of centralization software testing management system and method
CN110275822A (en) Performance test methods, device, equipment and the storage medium of application programming interfaces
CN109144857A (en) Cross-platform test of heuristics method and system
CN107643981A (en) A kind of automatic test platform and operation method of polynary operation flow
CN109871328B (en) Software testing method and device
CN105550104B (en) Application program capacity test method and device
CN106850330B (en) Intelligent cloud desktop performance test system and method
US8046638B2 (en) Testing of distributed systems
CN106980571A (en) The construction method and equipment of a kind of test use cases
CN110297771A (en) Distributed test method and device for the warehouse receipt page
CN109783284A (en) Information acquisition method, system and server, computer readable storage medium
JP2017016507A (en) Test management system and program
CN106713069A (en) System resource monitoring and bottleneck identification method

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: 20181120