[go: up one dir, main page]

CN110008111A - A kind of service test method and device - Google Patents

A kind of service test method and device Download PDF

Info

Publication number
CN110008111A
CN110008111A CN201910095126.4A CN201910095126A CN110008111A CN 110008111 A CN110008111 A CN 110008111A CN 201910095126 A CN201910095126 A CN 201910095126A CN 110008111 A CN110008111 A CN 110008111A
Authority
CN
China
Prior art keywords
associated data
test
test suite
case
rule
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
CN201910095126.4A
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910095126.4A priority Critical patent/CN110008111A/en
Publication of CN110008111A publication Critical patent/CN110008111A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

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

Abstract

Disclose a kind of service test method and device.A kind of service test method, this method comprises: obtaining the test case for carrying out operational trials;The test case is parsed, obtain each test suite defined in several test suites for including in the use-case and the use-case executes sequence;Sequence is executed according to described, successively executes obtained each test suite;Wherein, following functions are executed when executing each test suite: in the case where needing to obtain associated data, determining that associated data defined in this test suite obtains rule;The associated data is the data that need to be obtained from other test suites of the test case;Rule is obtained according to the associated data, obtains required associated data from the test suite that the rule is specified;The operation of this test suite is completed based on associated data obtained.

Description

A kind of service test method and device
Technical field
This specification embodiment is related to technical field of internet application more particularly to a kind of service test method and device.
Background technique
It is usually to be mutually related between the different operation of user, for example, in shopping scene in practical business scene In, user can log in, search commercial articles, checks commodity details, shopping cart be added and the sequence of operations such as clearing are paid, And there may be data correlations between different operation, for example, formed after needing to obtain addition shopping cart in clearing delivery operation Order number and order detail.
When the function realization to operation system is tested, different operation can be realized by different components, and be directed to The demand that the data that operating component (executing operation) generates afterwards are transmitted to other assemblies is usually interrupted in the prior art Testing process manually obtains data and modifies code and fill in data, so that data transmitting is carried out, so that the business of the prior art is surveyed Examination scheme need it is higher manually and the time, and entire operational trials can not be completed glibly.
Summary of the invention
In view of the above technical problems, this specification embodiment provides a kind of service test method and device, and technical solution is such as Under:
A kind of service test method, this method comprises:
Obtain the test case for carrying out operational trials;
The test case is parsed, obtains respectively surveying defined in several test suites for including in the use-case and the use-case Examination component executes sequence;
Sequence is executed according to described, successively executes obtained each test suite;Wherein, it is held when executing each test suite Row following functions:
In the case where needing to obtain associated data, determine that associated data defined in this test suite obtains rule;Institute Stating associated data is the data that need to be obtained from other test suites of the test case;
Rule is obtained according to the associated data, obtains required associated data from the test suite that the rule is specified;
The operation of this test suite is completed based on associated data obtained.
A kind of operational trials device, the device include:
Test case obtains module, for obtaining the test case for carrying out operational trials;
Test case parsing module, for parsing the test case, obtain several test suites for including in the use-case, And each test suite defined in the use-case executes sequence;
Test suite execution module successively executes obtained each test suite for executing sequence according to described;Its In, test suite execution module executes each test suite especially by following submodule:
It obtains rule and determines submodule, it is fixed in this test suite for determining in the case where needing to obtain associated data The associated data of justice obtains rule;The associated data is the data that need to be obtained from other test suites of the test case;
Associated data acquisition submodule, for obtaining rule according to the associated data, the test group specified from the rule Required associated data is obtained in part;The operation of this test suite is completed based on associated data obtained.
Technical solution provided by this specification embodiment, for need during the test from other test suites obtain The test suite of associated data is not needed associated data to be written in test suite before test, but is being tested in advance Provide that associated data obtains rule in component.It, can be according to being defined if running test suite during operational trials Rule obtain data from specified other test suites automatically, to be completed each in the case where not needing interrupt test The operation of test suite.Further, since specific associated data is not written in test suite, each test suite can be not It is multiplexed in same operational trials.Therefore, this programme can reduce artificial needed for the operational trials and time, improve testing efficiency, And complete entire operational trials glibly automatically.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not This specification embodiment can be limited.
In addition, any embodiment in this specification embodiment does not need to reach above-mentioned whole effects.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification embodiment for those of ordinary skill in the art can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the flow diagram of the service test method of this specification embodiment;
Fig. 2 is that the service test method of this specification embodiment executes the flow diagram of test suite;
Fig. 3 is the interaction flow schematic diagram of the service test method of this specification embodiment;
Fig. 4 is the structural schematic diagram of the operational trials device of this specification embodiment;
Fig. 5 is that the test case of this specification embodiment obtains the structural schematic diagram of module;
Fig. 6 is the structural schematic diagram of the associated data acquisition submodule of this specification embodiment;
Fig. 7 is the structural schematic diagram for configuring a kind of equipment of this specification embodiment device.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual, Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
For problem of the prior art, this specification embodiment provides a kind of service test method, shown in Figure 1, should Method may comprise steps of:
S101 obtains the test case for carrying out operational trials;
In the operational trials scheme that this specification embodiment provides, by the corresponding test suite of test operation, constitutes and use In the test case of test business.
Specifically, before carrying out operational trials, tester needs each operation to be simulated when can be directed to test business, Several test suites are accordingly write in advance, a kind of operation may be implemented in each test suite.Also, test suite is equivalent to The frame of specific associated data is not written, associated data can obtain during the test, therefore test suite can have one Fixed versatility can be multiplexed in different test cases.
Tester can also write the test case for the business of testing in advance, and included test is defined in use-case Execution sequence of component and various components etc..
Accordingly, it in operational trials scheme provided by this specification embodiment, can specifically obtain in several ways For carrying out the test case of operational trials.
In a kind of specific embodiment of this specification embodiment, it can be specified and write before testing by tester The test case of completion, test case can be stored in advance in background server, be called when testing beginning by test macro Specified test case, such as the use-case ID of research staff's nominative testing use-case, and test macro calls this to test institute according to ID The test case used;
In another specific embodiment of this specification embodiment, tester can not write before testing Whole test case, and the test suite that uses needed for specifying before testing and each test suite execute sequence, test suite It can be stored in advance in background server, specified test suite be called by test macro when testing and starting, according to execution Sequence constitutes and obtains test case;
Specifically, it can determine first in this operational trials, then several object runs that institute's test business includes mention The keyword of determined each object run is taken, thus according to extracted keyword and the keyword and test case of operation Default corresponding relationship, obtain the test case for carrying out operational trials.
It is of course also possible to realize by other means, or realization is combined in various ways.As tester can be preparatory The common test case in part is write, when testing beginning, test macro is inquired first with the presence or absence of existing test case, if It is then to call directly ready-made test case, if it is not, then prompting tester's nominative testing component and executing sequence, or directly It is determined according to the instruction before tester and needs the test suite called and execute sequence, it even, can be raw by test macro At test case storage to background system, to be called directly when carrying out next time after identical operational trials;Etc., this Specification embodiment does not limit this, and those skilled in the art can flexibly set according to actual needs.
S102 parses the test case, obtains defined in several test suites for including in the use-case and the use-case Each test suite executes sequence;
S103 executes sequence according to described, successively executes obtained each test suite;Wherein, each test group is executed Following functions as shown in Figure 2 are executed when part:
S103a determines that associated data defined in this test suite obtains rule in the case where needing to obtain associated data Then;The associated data is the data that need to be obtained from other test suites of the test case;
S103b obtains rule according to the associated data, obtains required association from the test suite that the rule is specified Data;
S103c completes the operation of this test suite based on associated data obtained.
As previously described, it in operational trials scheme provided by this specification embodiment, is not written in test suite Specific associated data, but obtain associated data automatically during the test, thus in the case where not needing interrupt test, Automatically it realizes the data transmitting of different components, and completes entire operational trials glibly.
Therefore the acquisition rule for automatically obtaining associated data can be defined, is being needed in advance when writing test suite In the case where obtaining associated data, determine that associated data defined in this test suite obtains rule, specifically, this specification Associated data defined in embodiment obtains rule, can be obtained and be advised according to the associated data there are many form, accordingly Then, the process of required associated data is obtained from the test suite that the rule is specified, it can also there are many implementation, this theorys In bright book embodiment without limitation to this.
In a kind of specific embodiment of this specification embodiment, associated data, which obtains in rule, can be specifically defined pass Join data path, the test suite where associated data for indicating required.Therefore, rule are being obtained according to the associated data Then, when obtaining required associated data from the test suite that the rule is specified, it can determine that the associated data obtains first Associated data path defined in rule, then according to the associated data path, from test suite corresponding in the path Associated data needed for obtaining.
In another specific embodiment of this specification embodiment, it can also include closing in rule that associated data, which obtains, Join data subpath, for indicating the position of required associated data in the corresponding test suite of the associated data path. Therefore, according to identified associated data path, required associated data is obtained from test suite corresponding in the path When, the test suite for obtaining associated data can be determined first according to the associated data path, and, according to the association Data subpath determines position of the associated data in the test suite, then obtains and determines in determined test suite The associated data of position.
In another specific embodiment of this specification embodiment, it can also include closing in rule that associated data, which obtains, Join data type, the data in each test suite can be multiple types, for example, can for required parameter, operation result, etc. Multiple types.Therefore, it according to identified associated data path, is obtained from test suite corresponding in the path required When associated data, it can determine the test suite for obtaining associated data first according to the associated data path, then obtain institute Determine the data of associated data type described in test suite.
The not concrete form of qualified association data acquisition rule and corresponding according to rule in this specification embodiment The concrete mode of associated data is obtained, also, by taking three kinds of specific embodiments above as an example, can also include simultaneously in rule Associated data path, subpath and data type.Those skilled in the art can flexibly set data according to actual needs Obtain rule and data acquiring mode.
For example, associated data, which obtains rule, can pass through code " { rq=zj1_name:$ in a specific example .request.xxxx form } " indicates, wherein rq refers to that the type for the associated data that acquisition need to obtain is required parameter (request), zj1_name is the mark of the test suite in associated data source, and $ .request.xxxx is indicated from zj1_name The required parameter data that specific location is xxxx are obtained in this test suite.
In another specific example, associated data, which obtains rule, can also pass through code " { rs=zj2_name:$ .result.xxxx form } " indicates, wherein rs refers to that the type for the associated data that acquisition need to obtain is operation result (result), zj2_name be associated data source test suite mark, $ .result.xxxx indicate from zj2_name this The operation result data that specific location is xxxx are obtained in one test suite.
Certainly, it when executing some test suite, can be associated with from other one or more test suites Data.
In addition, so-called associated data in this specification embodiment, can be equivalent to local variable.For in test process The global variable that need to be used is usually to write direct variable in code, but the shortcomings that this scheme is test in the prior art Code can not be multiplexed.And in operational trials scheme provided by this specification embodiment, based on the mode similar with associated data, The acquisition rule of global variable can be defined in test case in advance, and during implementation of test cases, need to obtain When taking global variable, according to the value of defined Rule global variable, to keep test case more general.
In a kind of specific embodiment of this specification embodiment, needs can be defined by way of key-value The global variable of acquisition the key of global variable can specifically be written in code when writing test suite in advance, and real The test suite is quoted on border in test case, and execute test suite carry out operational trials when, the page of front end can be passed through Fill in value in face.
In addition, as shown in figure 3, the operational trials scheme that this specification embodiment provides, can be applied to include preceding end page The test macro in face and back-end server, tester can write test suite and test case by front end page in advance, And be stored in back-end server, in operational trials, the number such as value of global variable can also be filled in by front end page According to.And when operational trials, operation system to be tested call and execute test suite in the back-end server of test macro with Test case realizes the operational trials to the operation system.
Below with reference to one, more specifically example, the service test method provided this specification are illustrated.
Assuming that need to carry out certain purchase system operational trials, the multi-mode operation being directed in user's shopping process, For example, then user can search commodity, user in the merchandise query page by inputting user name and password login account first Certain part commodity in lookup result can be clicked, are browsed into item detail page, and the commodity can be added and be done shopping Vehicle generates purchase order, final clearing payment.
For purchase system operational trials in, can by login account, search commodity, check details, generation order Single and clearing 5 test suites of payment, the corresponding operating being separately implemented in above-mentioned shopping process.
In addition, there is the transmitting of multiple data between 5 test suites, for example, purchase system can have been stepped on according to user The information of account is recorded, lookup result is presented for different user customization, that is, needs the login result data in login account component, It is transmitted to and searches in commodity components;For another example, it when carrying out clearing payment for the amount of money of order generated, needs that order will be generated Order result data in component is transmitted in clearing payment component;Etc..
Tester can write above-mentioned 5 test suites in the front end page of test macro in advance, and write packet It includes above-mentioned 5 test suites and defines the test case of execution sequence, test suite and test case can store in rear end Server.
When carrying out operational trials, above-mentioned operation system can call the test case write in advance, and parsing use-case obtains it In test suite and definition execute sequence, to execute each test suite in sequence.Executing each test suite When, such as when execution clearing payment test suite, determination needs to obtain associated data " the order amount of money ", it is determined that this test suite Defined in associated data obtain rule, such as can be " { rs=payInit:$ .result.xxxx } ".After obtaining associated data The operation of this test suite can be completed based on associated data obtained.
As it can be seen that using above scheme, it, can be according to defined if running test suite during operational trials Rule obtains data from other specified test suites automatically, to complete each survey in the case where not needing interrupt test Try the operation of component.Further, since specific associated data is not written in test suite, each test suite can be in difference Operational trials in be multiplexed.Therefore, this programme can reduce artificial needed for the operational trials and time, improve testing efficiency, and Complete entire operational trials glibly automatically.
Corresponding to above method embodiment, this specification embodiment also provides a kind of operational trials device, referring to fig. 4 institute Show, the apparatus may include:
Test case obtains module 110, for obtaining the test case for carrying out operational trials;
Test case parsing module 120 obtains several test groups for including in the use-case for parsing the test case Each test suite defined in part and the use-case executes sequence;
Test suite execution module 130 successively executes obtained each test suite for executing sequence according to described; Wherein, test suite execution module executes each test suite especially by following submodule:
It obtains rule and determines submodule 131, for determining in this test suite in the case where needing to obtain associated data The associated data of definition obtains rule;The associated data is the number that need to be obtained from other test suites of the test case According to;
Associated data acquisition submodule 132, for obtaining rule according to the associated data, the test specified from the rule Required associated data is obtained in component;The operation of this test suite is completed based on associated data obtained.
Shown in Figure 5 in a kind of specific embodiment that this specification provides, the test case obtains module 110, comprising:
Business operation determines submodule 111, for determining in this operational trials, several targets that institute's test business includes Operation;
Keyword extraction submodule 112, for extracting the keyword for determining each object run;
Test case acquisition submodule 113, for being used according to the keyword and test of extracted keyword and operation The default corresponding relationship of example, obtains the test case for carrying out operational trials.
In a kind of specific embodiment that this specification provides, the associated data acquisition submodule 132, referring to Fig. 6 It is shown, comprising:
Path determining unit 132a, for determining that the associated data obtains associated data path defined in rule;Institute State the test suite where associated data of the associated data path for indicating required;
Data capture unit 132b is used for according to the associated data path, from test suite corresponding in the path Associated data needed for obtaining.
In a kind of specific embodiment that this specification provides, the associated data is obtained in rule further include: association Data subpath, for indicating: position of the required associated data in the corresponding test suite of the associated data path;
The data capture unit 132b, is specifically used for:
According to the associated data path, the test suite for obtaining associated data is determined;And
According to the associated data subpath, position of the associated data in the test suite is determined;
Obtain the associated data of the determined position in determined test suite.
In a kind of specific embodiment that this specification provides, the associated data is obtained in rule further include: association Data type;
The data capture unit 132b, is specifically used for:
According to the associated data path, the test suite for obtaining associated data is determined;
Obtain the data of associated data type described in determined test suite.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in On reservoir and the computer program that can run on a processor, wherein processor realizes business above-mentioned when executing described program Test method.This method includes at least:
A kind of service test method, this method comprises:
Obtain the test case for carrying out operational trials;
The test case is parsed, obtains respectively surveying defined in several test suites for including in the use-case and the use-case Examination component executes sequence;
Sequence is executed according to described, successively executes obtained each test suite;Wherein, it is held when executing each test suite Row following functions:
In the case where needing to obtain associated data, determine that associated data defined in this test suite obtains rule;Institute Stating associated data is the data that need to be obtained from other test suites of the test case;
Rule is obtained according to the associated data, obtains required associated data from the test suite that the rule is specified;
The operation of this test suite is completed based on associated data obtained.
Fig. 7 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram, The equipment may include: processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus 1050.Wherein processor 1010, memory 1020, input/output interface 1030 and communication interface 1040 are real by bus 1050 The now communication connection inside equipment each other.
Processor 1010 can use general CPU (Central Processing Unit, central processing unit), micro- place Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one Or the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodiment Case.
Memory 1020 can use ROM (Read Only Memory, read-only memory), RAM (Random Access Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1020 can store Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware When, relevant program code is stored in memory 1020, and execution is called by processor 1010.
Input/output interface 1030 is for connecting input/output module, to realize information input and output.Input and output/ Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display, Loudspeaker, vibrator, indicator light etc..
Communication interface 1040 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly (such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1050 include an access, equipment various components (such as processor 1010, memory 1020, input/it is defeated Outgoing interface 1030 and communication interface 1040) between transmit information.
It should be noted that although above equipment illustrates only processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus 1050, but in the specific implementation process, which can also include realizing normal fortune Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipment Component necessary to existing this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey Service test method above-mentioned is realized when sequence is executed by processor.This method includes at least:
A kind of service test method, this method comprises:
Obtain the test case for carrying out operational trials;
The test case is parsed, obtains respectively surveying defined in several test suites for including in the use-case and the use-case Examination component executes sequence;
Sequence is executed according to described, successively executes obtained each test suite;Wherein, it is held when executing each test suite Row following functions:
In the case where needing to obtain associated data, determine that associated data defined in this test suite obtains rule;Institute Stating associated data is the data that need to be obtained from other test suites of the test case;
Rule is obtained according to the associated data, obtains required associated data from the test suite that the rule is specified;
The operation of this test suite is completed based on associated data obtained.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words, The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
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 reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description Module may or may not be physically separated, can be each module when implementing this specification example scheme Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.

Claims (11)

1. a kind of service test method, this method comprises:
Obtain the test case for carrying out operational trials;
The test case is parsed, each test group defined in several test suites for including in the use-case and the use-case is obtained Part executes sequence;
Sequence is executed according to described, successively executes obtained each test suite;Wherein, executed when executing each test suite with Lower function:
In the case where needing to obtain associated data, determine that associated data defined in this test suite obtains rule;The pass Joining data is the data that need to be obtained from other test suites of the test case;
Rule is obtained according to the associated data, obtains required associated data from the test suite that the rule is specified;
The operation of this test suite is completed based on associated data obtained.
2. according to the method described in claim 1, the test case obtained for carrying out operational trials, comprising:
It determines in this operational trials, several object runs that institute's test business includes;
Extract the keyword for determining each object run;
According to the default corresponding relationship of the keyword and test case of extracted keyword and operation, obtain for carrying out The test case of operational trials.
3. according to the method described in claim 1, described obtain regular, to specify from rule test according to the associated data Required associated data is obtained in component, comprising:
Determine that the associated data obtains associated data path defined in rule;The associated data path is for needed for indicating Associated data where test suite;
According to the associated data path, required associated data is obtained from test suite corresponding in the path.
4. according to the method described in claim 3, the associated data obtains in rule further include: associated data subpath is used In expression: position of the required associated data in the corresponding test suite of the associated data path;
The associated data path according to determined by obtains required incidence number from test suite corresponding in the path According to, comprising:
According to the associated data path, the test suite for obtaining associated data is determined;And
According to the associated data subpath, position of the associated data in the test suite is determined;
Obtain the associated data of the determined position in determined test suite.
5. according to the method described in claim 3, the associated data obtains in rule further include: associated data type;
The associated data path according to determined by obtains required incidence number from test suite corresponding in the path According to, comprising:
According to the associated data path, the test suite for obtaining associated data is determined;
Obtain the data of associated data type described in determined test suite.
6. a kind of operational trials device, the device include:
Test case obtains module, for obtaining the test case for carrying out operational trials;
Test case parsing module, for parsing the test case, obtaining several test suites for including in the use-case and being somebody's turn to do Each test suite executes sequence defined in use-case;
Test suite execution module successively executes obtained each test suite for executing sequence according to described;Wherein, it surveys It tries component execution module and executes each test suite especially by following submodule:
It obtains rule and determines submodule, for determining defined in this test suite in the case where needing to obtain associated data Associated data obtains rule;The associated data is the data that need to be obtained from other test suites of the test case;
Associated data acquisition submodule, for obtaining rule according to the associated data, from the test suite that the rule is specified Associated data needed for obtaining;The operation of this test suite is completed based on associated data obtained.
7. device according to claim 6, the test case obtains module, comprising:
Business operation determines submodule, for determining in this operational trials, several object runs that institute's test business includes;
Keyword extraction submodule, for extracting the keyword for determining each object run;
Test case acquisition submodule, for according to extracted keyword and operation keyword and test case it is pre- If corresponding relationship, the test case for carrying out operational trials is obtained.
8. device according to claim 6, the associated data acquisition submodule, comprising:
Path determining unit, for determining that the associated data obtains associated data path defined in rule;The incidence number According to the test suite where associated data of the path for indicating required;
Data capture unit, needed for being obtained from test suite corresponding in the path according to the associated data path Associated data.
9. device according to claim 8, the associated data is obtained in rule further include: associated data subpath is used In expression: position of the required associated data in the corresponding test suite of the associated data path;
The data capture unit, is specifically used for:
According to the associated data path, the test suite for obtaining associated data is determined;And
According to the associated data subpath, position of the associated data in the test suite is determined;
Obtain the associated data of the determined position in determined test suite.
10. device according to claim 8, the associated data is obtained in rule further include: associated data type;
The data capture unit, is specifically used for:
According to the associated data path, the test suite for obtaining associated data is determined;
Obtain the data of associated data type described in determined test suite.
11. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, wherein the processor realizes such as method described in any one of claim 1 to 5 when executing described program.
CN201910095126.4A 2019-01-31 2019-01-31 A kind of service test method and device Pending CN110008111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910095126.4A CN110008111A (en) 2019-01-31 2019-01-31 A kind of service test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910095126.4A CN110008111A (en) 2019-01-31 2019-01-31 A kind of service test method and device

Publications (1)

Publication Number Publication Date
CN110008111A true CN110008111A (en) 2019-07-12

Family

ID=67165641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910095126.4A Pending CN110008111A (en) 2019-01-31 2019-01-31 A kind of service test method and device

Country Status (1)

Country Link
CN (1) CN110008111A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078545A (en) * 2019-12-05 2020-04-28 贝壳技术有限公司 Method and system for automatically generating test data
CN111694615A (en) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 Data configuration method, device, equipment and storage medium
CN112286790A (en) * 2020-09-27 2021-01-29 长沙市到家悠享网络科技有限公司 Full link test method, device, equipment and storage medium
CN112463578A (en) * 2019-09-09 2021-03-09 南华大学 System test case generation method based on step-by-step solution of component contract
CN113868144A (en) * 2021-10-11 2021-12-31 京东科技信息技术有限公司 Data processing method and device for test case
CN114297081A (en) * 2021-12-30 2022-04-08 深圳市捷顺科技实业股份有限公司 Automatic testing method and related equipment
CN114490415A (en) * 2022-02-15 2022-05-13 中国工商银行股份有限公司 Business test method, computer equipment, storage medium and computer program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299561A1 (en) * 2010-06-22 2010-11-25 Scott Ian Marchant Systems and methods for managing testing functionalities
CN104820640A (en) * 2015-05-19 2015-08-05 广州华多网络科技有限公司 Method and device for web page testing
CN107329861A (en) * 2017-06-12 2017-11-07 北京奇安信科技有限公司 A kind of multiplex roles method of testing and device
CN107908542A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and storage medium
CN108153670A (en) * 2017-11-30 2018-06-12 北京奇艺世纪科技有限公司 A kind of interface test method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299561A1 (en) * 2010-06-22 2010-11-25 Scott Ian Marchant Systems and methods for managing testing functionalities
CN104820640A (en) * 2015-05-19 2015-08-05 广州华多网络科技有限公司 Method and device for web page testing
CN107329861A (en) * 2017-06-12 2017-11-07 北京奇安信科技有限公司 A kind of multiplex roles method of testing and device
CN107908542A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and storage medium
CN108153670A (en) * 2017-11-30 2018-06-12 北京奇艺世纪科技有限公司 A kind of interface test method, device and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463578A (en) * 2019-09-09 2021-03-09 南华大学 System test case generation method based on step-by-step solution of component contract
CN112463578B (en) * 2019-09-09 2022-04-22 南华大学 A system test case generation method based on step-by-step solution of component contracts
CN111078545A (en) * 2019-12-05 2020-04-28 贝壳技术有限公司 Method and system for automatically generating test data
CN111694615A (en) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 Data configuration method, device, equipment and storage medium
CN111694615B (en) * 2020-06-16 2024-04-05 北京同邦卓益科技有限公司 Method, device, equipment and storage medium for data configuration
CN112286790A (en) * 2020-09-27 2021-01-29 长沙市到家悠享网络科技有限公司 Full link test method, device, equipment and storage medium
CN113868144A (en) * 2021-10-11 2021-12-31 京东科技信息技术有限公司 Data processing method and device for test case
CN114297081A (en) * 2021-12-30 2022-04-08 深圳市捷顺科技实业股份有限公司 Automatic testing method and related equipment
CN114490415A (en) * 2022-02-15 2022-05-13 中国工商银行股份有限公司 Business test method, computer equipment, storage medium and computer program product
CN114490415B (en) * 2022-02-15 2025-07-04 中国工商银行股份有限公司 Business testing method, computer device, storage medium and computer program product

Similar Documents

Publication Publication Date Title
CN110008111A (en) A kind of service test method and device
US11026047B2 (en) Associating multiple user devices with a single user
US9569288B2 (en) Application pattern discovery
US10929490B2 (en) Network search query
CN109145025A (en) A kind of data query method, apparatus and service server that multi-data source is integrated
CN109656806A (en) A kind of the playback test method and device of interface data
CN108933713A (en) The method, apparatus and service server of sandbox debugging are realized based on shadow link
CN109145238A (en) Card display method and device and mobile device
CN109783388A (en) UI automation testing method, device and electronic equipment
US12481706B2 (en) Method and apparatus for sending information
US10452518B2 (en) Uploading tenant code to a multi-tenant system
CN109345249A (en) A kind of payment failure processing method and device
CN110334542A (en) Card method of calibration and device are deposited in a kind of network preservation of evidence, network evidence
US11257029B2 (en) Pickup article cognitive fitment
CN114546553B (en) A method, device, equipment and medium for displaying information
US20230123573A1 (en) Automatic detection of seasonal pattern instances and corresponding parameters in multi-seasonal time series
US20210173881A1 (en) Network search modification
US20170161713A1 (en) Selecting an electronic payment account to maximize rewards
US10168999B2 (en) Software object definition and integration
US20220138275A1 (en) Digital search results generation
CN110378758A (en) Processing method, device and the equipment of shop displaying information
CN109656805A (en) Generation method, device and the service server of code link for business diagnosis
CN109542775A (en) A method and device for generating and executing a test script
US20180089738A1 (en) Enhancing online consumer purchases through analysis of past consumer purchases
US20170161714A1 (en) Selecting an electronic payment account to maximize rewards

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190712