CN109685626A - A kind of lower single test method and device - Google Patents
A kind of lower single test method and device Download PDFInfo
- Publication number
- CN109685626A CN109685626A CN201811614484.3A CN201811614484A CN109685626A CN 109685626 A CN109685626 A CN 109685626A CN 201811614484 A CN201811614484 A CN 201811614484A CN 109685626 A CN109685626 A CN 109685626A
- Authority
- CN
- China
- Prior art keywords
- order
- test
- template
- lower single
- data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Debugging And Monitoring (AREA)
Abstract
This application provides a kind of lower single test method and devices, by determining order template and under testing, one-parameter generates at least one test order, detect that the order parameter of the test order of generation is matched with one-parameter under the test determined, and the order data of the order data and order template of testing order matches, determine the success that places an order, in this way, automation generation by testing order carries out the test that places an order, the consumption of the man power and material for the test that places an order can be reduced, improve the convenience for the test that places an order, it improves to place an order and tests the abundant degree and timeliness of order when testing.
Description
Technical field
This application involves order management technical fields, more particularly, to a kind of lower single test method and device.
Background technique
With the rapid development of computer technology, realized on network by computer technology on-line purchasing and with buying phase
The transport of pass becomes increasingly extensive, so that material flow industry and electric business industry are rapidly developed, especially Intelligent logistics are general
The it is proposed read etc., make us purchased, the transport of bought articles etc. can become increasingly to facilitate by realizing on line.
Either Intelligent logistics field or electric business field, to realize the various items of online processing, such as place an order online,
Online query order situation etc. can realize, this will guarantee the stabilization of inline system, therefore for line by inline system
The stability test of upper system is a very crucial link.But the test for inline system, such as ordering system, mesh
Preceding is that tester passes through the manual construction for manually carrying out order before each test mostly, needs to expend a large amount of manpower object
Power, and the test quantity on order of manual construction is insufficient, and abundant degree and the timeliness for testing order are relatively low.
Summary of the invention
In view of this, the application provides a kind of lower single test method and device, with reduce place an order test when man power and material
Consumption, improve the convenience of test of placing an order, improve to place an order and test the abundant degree and timeliness of order when testing.
On the one hand, the embodiment of the present application provides a kind of lower single test method, which comprises
Determine the order template of test order;
Obtain one-parameter under the test of the test order;
Based on one-parameter under the order template and the test, at least one test order is generated;
Whether the order parameter detected on each test order generated matches with one-parameter under the test;
Detect generate each test order on order data whether with the order data phase on the order template
Match;
If the order parameter on each test order matches with one-parameter under the test, and on each test order
Order data match with the order data on the order template, determine and place an order success.
In some embodiments, the order template of the determining test order, comprising:
Based on the order type of the test order, order template is selected from database.
In the above-described embodiments, in the order type based on the test order, order mould is selected from database
After plate, which comprises
Obtain editing order data;
Based on the editing order data, modify to the order template of selection;
Determine that modified order template is the order template for generating the test order and using.
In some embodiments, the order template of the determining test order, comprising:
Obtain the order data for generating order template;
Determine lower single environment of the order template, wherein lower single environment includes that database write-in places an order either
External interface calling places an order;
Based on the order data and lower single environment, the order template that test order uses is generated.
In the above-described embodiments, the order data of order template includes the combination of following one or several kinds:
The expected time offset of order, order type, the order amount of money, the time of order, reservation order or i.e.
When order, invoice type.
In some embodiments, after the order template of the determining test order, which comprises
Based on the lower single environment to match with the order template, prepare the lower monocycle for generating test order
Border;
It is described to be based on one-parameter under the order template and the test, generate at least one test order, comprising:
In lower single environment, based on one-parameter under the order template and the test, at least one test is generated
Order.
On the other hand, the embodiment of the present application provides a kind of lower single test device, and lower single test device includes:
First determining module, for determining the order template of test order;
First obtains module, one-parameter under the test for obtaining the test order;
Generation module, for based on one-parameter under the order template and the test, generating at least one test order;
Whether first detection module, the order parameter on each test order for detecting generation place an order with the test
Parameter matches;
Second detection module, for detect generate each test order on order data whether with the order template
On order data match;
Second determining module, if the order parameter on each test order matches with one-parameter under the test,
And the order data on each test order matches with the order data on the order template, determines the success that places an order.
In some embodiments, first determining module is specifically used for:
Based on the order type of the test order, order template is selected from database.
In the above-described embodiments, lower single test device includes:
Second obtains module, for obtaining editing order data;
Modified module modifies to the order template of selection for being based on the editing order data;
Third determining module, for determining that modified order template is the order mould for generating the test order and using
Plate.
In some embodiments, first determining module is specifically also used to:
Obtain the order data for generating order template;
Determine lower single environment of the order template, wherein lower single environment includes that database write-in places an order either
External interface calling places an order;
Based on the order data and lower single environment, the order template that test order uses is generated.
In the above-described embodiments, the order data of order template includes the combination of following one or several kinds:
The expected time offset of order, order type, the order amount of money, the time of order, reservation order or i.e.
When order, invoice type.
In some embodiments, lower single test device includes:
Preparation module, for preparing for generating test order based on the lower single environment to match with the order template
Lower single environment;
The generation module is specifically used for:
In lower single environment, based on one-parameter under the order template and the test, at least one test is generated
Order.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, comprising: processor, memory and bus, it is described
Memory is stored with the executable machine readable instructions of the processor, when electronic equipment operation, the processor with it is described
By bus communication between memory, the machine readable instructions execute the above-mentioned side of test that places an order when being executed by the processor
The step of method.
On the other hand, the embodiment of the present application also provides a kind of computer readable storage medium, which is characterized in that the calculating
It is stored with computer program on machine readable storage medium storing program for executing, executes when the computer program is run by processor and places an order as above-mentioned
The step of test method.
Lower single test method provided by the embodiments of the present application and device, determine the order template of test order;Described in acquisition
Test one-parameter under the test of order;Based on one-parameter under the order template and the test, generates at least one test and order
It is single;Whether the order parameter detected on each test order generated matches with one-parameter under the test;What detection generated
Whether the order data on each test order matches with the order data on the order template;If on each test order
Order parameter match with one-parameter under the test, and it is each test order on order data and the order template
On order data match, determine and place an order success.
Compared with existing test mode, by determining order template and under testing, one-parameter generates at least one to the application
A test order detects that the order parameter of the test order of generation is matched with one-parameter under the test determined, and tests and order
The order data of single order data and order template matches, and determines the success that places an order, in this way, passing through the automation of test order
Generation carries out the test that places an order, it is possible to reduce the consumption of the man power and material for the test that places an order improves the convenience for the test that places an order, and improves
It places an order and tests the abundant degree and timeliness of order when testing.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the system architecture diagram under a kind of possible application scenarios;
Fig. 2 is the flow chart for lower single test method that one embodiment of the invention provides;
Fig. 3 be another embodiment of the present invention provides lower single test method flow chart;
Fig. 4 is one of the structure chart of lower single test device provided by the embodiments of the present application;
Fig. 5 is the two of the structure chart of lower single test device provided by the embodiments of the present application;
Fig. 6 is the three of the structure chart of lower single test device provided by the embodiments of the present application;
Fig. 7 is the structure chart for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real
The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings
The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application
Apply example.Based on embodiments herein, those skilled in the art institute obtained without making creative work
There are other embodiments, shall fall in the protection scope of this application.
Firstly, present invention application scenarios applicatory are introduced.Present invention could apply to order management technology necks
In the field of domain, it is particularly applied to test the stability of ordering system.Referring to Fig. 1, Fig. 1 is one kind in the applied field
System composition under scape.As shown in fig. 1, the system comprises order management systems and lower single test device, and place an order test dress
Setting, which can be, is set in order management system, as a part of order management system, is also possible to independently of order management
It except system, is attached by external form with order management system, lower list test device can be according to order management system
System provides relevant data, and auxiliary order management system generates multiple test orders, to realize to order management system stability
Test.
It has been investigated that being that tester is testing every time mostly at present for the test of inline system, such as ordering system
The preceding manual construction by manually carrying out order, or using the order data of preceding first use, need to expend a large amount of manpower
Material resources, and the test quantity on order of manual construction is insufficient, and abundant degree and the timeliness for testing order are relatively low.
Based on this, the embodiment of the present application provides a kind of lower single test method and device, with reduce place an order test when manpower and
The consumption of material resources improves the convenience for the test that places an order, and improves to place an order and tests the abundant degree and timeliness of order when testing.
For convenient for understanding the present embodiment, below from executing method angle, to the thought of the embodiment of the present application do into
The description of one step.
Referring to Fig. 2, Fig. 2 is the flow chart of lower single test method provided by the embodiments of the present application.As shown in Figure 2, originally
Apply for lower single test method that embodiment provides, comprising:
Step 201, the order template for determining test order.
In the step, when needing to test order management system, lower list test device can be determined for generating
The required order template of test order.
Wherein it is determined that the order template of test order, can be the application aspect according to order management system, to determine tool
The order template that body uses, such as order management system are in terms of being applied to electric business, then order template can be to be made accordingly
With the template of purchase order, then such as order management system is in terms of being applied to logistics, then order template can be accordingly
Use the template of logistics order;It can also be that the demand according to measurement direction, such as order management system can be an integration
Remind, can be applied to a variety of aspects such as electric business or logistics, can according to need test order management system in electric business or
The different directions such as person's logistics, to determine the corresponding template of different aspect used;It can also be and grasped according to the selection of tester
Make etc., after receiving the selection operation of tester, select template corresponding with the selection operation of tester.
Wherein it is determined that the order template of test order, can be from the database saved there are many order template into
Row selection can also be after being provided with of new order template, what is determined newly sets so that it is determined that need order template to be used
The order template set.
Step 202 obtains one-parameter under the test for testing order.
In the step, lower single test device, can be by the side such as extracting or being arranged after order template has been determined
Formula, to get one-parameter under the test for the test order of generation.
Wherein, one-parameter under the test can be the parameter of the test order for generation, such as the test of generation is ordered
Position range, station address and/or the place of acceptance of consignor's information, consignee's information, seller addresses and/delivery address on list
The position of location or position range, distance range, the order amount of money range of order dispatching etc..
One-parameter under above-mentioned test is the lower one-parameter as the multiple virtual orders being subsequently generated, and address model is arranged
Enclose with amount of money range, convenient for generating multiple virtual orders, to test order management system.
Step 203 is based on one-parameter under the order template and the test, generates at least one test order.
In the step, lower single test device is needed under order template to be used and test after one-parameter having determined,
One-parameter under the order template and the test can be used, to generate at least one test order.
Wherein, at least one test order is generated, can be lower single test device for the order template and described
Test lower one-parameter and pass to order management system, control lower single part in order management system using the order template and
One-parameter places an order under the test, to generate test order.
Step 204, detection generate each test order on order parameter whether with one-parameter phase under the test
Match.
In the step, lower single test device, can be at least after control generates at least one test order
One test order in each order detected, come detect it is each test order on order parameter whether be and the survey
Try what lower one-parameter matched, to judge whether the test order generated is accurate order.
Wherein, the order data on each test order, can be the parameter on the test order of generation, such as generation
Test consignor's information, consignee's information, seller addresses and/delivery address on order, station address and/or shipping address,
Order dispenses distance, order amount of money etc..
Wherein, the order parameter on each test order matches with one-parameter under the test, can refer to that test is ordered
Order parameter on list, it is consistent with lower one-parameter is tested, or under test within one-parameter parameter area.For example, test
Consignor's information and consignee's information on order descend consignor's information and consignee's information one in one-parameter with test respectively
It causes;It is to fall in the seller addresses and/hair tested in lower one-parameter for the station address and/or shipping address on test order
Within the position range of goods address;It is to fall in the lower one-parameter of test for the station address and/or shipping address on test order
In station address and/or shipping address position or position range within;For test order on order dispatching away from
From being fallen within the distance range for the order dispatching tested in lower one-parameter;The order amount of money on order is tested, is to fall in survey
Try order amount of money range in lower one-parameter.It is above-mentioned only to facilitate understand and explanation, schematically illustrate part order parameter, order ginseng
Number includes but is not limited to the parameter in exemplified above.
, whereas if if having a parameter or several parameter step matchings, i.e., it is not identical, do not fall within the range of setting
Within, perhaps if situations such as it is messy code or void item that corresponding position on order, which does not embody corresponding parameter to show,
It is considered that the order parameter of test order and the lower one-parameter of test mismatch.
Step 205, detection generate each test order on order data whether with the order on the order template
Data match.
In the step, lower single test device, can be at least after control generates at least one test order
Whether each order in one test order is detected, be to order with described to detect the order data on each test order
What the order data on single mode plate matched, to judge whether the test order generated is accurate order.
Wherein, the order data in the order data and order template on each test order, refers to needs on order
The each project information embodied, and during testing order and generating, the information that needs to be correspondingly arranged.For example,
It such as needs to fill in consignor's information on order, so that it may be that one column of consignor in order data is filled in;Such as ordering
It needs to fill in or select order type on list, so that it may be that one column of order type in order data is filled in or selected
It selects;It such as needs to fill in or select on order to be reservation order or instant form ordering, so that it may be in that data of order
Reservation order or one column of instant form ordering are filled in or are selected;As needed to need to fill in or modify order on order
Expected time, such as expectation delivery time, so that it may be one column of the expected time setting corresponding order phase in order data
It hopes the time, or setting order expected time offset etc..It is above-mentioned only to facilitate understand and explanation, schematically illustrate part order
Data, order data include but is not limited to the project in exemplified above.
In the above-described embodiments, order data includes the combination of following one or several kinds: the expected time offset of order
Amount, order type, the order amount of money, the time of order, reservation order or instant form ordering, invoice type.
Wherein, the order data tested on order matches with the order data on the order template, can refer to survey
Projects on trial order in order data are identical or corresponding with projects in order data on order template
, such as have consignor, order type project on test order and on order template, the expectation on order is tested for another example
Time is identical relative to the expected time on order template, or meets the offset of the expected time of setting.
If the order parameter on step 206, each test order matches with one-parameter under the test, and each survey
Order data on trial order matches with the order data on the order template, and determining place an order is successfully tested.
In the step, if lower single test device is by comparing or detecting, it is determined that on each test order
Order parameter matches with one-parameter under the test, and in the order data and the order template on each test order
Order data match, then lower single test device, which can think this time to test order, generates that there is no problem, place an order
It is successfully tested, i.e., order management system is stable at the aspect that places an order.
Lower single test method provided by the embodiments of the present application, determines the order template of test order;The test is obtained to order
One-parameter under single test;Based on one-parameter under the order template and the test, at least one test order is generated;Detection
Whether the order parameter on each test order generated matches with one-parameter under the test;Detect each test generated
Whether the order data on order matches with the order data on the order template;If the order ginseng on each test order
Number matches with one-parameter under the test, and the order data on each test order and the order on the order template
Data match, and determine the success that places an order.
In this way, generating test order by the automation for testing order carries out the test that places an order, it is possible to reduce place an order test
The consumption of man power and material improves the convenience for the test that places an order, and improves to place an order and tests the abundant degree and timeliness of order when testing
Property.
Referring to Fig. 3, Fig. 3 is the flow chart for lower single test method that another embodiment of the application provides.Such as institute in Fig. 3
Show, lower single test method provided by the embodiments of the present application, comprising:
Step 301, the order template for determining test order.
Step 302 obtains one-parameter under the test for testing order.
Step 303, based on the lower single environment to match with the order template, prepare to test the described of order for generating
Lower list environment.
In the step, lower single test device can be ordered after the order template that test order has been determined by extracting
The information of single mode plate determines the lower single environment to match with the order template from the information of order template, then can
To be prepared to being subsequently generated test order, to prepare determining lower single environment.
Wherein, lower single environment, including database write-in places an order or external interface calling places an order.
Prepare lower single environment, specifically, placing an order if it is database write-in, it is desirable to provide the address of database, port, account
Number, the data such as password, database-name and table name;It places an order if it is external interface calling, it is desirable to provide corresponding interface
Location.
Step 304, in lower single environment, based on one-parameter under the order template and the test, generate at least
One test order.
In the step, lower single test device one-parameter in the case where need order template to be used and test has been determined, and
And be ready to after lower single environment, one-parameter under the order template and the test can be used, in lower single environment,
To generate at least one test order.
Wherein, at least one test order is generated, can be lower single test device for the order template and described
Test lower one-parameter and pass to order management system, control lower single part in order management system using the order template and
One-parameter places an order under the test, to generate test order.
Step 305, detection generate each test order on order parameter whether with one-parameter phase under the test
Match.
Step 306, detection generate each test order on order data whether with the order on the order template
Data match.
If the order parameter on step 307, each test order matches with one-parameter under the test, and each survey
Order data on trial order matches with the order data on the order template, and determining place an order is successfully tested.
Wherein, step 301, step 302 and step 305 can refer to step 201, step 202 to the description of step 307
With the description of step 204 to step 206, and identical technical effect can achieve, this will not be repeated here.
In some embodiments, step 301 includes:
Based on the order type of the test order, order template is selected from database.
In the step, when needing to test order management system, lower list test device can be according to the test
The order type of order, types, the Lai Congyi such as logistics order, express delivery order or purchase order in this way are stored with various template
Order template is selected in database.
Wherein, order template is selected, lower single test device is can be and is selected automatically, be also possible to described place an order
Test device receives the selection input of tester, carrys out the order template of selection.
In the present embodiment, when primarily directed to list under test, the determination of order template is carried out in existing template
Selection.
In the above-described embodiments, after step 301, which comprises
Obtain editing order data;Based on the editing order data, modify to the order template of selection;Determination is repaired
Order template after changing is the order template for generating the test order and using.
In the step, lower single test device is available to arrive editing order data, then according to the editing order
Data modify to the order template of selection, and can be the generation test order institute modified order template
Order template to be used.
Wherein, editing order data are obtained, can be lower single test device according to different test cases, to selection
Order template is modified accordingly, come the corresponding modification data obtained, be can also be that lower single test device receives and is surveyed
The modification of examination personnel operates, the modification data corresponding with modification operation determined.
In this way, can modify to order template, place an order convenient for test rich.
In some embodiments, step 301 includes:
Obtain the order data for generating order template;Determine lower single environment of the order template, wherein under described
Monocycle border include database write-in place an order either external interface calling place an order;Based on the order data and the lower monocycle
Border generates the order template that test order uses.
In the step, lower single test device place an order test when, can first obtain ordering for order template
Forms data, the order data determine lower single environment of the order template for generating the order template, then, so that it may
With according to the order data and lower single environment, to generate the order template that test order uses.
Wherein, lower single environment, including database write-in places an order or external interface calling places an order.
Specifically, placing an order if it is database write-in, it is desirable to provide the address of database, port, account, password, data
Library name, the data such as table name;It places an order if it is external interface calling, it is desirable to provide corresponding interface IP address.
Wherein, the order data for generating order template is obtained, lower single test device is can be and gives birth to as needed
At order template demand, such as order type can also be the test that places an order to determine the order data of order template
Device receives the input of tester, obtains the order data for generating order template according to the input of tester.
The present embodiment needs newly-generated order primarily directed to the order template that when testing, not can be used
The case where model.
Lower single test method provided by the embodiments of the present application, determines the order template of test order;The test is obtained to order
One-parameter under single test;Based on the lower single environment to match with the order template, prepare the institute for generating test order
State lower single environment;In lower single environment, based on one-parameter under the order template and the test, at least one survey is generated
Trial order;Whether the order parameter detected on each test order generated matches with one-parameter under the test;Detection life
At each test order on order data whether match with the order data on the order template;If each test is ordered
Order parameter on list matches with one-parameter under the test, and order data and the order on each test order
Order data in template matches, and determines the success that places an order.
In this way, generating test order by the automation for testing order carries out the test that places an order, it is possible to reduce place an order test
The consumption of man power and material improves the convenience for the test that places an order, and improves to place an order and tests the abundant degree and timeliness of order when testing
Property.
Fig. 4 to fig. 6 is please referred to, Fig. 4 is one of the structure chart of lower single test device provided by the embodiments of the present application, and Fig. 5 is
Two, Fig. 6 of the structure chart of lower single test device provided by the embodiments of the present application is the test dress provided by the embodiments of the present application that places an order
The three of the structure chart set.The step of above-mentioned lower single test method executes may be implemented in lower single test device 400.The device can
To be interpreted as the processor of server or server, it is understood that for independently of except above-mentioned server or processor
The lower component for realizing the application function of server control.As shown in Figure 4, lower single test device 400 includes:
First determining module 410, for determining the order template of test order.
First obtains module 420, one-parameter under the test for obtaining the test order.
Generation module 430, for generating at least one test and ordering based on one-parameter under the order template and the test
It is single.
First detection module 440, for detect generate each test order on order parameter whether with the test
Lower one-parameter matches.
Second detection module 450, for detect generate each test order on order data whether with the order
Order data in template matches.
Second determining module 460, if the order parameter on each test order and one-parameter phase under the test
Match, and the order data on each test order matches with the order data on the order template, determines the success that places an order.
In some embodiments, first determining module 410 is specifically used for:
Based on the order type of the test order, order template is selected from database.
In the above-described embodiments, lower single test device includes:
Second obtains module 470, for obtaining editing order data.
Modified module 480 modifies to the order template of selection for being based on the editing order data.
Third determining module 490, for determining that modified order template is the order for generating the test order and using
Template.
In some embodiments, first determining module 410 is specifically also used to:
Obtain the order data for generating order template.
Determine lower single environment of the order template, wherein lower single environment includes that database write-in places an order either
External interface calling places an order.
Based on the order data and lower single environment, the order template that test order uses is generated.
In the above-described embodiments, the order data of order template includes the combination of following one or several kinds:
The expected time offset of order, order type, the order amount of money, the time of order, reservation order or i.e.
When order, invoice type.
In some embodiments, lower single test device includes:
Preparation module 4100, for preparing for generating test based on the lower single environment to match with the order template
Lower single environment of order;
The generation module 430 is specifically used for:
In lower single environment, based on one-parameter under the order template and the test, at least one test is generated
Order.
Lower single test device provided by the embodiments of the present application, by the order template for determining test order;Obtain the survey
One-parameter under the test of trial order;Based on one-parameter under the order template and the test, at least one test order is generated;
Whether the order parameter detected on each test order generated matches with one-parameter under the test;Each of detection generation
Whether the order data on test order matches with the order data on the order template;If ordering on each test order
One-parameter matches with one-parameter under the test, and in the order data and the order template on each test order
Order data matches, and determines the success that places an order.
In this way, generating test order by the automation for testing order carries out the test that places an order, it is possible to reduce place an order test
The consumption of man power and material improves the convenience for the test that places an order, and improves to place an order and tests the abundant degree and timeliness of order when testing
Property.
Referring to Fig. 7, Fig. 7 is the structure chart for the electronic equipment that one embodiment of the invention provides.As shown in Figure 7, described
Electronic equipment 700 includes processor 710, memory 720 and bus 730.
The memory 720 is stored with the executable machine readable instructions of the processor 710, when electronic equipment 700 is transported
When row, communicated between the processor 710 and the memory 720 by bus 730, the machine readable instructions are by the place
When managing device 710 and executing, the step of lower single test method in the embodiment of the method as shown in above-mentioned Fig. 2 and Fig. 3 can be executed, tool
Body implementation can be found in embodiment of the method, and details are not described herein.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored on the computer readable storage medium
Computer program can execute in the embodiment of the method as shown in above-mentioned Fig. 2 and Fig. 3 when the computer program is run by processor
Lower single test method the step of, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application
Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen
It please be described in detail, those skilled in the art should understand that: anyone skilled in the art
Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application
Within the scope of.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
Claims (10)
1. a kind of lower single test method, which is characterized in that the described method includes:
Determine the order template of test order;
Obtain one-parameter under the test of the test order;
Based on one-parameter under the order template and the test, at least one test order is generated;
Whether the order parameter detected on each test order generated matches with one-parameter under the test;
Whether the order data detected on each test order generated matches with the order data on the order template;
If the order parameter on each test order matches with one-parameter under the test, and ordering on each test order
Forms data matches with the order data on the order template, and determining place an order is successfully tested.
2. the method as described in claim 1, which is characterized in that the order template of the determining test order, comprising:
Based on the order type of the test order, order template is selected from database.
3. method according to claim 2, which is characterized in that in the order type based on the test order, from number
After selection order template in library, which comprises
Obtain editing order data;
Based on the editing order data, modify to the order template of selection;
Determine that modified order template is the order template for generating the test order and using.
4. the method as described in claim 1, which is characterized in that the order template of the determining test order, comprising:
Obtain the order data for generating order template;
Determine lower single environment of the order template, wherein lower single environment includes that the either outside that places an order is written in database
Interface calling places an order;
Based on the order data and lower single environment, the order template that test order uses is generated.
5. the method as described in Claims 1-4, which is characterized in that order data includes the combination of following one or several kinds:
The expected time offset of order, order type, the order amount of money, the time of order, reservation order are ordered immediately
Single, invoice demand.
6. the method as described in claim 1, which is characterized in that described after the order template of the determining test order
Method includes:
Based on the lower single environment to match with the order template, prepare lower single environment for generating test order;
It is described to be based on one-parameter under the order template and the test, generate at least one test order, comprising:
In lower single environment, based on one-parameter under the order template and the test, at least one test order is generated.
7. a kind of lower single test device, which is characterized in that lower single test device includes:
First determining module, for determining the order template of test order;
First obtains module, one-parameter under the test for obtaining the test order;
Generation module, for based on one-parameter under the order template and the test, generating at least one test order;
First detection module, for detect generate each test order on order parameter whether with one-parameter under the test
Match;
Second detection module, for detect generate each test order on order data whether on the order template
Order data matches;
Second determining module, if the order parameter on each test order matches with one-parameter under the test, and
Order data on each test order matches with the order data on the order template, determines the success that places an order.
8. lower single test device as claimed in claim 7, which is characterized in that first determining module is specifically used for:
Based on the order type of the test order, order template is selected from database.
9. test device as claimed in claim 8 lower single, which is characterized in that lower single test device includes:
Second obtains module, for obtaining editing order data;
Modified module modifies to the order template of selection for being based on the editing order data;
Third determining module, for determining that modified order template is the order template for generating the test order and using.
10. lower single test device as claimed in claim 7, which is characterized in that first determining module is specifically also used to:
Obtain the order data for generating order template;
Determine lower single environment of the order template, wherein lower single environment includes that the either outside that places an order is written in database
Interface calling places an order;
Based on the order data and lower single environment, the order template that test order uses is generated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811614484.3A CN109685626A (en) | 2018-12-27 | 2018-12-27 | A kind of lower single test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811614484.3A CN109685626A (en) | 2018-12-27 | 2018-12-27 | A kind of lower single test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109685626A true CN109685626A (en) | 2019-04-26 |
Family
ID=66190657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811614484.3A Pending CN109685626A (en) | 2018-12-27 | 2018-12-27 | A kind of lower single test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109685626A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113485906A (en) * | 2021-05-10 | 2021-10-08 | 广州城建职业学院 | Method for testing statistical data in financial cloud platform |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722161A (en) * | 2005-04-29 | 2006-01-18 | 东华大学 | Electronic government affair cooperative work data standard compliance testing method |
CN103838672A (en) * | 2014-03-04 | 2014-06-04 | 中国工商银行股份有限公司 | Automated testing method and device for all-purpose financial statements |
CN104317713A (en) * | 2014-10-27 | 2015-01-28 | 北京锐安科技有限公司 | Automatic testing tool and method on basis of templates |
CN107025076A (en) * | 2016-02-01 | 2017-08-08 | 阿里巴巴集团控股有限公司 | One kind automation printing test method and device |
CN107730385A (en) * | 2017-07-27 | 2018-02-23 | 上海壹账通金融科技有限公司 | Simulation process method, apparatus, storage medium and the computer equipment of sequence information |
CN107844411A (en) * | 2016-09-18 | 2018-03-27 | 阿里巴巴集团控股有限公司 | A kind of method of testing and relevant apparatus |
CN108415832A (en) * | 2018-02-07 | 2018-08-17 | 平安科技(深圳)有限公司 | Automatic interface testing method, device, equipment and storage medium |
CN108701390A (en) * | 2018-06-01 | 2018-10-23 | 福建联迪商用设备有限公司 | The method and system of function are beaten in a kind of cash register test kitchen |
-
2018
- 2018-12-27 CN CN201811614484.3A patent/CN109685626A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722161A (en) * | 2005-04-29 | 2006-01-18 | 东华大学 | Electronic government affair cooperative work data standard compliance testing method |
CN103838672A (en) * | 2014-03-04 | 2014-06-04 | 中国工商银行股份有限公司 | Automated testing method and device for all-purpose financial statements |
CN104317713A (en) * | 2014-10-27 | 2015-01-28 | 北京锐安科技有限公司 | Automatic testing tool and method on basis of templates |
CN107025076A (en) * | 2016-02-01 | 2017-08-08 | 阿里巴巴集团控股有限公司 | One kind automation printing test method and device |
CN107844411A (en) * | 2016-09-18 | 2018-03-27 | 阿里巴巴集团控股有限公司 | A kind of method of testing and relevant apparatus |
CN107730385A (en) * | 2017-07-27 | 2018-02-23 | 上海壹账通金融科技有限公司 | Simulation process method, apparatus, storage medium and the computer equipment of sequence information |
CN108415832A (en) * | 2018-02-07 | 2018-08-17 | 平安科技(深圳)有限公司 | Automatic interface testing method, device, equipment and storage medium |
CN108701390A (en) * | 2018-06-01 | 2018-10-23 | 福建联迪商用设备有限公司 | The method and system of function are beaten in a kind of cash register test kitchen |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113485906A (en) * | 2021-05-10 | 2021-10-08 | 广州城建职业学院 | Method for testing statistical data in financial cloud platform |
CN113485906B (en) * | 2021-05-10 | 2024-01-26 | 广州城建职业学院 | Method for testing statistical data in financial cloud platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7097675B2 (en) | Risk identification in the supply chain | |
CN109857667A (en) | Automatic interface testing method, test device, test equipment and storage medium | |
CN109649916B (en) | Intelligent container cargo identification method and device | |
CN105404540B (en) | A kind of method, system and the remote server of robot remote upgrading | |
CN106447264A (en) | Commodity deployment method and system | |
CN109918205A (en) | A kind of edge device dispatching method, system, device and computer storage medium | |
Baruah | Requirement management in agile software environment | |
CN105930259A (en) | Method and apparatus for WEB regression testing | |
CN109840732B (en) | Checking system for integrity of whole vehicle configurable bill of materials under free selection and matching condition | |
CN110363476A (en) | Warehousing allocation processing method and device | |
CN110930221A (en) | Abnormal order processing method, storage medium and computer equipment | |
CN109552795A (en) | Cargo warehouse-out method and device and computer readable storage medium | |
CN108052444A (en) | A kind of method and apparatus of performance test for mobile application | |
US9082148B1 (en) | Grouping products by size and weight | |
CN106681854A (en) | Information checking method, device and system | |
CN107172217B (en) | Interactive shopping method and system | |
CN110060110A (en) | A kind of the determination method, apparatus and computer readable storage medium of product cost | |
CN102024198A (en) | Product test management system and test management method | |
CN105897916A (en) | Method and system for obtaining weight state of objects | |
CN109685626A (en) | A kind of lower single test method and device | |
CN107220120A (en) | Method and apparatus for delivering software solution | |
CN104580193B (en) | A kind of data processing method and device | |
CN110619400A (en) | Method and device for generating order information | |
CN110503495A (en) | For obtaining the method and device of information | |
CN108257301A (en) | The good selling method of logistics system, logistics system of selling goods and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190426 |