CN109189669A - Test method, electronic device and the readable storage medium storing program for executing of business scenario - Google Patents

Test method, electronic device and the readable storage medium storing program for executing of business scenario Download PDF

Info

Publication number
CN109189669A
CN109189669A CN201810876531.5A CN201810876531A CN109189669A CN 109189669 A CN109189669 A CN 109189669A CN 201810876531 A CN201810876531 A CN 201810876531A CN 109189669 A CN109189669 A CN 109189669A
Authority
CN
China
Prior art keywords
business scenario
attribute
attribute information
business
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
Application number
CN201810876531.5A
Other languages
Chinese (zh)
Inventor
王婧嫣
周学平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810876531.5A priority Critical patent/CN109189669A/en
Priority to PCT/CN2018/108216 priority patent/WO2020024419A1/en
Publication of CN109189669A publication Critical patent/CN109189669A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Abstract

The present invention relates to a kind of test method of business scenario, electronic device and readable storage medium storing program for executing, this method comprises: storing the attribute information of business scenario each in business scenario to be tested into default Excel file;The attribute information includes the attribute information of each associated interface data in each business scenario;When testing business scenario, calls and the associated associated interface of each attribute of the business scenario obtains verify data corresponding with each attribute in presetting database;Each attribute information of the business scenario carries out matching verification in the corresponding verify data of each attribute and the default Excel file that will acquire;The business scenario is tested according to matching check results.The present invention improves the testing efficiency of business scenario.

Description

Test method, electronic device and the readable storage medium storing program for executing of business scenario
Technical field
The present invention relates to field of computer technology more particularly to a kind of test methods of business scenario, electronic device and can Read storage medium.
Background technique
Currently, the business scenario being related to is often very much, to business scenario in the more complex operation system of some processes Efficiency is very low if by manually being tested when test.For example, sales on consignment supports that system is the core system of trust business transaction System, upstream and downstream interconnected system is more, and business scenario is complicated, and cross-matched can produce between process and data involved in business operation Raw thousands of different business scenarios.It is by manually to it in the existing scheme for supporting system to be tested for sales on consignment Manual test is carried out, by tester, thousands of different business scenarios are tested in the operation in sales on consignment support system manually, Test job amount is huge, and the testing time is too long, inefficiency.
Summary of the invention
The purpose of the present invention is to provide a kind of test method of business scenario, electronic device and readable storage medium storing program for executing, purports In the testing efficiency for improving business scenario.
To achieve the above object, the present invention provides a kind of electronic device, and the electronic device includes memory, processor, The test macro for the business scenario that can be run on the processor, the test of the business scenario are stored on the memory System realizes following steps when being executed by the processor:
The attribute information of business scenario each in business scenario to be tested is stored into default Excel file;The category Property information includes the attribute information of each associated interface data in each business scenario;
When testing business scenario, associated interface associated with each attribute of the business scenario is called to obtain Take verify data corresponding with each attribute in presetting database;The corresponding verify data of each attribute that will acquire with it is described pre- If each attribute information of the business scenario carries out matching verification in Excel file;
The business scenario is tested according to matching check results.
Preferably, the attribute information includes data format attribute information, size of data attribute information, calculating logic attribute Information.
Preferably, the processor is also used to execute the test macro of the business scenario, to perform the steps of
It, will be each in newly-increased business scenario and the newly-increased business scenario when needing to increase newly business scenario to be tested A attribute information is stored into default Excel file.
Preferably, described the step of being tested according to matching check results the business scenario, includes:
Matching verification is carried out to each attribute of the business scenario according to the execution process of the business scenario, if what is obtained should The corresponding attribute information of the corresponding verify data of the current attribute of business scenario and the business scenario in the default Excel file Verification mismatches, then test terminates;
If the business in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained The correspondence attribute information of scene verifies matching, then continues to carry out matching verification to next attribute of the business scenario.
In addition, to achieve the above object, the present invention also provides a kind of test method of business scenario, the business scenario Test method includes:
The attribute information of business scenario each in business scenario to be tested is stored into default Excel file;The category Property information includes the attribute information of each associated interface data in each business scenario;
When testing business scenario, associated interface associated with each attribute of the business scenario is called to obtain Take verify data corresponding with each attribute in presetting database;The corresponding verify data of each attribute that will acquire with it is described pre- If each attribute information of the business scenario carries out matching verification in Excel file;
The business scenario is tested according to matching check results.
Preferably, the attribute information includes data format attribute information, size of data attribute information, calculating logic attribute Information.
Preferably, this method further include:
It, will be each in newly-increased business scenario and the newly-increased business scenario when needing to increase newly business scenario to be tested A attribute information is stored into default Excel file.
Preferably, described the step of being tested according to matching check results the business scenario, includes:
Matching verification is carried out to each attribute of the business scenario according to the execution process of the business scenario, if what is obtained should The corresponding attribute information of the corresponding verify data of the current attribute of business scenario and the business scenario in the default Excel file Verification mismatches, then test terminates;
If the business in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained The correspondence attribute information of scene verifies matching, then continues to carry out matching verification to next attribute of the business scenario.
Preferably, this method further include:
If the business in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained The correspondence attribute information of scene, which verifies, to be mismatched, then sends test crash information to default terminal;The test crash packet It includes the unmatched business scenario information of verification, verify unmatched attribute and associated associated interface information.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with the test macro of business scenario, and the test macro of the business scenario can be by least one processor It executes, so that the step of at least one described processor executes the test method such as above-mentioned business scenario.
Test method, electronic device and the readable storage medium storing program for executing of business scenario proposed by the present invention, by by each business The attribute information of each associated interface data is stored into default Excel file in scene, when testing business scenario, It calls and the associated associated interface of each attribute of the business scenario is corresponding with each attribute in presetting database to obtain Verify data, and the corresponding verify data of each attribute that will acquire in the default Excel file business scenario it is each A attribute information carries out matching verification, is tested according to matching check results the business scenario.Due to can will be all to be measured Attribute information in the business scenario of examination is stored in Excel file in the form of data, can be by linked database by business Each attribute information progress of the business scenario stored in the corresponding verify data of each attribute and Excel file of scene Come to carry out automatic test to business scenario with verification, tests a large amount of business scenario without manual hand manipulation, improve The testing efficiency of business scenario.
Detailed description of the invention
Fig. 1 is the running environment schematic diagram of 10 preferred embodiment of test macro of business scenario of the present invention;
Fig. 2 is the flow diagram of one embodiment of test method of business scenario of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
The present invention provides a kind of test macro of business scenario.Referring to Fig. 1, being the test macro of business scenario of the present invention The running environment schematic diagram of 10 preferred embodiments.
In the present embodiment, the test macro 10 of the business scenario is installed and is run in electronic device 1.The electronics Device 1 may include, but be not limited only to, memory 11, processor 12 and display 13.Fig. 1 is illustrated only with component 11-13's Electronic device 1, it should be understood that be not required for implementing all components shown, the implementation that can be substituted is more or more Few component.
The memory 11 is the readable computer storage medium of at least one type, and the memory 11 is in some implementations It can be the internal storage unit of the electronic device 1, such as the hard disk or memory of the electronic device 1 in example.The memory 11 are also possible to the External memory equipment of the electronic device 1 in further embodiments, such as are equipped on the electronic device 1 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card) etc..Further, the memory 11 can also both include the storage inside of the electronic device 1 Unit also includes External memory equipment.The memory 11 for store the application software for being installed on the electronic device 1 and respectively Class data, for example, the business scenario test macro 10 program code etc..The memory 11 can be also used for temporarily Store the data that has exported or will export.
The processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, for running the program code stored in the memory 11 or processing number According to, such as test macro 10 for executing the business scenario etc..
The display 13 can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display in some embodiments And OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..The display 13 is used In being shown in the information handled in the electronic device 1 and for showing visual user interface, such as Excel file is aobvious Show interface, test result etc..The component 11-13 of the electronic device 1 is in communication with each other by system bus.
The test macro 10 of business scenario includes that at least one is stored in the computer-readable instruction in the memory 11, At least one computer-readable instruction can be executed by the processor 12, to realize each embodiment of the application.
Wherein, following steps are realized when the test macro 10 of above-mentioned business scenario is executed by the processor 12:
Step S1 stores the attribute information of business scenario each in business scenario to be tested into default Excel file; The attribute information includes the attribute information of each associated interface data in each business scenario;The attribute information include but It is not limited to following several: data format attribute information, size of data attribute information, calculating logic attribute information etc..
Step S2 calls association associated with each attribute of the business scenario when testing business scenario Interface obtains verify data corresponding with each attribute in presetting database;The corresponding verify data of each attribute that will acquire Matching verification is carried out with each attribute information of the business scenario in the default Excel file;
Step S3 tests the business scenario according to matching check results.
In the present embodiment, matching school is carried out to each attribute of the business scenario according to the execution process of the business scenario It tests, if the business scenario in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained Correspondence attribute information verify mismatch, then test terminate;If the corresponding verifying number of current attribute of the business scenario obtained It matches, then continues to the business scenario according to being verified with the corresponding attribute information of the business scenario in the default Excel file Next attribute carries out matching verification, until matching has verified each attribute of the business scenario, if verification matching, is tested The business scenario is errorless, completes the automatic test to the business scenario.
If the business in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained The correspondence attribute information of scene, which verifies, to be mismatched, then sends test crash information to default terminal;The test crash packet Include but be not limited to verify unmatched business scenario information, verification unmatched attribute and associated associated interface information etc..
Specifically, in the present embodiment, firstly, all business scenarios to be tested are all stored in the form of data default In Excel file, for example, sales on consignment supports that cross-matched can produce between process and data involved in the business operation of system Raw thousands of different business scenarios, in a process comprising multiple attributes (such as subscribe in process include place an order, information school Test, submit, auditing, the attribute of order status etc. links), it can produce multiple and different business fields according to the difference of attribute Scape, for example, business scenario A are as follows: place an order successfully and generate O/No., but information checking fails, and submits failure, final review Failure, order is status of fail.Business scenario B are as follows: it places an order successfully and generates O/No., information checking success is submitted successfully, Audit failure, order is status of fail.Each attribute information in each business scenario is stored to corresponding Excel file In, which includes but is not limited to order number, client segmentation, calculating logic etc..For example, what is stored in Excel file is each A attribute information can be different determined property branch, such as information checking attribute, when storing in Excel file It can be " information checking success " or " information checking failure ";In addition it is also possible to each to be stored in Excel file with field Attribute information, such as be field when being stored in Excel file when information checking attribute is successfully for information checking attribute " 1 " is field " 0 " when storing in Excel file when information checking attribute is unsuccessfully.With this, system is supported for sales on consignment Each business scenario to be tested in system, can convert each business scenario to corresponding several attribute informations, and by several categories Property information be converted into the data in Excel file record.So as to by all business scenarios to be tested all with data Form is stored in Excel file.
When testing a business scenario, can first be determined according to each attribute in a business scenario to be measured Associated interface associated with each attribute of the business scenario in test system (i.e. sales on consignment support system) calls trust pin It sells associated interface associated with each attribute in support system and carrys out automatization simulation and execute the business scenario, in implementation procedure In, linked database includes preset verify data in the database, which is test system (i.e. trust to be measured Sales assisting system) in it is each data are completed, i.e., by test system to be measured (i.e. sales on consignment support system) in each industry Truthful data caused by scene of being engaged in.When calling associated interface automated execution business scenario, pass through the associated interface of calling The correspondence real property data in current process in the database of link are obtained, meanwhile, from the Excel file generated before The attribute information of the business scenario of storage is obtained, is deposited in the verify data that will acquire i.e. real property data and Excel file The attribute information of storage carries out matching verification, is tested according to attribute of the check results to each interface, is if verification mismatches (for example, the business scenario of current automatization simulation is the scene of subscribing of A class client, that reads A class client subscribes field for verification failure The corresponding Excel file of scape, if current automatization simulation, which executes, is called test system to be measured (i.e. trust pin when this subscribes business scenario Sell support system) " lower list interface ", link odd numbers database, obtain test system to be measured (i.e. sales on consignment support system) and issue " odd numbers data ", meanwhile, from subscribe in the corresponding Excel file of scene obtain storage " odd numbers attribute information ", will call " the odd numbers attribute information " stored in " the odd numbers data " and Excel file issued when interface carries out matching verification, for example, " single The English addend words that number attribute information " is 8 verify matching i.e. school if the English addend word that verification " odd numbers data " is 8 Success is tested, if pure English or pure digi-tal of the verification " odd numbers data " for 8, verify the i.e. verification failure of mismatch, then terminate certainly Dynamicization simulation test), then terminate to test, and the test result of verification failure is fed back to pre-set terminal, the feedback Test result in may include verification failure information, verification failure business scenario information, verification failure associated interface, with The attribute information etc. stored in the relevant real property data of verification failure, Excel file relevant to verification failure.If verification Matching verifies successfully, then executes next attribute by the process of the business scenario.Wherein, after the completion of all business scenario tests, Test result feeds back to pre-set terminal, pre-set terminal can for dependence test personnel computer end or Mobile phone terminal, the mode of feedback can be mail, short message, wechat, qq message etc., and dependence test personnel only need according to e-mail alert In failure scene carry out further manual verification.
Further, business scenario to be tested is if desired increased newly, it is only necessary to will be each in the newly-increased business scenario Attribute information is converted to Excel data, and the Excel data are increased newly in generated Excel file, more just It is prompt.
The present embodiment is by storing the attribute information of associated interface data each in each business scenario to default Excel In file, when testing business scenario, associated interface associated with each attribute of the business scenario is called to obtain The corresponding verify data of each attribute that takes verify data corresponding with each attribute in presetting database, and will acquire with it is described Each attribute information of the business scenario carries out matching verification in default Excel file, according to matching check results to the business Scene is tested.Due to that the attribute information in all business scenarios to be tested can be stored in Excel in the form of data In file, it can will be stored in the corresponding verify data of each attribute of business scenario and Excel file by linked database Each attribute information of the business scenario carries out matching verification to carry out automatic test to business scenario, without manually A large amount of business scenario is tested in operation, improves the testing efficiency of business scenario.
Further, as follows for the testing process for subscribing business scenario in an optional embodiment:
Firstly, carrying out environmental preparation, reading the preparations such as data operation, i.e., in the form of data by business scenario to be tested It is stored in Excel file, each attribute information subscribed in business scenario is stored in the Excel file, such as order is compiled Number attribute information, amended record data attribute information, image data attribute information etc..
Then, associated interface associated with attribute each in Excel file in sales on consignment support system is called to come from Dynamicization simulation executes this and subscribes business scenario, and lower single interface, amended record interface, electronic signature interface, video is such as called to discern interface Deng, in the process of implementation, linked database, in the database comprising sales on consignment support system subscribe it is each in business scenario It is a that data are completed, i.e., support system subscribing truthful data caused by business scenario by sales on consignment.It is associated with calling When interface automated execution subscribes business scenario, obtained in current process in the database of link by the associated interface of calling Correspondence real property data, meanwhile, this for obtaining storage from the Excel file generated before subscribes the attribute of business scenario The attribute information stored in information, the real property data that will acquire and Excel file carries out matching verification, according to check results The attribute of each interface is tested, if verification mismatches i.e. verification failure, terminates automatic test, that is, terminates test case Example.For example, linking amended record data database after calling amended record interface, obtains sales on consignment and system is supported to subscribe industry in current " the amended record data " that business scene issues, meanwhile, from " the amended record data category for subscribing acquisition storage in the corresponding Excel file of scene Property information ", " the amended record data attribute information " stored in " the amended record data " that issue when by calling interface and Excel file carries out Matching verification, for example, the capacity that " amended record data attribute information " is amended record data is not more than 1M, if " the amended record number that verification issues According to " capacity be greater than 1M, then verify mismatch i.e. verification fail, then terminate automatic test.Otherwise, verification matching i.e. verification at Function then continues that next interface is called to execute the next process for subscribing business scenario.
As shown in Fig. 2, Fig. 2 is the flow diagram of one embodiment of test method of business scenario of the present invention, the business field The test method of scape the following steps are included:
Step S10 stores the attribute information of business scenario each in business scenario to be tested to default Excel file In;The attribute information includes the attribute information of each associated interface data in each business scenario;The attribute information packet It includes but is not limited to following several: data format attribute information, size of data attribute information, calculating logic attribute information etc..
Step S20 calls association associated with each attribute of the business scenario when testing business scenario Interface obtains verify data corresponding with each attribute in presetting database;The corresponding verify data of each attribute that will acquire Matching verification is carried out with each attribute information of the business scenario in the default Excel file;
Step S30 tests the business scenario according to matching check results.
In the present embodiment, matching school is carried out to each attribute of the business scenario according to the execution process of the business scenario It tests, if the business scenario in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained Correspondence attribute information verify mismatch, then test terminate;If the corresponding verifying number of current attribute of the business scenario obtained It matches, then continues to the business scenario according to being verified with the corresponding attribute information of the business scenario in the default Excel file Next attribute carries out matching verification, until matching has verified each attribute of the business scenario, if verification matching, is tested The business scenario is errorless, completes the automatic test to the business scenario.
If the business in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained The correspondence attribute information of scene, which verifies, to be mismatched, then sends test crash information to default terminal;The test crash packet Include but be not limited to verify unmatched business scenario information, verification unmatched attribute and associated associated interface information etc..
Specifically, in the present embodiment, firstly, all business scenarios to be tested are all stored in the form of data default In Excel file, for example, sales on consignment supports that cross-matched can produce between process and data involved in the business operation of system Raw thousands of different business scenarios, in a process comprising multiple attributes (such as subscribe in process include place an order, information school Test, submit, auditing, the attribute of order status etc. links), it can produce multiple and different business fields according to the difference of attribute Scape, for example, business scenario A are as follows: place an order successfully and generate O/No., but information checking fails, and submits failure, final review Failure, order is status of fail.Business scenario B are as follows: it places an order successfully and generates O/No., information checking success is submitted successfully, Audit failure, order is status of fail.Each attribute information in each business scenario is stored to corresponding Excel file In, which includes but is not limited to order number, client segmentation, calculating logic etc..For example, what is stored in Excel file is each A attribute information can be different determined property branch, such as information checking attribute, when storing in Excel file It can be " information checking success " or " information checking failure ";In addition it is also possible to each to be stored in Excel file with field Attribute information, such as be field when being stored in Excel file when information checking attribute is successfully for information checking attribute " 1 " is field " 0 " when storing in Excel file when information checking attribute is unsuccessfully.With this, system is supported for sales on consignment Each business scenario to be tested in system, can convert each business scenario to corresponding several attribute informations, and by several categories Property information be converted into the data in Excel file record.So as to by all business scenarios to be tested all with data Form is stored in Excel file.
When testing a business scenario, can first be determined according to each attribute in a business scenario to be measured Associated interface associated with each attribute of the business scenario in test system (i.e. sales on consignment support system) calls trust pin It sells associated interface associated with each attribute in support system and carrys out automatization simulation and execute the business scenario, in implementation procedure In, linked database includes preset verify data in the database, which is test system (i.e. trust to be measured Sales assisting system) in it is each data are completed, i.e., by test system to be measured (i.e. sales on consignment support system) in each industry Truthful data caused by scene of being engaged in.When calling associated interface automated execution business scenario, pass through the associated interface of calling The correspondence real property data in current process in the database of link are obtained, meanwhile, from the Excel file generated before The attribute information of the business scenario of storage is obtained, is deposited in the verify data that will acquire i.e. real property data and Excel file The attribute information of storage carries out matching verification, is tested according to attribute of the check results to each interface, is if verification mismatches (for example, the business scenario of current automatization simulation is the scene of subscribing of A class client, that reads A class client subscribes field for verification failure The corresponding Excel file of scape, if current automatization simulation, which executes, is called test system to be measured (i.e. trust pin when this subscribes business scenario Sell support system) " lower list interface ", link odd numbers database, obtain test system to be measured (i.e. sales on consignment support system) and issue " odd numbers data ", meanwhile, from subscribe in the corresponding Excel file of scene obtain storage " odd numbers attribute information ", will call " the odd numbers attribute information " stored in " the odd numbers data " and Excel file issued when interface carries out matching verification, for example, " single The English addend words that number attribute information " is 8 verify matching i.e. school if the English addend word that verification " odd numbers data " is 8 Success is tested, if pure English or pure digi-tal of the verification " odd numbers data " for 8, verify the i.e. verification failure of mismatch, then terminate certainly Dynamicization simulation test), then terminate to test, and the test result of verification failure is fed back to pre-set terminal, the feedback Test result in may include verification failure information, verification failure business scenario information, verification failure associated interface, with The attribute information etc. stored in the relevant real property data of verification failure, Excel file relevant to verification failure.If verification Matching verifies successfully, then executes next attribute by the process of the business scenario.Wherein, after the completion of all business scenario tests, Test result feeds back to pre-set terminal, pre-set terminal can for dependence test personnel computer end or Mobile phone terminal, the mode of feedback can be mail, short message, wechat, qq message etc., and dependence test personnel only need according to e-mail alert In failure scene carry out further manual verification.
Further, business scenario to be tested is if desired increased newly, it is only necessary to will be each in the newly-increased business scenario Attribute information is converted to Excel data, and the Excel data are increased newly in generated Excel file, more just It is prompt.
The present embodiment is by storing the attribute information of associated interface data each in each business scenario to default Excel In file, when testing business scenario, associated interface associated with each attribute of the business scenario is called to obtain The corresponding verify data of each attribute that takes verify data corresponding with each attribute in presetting database, and will acquire with it is described Each attribute information of the business scenario carries out matching verification in default Excel file, according to matching check results to the business Scene is tested.Due to that the attribute information in all business scenarios to be tested can be stored in Excel in the form of data In file, it can will be stored in the corresponding verify data of each attribute of business scenario and Excel file by linked database Each attribute information of the business scenario carries out matching verification to carry out automatic test to business scenario, without manually A large amount of business scenario is tested in operation, improves the testing efficiency of business scenario.
Further, as follows for the testing process for subscribing business scenario in an optional embodiment:
Firstly, carrying out environmental preparation, reading the preparations such as data operation, i.e., in the form of data by business scenario to be tested It is stored in Excel file, each attribute information subscribed in business scenario is stored in the Excel file, such as order is compiled Number attribute information, amended record data attribute information, image data attribute information etc..
Then, associated interface associated with attribute each in Excel file in sales on consignment support system is called to come from Dynamicization simulation executes this and subscribes business scenario, and lower single interface, amended record interface, electronic signature interface, video is such as called to discern interface Deng, in the process of implementation, linked database, in the database comprising sales on consignment support system subscribe it is each in business scenario It is a that data are completed, i.e., support system subscribing truthful data caused by business scenario by sales on consignment.It is associated with calling When interface automated execution subscribes business scenario, obtained in current process in the database of link by the associated interface of calling Correspondence real property data, meanwhile, this for obtaining storage from the Excel file generated before subscribes the attribute of business scenario The attribute information stored in information, the real property data that will acquire and Excel file carries out matching verification, according to check results The attribute of each interface is tested, if verification mismatches i.e. verification failure, terminates automatic test, that is, terminates test case Example.For example, linking amended record data database after calling amended record interface, obtains sales on consignment and system is supported to subscribe industry in current " the amended record data " that business scene issues, meanwhile, from " the amended record data category for subscribing acquisition storage in the corresponding Excel file of scene Property information ", " the amended record data attribute information " stored in " the amended record data " that issue when by calling interface and Excel file carries out Matching verification, for example, the capacity that " amended record data attribute information " is amended record data is not more than 1M, if " the amended record number that verification issues According to " capacity be greater than 1M, then verify mismatch i.e. verification fail, then terminate automatic test.Otherwise, verification matching i.e. verification at Function then continues that next interface is called to execute the next process for subscribing business scenario.
In addition, the computer-readable recording medium storage has the present invention also provides a kind of computer readable storage medium The test macro of the test macro of business scenario, the business scenario can be executed by least one processor so that it is described at least One processor executes the step of test method such as the business scenario in above-described embodiment, the test method of the business scenario Step S10, the specific implementation process such as S20, S30 are as described above, and details are not described herein.
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, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device 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, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to be realized by hardware, but very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
Preferred embodiments of the present invention have been described above with reference to the accompanying drawings, not thereby limiting the scope of the invention.On It is for illustration only to state serial number of the embodiment of the present invention, does not represent the advantages or disadvantages of the embodiments.It is patrolled in addition, though showing in flow charts Sequence is collected, but in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein.
Without departing from the scope and spirit of the invention, there are many variations to implement the present invention by those skilled in the art, It can be used for another embodiment for example as the feature of one embodiment and obtain another embodiment.It is all to use technology of the invention Made any modifications, equivalent replacements, and improvements within design, should all be within interest field of the invention.

Claims (10)

1. a kind of electronic device, which is characterized in that the electronic device includes memory, processor, is stored on the memory There is the test macro for the business scenario that can be run on the processor, the test macro of the business scenario is by the processor Following steps are realized when execution:
The attribute information of business scenario each in business scenario to be tested is stored into default Excel file;The attribute letter Breath includes the attribute information of each associated interface data in each business scenario;
When testing business scenario, call associated interface associated with each attribute of the business scenario pre- to obtain If verify data corresponding with each attribute in database;The corresponding verify data of each attribute that will acquire is preset with described Each attribute information of the business scenario carries out matching verification in Excel file;
The business scenario is tested according to matching check results.
2. electronic device as described in claim 1, which is characterized in that the attribute information include data format attribute information, Size of data attribute information, calculating logic attribute information.
3. electronic device as described in claim 1, which is characterized in that the processor is also used to execute the business scenario Test macro, to perform the steps of
When needing to increase newly business scenario to be tested, by each category in newly-increased business scenario and the newly-increased business scenario Property information is stored into default Excel file.
4. electronic device as claimed in claim 1,2 or 3, which is characterized in that it is described according to matching check results to the business The step of scene is tested include:
Matching verification is carried out to each attribute of the business scenario according to the execution process of the business scenario, if the business obtained The corresponding verify data of the current attribute of scene is verified with the corresponding attribute information of the business scenario in the default Excel file It mismatches, then test terminates;
If the business scenario in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained Correspondence attribute information verify matching, then continue to carry out matching verification to next attribute of the business scenario.
5. a kind of test method of business scenario, which is characterized in that the test method of the business scenario includes:
The attribute information of business scenario each in business scenario to be tested is stored into default Excel file;The attribute letter Breath includes the attribute information of each associated interface data in each business scenario;
When testing business scenario, call associated interface associated with each attribute of the business scenario pre- to obtain If verify data corresponding with each attribute in database;The corresponding verify data of each attribute that will acquire is preset with described Each attribute information of the business scenario carries out matching verification in Excel file;
The business scenario is tested according to matching check results.
6. the test method of business scenario as claimed in claim 5, which is characterized in that the attribute information includes data format Attribute information, size of data attribute information, calculating logic attribute information.
7. the test method of business scenario as claimed in claim 5, which is characterized in that further include:
When needing to increase newly business scenario to be tested, by each category in newly-increased business scenario and the newly-increased business scenario Property information is stored into default Excel file.
8. the test method of the business scenario as described in claim 5,6 or 7, which is characterized in that described according to matching verification knot The step of fruit tests the business scenario include:
Matching verification is carried out to each attribute of the business scenario according to the execution process of the business scenario, if the business obtained The corresponding verify data of the current attribute of scene is verified with the corresponding attribute information of the business scenario in the default Excel file It mismatches, then test terminates;
If the business scenario in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained Correspondence attribute information verify matching, then continue to carry out matching verification to next attribute of the business scenario.
9. the test method of business scenario as claimed in claim 8, which is characterized in that further include:
If the business scenario in the corresponding verify data of current attribute and the default Excel file of the business scenario obtained Correspondence attribute information verify mismatch, then send test crash information to default terminal;The test crash information includes school It tests unmatched business scenario information, verify unmatched attribute and associated associated interface information.
10. a kind of computer readable storage medium, which is characterized in that be stored with business field on the computer readable storage medium It realizes when the test macro of the test macro of scape, the business scenario is executed by processor such as any one of claim 5 to 9 institute The step of test method for the business scenario stated.
CN201810876531.5A 2018-08-03 2018-08-03 Test method, electronic device and the readable storage medium storing program for executing of business scenario Pending CN109189669A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810876531.5A CN109189669A (en) 2018-08-03 2018-08-03 Test method, electronic device and the readable storage medium storing program for executing of business scenario
PCT/CN2018/108216 WO2020024419A1 (en) 2018-08-03 2018-09-28 Testing method for service scenario, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810876531.5A CN109189669A (en) 2018-08-03 2018-08-03 Test method, electronic device and the readable storage medium storing program for executing of business scenario

Publications (1)

Publication Number Publication Date
CN109189669A true CN109189669A (en) 2019-01-11

Family

ID=64920028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810876531.5A Pending CN109189669A (en) 2018-08-03 2018-08-03 Test method, electronic device and the readable storage medium storing program for executing of business scenario

Country Status (2)

Country Link
CN (1) CN109189669A (en)
WO (1) WO2020024419A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787893A (en) * 2019-03-01 2019-05-21 烽火通信科技股份有限公司 A kind of the business take-effective method and system of gateway device interface stack
CN109889325A (en) * 2019-01-21 2019-06-14 Oppo广东移动通信有限公司 Method of calibration, device, electronic equipment and medium
CN110096436A (en) * 2019-04-12 2019-08-06 深圳壹账通智能科技有限公司 Test method, device, medium and equipment based on data-pushing compensation function
CN110134587A (en) * 2019-04-12 2019-08-16 平安普惠企业管理有限公司 A kind of test method, test device and computer readable storage medium
CN110162458A (en) * 2019-04-15 2019-08-23 深圳壹账通智能科技有限公司 Test data building method, device and storage medium
CN110597728A (en) * 2019-09-20 2019-12-20 中国银行股份有限公司 Method, device and system for constructing test data
CN111026639A (en) * 2019-10-29 2020-04-17 口碑(上海)信息技术有限公司 Method and system for testing service quality of multi-service system
CN112463627A (en) * 2020-12-10 2021-03-09 北京明略软件系统有限公司 Testing method and system for enterprise WeChat, electronic equipment and storage medium
CN113191852A (en) * 2021-05-19 2021-07-30 拉扎斯网络科技(上海)有限公司 Data verification method and device, storage medium and computer equipment
CN113986943A (en) * 2021-12-28 2022-01-28 畅捷通信息技术股份有限公司 Data consistency verification method, device and medium based on scene data stamp

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155817A (en) * 2015-04-14 2016-11-23 腾讯科技(深圳)有限公司 Business information processing method, server and system
US20180024912A1 (en) * 2015-08-27 2018-01-25 Jpmorgan Chase Bank, N.A. Application Testing System and Method
CN107908553A (en) * 2017-11-02 2018-04-13 平安科技(深圳)有限公司 Correlation testing method, application server and computer-readable recording medium
CN107909340A (en) * 2017-11-08 2018-04-13 平安科技(深圳)有限公司 Resume selection method, electronic device and readable storage medium storing program for executing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970614B (en) * 2013-01-24 2018-07-06 腾讯科技(深圳)有限公司 A kind of service test method and device
CN105049280B (en) * 2015-06-24 2019-07-19 上海斐讯数据通信技术有限公司 The interface Behavior modeling test macro and method of Business Management Platform
CN106528393A (en) * 2015-09-09 2017-03-22 北京京东尚科信息技术有限公司 Method and device for Mock testing of WebService
CN107741903A (en) * 2017-09-11 2018-02-27 平安科技(深圳)有限公司 Application compatibility method of testing, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155817A (en) * 2015-04-14 2016-11-23 腾讯科技(深圳)有限公司 Business information processing method, server and system
US20180024912A1 (en) * 2015-08-27 2018-01-25 Jpmorgan Chase Bank, N.A. Application Testing System and Method
CN107908553A (en) * 2017-11-02 2018-04-13 平安科技(深圳)有限公司 Correlation testing method, application server and computer-readable recording medium
CN107909340A (en) * 2017-11-08 2018-04-13 平安科技(深圳)有限公司 Resume selection method, electronic device and readable storage medium storing program for executing

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889325A (en) * 2019-01-21 2019-06-14 Oppo广东移动通信有限公司 Method of calibration, device, electronic equipment and medium
CN109787893A (en) * 2019-03-01 2019-05-21 烽火通信科技股份有限公司 A kind of the business take-effective method and system of gateway device interface stack
CN110096436A (en) * 2019-04-12 2019-08-06 深圳壹账通智能科技有限公司 Test method, device, medium and equipment based on data-pushing compensation function
CN110134587A (en) * 2019-04-12 2019-08-16 平安普惠企业管理有限公司 A kind of test method, test device and computer readable storage medium
CN110162458A (en) * 2019-04-15 2019-08-23 深圳壹账通智能科技有限公司 Test data building method, device and storage medium
CN110597728A (en) * 2019-09-20 2019-12-20 中国银行股份有限公司 Method, device and system for constructing test data
CN111026639A (en) * 2019-10-29 2020-04-17 口碑(上海)信息技术有限公司 Method and system for testing service quality of multi-service system
CN112463627A (en) * 2020-12-10 2021-03-09 北京明略软件系统有限公司 Testing method and system for enterprise WeChat, electronic equipment and storage medium
CN113191852A (en) * 2021-05-19 2021-07-30 拉扎斯网络科技(上海)有限公司 Data verification method and device, storage medium and computer equipment
CN113986943A (en) * 2021-12-28 2022-01-28 畅捷通信息技术股份有限公司 Data consistency verification method, device and medium based on scene data stamp

Also Published As

Publication number Publication date
WO2020024419A1 (en) 2020-02-06

Similar Documents

Publication Publication Date Title
CN109189669A (en) Test method, electronic device and the readable storage medium storing program for executing of business scenario
CN108614770B (en) Automatic test assertion method, device, storage medium and equipment
US20160078113A1 (en) Validating code of an extract, transform and load (etl) tool
CN111562965B (en) Page data verification method and device based on decision tree
US8661414B2 (en) Method and system for testing an order management system
CN114116496A (en) Automatic testing method, device, equipment and medium
CN107357721B (en) Method and device for testing system
CN107133233B (en) Processing method and device for configuration data query
CN114238295A (en) Data sorting method and device based on grouping
CN114116801A (en) Data list checking method and device
CN112541688B (en) Service data verification method and device, electronic equipment and computer storage medium
EP3651106A1 (en) Systems and methods for generating a digital identity of equipment on an equipment online marketplace platform
CN110032513B (en) Data verification method and device and electronic equipment
CN111221727A (en) Test method, test device, electronic equipment and computer readable medium
CN113419964B (en) Test case generation method and device, computer equipment and storage medium
US20090077537A1 (en) method of automatically generating test cases to test command line interfaces
CN115643172A (en) Abnormity detection method, abnormity detection device, terminal equipment and storage medium
CN113051171B (en) Interface testing method, device, equipment and storage medium
CN103761247B (en) A kind of processing method and processing device of error file
CN114721943A (en) Method and device for determining test range
CN111625455A (en) Program testing method, device, equipment and medium
EP3651107A1 (en) Systems and methods for securely creating a listing of equipment on an equipment online marketplace platform
US20080005159A1 (en) Method and computer program product for collection-based iterative refinement of semantic associations according to granularity
CN108235324B (en) Short message template testing method and server
CN112347095B (en) Data table processing method, device and server

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