CN109976804A - Application method, device and the computer equipment that micro services are explained - Google Patents
Application method, device and the computer equipment that micro services are explained Download PDFInfo
- Publication number
- CN109976804A CN109976804A CN201910219311.XA CN201910219311A CN109976804A CN 109976804 A CN109976804 A CN 109976804A CN 201910219311 A CN201910219311 A CN 201910219311A CN 109976804 A CN109976804 A CN 109976804A
- Authority
- CN
- China
- Prior art keywords
- test cases
- background service
- information
- argument value
- platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000012360 testing method Methods 0.000 claims abstract description 566
- 238000013507 mapping Methods 0.000 claims abstract description 44
- 238000012216 screening Methods 0.000 claims description 54
- 238000004590 computer program Methods 0.000 claims description 13
- 238000010276 construction Methods 0.000 claims description 5
- 238000012986 modification Methods 0.000 abstract description 4
- 230000004048 modification Effects 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 7
- 241000208340 Araliaceae Species 0.000 description 6
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 6
- 235000003140 Panax quinquefolius Nutrition 0.000 description 6
- 235000008434 ginseng Nutrition 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000001787 Wald–Wolfowitz test Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
Abstract
This application provides application method, device, computer equipment and computer readable storage mediums that a kind of micro services are explained, are related to micro services architecture technology field.Wherein, method includes: to receive the selection instruction of user terminal;Test cases ID is inputted in background service, corresponding background service code is screened;Each test cases argument value one-to-one correspondence is passed in each parameter respectively, and controls background service parsing and explains, obtains corresponding executing movement;Background service is controlled according to execution movement and each test cases argument value, executes background service code.The application is by carrying out note modification to background service code, it realizes background service code and automates the mapping one by one of the test cases information of platform, the test cases parameter in automation platform is allowed to be passed in background service code the test cases mapping realized between automation two web project frames of platform and background service for using.
Description
Technical field
This application involves micro services architecture technology field, in particular to application method that a kind of micro services are explained, device and
Computer equipment.
Background technique
Micro services are an emerging software architectures, exactly a large-scale single application program and service are split as counting
Ten support micro services.The strategy of one micro services can allow work to become more easy, its expansible single component without
It is entire application heap, to meet service-level agreement.Existing case test is performed locally, Wu Fashi
Test cases mapping between existing two different web project frames, so that case test cannot achieve hardware and software platform management and micro-
Serviceization, working efficiency is low and heavy workload.
Summary of the invention
The main purpose of the application is to provide a kind of application method, device and computer equipment that micro services are explained, it is intended to
The drawbacks of solving the test of existing case cannot achieve hardware and software platform management and micro services, and working efficiency is low and heavy workload.
To achieve the above object, this application provides the application methods that a kind of micro services are explained, and are applied to automation platform,
Include:
The selection instruction of user terminal is received, the selection instruction includes the first test cases information of user's selection, institute
Stating the first test cases information includes test cases ID and at least one test cases argument value;
The test cases ID is inputted in associated background service in advance, it is corresponding that screening obtains the test cases ID
Background service code, the background service code carry note, and described explain includes mapping test cases ID and at least one
Parameter, the mapping test cases ID are corresponded to each other with the test cases ID;
Each test cases argument value one-to-one correspondence is passed in each parameter respectively, and controls background service solution
The note is analysed, described explain is obtained and corresponding executes movement;
The background service is controlled according to the test cases argument value in execution movement and each parameter, executes institute
State background service code.
Further, the test cases argument value with the parameter is having the same puts in order, it is described respectively will be each
The test cases argument value one-to-one correspondence is passed in the step in each parameter, comprising:
Judge that, with the presence or absence of default argument value in all parameters of the note, the default argument value is write for developer
When entering the note, the argument value that is set in advance in parameter;
Argument value is defaulted if it exists, then deletes the default argument value, and respectively press each test cases argument value
It puts in order according to described, is successively passed to the corresponding parameter.
Further, described to input the test cases ID in associated background service in advance, screening obtains the survey
The step of trying case ID corresponding background service code, comprising:
Judge in the selection instruction whether to include multiple first test cases information;
If including multiple first test cases information, respectively by each first test cases information by pair
The individual threads answered, screening obtains the corresponding background service code of each test cases ID from the background service,
Each individual threads are non-interference when executing the first test cases information and the mapping of background service code acts.
Further, the automation platform construction has test cases information bank, and the test cases information bank is by multiple groups
Before the step of second test cases information composition, the selection instruction for receiving user terminal, comprising:
According to predeterminated frequency, automation case information is obtained from associated registration center in advance, the registration center is note
The service platform of record automation case information;
Using the automation case information as the second test cases information, the test cases information bank is added, obtains
Test cases information bank after update;
Judge after the update in test cases information bank, if there is duplicate test cases ID;
If, by test cases information bank after the update, all second tests without duplicate test cases ID
Case information is output to the display interface of the automation platform.
Further, after the judgement update in test cases information bank, if there is duplicate test cases ID
The step of in, comprising:
Starting scanning thread is scanned test cases information bank after the update, obtains test cases after the update
All test cases ID in information bank;
Successively on the basis of a test cases ID, with test cases other in test cases information bank after the update
ID is compared, and judges whether to screen at least one duplicate test cases ID;
If screening at least one duplicate test cases ID, determine that there is duplicate test cases ID;
If not screening at least one duplicate test cases ID, determine do not have duplicate test cases ID.
Further, in the test cases information bank after the judgement addition automation case information, if having
After the step of duplicate test cases ID, comprising:
If having duplicate test cases ID, the duplicate test cases ID is obtained;
Using the duplicate test cases ID as warning message, it is output to default terminal, the default terminal is exploitation
Staff terminal.
Further, the control background service is according to the test cases in execution movement and each parameter
Argument value, after the step of executing the background service code, comprising:
The test result of the background service feedback is received, the test result is the background service according to the execution
Test cases argument value in movement and each parameter, executes the result of the background service code;
Judge whether occur during the background service executes the background service code according to the test result
It is abnormal;
If there is exception, the corresponding solution of the test result is screened to default third-party platform, it is described default
Third-party platform is that the network for the solution for providing automation case exception discloses platform;
If screening the corresponding solution of the test result from default third-party platform, by the solution and
The test result is output to the user terminal as prompt information.
Present invention also provides the application apparatus that a kind of micro services are explained, comprising:
First receiving module, for receiving the selection instruction of user terminal;
First screening module, for inputting the test cases ID in associated background service in advance, screening obtains institute
State the corresponding background service code of test cases ID;
First afferent module, for each test cases argument value one-to-one correspondence to be passed to each parameter respectively
In, and control background service and parse the note, obtains described explain and corresponding execute movement;
First control module, for controlling the background service according to the test in execution movement and each parameter
Case argument value executes the background service code.
Further, first afferent module includes:
First judging unit, with the presence or absence of default argument value in all parameters for judging the note;
Unit is deleted, for deleting the default argument value, and respectively by each test cases argument value according to described
It puts in order, is successively passed to the corresponding parameter.
Further, first screening module includes:
Second judgment unit, for judging in the selection instruction whether to include multiple first test cases letters
Breath;
Screening unit is used for respectively by each first test cases information by corresponding individual threads, after described
Screening obtains the corresponding background service code of each test cases ID in platform service.
Further, the application apparatus further include:
First obtains module, for obtaining automation case information from associated registration center in advance according to predeterminated frequency;
Update module, for the test case to be added using the automation case information as the second test cases information
Example information bank, test cases information bank after being updated;
First judgment module, for judging after the update in test cases information bank, if having duplicate test case
Example ID;
First output module, for by test cases information bank after the update, the second all test cases information
It is output to the display interface of the automation platform.
Further, the first judgment module includes:
Scanning element is scanned test cases information bank after the update for starting scanning thread, obtains described
Test cases ID all in test cases information bank after update;
Third judging unit is used for successively on the basis of a test cases ID, with test cases information after the update
Others test cases ID is compared in library, judges whether to screen at least one duplicate test cases ID;
First judging unit, for determining that there is duplicate test cases ID;
Second judging unit, for determining do not have duplicate test cases ID.
Further, the application apparatus further include:
Second obtains module, for obtaining the duplicate test cases ID;
Second output module, for being output to default terminal using the duplicate test cases ID as warning message.
Further, the application apparatus further include:
Second receiving module, for receiving the test result of the background service feedback;
Second judgment module, for judging that the background service executes the background service code according to the test result
During whether there is exception;
Second screening module, for screening the corresponding solution of the test result to default third-party platform;
Third output module, it is described for being output to using the solution and the test result as prompt information
User terminal.
The application also provides a kind of computer equipment, including memory and processor, is stored with calculating in the memory
The step of machine program, the processor realizes any of the above-described the method when executing the computer program.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey
The step of method described in any of the above embodiments is realized when sequence is executed by processor.
Application method, device and the computer equipment that micro services provided by the present application are explained, by background service code
Note modification is carried out, realize background service code and automates the mapping one by one of the test cases information of platform, so that automation
Test cases parameter in platform can be passed in background service code to use, and realize automation platform and background service two
Test cases mapping between a web project frame.
Detailed description of the invention
Fig. 1 is the application method step schematic diagram that micro services are explained in one embodiment of the application;
Fig. 2 is the application apparatus structural block diagram that micro services are explained in one embodiment of the application;
Fig. 3 is the structural schematic block diagram of the computer equipment of one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Referring to Fig.1, a kind of application method that micro services are explained is provided in one embodiment of the application, and it is flat to be applied to automation
Platform, comprising:
S1: receiving the selection instruction of user terminal, and the selection instruction includes the first test cases information of user's selection,
The first test cases information includes test cases ID and at least one test cases argument value;
S2: the test cases ID is inputted in associated background service in advance, screening obtains ID pairs of the test cases
The background service code answered, the background service code carry note, and the note is including mapping test cases ID and at least
One parameter, the mapping test cases ID are corresponded to each other with the test cases ID;
S3: each test cases argument value one-to-one correspondence is passed in each parameter respectively, and controls backstage and takes
Business parses the note, obtains described explain and corresponding executes movement;
S4: the background service is controlled according to the test cases argument value in execution movement and each parameter, is held
The row background service code.
In the present embodiment, automation platform is an individual web project frame, and displaying has multiple second test cases to believe
Breath selects to use for user.User can be connect by user terminal with automation platform, and in displaying circle of automation platform
The first test cases information that face selection needs.Platform is automated after the selection instruction for receiving user terminal transmission, according to
At least one first test cases information that user selects in selection instruction, parses the test case in the first test cases information
Example ID and at least one corresponding test cases argument value.Wherein, test cases argument value can enter ginseng for case, execute number
Equal parameter values.Multiple cases enter between ginseng with " & " connection.Automation platform judges the first test cases information in selection instruction
Quantity whether be greater than 1.If it is greater than 1, then each first test cases information is respectively started individual threads and executes and backstage clothes
The mapping of business acts.If be not more than 1, as 1, test cases ID is inputted associated background service in advance by automation platform
In, screening obtains the corresponding background service code of test cases ID.Wherein, background service is also an individual web project frame
Frame, background service code carry note.Note modifies background service code after being constructed in advance by developer, so as to
When carrying out automation case test, can be mapped one by one with the test cases information of automation platform.It include mapping in note
Test cases ID and at least one parameter.Test cases ID is mapped to be used for and the test cases ID phase in test cases information
Match, is i.e. when test cases ID is consistent with mapping test cases ID, then illustrates the test cases information currently selected and carry this
The background service code of note is corresponding.Parameter in note is used to receive the test cases argument value in test cases information.If
Test cases argument value can not correspond in the parameter of note, then default is invalid.For example, parameter number is 5, test cases is real
Ginseng value is 7, then most latter two test argument value default is invalid, in no longer incoming background service.Further, different note
Be corresponding with it is different execute movement, pre-defined by developer when developing and explaining.For example, explaining is@test, then it is corresponding
Execution movement is test.It automates the parsing of platform courses background service to explain, to obtain that the note is corresponding to execute movement.Together
When, each test cases argument value one-to-one correspondence is passed in the parameter of note.Complete the incoming of test cases argument value
Afterwards, automation platform courses background service is according to the test cases argument value explained in corresponding execution movement and each parameter,
Background service code is executed, to complete automation case test.For example explaining corresponding execution movement is test, tests argument value
To execute number 5 times, then background service runs test cases 5 times using background service code.
Further, the test cases argument value with the parameter is having the same puts in order, it is described respectively will be each
The test cases argument value one-to-one correspondence is passed in the step in each parameter, comprising:
S301: judge that, with the presence or absence of default argument value in all parameters of the note, the default argument value is exploitation
When the note is written in personnel, the argument value that is set in advance in parameter;
S302: argument value is defaulted if it exists, then deletes the default argument value, and respectively by each test cases argument
Value puts in order according to described, is successively passed to the corresponding parameter.
In the present embodiment, each test cases argument value in the first test cases information has phase with the parameter in note
Same puts in order, so that each test cases argument value can be passed in corresponding parameter by the later period one by one, thus after control
Background service code in platform service carries out corresponding execution movement according to the argument value in note.For example, being arranged suitable in explaining
Sequence be 1 parameter are as follows: execute number, put in order for 2 parameter are as follows: expected results.Then explain corresponding first test cases
In information: putting in order as 1 argument value should be to execute number: 3, putting in order as 2 argument value to be default result:
Export A.Automation platform is when each test cases argument value one-to-one correspondence to be passed in the parameter of note, after needing first to control
Platform service corresponds to all parameters in the note and is scanned, with judge in each parameter whether existing default argument value.Wherein,
Default argument value is developer when the note is written, pre-set argument value.If there is no argument value, automate
Test cases argument value can be directly successively passed in parameter by platform according to putting in order.If so, automation platform courses
Background service deletes already present default argument value in current each parameter.After deletion, without default argument value in each parameter.So
Afterwards, automation platform is passed in note in corresponding parameter one by one by each test cases argument value according to putting in order, with
Continue background service after an action of the bowels and execute movement according to note is corresponding, runs corresponding background service code.
Further, described to input the test cases ID in associated background service in advance, screening obtains the survey
The step of trying case ID corresponding background service code, comprising:
S201: judge in the selection instruction whether to include multiple first test cases information;
S202: if including multiple first test cases information, respectively by each first test cases information
By corresponding individual threads, screening obtains the corresponding background service of each test cases ID from the background service
Code, each individual threads are non-interference when executing the first test cases information and the mapping of background service code acts.
In this implementation, automation platform is instructing according to the user's choice, realizes and the background service generation in background service
When note in code is mapped, the quantity for the first test cases information for needing currently to be selected according to user is located accordingly
Reason.Platform is automated by reading the quantity of the first test cases information in selection instruction, judge that user currently selects the
Whether the quantity of one test cases information is greater than 1, i.e. whether user has selected multiple first test cases in single selection course
Example.For example, user is in a selection instruction, 3 the first test cases information of simultaneous selection need this 3 first tests
Case information is mapped with the note of background service one by one simultaneously.When being chosen simultaneously for a plurality of first test cases information, energy
It is enough to realize that concurrently execution maps one by one with the note in background service, so that non-interference between any two.Automation platform is being opened
It is equal to each the first test cases information when the first test cases information of execution that begins is mapped with the note in background service
Start an individual threads to go to execute above-mentioned mapping movement.Wherein, each individual threads are executing the first test cases information with after
It is non-interference when the mapping movement of platform service code, it can carry out simultaneously.Platform is automated in each individual threads, is that will survey
It tries in case ID input background service, screening obtains including to map the note of test cases ID, and will carry the note
Code of the background service code as test cases ID correspondence mappings.So that automation platform supports a plurality of first test case
It is mapped one by one when example information concurrently executes with background service note.
Further, the automation platform construction has test cases information bank, and the test cases information bank is by multiple groups
Before the step of second test cases information composition, the selection instruction for receiving user terminal, comprising:
S5: according to predeterminated frequency, automation case information is obtained from associated registration center in advance, the registration center is
The service platform of record automation case information;
S6: using the automation case information as the second test cases information, the test cases information bank is added, obtains
Test cases information bank after to update;
S7: judge after the update in test cases information bank, if there is duplicate test cases ID;
S8: if without duplicate test cases ID, by test cases information bank after the update, all second is surveyed
Examination case information is output to the display interface of the automation platform.
In the present embodiment, automation platform includes test cases information bank.Wherein, test cases information Kuku is by exploit person
Member's building in advance, is made of multiple groups the second test cases information.Platform is automated according to predeterminated frequency, automatic call is associated in advance
Registration center query interface, obtain all automation case information in preset time period from registration center.Wherein, it presets
Period is the period that last acquisition time arrives current time, for example last time acquisition time was before one week, then preset time
Duan Weiyi weeks, all automation case informations that default register platforms update during this period will not be omitted with guarantee.Registration center
For individual web project frame, it is the service platform of a record automation case information, can receives and be deployed in automatically
Synchronization request in tomcat container, to updating all automation case informations in tomcat container to registration center.
Automation case information in registration center is annotated modification, therefore can just be automated and land identification and obtain.Automation
The automation case information that platform will acquire is added in test cases information bank as the second test cases information, to complete
Update to test cases information bank, test cases information bank after being updated.Then, automation platform starting scanning thread pair
Test cases information bank is scanned after update, test cases ID all in test cases information bank after being updated.Automatically
Change platform each test cases ID is compared in pairs respectively, judges whether to screen at least one set of duplicate test cases
ID.If not screening at least one set of duplicate test cases ID, determine do not have duplicate test cases ID.Automation is flat
Second test cases information all in test cases information bank after update is output to display interface by platform, for selection by the user.
Further, developer is deployed in tomcat container by a web project frame based on springmvc
Afterwards, synchronization request periodically can be initiated to registration center.Wherein, the web project frame based on springmvc is integrated with testng frame
Frame, with the automation code of developer's building.After registration center receives synchronization request, the web work based on springmvc
All automation case informations in this engineering can be synchronized to registration center by journey frame, obtained, are updated to automate platform
Test cases information bank.
Further, after the judgement update in test cases information bank, if there is duplicate test cases ID
The step of in, comprising:
S701: starting scanning thread is scanned test cases information bank after the update, surveys after obtaining the update
Try test cases ID all in case information library;
S702: it successively on the basis of a test cases ID, is surveyed with other in test cases information bank after the update
Examination case ID is compared, and judges whether to screen at least one duplicate test cases ID;
S703: if screening at least one duplicate test cases ID, determine that there is duplicate test cases ID;
S704: if not screening at least one duplicate test cases ID, determine do not have duplicate test cases
ID。
In the present embodiment, automation platform needs to judge to survey after updating after completing to the update of test cases information bank
Try whether there is duplicate test cases ID in case information library.If there is duplicate test cases ID, taken subsequent with backstage
When business carries out test cases mapping, mapping error will lead to.The starting of automation platform individually scanning thread to being tested after update
Case information library is scanned, test cases ID all in test cases information bank after being updated.Automate platform successively
On the basis of a test cases ID, and others test cases ID is compared in test cases information bank after update, judgement
Whether at least one duplicate test cases ID can be screened.For example, each test cases ID is respectively as follows: 1,2,3,1.Then two-by-two
Grouping are as follows: 1-2,1-3,1-1,2-3,2-1,3-1.Wherein, 1-1 this group has duplicate test cases ID, then certainly
There is duplicate test cases ID in test cases information bank after the judgement of dynamicization platform updates.If the test cases ID in each group
It is all different, then determines do not have duplicate test cases ID.
Further, in the test cases information bank after the judgement addition automation case information, if having
After the step of duplicate test cases ID, comprising:
S9: if having duplicate test cases ID, the duplicate test cases ID is obtained;
S10: using the duplicate test cases ID as warning message, it is output to default terminal, the default terminal is
Developer's terminal.
In the present embodiment, whether automation platform has duplicate test case in test cases information bank after judging to update
When example ID, mapped since the note in the test cases ID and background service in the second test cases information corresponds, if
Test cases ID having the same in test cases information bank, then be likely to occur and be unable to map in the process of implementation just after update
True note, leads to mapping error.If automating platform scanning arrives duplicate test cases ID, illustrating may be subsequent
Implementation procedure is likely to occur mapping error, therefore exports warning message to default terminal.Wherein, warning message includes all weights
Multiple test cases ID, the one-to-one second test cases information of each test cases ID and storage location, so as to developer
It is subsequent the movement such as to be inquired or modified.Default terminal is developer's terminal, is preset by developer, flat with automation
Platform is associated, so that developer solves above-mentioned exception information in time.
Further, the control background service is according to the test cases in execution movement and each parameter
Argument value, after the step of executing the background service code, comprising:
S11: receiving the test result of the background service feedback, and the test result is the background service according to
Test cases argument value in execution movement and each parameter, executes the result of the background service code;
S12: according to the test result judge during the background service executes the background service code whether
Occur abnormal;
S13: if there is exception, screening the corresponding solution of the test result to default third-party platform, described
Default third-party platform is that the network for the solution for providing automation case exception discloses platform;
S14: if the corresponding solution of the test result is screened from default third-party platform, by the solution party
Case and the test result are output to the user terminal as prompt information.
In the present embodiment, background service after the execution of platform service code, sends automation for test result in the completed
Platform, so that user understands this test result.It automates platform upon receipt of the test results, is judged according to test result
This time whether there is exception using the automation case of background service code tester.If this time using background service code tester
Automation case it is normal, then automate platform output information be " normal ".If this time using background service code tester
It automates case and exception occurs, the exception information during execution automation case, such as some generation can be included in test result
Code executes mistake.Automation platform is connect with default third-party platform automatically, and according to the exception information for including in test result,
For example the specific code of mistake is executed, the solution that screening test result corresponded in default third-party platform.Wherein, in advance
If third-party platform is to provide the network of solution of automation case exception to disclose platform, in advance and automatically by developer
Change platform association.If automation platform does not screen in presetting third-party platform pair according to the exception information of test result
The solution answered then only outputs test result to user terminal.If correspondence can be screened in default third-party platform
Solution, then export prompt information to user terminal.Wherein, prompt information includes test result and solution, or
The chained address of solution.
The application method that a kind of micro services provided in this embodiment are explained is repaired by explain to background service code
Decorations realize background service code and automate the mapping one by one of the test cases information of platform, so that the survey in automation platform
Examination case parameter can be passed in background service code for using, and realize automation two web projects of platform and background service
Test cases mapping between frame.
Referring to Fig. 2, a kind of application apparatus that micro services are explained is additionally provided in one embodiment of the application, comprising:
First receiving module 1, for receiving the selection instruction of user terminal;
First screening module 2, for inputting the test cases ID in associated background service in advance, screening obtains institute
State the corresponding background service code of test cases ID;
First afferent module 3, for each test cases argument value one-to-one correspondence to be passed to each parameter respectively
In, and control background service and parse the note, obtains described explain and corresponding execute movement;
First control module 4, for controlling the background service according to the survey in execution movement and each parameter
Case argument value is tried, the background service code is executed.
In the present embodiment, automation platform is an individual web project frame, and displaying has multiple second test cases to believe
Breath selects to use for user.User can be connect by user terminal with automation platform, and in displaying circle of automation platform
The first test cases information that face selection needs.Platform is automated after the selection instruction for receiving user terminal transmission, according to
At least one first test cases information that user selects in selection instruction, parses the test case in the first test cases information
Example ID and at least one corresponding test cases argument value.Wherein, test cases argument value can enter ginseng for case, execute number
Equal parameter values.Multiple cases enter between ginseng with " & " connection.Automation platform judges the first test cases information in selection instruction
Quantity whether be greater than 1.If it is greater than 1, then each first test cases information is respectively started individual threads and executes and backstage clothes
The mapping of business acts.If be not more than 1, as 1, test cases ID is inputted associated background service in advance by automation platform
In, screening obtains the corresponding background service code of test cases ID.Wherein, background service is also an individual web project frame
Frame, background service code carry note.Note modifies background service code after being constructed in advance by developer, so as to
When carrying out automation case test, can be mapped one by one with the test cases information of automation platform.It include mapping in note
Test cases ID and at least one parameter.Test cases ID is mapped to be used for and the test cases ID phase in test cases information
Match, is i.e. when test cases ID is consistent with mapping test cases ID, then illustrates the test cases information currently selected and carry this
The background service code of note is corresponding.Parameter in note is used to receive the test cases argument value in test cases information.If
Test cases argument value can not correspond in the parameter of note, then default is invalid.For example, parameter number is 5, test cases is real
Ginseng value is 7, then most latter two test argument value default is invalid, in no longer incoming background service.Further, different note
Be corresponding with it is different execute movement, pre-defined by developer when developing and explaining.For example, explaining is@test, then it is corresponding
Execution movement is test.It automates the parsing of platform courses background service to explain, to obtain that the note is corresponding to execute movement.Together
When, each test cases argument value one-to-one correspondence is passed in the parameter of note.Complete the incoming of test cases argument value
Afterwards, automation platform courses background service is according to the test cases argument value explained in corresponding execution movement and each parameter,
Background service code is executed, to complete automation case test.For example explaining corresponding execution movement is test, tests argument value
To execute number 5 times, then background service runs test cases 5 times using background service code.
Further, first afferent module 3 includes:
First judging unit, with the presence or absence of default argument value in all parameters for judging the note;
Unit is deleted, for deleting the default argument value, and respectively by each test cases argument value according to described
It puts in order, is successively passed to the corresponding parameter.
In the present embodiment, each test cases argument value in the first test cases information has phase with the parameter in note
Same puts in order, so that each test cases argument value can be passed in corresponding parameter by the later period one by one, thus after control
Background service code in platform service carries out corresponding execution movement according to the argument value in note.For example, being arranged suitable in explaining
Sequence be 1 parameter are as follows: execute number, put in order for 2 parameter are as follows: expected results.Then explain corresponding first test cases
In information: putting in order as 1 argument value should be to execute number: 3, putting in order as 2 argument value to be default result:
Export A.Automation platform is when each test cases argument value one-to-one correspondence to be passed in the parameter of note, after needing first to control
Platform service corresponds to all parameters in the note and is scanned, with judge in each parameter whether existing default argument value.Wherein,
Default argument value is developer when the note is written, pre-set argument value.If there is no argument value, automate
Test cases argument value can be directly successively passed in parameter by platform according to putting in order.If so, automation platform courses
Background service deletes already present default argument value in current each parameter.After deletion, without default argument value in each parameter.So
Afterwards, automation platform is passed in note in corresponding parameter one by one by each test cases argument value according to putting in order, with
Continue background service after an action of the bowels and execute movement according to note is corresponding, runs corresponding background service code.
Further, first screening module 2 includes:
Second judgment unit, for judging in the selection instruction whether to include multiple first test cases letters
Breath;
Screening unit is used for respectively by each first test cases information by corresponding individual threads, after described
Screening obtains the corresponding background service code of each test cases ID in platform service.
In this implementation, automation platform is instructing according to the user's choice, realizes and the background service generation in background service
When note in code is mapped, the quantity for the first test cases information for needing currently to be selected according to user is located accordingly
Reason.Platform is automated by reading the quantity of the first test cases information in selection instruction, judge that user currently selects the
Whether the quantity of one test cases information is greater than 1, i.e. whether user has selected multiple first test cases in single selection course
Example.For example, user is in a selection instruction, 3 the first test cases information of simultaneous selection need this 3 first tests
Case information is mapped with the note of background service one by one simultaneously.When being chosen simultaneously for a plurality of first test cases information, energy
It is enough to realize that concurrently execution maps one by one with the note in background service, so that non-interference between any two.Automation platform is being opened
It is equal to each the first test cases information when the first test cases information of execution that begins is mapped with the note in background service
Start an individual threads to go to execute above-mentioned mapping movement.Wherein, each individual threads are executing the first test cases information with after
It is non-interference when the mapping movement of platform service code, it can carry out simultaneously.Platform is automated in each individual threads, is that will survey
It tries in case ID input background service, screening obtains including to map the note of test cases ID, and will carry the note
Code of the background service code as test cases ID correspondence mappings.So that automation platform supports a plurality of first test case
It is mapped one by one when example information concurrently executes with background service note.
Further, the application apparatus further include:
First obtains module 5, for obtaining automation case letter from associated registration center in advance according to predeterminated frequency
Breath;
Update module 6, for the test case to be added using the automation case information as the second test cases information
Example information bank, test cases information bank after being updated;
First judgment module 7, for judging after the update in test cases information bank, if having duplicate test case
Example ID;
First output module 8, for by test cases information bank after the update, the second all test cases information
It is output to the display interface of the automation platform.
In the present embodiment, automation platform includes test cases information bank.Wherein, test cases information Kuku is by exploit person
Member's building in advance, is made of multiple groups the second test cases information.Platform is automated according to predeterminated frequency, automatic call is associated in advance
Registration center query interface, obtain all automation case information in preset time period from registration center.Wherein, it presets
Period is the period that last acquisition time arrives current time, for example last time acquisition time was before one week, then preset time
Duan Weiyi weeks, all automation case informations that default register platforms update during this period will not be omitted with guarantee.Registration center
For individual web project frame, it is the service platform of a record automation case information, can receives and be deployed in automatically
Synchronization request in tomcat container, to updating all automation case informations in tomcat container to registration center.
Automation case information in registration center is annotated modification, therefore can just be automated and land identification and obtain.Automation
The automation case information that platform will acquire is added in test cases information bank as the second test cases information, to complete
Update to test cases information bank, test cases information bank after being updated.Then, automation platform starting scanning thread pair
Test cases information bank is scanned after update, test cases ID all in test cases information bank after being updated.Automatically
Change platform each test cases ID is compared in pairs respectively, judges whether to screen at least one set of duplicate test cases
ID.If not screening at least one set of duplicate test cases ID, determine do not have duplicate test cases ID.Automation is flat
Second test cases information all in test cases information bank after update is output to display interface by platform, for selection by the user.
Further, developer is deployed in tomcat container by a web project frame based on springmvc
Afterwards, synchronization request periodically can be initiated to registration center.Wherein, the web project frame based on springmvc is integrated with testng frame
Frame, with the automation code of developer's building.After registration center receives synchronization request, the web work based on springmvc
All automation case informations in this engineering can be synchronized to registration center by journey frame, obtained, are updated to automate platform
Test cases information bank.
Further, the first judgment module 7 includes:
Scanning element is scanned test cases information bank after the update for starting scanning thread, obtains described
Test cases ID all in test cases information bank after update;
Third judging unit is used for successively on the basis of a test cases ID, with test cases information after the update
Others test cases ID is compared in library, judges whether to screen at least one duplicate test cases ID;
First judging unit, for determining that there is duplicate test cases ID;
Second judging unit, for determining do not have duplicate test cases ID.
In the present embodiment, automation platform needs to judge to survey after updating after completing to the update of test cases information bank
Try whether there is duplicate test cases ID in case information library.If there is duplicate test cases ID, taken subsequent with backstage
When business carries out test cases mapping, mapping error will lead to.The starting of automation platform individually scanning thread to being tested after update
Case information library is scanned, test cases ID all in test cases information bank after being updated.Automate platform successively
On the basis of a test cases ID, and others test cases ID is compared in test cases information bank after update, judgement
Whether at least one duplicate test cases ID can be screened.For example, each test cases ID is respectively as follows: 1,2,3,1.Then two-by-two
Grouping are as follows: 1-2,1-3,1-1,2-3,2-1,3-1.Wherein, 1-1 this group has duplicate test cases ID, then certainly
There is duplicate test cases ID in test cases information bank after the judgement of dynamicization platform updates.If the test cases ID in each group
It is all different, then determines do not have duplicate test cases ID.Further, the application apparatus further include:
Second obtains module 9, for obtaining the duplicate test cases ID;
Second output module 10, for being output to default terminal using the duplicate test cases ID as warning message.
In the present embodiment, whether automation platform has duplicate test case in test cases information bank after judging to update
When example ID, mapped since the note in the test cases ID and background service in the second test cases information corresponds, if
Test cases ID having the same in test cases information bank, then be likely to occur and be unable to map in the process of implementation just after update
True note, leads to mapping error.If automating platform scanning arrives duplicate test cases ID, illustrating may be subsequent
Implementation procedure is likely to occur mapping error, therefore exports warning message to default terminal.Wherein, warning message includes all weights
Multiple test cases ID, the one-to-one second test cases information of each test cases ID and storage location, so as to developer
It is subsequent the movement such as to be inquired or modified.Default terminal is developer's terminal, is preset by developer, flat with automation
Platform is associated, so that developer solves above-mentioned exception information in time.
Further, the application apparatus further include:
Second receiving module 11, for receiving the test result of the background service feedback;
Second judgment module 12, for judging that the background service executes the background service generation according to the test result
Whether there is exception during code;
Second screening module 13, for screening the corresponding solution of the test result to default third-party platform;
Third output module 14, for being output to institute using the solution and the test result as prompt information
State user terminal.
In the present embodiment, background service after the execution of platform service code, sends automation for test result in the completed
Platform, so that user understands this test result.It automates platform upon receipt of the test results, is judged according to test result
This time whether there is exception using the automation case of background service code tester.If this time using background service code tester
Automation case it is normal, then automate platform output information be " normal ".If this time using background service code tester
It automates case and exception occurs, the exception information during execution automation case, such as some generation can be included in test result
Code executes mistake.Automation platform is connect with default third-party platform automatically, and according to the exception information for including in test result,
For example the specific code of mistake is executed, the solution that screening test result corresponded in default third-party platform.Wherein, in advance
If third-party platform is to provide the network of solution of automation case exception to disclose platform, in advance and automatically by developer
Change platform association.If automation platform does not screen in presetting third-party platform pair according to the exception information of test result
The solution answered then only outputs test result to user terminal.If correspondence can be screened in default third-party platform
Solution, then export prompt information to user terminal.Wherein, prompt information includes test result and solution, or
The chained address of solution.
The application apparatus that a kind of micro services provided in this embodiment are explained is repaired by explain to background service code
Decorations realize background service code and automate the mapping one by one of the test cases information of platform, so that the survey in automation platform
Examination case parameter can be passed in background service code for using, and realize automation two web projects of platform and background service
Test cases mapping between frame.
Referring to Fig. 3, a kind of computer equipment is also provided in the embodiment of the present application, which can be server,
Its internal structure can be as shown in Figure 3.The computer equipment includes processor, the memory, network connected by system bus
Interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program
And database.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.
The database of the computer equipment is for storing the data such as test cases information bank.The network interface of the computer equipment be used for
External terminal passes through network connection communication.To realize a kind of answering for micro services note when the computer program is executed by processor
Use method.
Above-mentioned processor executes the step of application that above-mentioned micro services are explained:
S1: receiving the selection instruction of user terminal, and the selection instruction includes the first test cases information of user's selection,
The first test cases information includes test cases ID and at least one test cases argument value;
S2: the test cases ID is inputted in associated background service in advance, screening obtains ID pairs of the test cases
The background service code answered, the background service code carry note, and the note is including mapping test cases ID and at least
One parameter, the mapping test cases ID are corresponded to each other with the test cases ID;
S3: each test cases argument value one-to-one correspondence is passed in each parameter respectively, and controls backstage and takes
Business parses the note, obtains described explain and corresponding executes movement;
S4: the background service is controlled according to the test cases argument value in execution movement and each parameter, is held
The row background service code.
Further, the test cases argument value with the parameter is having the same puts in order, it is described respectively will be each
The test cases argument value one-to-one correspondence is passed in the step in each parameter, comprising:
S301: judge that, with the presence or absence of default argument value in all parameters of the note, the default argument value is exploitation
When the note is written in personnel, the argument value that is set in advance in parameter;
S302: argument value is defaulted if it exists, then deletes the default argument value, and respectively by each test cases argument
Value puts in order according to described, is successively passed to the corresponding parameter.
Further, described to input the test cases ID in associated background service in advance, screening obtains the survey
The step of trying case ID corresponding background service code, comprising:
S201: judge in the selection instruction whether to include multiple first test cases information;
S202: if including multiple first test cases information, respectively by each first test cases information
By corresponding individual threads, screening obtains the corresponding background service of each test cases ID from the background service
Code, each individual threads are non-interference when executing the first test cases information and the mapping of background service code acts.
Further, the automation platform construction has test cases information bank, and the test cases information bank is by multiple groups
Before the step of second test cases information composition, the selection instruction for receiving user terminal, comprising:
S5: according to predeterminated frequency, automation case information is obtained from associated registration center in advance, the registration center is
The service platform of record automation case information;
S6: using the automation case information as the second test cases information, the test cases information bank is added, obtains
Test cases information bank after to update;
S7: judge after the update in test cases information bank, if there is duplicate test cases ID;
S8: if without duplicate test cases ID, by test cases information bank after the update, all second is surveyed
Examination case information is output to the display interface of the automation platform.
Further, after the judgement update in test cases information bank, if there is duplicate test cases ID
The step of in, comprising:
S701: starting scanning thread is scanned test cases information bank after the update, surveys after obtaining the update
Try test cases ID all in case information library;
S702: it successively on the basis of a test cases ID, is surveyed with other in test cases information bank after the update
Examination case ID is compared, and judges whether to screen at least one duplicate test cases ID;
S703: if screening at least one duplicate test cases ID, determine that there is duplicate test cases ID;
S704: if not screening at least one duplicate test cases ID, determine do not have duplicate test cases
ID。
Further, in the test cases information bank after the judgement addition automation case information, if having
After the step of duplicate test cases ID, comprising:
S9: if having duplicate test cases ID, the duplicate test cases ID is obtained;
S10: using the duplicate test cases ID as warning message, it is output to default terminal, the default terminal is
Developer's terminal.
Further, the control background service is according to the test cases in execution movement and each parameter
Argument value, after the step of executing the background service code, comprising:
S11: receiving the test result of the background service feedback, and the test result is the background service according to
Test cases argument value in execution movement and each parameter, executes the result of the background service code;
S12: according to the test result judge during the background service executes the background service code whether
Occur abnormal;
S13: if there is exception, screening the corresponding solution of the test result to default third-party platform, described
Default third-party platform is that the network for the solution for providing automation case exception discloses platform;
S14: if the corresponding solution of the test result is screened from default third-party platform, by the solution party
Case and the test result are output to the user terminal as prompt information.
It will be understood by those skilled in the art that structure shown in Fig. 3, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates
Machine program realizes a kind of application method that micro services are explained when being executed by processor, specifically:
S1: receiving the selection instruction of user terminal, and the selection instruction includes the first test cases information of user's selection,
The first test cases information includes test cases ID and at least one test cases argument value;
S2: the test cases ID is inputted in associated background service in advance, screening obtains ID pairs of the test cases
The background service code answered, the background service code carry note, and the note is including mapping test cases ID and at least
One parameter, the mapping test cases ID are corresponded to each other with the test cases ID;
S3: each test cases argument value one-to-one correspondence is passed in each parameter respectively, and controls backstage and takes
Business parses the note, obtains described explain and corresponding executes movement;
S4: the background service is controlled according to the test cases argument value in execution movement and each parameter, is held
The row background service code.
Further, the test cases argument value with the parameter is having the same puts in order, it is described respectively will be each
The test cases argument value one-to-one correspondence is passed in the step in each parameter, comprising:
S301: judge that, with the presence or absence of default argument value in all parameters of the note, the default argument value is exploitation
When the note is written in personnel, the argument value that is set in advance in parameter;
S302: argument value is defaulted if it exists, then deletes the default argument value, and respectively by each test cases argument
Value puts in order according to described, is successively passed to the corresponding parameter.
Further, described to input the test cases ID in associated background service in advance, screening obtains the survey
The step of trying case ID corresponding background service code, comprising:
S201: judge in the selection instruction whether to include multiple first test cases information;
S202: if including multiple first test cases information, respectively by each first test cases information
By corresponding individual threads, screening obtains the corresponding background service of each test cases ID from the background service
Code, each individual threads are non-interference when executing the first test cases information and the mapping of background service code acts.
Further, the automation platform construction has test cases information bank, and the test cases information bank is by multiple groups
Before the step of second test cases information composition, the selection instruction for receiving user terminal, comprising:
S5: according to predeterminated frequency, automation case information is obtained from associated registration center in advance, the registration center is
The service platform of record automation case information;
S6: using the automation case information as the second test cases information, the test cases information bank is added, obtains
Test cases information bank after to update;
S7: judge after the update in test cases information bank, if there is duplicate test cases ID;
S8: if without duplicate test cases ID, by test cases information bank after the update, all second is surveyed
Examination case information is output to the display interface of the automation platform.
Further, after the judgement update in test cases information bank, if there is duplicate test cases ID
The step of in, comprising:
S701: starting scanning thread is scanned test cases information bank after the update, surveys after obtaining the update
Try test cases ID all in case information library;
S702: it successively on the basis of a test cases ID, is surveyed with other in test cases information bank after the update
Examination case ID is compared, and judges whether to screen at least one duplicate test cases ID;
S703: if screening at least one duplicate test cases ID, determine that there is duplicate test cases ID;
S704: if not screening at least one duplicate test cases ID, determine do not have duplicate test cases
ID。
Further, in the test cases information bank after the judgement addition automation case information, if having
After the step of duplicate test cases ID, comprising:
S9: if having duplicate test cases ID, the duplicate test cases ID is obtained;
S10: using the duplicate test cases ID as warning message, it is output to default terminal, the default terminal is
Developer's terminal.
Further, the control background service is according to the test cases in execution movement and each parameter
Argument value, after the step of executing the background service code, comprising:
S11: receiving the test result of the background service feedback, and the test result is the background service according to
Test cases argument value in execution movement and each parameter, executes the result of the background service code;
S12: according to the test result judge during the background service executes the background service code whether
Occur abnormal;
S13: if there is exception, screening the corresponding solution of the test result to default third-party platform, described
Default third-party platform is that the network for the solution for providing automation case exception discloses platform;
S14: if the corresponding solution of the test result is screened from default third-party platform, by the solution party
Case and the test result are output to the user terminal as prompt information.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can store and a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
Any reference used in provided herein and embodiment to memory, storage, database or other media,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM can by diversified forms
, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), increasing
Strong type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and
And further include the other elements being not explicitly listed, or further include for this process, device, article or method institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations
Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, similarly include in the scope of patent protection of the application.
Claims (10)
1. the application method that a kind of micro services are explained, which is characterized in that be applied to automation platform, comprising:
Receiving the selection instruction of user terminal, the selection instruction includes the first test cases information of user's selection, and described the
One test cases information includes test cases ID and at least one test cases argument value;
The test cases ID is inputted in associated background service in advance, screening obtains the corresponding backstage the test cases ID
Service code, the background service code carry note, and described explain includes mapping test cases ID and at least one parameter,
The mapping test cases ID is corresponded to each other with the test cases ID;
Each test cases argument value one-to-one correspondence is passed in each parameter respectively, and controls background service parsing institute
Note is stated, described explain is obtained and corresponding executes movement;
The background service is controlled according to the test cases argument value in execution movement and each parameter, after execution is described
Platform service code.
2. the application method that micro services according to claim 1 are explained, which is characterized in that the test cases argument value with
The parameter is having the same to put in order, it is described each test cases argument value one-to-one correspondence is passed to respectively it is each described
In step in parameter, comprising:
Judge that, with the presence or absence of default argument value in all parameters of the note, institute is written for developer in the default argument value
When stating note, the argument value that is set in advance in parameter;
Argument value is defaulted if it exists, then deletes the default argument value, and respectively by each test cases argument value according to institute
It states and puts in order, be successively passed to the corresponding parameter.
3. the application method that micro services according to claim 1 are explained, which is characterized in that described by the test cases ID
It inputs in advance in associated background service, the step of screening obtains the test cases ID corresponding background service code, comprising:
Judge in the selection instruction whether to include multiple first test cases information;
If including multiple first test cases information, each first test cases information is passed through respectively corresponding
Individual threads, screening obtains the corresponding background service code of each test cases ID, each institute from the background service
It is non-interference when executing the first test cases information and the mapping of background service code acts to state individual threads.
4. the application method that micro services according to claim 1 are explained, which is characterized in that the automation platform construction has
Test cases information bank, the test cases information bank are made of multiple groups the second test cases information, the reception user terminal
Selection instruction the step of before, comprising:
According to predeterminated frequency, automation case information is obtained from preparatory associated registration center, the registration center is to record certainly
The service platform of dynamicization case information;
Using the automation case information as the second test cases information, the test cases information bank is added, is updated
Test cases information bank afterwards;
Judge after the update in test cases information bank, if there is duplicate test cases ID;
If without duplicate test cases ID, by test cases information bank after the update, the second all test cases
Information is output to the display interface of the automation platform.
5. the application method that micro services according to claim 4 are explained, which is characterized in that surveyed after the judgement update
It tries in case information library, if having in the step of duplicate test cases ID, comprising:
Starting scanning thread is scanned test cases information bank after the update, obtains test cases information after the update
All test cases ID in library;
Successively on the basis of a test cases ID, with others test cases ID in test cases information bank after the update into
Row compares, and judges whether to screen at least one duplicate test cases ID;
If screening at least one duplicate test cases ID, determine that there is duplicate test cases ID;
If not screening at least one duplicate test cases ID, determine do not have duplicate test cases ID.
6. the application method that micro services according to claim 4 are explained, which is characterized in that the judgement is added described automatic
In test cases information bank after changing case information, if after there is the step of duplicate test cases ID, comprising:
If having duplicate test cases ID, the duplicate test cases ID is obtained;
Using the duplicate test cases ID as warning message, it is output to default terminal, the default terminal is developer
Terminal.
7. the application method that micro services according to claim 1 are explained, which is characterized in that the control background service
According to the test cases argument value in execution movement and each parameter, the step of executing the background service code it
Afterwards, comprising:
The test result of the background service feedback is received, the test result executes movement according to described for the background service
Test cases argument value in each parameter, executes the result of the background service code;
Judge whether exception occur during the background service executes the background service code according to the test result;
If there is exception, the corresponding solution of the test result, the default third are screened to default third-party platform
Fang Pingtai is that the network for the solution for providing automation case exception discloses platform;
If screening the corresponding solution of the test result from default third-party platform, by the solution and described
Test result is output to the user terminal as prompt information.
8. the application apparatus that a kind of micro services are explained characterized by comprising
First receiving module, for receiving the selection instruction of user terminal;
First screening module, for inputting the test cases ID in associated background service in advance, screening obtains the survey
Try the corresponding background service code of case ID;
First afferent module, for each test cases argument value one-to-one correspondence to be passed in each parameter respectively, and
It controls background service and parses the note, obtain described explain and corresponding execute movement;
First control module, for controlling the background service according to the test cases in execution movement and each parameter
Argument value executes the background service code.
9. a kind of computer equipment, including memory and processor, it is stored with computer program in the memory, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910219311.XA CN109976804B (en) | 2019-03-21 | 2019-03-21 | Application method, device and computer equipment of micro service annotation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910219311.XA CN109976804B (en) | 2019-03-21 | 2019-03-21 | Application method, device and computer equipment of micro service annotation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109976804A true CN109976804A (en) | 2019-07-05 |
CN109976804B CN109976804B (en) | 2024-01-23 |
Family
ID=67079932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910219311.XA Active CN109976804B (en) | 2019-03-21 | 2019-03-21 | Application method, device and computer equipment of micro service annotation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109976804B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113409022A (en) * | 2021-06-30 | 2021-09-17 | 中国工商银行股份有限公司 | Platform-oriented automatic test collection method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107438107A (en) * | 2017-09-05 | 2017-12-05 | 深圳乐信软件技术有限公司 | The call method and device of background service in a kind of micro services framework |
US20180077144A1 (en) * | 2016-09-14 | 2018-03-15 | Oracle International Corporation | Single logout functionality for a multi-tenant identity and data security management cloud service |
CN107977292A (en) * | 2017-12-07 | 2018-05-01 | 北京兆易创新科技股份有限公司 | The test method and device of SPI-NAND |
CN108156022A (en) * | 2017-12-04 | 2018-06-12 | 北京奇艺世纪科技有限公司 | A kind of service calling method, device and electronic equipment |
CN109299005A (en) * | 2018-09-05 | 2019-02-01 | 北京邮电大学 | The generation method and device of test script |
-
2019
- 2019-03-21 CN CN201910219311.XA patent/CN109976804B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180077144A1 (en) * | 2016-09-14 | 2018-03-15 | Oracle International Corporation | Single logout functionality for a multi-tenant identity and data security management cloud service |
CN107438107A (en) * | 2017-09-05 | 2017-12-05 | 深圳乐信软件技术有限公司 | The call method and device of background service in a kind of micro services framework |
CN108156022A (en) * | 2017-12-04 | 2018-06-12 | 北京奇艺世纪科技有限公司 | A kind of service calling method, device and electronic equipment |
CN107977292A (en) * | 2017-12-07 | 2018-05-01 | 北京兆易创新科技股份有限公司 | The test method and device of SPI-NAND |
CN109299005A (en) * | 2018-09-05 | 2019-02-01 | 北京邮电大学 | The generation method and device of test script |
Non-Patent Citations (1)
Title |
---|
杨迪;: "基于容器云的微服务系统", 电信科学, no. 09 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113409022A (en) * | 2021-06-30 | 2021-09-17 | 中国工商银行股份有限公司 | Platform-oriented automatic test collection method and device |
CN113409022B (en) * | 2021-06-30 | 2024-03-29 | 中国工商银行股份有限公司 | Platform-oriented automatic acceptance method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109976804B (en) | 2024-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614310A (en) | Management method, device, computer equipment and the storage medium of test interface | |
CN110166278A (en) | Kubernetes cluster building method, apparatus, computer equipment and storage medium | |
CN110297840A (en) | Data processing method, device, equipment and the storage medium of rule-based engine | |
CN109726134B (en) | Interface test method and system | |
CN110309051A (en) | Method, system, equipment and the storage medium of management of test cases | |
CN104794057B (en) | A kind of crossing event automated testing method and device | |
CN107832207A (en) | Interface performance test method, apparatus, storage medium and computer equipment | |
CN112306893A (en) | UI page testing method and device, computer equipment and storage medium | |
CN108319538B (en) | The monitoring method and system of big data platform operating status | |
CN109814995A (en) | Method for scheduling task, device, computer equipment and storage medium | |
CN109634837A (en) | Automated testing method, device, equipment and storage medium | |
CN109597754A (en) | Operation flow interface test method, device, computer equipment and storage medium | |
CN109800154A (en) | Loading method, device, computer equipment and the storage medium of test data | |
CN109308258A (en) | Building method, device, computer equipment and the storage medium of test data | |
CN110134612A (en) | UI test data generating method, device, equipment and readable storage medium storing program for executing | |
CN112631686A (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN112433944A (en) | Service testing method, device, computer equipment and storage medium | |
WO2021196674A1 (en) | System code testing method and apparatus, and computer device and storage medium | |
CN109254765A (en) | Timing task management method, apparatus, computer equipment and storage medium | |
CN109976804A (en) | Application method, device and the computer equipment that micro services are explained | |
CN109656817A (en) | A kind of automation interface test device and equipment | |
CN107122203A (en) | The method to set up and device of a kind of configuration file | |
CN109710517A (en) | Integration test method, device and computer equipment based on automated test tool | |
CN106294037A (en) | Strike-machine method of testing and device | |
CN109359707B (en) | Method and device for processing rock and soil sample information, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20231218 Address after: 310000, Room 401-2, Building 1, Shenrui International Ginza, Xihu District, Hangzhou City, Zhejiang Province Applicant after: ZHEJIANG ERER NETWORK Co.,Ltd. Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |