CN108763076A - A kind of Software Automatic Testing Method, device, equipment and medium - Google Patents

A kind of Software Automatic Testing Method, device, equipment and medium Download PDF

Info

Publication number
CN108763076A
CN108763076A CN201810494790.1A CN201810494790A CN108763076A CN 108763076 A CN108763076 A CN 108763076A CN 201810494790 A CN201810494790 A CN 201810494790A CN 108763076 A CN108763076 A CN 108763076A
Authority
CN
China
Prior art keywords
test
data
scene
testing process
testing
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
CN201810494790.1A
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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN201810494790.1A priority Critical patent/CN108763076A/en
Publication of CN108763076A publication Critical patent/CN108763076A/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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of Software Automatic Testing Method, device, equipment and medium, the method includes:Test scene is determined according to the test instruction obtained, and obtains testing process corresponding with the test scene;The testing process is executed, the test parameter corresponding to the testing process is chosen according to the testing process, the test scene is tested, and generate test result report;Judge whether the data in the database corresponding with the data of each data in the test result report match, and the judging result of each data is summarized to the test result for generating the test instruction.Method provided in an embodiment of the present invention realizes the functional test to software by specific test scene, the automatic acquisition of test parameter is realized according to testing process, the automatic test to software is realized, the efficiency of software test is improved, software systems is made more to stablize.

Description

A kind of Software Automatic Testing Method, device, equipment and medium
Technical field
The present embodiments relate to computer software technical field more particularly to a kind of Software Automatic Testing Method, device, Equipment and medium.
Background technology
With the rapid development of internet finance, in order to meet the needs of different user, the needs in market are strained, for not Movable function exploitation with internet financial business is more and more frequent, the software upgrading of corresponding carrying internet financial business More and more frequently.It is unstable that the iteratively faster of software version frequently can lead to system, while capable of quickly developing and can guarantee and is The stabilization of system is a urgent problem to be solved.Occur clicking some work(after software development, when user uses It can cannot respond to, the problems such as user interface redirects failure or logic error, need to test the software developed.
Currently, carrying out test to software is mainly based upon traditional manual test method, such as needed during test Want tester's input test parameter.It can be seen that existing test method for testing on a large scale, multiple system returns When test or the fast frequent test of renewal speed, there is a problem of that the testing time is long, efficiency is low, and manual operation is not easy The quality for ensureing test, influences the stability of software systems.
Invention content
An embodiment of the present invention provides a kind of Software Automatic Testing Method, device, equipment and media, to realize to software Automatic test improves the efficiency of software test, and software systems is made more to stablize.
In a first aspect, an embodiment of the present invention provides a kind of Software Automatic Testing Methods, including:
Test scene is determined according to the test instruction obtained, and obtains testing process corresponding with the test scene;
The testing process is executed, the test parameter corresponding to the testing process is chosen according to the testing process, it is right The test scene is tested, and generates test result report;
Judge whether the data in the database corresponding with the data of each data in the test result report match, and The judging result of each data is summarized to the test result for generating the test instruction.
Second aspect, the embodiment of the present invention additionally provide a kind of software automatic detection device, including:
Flow determining module for determining test scene according to the test instruction obtained, and obtains and the test scene Corresponding testing process;
Report generation module is chosen according to the testing process for executing the testing process and corresponds to the test The test parameter of flow tests the test scene, and generates test result report;
As a result summarizing module, for judging in each data database corresponding with the data in the test result report Data whether match, and by the judging result of each data summarize generate it is described test instruction test result.
The third aspect, the embodiment of the present invention additionally provide a kind of computer equipment, and the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the Software Automatic Testing Method provided such as any embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the Software Automatic Testing Method provided such as any embodiment of the present invention when the program is executed by processor.
The embodiment of the present invention is obtained and the test scene pair by determining test scene according to the test instruction obtained The testing process answered realizes the test to software by specific test scene;The testing process is executed, according to the test Flow chooses the test parameter corresponding to the testing process, tests the test scene, and generate test result report Table realizes the automatic acquisition of test parameter according to testing process;Judge each data in the test result report and the number Whether matched according to the data in corresponding database, and the judging result of each data is summarized and generates the test instruction Test result realizes the automatic test to software, improves the efficiency of software test, and software systems is made more to stablize.
Description of the drawings
Fig. 1 a are the flow charts for the Software Automatic Testing Method that the embodiment of the present invention one is provided;
Fig. 1 b are the login scenes function test schematic diagrams for the Software Automatic Testing Method that the embodiment of the present invention one is provided;
Fig. 1 c are the performance test schematic diagrames for the Software Automatic Testing Method that the embodiment of the present invention one is provided;
Fig. 1 d are the tolerating measure signals of the login scene for the Software Automatic Testing Method that the embodiment of the present invention one is provided Figure;
Fig. 2 is the flow chart for the Software Automatic Testing Method that the embodiment of the present invention two is provided;
Fig. 3 is the flow chart for the Software Automatic Testing Method that the embodiment of the present invention three is provided;
Fig. 4 is the structural schematic diagram for the automatic testing arrangement for softwares that the embodiment of the present invention four is provided;
Fig. 5 is the structural schematic diagram for the computer equipment that the embodiment of the present invention five is provided.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart for the Software Automatic Testing Method that the embodiment of the present invention one is provided, and the present embodiment is applicable to To the situation that software is tested automatically, it is applied especially to the situation to software automatic test of managing money matters.This method can be by software Automatic testing equipment executes, which may be used software and/or the mode of hardware is realized, for example, this is soft Part automatic testing equipment is configured in computer equipment.As shown in Figure 1, this method specifically includes:
S110, it determines test scene according to the test instruction obtained, and obtains test stream corresponding with the test scene Journey.
In the present embodiment, all operations of software are divided according to the application scenarios of software function, with by right The automatic test that software respectively operates is completed in the test of software test scene.By taking software of managing money matters as an example, general financing software root Can be divided into login scene, purchase scene, activity scene according to user demand can also change when software version update including version For scene.
Optionally, the test scene includes logging in scene, purchase scene, activity scene, version iteration scene extremely It is one few.Wherein, each test scene is further divided into different test modes.Optionally, it may be implemented to test scene Functional test, performance test and/or tolerating measure.The functional test of test scene refer to test the test scene function whether It being capable of normal operation;The performance test of test scene refers to when multiple user is performed simultaneously or this is performed a plurality of times in the same user When operation in test scene, whether the function of testing the test scene being capable of normal operation;The tolerating measure of test scene is Refer to when there is the operation of mistake, whether the function of testing the test scene being capable of normal operation.When user need to software into When row test, can the different test instruction of simultaneous selection, complete test to different test scenes.
Optionally, test instruction can show that user passes through under by way of drop-down menu in the software test page It draws selection in menu to need the test executed instruction, clicks the functional test that " functional test " button carries out software.It obtains at this time The test instruction of user's selection determines test scene according to the test instruction of user's selection, and obtains corresponding with the test scene Testing process.
For example, when user needs to carry out functional test to purchase scene, selected by drop-down menu in the software test page " purchase test " is selected, the functional test that " functional test " button carries out software is clicked, obtains the test instruction of user's selection, root Corresponding purchase test is determined according to test instruction, and determines the functional test that corresponding purchase test is tested with the purchase Flow.
Optionally, test instruction all arrangement displays, user also in the software test page passes through the hook to test instruction Choosing selection needs the test executed instruction, clicks the functional test that " functional test " button carries out software.User is obtained at this time to hook The test of choosing instructs, and the test instruction chosen according to user determines test scene, and obtains corresponding with the test scene determined Functional test flow.
For example, when user needs to test purchase scene and activity scene, " purchase is chosen in the software test page Buy test " and " activity test ", the functional test that " functional test " button carries out software is clicked, the test for obtaining user's selection refers to Enable, corresponding purchase scene and activity scene determined according to test instruction, and determine respectively with buy scene and playground The corresponding functional test flow of scape.
In the present embodiment, different test scenes and different test modes correspond to different testing process.Optionally, The incidence relation for pre-setting test scene, test mode and testing process, after determining test scene and test mode, foundation The incidence relation of test scene, test mode and testing process obtains corresponding testing process.
S120, the testing process is executed, the test ginseng corresponding to the testing process is chosen according to the testing process Number, tests the test scene, and generate test result report.
In the present embodiment, after obtaining testing process, the testing process is executed, you can complete corresponding to the testing process The automatic test of test scene.When can be to avoid manual testing by default fixed testing process, caused by artificial origin Test omit problem, additionally it is possible to solve some artificial tests less than blind spot, such as quick point is repeated several times in a short time The a certain coordinate points in interface or multiple coordinate points are hit, the fault-tolerance of software when test clicks abnormal.
Optionally, described to execute the testing process, it is chosen corresponding to the testing process according to the testing process Test parameter, including:
The testing process is executed, according to the store path for each test parameter for including in the testing process, obtains institute State each test parameter needed for test scene.
Optionally, the execution of at least one operational order and each operational order needed for scrnario testing is included in testing process Sequentially, by sequentially executing each operational order, testing process is completed.Optionally, when operational order is click commands, operation Clicking operation comprising execution in need and target location in instruction.Wherein, clicking operation can be the operations such as to click or double-click. When operational order is input instruction, includes test parameter acquisition instruction and target input position in operational order, pass through visit Ask that the store path of test parameter in the database in test parameter acquisition instruction obtains test parameter, and the survey that will be got Examination parameter is input to target input position.Include target interface address in operational order when operational order is jump instruction, Target interface can be jumped to by target interface address.
In the present embodiment, when executing testing process, test interface and test operation can be presented on test page, with Whether just tester can observe the operational process entirely tested, judge the operational process with preset test cases or product Flow is identical.
In the present embodiment, after the testing process for having executed a test scene, the test knot of the test scene is generated Fruit report.Optionally, test result report can embody the test result of testing process.For example, when test scene is to log in When scene, in functional test results report can include login user information and login result, wherein login result be log at Work(, login failure or Network Abnormal etc..Can include user in functional test results report when test scene is purchase scene Information, merchandise news and purchase result.Can include that user believes when test scene is activity scene, in test result report Breath, action message and activity participate in result etc..
Fig. 1 b are the login scenes function test schematic diagrams for the Software Automatic Testing Method that the embodiment of the present invention one is provided. Schematically illustrated in Fig. 1 b automatic test login function whether abnormal testing process.As shown in Figure 1 b, it beats automatically first Login interface is opened, then obtains and input user account and password automatically according to operational order, login button is clicked, judges whether It logins successfully.If logining successfully, jump to and login successfully the page, if login failure, jumps to the login failure page.It is optional , the reason of the login failure page can show login failure, such as user account password mismatch or network connection failure Deng.
Fig. 1 c are the performance test schematic diagrames for the Software Automatic Testing Method that the embodiment of the present invention one is provided.Such as Fig. 1 c institutes Show, be set for the test scene of performance test first, and set testing time, corresponding test is generated after executing testing process Result form, and compared with expected requirement.In the present embodiment, it can complete to survey performance by selecting test scene The test scene of examination is arranged, and during executing the performance test to the test scene of selection, performance survey is transferred by repeating The part operation of the functional test of examination instructs, and completes the performance test to test scene.
For example, when needing to be tested for the property activity scene, " the activity scene " selected by user, and click " performance test " determines that the test scene that user needs is " activity scene ", and obtains pre-set automatic testing time 10 Ten thousand times.If the corresponding activity of activity scene is sweepstake, 100,000 prize drawing behaviour of execution can be recycled on same browser Make, the browser of predetermined number (such as 2000) can also be opened simultaneously, concurrently cycle executes 100,000 on 2000 browsers Secondary lottery operation ultimately produces the test result of 100,000 lottery operations, and is shown to tester.Optionally, single is taken out Encouraging the testing process of operation can be:Open software home page, it is automatic obtain user information and be input to login interface logged in, The sweepstake page is jumped to after logining successfully, and is drawn a lottery, and generate corresponding test result report.
Fig. 1 d are the login scene tolerating measure schematic diagrames for the Software Automatic Testing Method that the embodiment of the present invention one is provided. As shown in Figure 1 d, login interface is automatically opened first, the account or password of user is not inputted by correct mode, if do not inputted use Family account only inputs password or account number cipher and does not input, or only input user account does not input password, clicks raw after logging in At the report of mistake, and judge whether generated error report meets the fault tolerant mechanism of preset abnormal conditions.
S130, judge data in each data database corresponding with the data in the test result report whether Match, and the judging result of each data is summarized to the test result for generating the test instruction.
In the present embodiment, it after having executed testing process, should be updated the data from the background according to the operation of execution corresponding in library Data.Such as, it tests after logging in scene, updates the data the user stored in library according to the login result of user from the background and log in letter Breath.Such as corresponding to the user that User ID is A 18 days 09 May in 2018:34 login successfully, or corresponding to the use that User ID is B Family was 18 days 09 May in 2018:34 login failures.Therefore, after the completion of testing process executes, by test result data and data Comparing in library judges whether corresponding data are consistent, if corresponding data are inconsistent, illustrates that the testing process is corresponding Function occurs abnormal.For logging in scene, if backstage updates the data the user stored in library not according to the login result of user It is abnormal then to illustrate that login function occurs for log-on message.
Optionally, each data in test result report are matched with the corresponding data in database, by of each data Summarize with result, generate the corresponding test result of the test scene, is referred to for tester.
The method for testing software that the embodiment of the present invention is provided can pass through the robotic system administration of automatization simulation scene Backstage configure and needs business scenario to be tested, does not need tester's click front-end interface, and robotic system can be according to setting Fixed parameter, simulation manual operation go to click interface, and sequence executes the test of business scenario, and tester can observe entirely mistake Whether journey is identical with test cases or goods batch, and the report data and database for executing and completing are watched finally by test result Data comparison.The test of new function and old function is improved with this.
The embodiment of the present invention is obtained corresponding with test scene by determining test scene according to the test instruction obtained Testing process realizes the functional test to software by specific test scene;Testing process is executed, is chosen according to testing process Corresponding to the test parameter of testing process, test scene is tested, and generates test result report, according to testing process reality The automatic acquisition of test parameter is showed;Judge the data in each data database corresponding with the data in test result report Whether match, and the judging result of each data is summarized to the test result for generating test instruction, is flowed by pre-set test Journey is completed, to the automatic test of software function newly developed or the automatic test of the previous function of software, to greatly reduce tester The repeated work of member, and solve some artificial tests less than blind spot, improve the efficiency of software test so that software systems It can ensure the stability of system while quick exploitation.
It is described to determine test scene according to the test obtained instruction on the basis of said program, including:
According to the scene identity for including in the test instruction, test scene corresponding with the scene identity is determined.
Optionally, can be that unique scene identity is arranged in each test scene, and scene identity is added to test and is referred to In order so that test instruction specifies unique test scene by scene identity.For example, the scene identity for logging in scene is determined For " 1 ", which is added in login test instruction, when user selects to log in test instruction, includes according in the instruction Scene identity " 1 ", it is to log in scene to determine that user needs scene to be tested.
In another embodiment of the invention, directly test instruction can also be associated with testing process, it will Test instruction is pointing directly at fixed testing process.For example, when user selects a certain test instruction, directly instructed according to test With the incidence relation of testing process, the corresponding testing process of the test instruction of user's selection is determined.
Embodiment two
Fig. 2 is the flow chart for the Software Automatic Testing Method that the embodiment of the present invention two is provided, and the present embodiment is in above-mentioned reality It applies and is further optimized on the basis of example.As shown in Fig. 2, the method includes:
S210, it determines test scene according to the test instruction obtained, and obtains test stream corresponding with the test scene Journey.
S220, the testing process is executed, the test ginseng corresponding to the testing process is chosen according to the testing process Number, tests the test scene, and generate test result report.
S230, the corresponding database storing location of each data is determined according to each Data Identification in the data sheet.
In the present embodiment, include the mark of each data, root in the test result report generated after testing process The corresponding database storing location of the data is determined according to each Data Identification.
In general, scrnario testing is required to carry out the test of function after user logs in.Such as buying scene needs user to log in Afterwards, the purchase test of commodity is executed;After activity scene needs user to log in, movable participation test is executed.It therefore, can be in determination After the mark for including in test result report determines that the data correspond to field in the database, first by User ID and database Data in middle id fields are matched, and determine the correspondence line number of the user in the database, further according to determining line number and its The corresponding Database field of his each data, determines the storage location of each data in the database.
Optionally, it includes User ID, login time and login status to log in testing journal sheet, determines User ID, logs in The Database field of time and login status respectively in the database is logged in if User ID corresponds to the id fields into database Time corresponds to the time fields into database, and login status corresponds to the state fields into database.Respectively by User ID with The data that id fields are stored in database are matched, line number where determining active user in the database, according to line number and Time fields determine the login time of the user recorded in database, determine in database and remember according to line number and state fields The login status of the user of record.
S240, the data in each data database storing location corresponding with the data are matched.
It, will be in test result report after obtaining the storage location in test result report in the corresponding database of each data Data are matched with the data of corresponding database storing location.If successful match, judge that the data are corresponding with the data Database in Data Matching;Alternatively, if it fails to match, the data in data database corresponding with the data are judged It mismatches.
S250, the judging result of each data is summarized to the test result for generating the test instruction.
The technical solution of the embodiment of the present invention, embody on the basis of the above embodiments judge it is each in data sheet The whether matched operation of data in data database corresponding with the data, by according to each Data Identification in data sheet Determine the corresponding database storing location of each data;By the data in each data database storing location corresponding with the data into Row matching so that the corresponding data of each data in the database is more accurate in acquisition test result report, so that foundation The test result that matching result generates is more accurate, improves the efficiency of software test.
Embodiment three
Fig. 3 is the flow chart for the Software Automatic Testing Method that the embodiment of the present invention three is provided, and the present embodiment is to buy field For scape, software automatic test process is illustrated.As shown in figure 3, the method includes:
S310, it determines test scene according to the test instruction obtained, obtains testing process corresponding with the test scene, The test scene is purchase scene.
In the present embodiment, it is tested and is instructed according to purchase input by user, determine the test scene that user selects for purchase Scene, and obtain functional test flow corresponding with purchase scene.
S320, login interface is opened, obtains user information according to the user information path in the testing process, and by institute It states user information and is added to logging zone corresponding with the user information, execute register.
Optionally, login button is clicked according to the log-in instruction for including in preset testing process, opens and logs in boundary Then face accesses the storage location of user account and password in the database according to user information acquisition instruction, obtains user's account Number and password and be added separately to corresponding position with user account and password, then click login button, execute and log in behaviour Make.
For example, after opening login interface, user account and close is accessed according to the address for including in user information acquisition instruction The storage location of code in the database, and the data of corresponding position are obtained, such as acquisition user account " ch ", password " 123456 ", User account " ch " is added in the corresponding text box of account again, password " 123456 " is added to the corresponding text box of password It is interior, login button is clicked, register is executed.
If S330, logining successfully, purchase interface is jumped to, is obtained according to the merchandise news path in the testing process Merchandise news to be purchased, and corresponding commodity are selected according to the merchandise news, execute purchase operation.
Optionally, if user logins successfully, product purchase interface is jumped to, and access according to merchandise news acquisition instruction The storage location of merchandise news in the database accesses the position acquisition merchandise news, and selects corresponding commodity, clicks purchase It buys, executes purchase operation.
For example, if user logins successfully, purchase interface is jumped to, according to the address for including in merchandise news acquisition instruction The storage location of merchandise news to be purchased in the database is accessed, commodity letter to be purchased is obtained by accessing the storage location Breath, for example, the merchandise news to be purchased of address acquisition is " love is deposited surely ", investment amount is " 20000 ", product by accessing When time limit is " 3 months ", corresponding commodity are selected by the above-mentioned merchandise news of acquisition, click purchase, execute purchase operation.
S340, the result generation purchase testing journal sheet according to purchase operation, the purchase testing journal sheet includes user's mark Knowledge, merchandise news and purchase state.
Optionally, after the completion of purchase operation executes, purchase testing journal sheet is generated according to purchase state.Include in testing journal sheet User identifier, merchandise news and purchase state.For example, user's A purchase love deposits 20000 yuan surely, regular 3 months, buy work(is merged When.It shows that user's A purchase love deposits 20000 yuan surely in purchase testing journal sheet, buys successfully within regular 3 months.Optionally, purchase test Can also be added in report time buying of user, purchasing channel, the bought commodity of user type etc..
S350, the judging result of each data is summarized to the test result for generating the test instruction.
By taking software of managing money matters as an example, the testing process for buying scene is:It is opened according to the operational order in purchase testing process Software home page, automatically clicking log in, and automatically enter account number cipher, automatically clicking login button jumps to finance product interface, obtains It takes preset merchandise news and selects corresponding commodity, click purchase, obtain the preset purchase amount of money and input, after buying successfully It returns the result, generates corresponding testing journal sheet's data, by the Data Matching corresponding with database of each data in testing journal sheet, root Final test result is generated according to matching result.
The technical solution of the embodiment of the present invention is illustrated software automatic test process for buying scene, leads to It crosses and automatically opens login interface, obtain user information according to the user information path in testing process, and user information is added To logging zone corresponding with user information, register is executed;If logining successfully, purchase interface is jumped to, according to test Merchandise news path in flow obtains merchandise news to be purchased, and selects corresponding commodity according to merchandise news, executes purchase Buy operation;Result according to purchase operation generates purchase testing journal sheet, realizes parameter in purchase scrnario testing and automatically enters, The automatic test to software is realized, the efficiency of software test is improved.
Example IV
Fig. 4 is the structural schematic diagram for the automatic testing arrangement for softwares that the embodiment of the present invention four is provided.The software is surveyed automatically Trial assembly, which is set, may be used the mode of software and/or hardware and realizes, such as the automatic testing arrangement for softwares can be configured at computer In equipment, as shown in figure 4, described device includes:
Flow determining module 410 for determining test scene according to the test instruction obtained, and obtains and the checkout area The corresponding testing process of scape;
Report generation module 420 is chosen according to the testing process for executing the testing process and corresponds to the survey The test parameter for trying flow, tests the test scene, and generate test result report;
As a result summarizing module 430, for judging each data data corresponding with the data in the test result report Whether the data in library match, and the judging result of each data is summarized to the test result for generating the test instruction.
On the basis of said program, the flow determining module 410 is specifically used for:
According to the scene identity for including in the test instruction, test scene corresponding with the scene identity is determined.
On the basis of said program, the report generation module 420 is specifically used for:
According to the scene identity for including in the test instruction, test scene corresponding with the scene identity is determined.
On the basis of said program, the result summarizing module 430 includes:
Field determination unit, for determining the corresponding database of each data according to each Data Identification in the data sheet Storage location;
Data matching unit, for carrying out the data in each data database storing location corresponding with the data Matching, if successful match, judges the Data Matching in data database corresponding with the data;Alternatively,
If it fails to match, judge that the data in data database corresponding with the data mismatch.
On the basis of said program, the flow determining module 410 is specifically used for:
Test scene is determined according to the test instruction obtained, and obtains testing process corresponding with the test scene, institute It includes logging at least one of scene, purchase scene, activity scene, version iteration scene to state test scene.
On the basis of said program, if test scene be purchase scene, the test parameter include user information and Merchandise news, the report generation module 420 include:
User logs in unit, is used to open login interface, obtains and uses according to the user information path in the testing process Family information, and the user information is added to logging zone corresponding with the user information, execute register;
Operating unit is bought, if for logining successfully, purchase interface is jumped to, according to the commodity in the testing process Information path obtains merchandise news to be purchased, and selects corresponding commodity according to the merchandise news, executes purchase operation;
Report generation unit, for generating purchase testing journal sheet, the purchase testing journal sheet according to the result of purchase operation Include user identifier, merchandise news and purchase state.
The executable any embodiment of the present invention of automatic testing arrangement for softwares that the embodiment of the present invention is provided is provided soft Part automatic test approach has and executes the corresponding function module of Software Automatic Testing Method and advantageous effect.
Embodiment five
Fig. 5 is the structural schematic diagram of the computer equipment in the embodiment of the present invention five.Fig. 5 is shown suitable for being used for realizing this The block diagram of the exemplary computer device 512 of invention embodiment.The computer equipment 512 that Fig. 5 is shown is only an example, Any restrictions should not be brought to the function and use scope of the embodiment of the present invention.
As shown in figure 5, computer equipment 512 is showed in the form of universal computing device.The component of computer equipment 512 can To include but not limited to:One or more processor 516, system storage 528, connection different system component (including system Memory 528 and processor 516) bus 518.
Bus 518 indicates one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor 516 or total using the local of the arbitrary bus structures in a variety of bus structures Line.For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) are total Line.
Computer equipment 512 typically comprises a variety of computer system readable media.These media can be it is any can The usable medium accessed by computer equipment 512, including volatile and non-volatile media, moveable and immovable Jie Matter.
System storage 528 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 530 and/or cache memory 532.Computer equipment 512 may further include it is other it is removable/ Immovable, volatile/non-volatile computer system storage medium.Only as an example, storage device 534 can be used for reading Write immovable, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 5, It can provide for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-easy The CD drive that the property lost CD (such as CD-ROM, DVD-ROM or other optical mediums) is read and write.In these cases, each Driver can be connected by one or more data media interfaces with bus 518.Memory 528 may include at least one There is one group of (for example, at least one) program module, these program modules to be configured to perform this for program product, the program product Invent the function of each embodiment.
Program/utility 540 with one group of (at least one) program module 542, can be stored in such as memory In 528, such program module 542 includes but not limited to operating system, one or more application program, other program modules And program data, the realization of network environment may be included in each or certain combination in these examples.Program module 542 Usually execute the function and/or method in embodiment described in the invention.
Computer equipment 512 can also be with one or more external equipments 514 (such as keyboard, sensing equipment, display 524 etc.) it communicates, the equipment interacted with the computer equipment 512 communication can be also enabled a user to one or more, and/or (such as network interface card is adjusted with any equipment that the computer equipment 512 communicated with one or more of the other computing device is enable Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 522.Also, computer equipment 512 can also by network adapter 520 and one or more network (such as LAN (LAN), wide area network (WAN) and/or Public network, such as internet) communication.As shown, network adapter 520 passes through its of bus 518 and computer equipment 512 Its module communicates.It should be understood that although not shown in the drawings, other hardware and/or software can be used in conjunction with computer equipment 512 Module, including but not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic Tape drive and data backup storage system etc..
Processor 516 is stored in program in system storage 528 by operation, to perform various functions application and Data processing, such as realize the software automatic testing method that the embodiment of the present invention is provided, this method includes:
Test scene is determined according to the test instruction obtained, and obtains testing process corresponding with the test scene;
The testing process is executed, the test parameter corresponding to the testing process is chosen according to the testing process, it is right The test scene is tested, and generates test result report;
Judge whether the data in the database corresponding with the data of each data in the test result report match, and The judging result of each data is summarized to the test result for generating the test instruction.
Certainly, it will be understood by those skilled in the art that processor can also realize what any embodiment of the present invention was provided The technical solution of software automatic testing method.
Embodiment six
The embodiment of the present invention six additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should Realize that the software automatic testing method provided such as the embodiment of the present invention, this method include when program is executed by processor:
Test scene is determined according to the test instruction obtained, and obtains testing process corresponding with the test scene;
The testing process is executed, the test parameter corresponding to the testing process is chosen according to the testing process, it is right The test scene is tested, and generates test result report;
Judge whether the data in the database corresponding with the data of each data in the test result report match, and The judging result of each data is summarized to the test result for generating the test instruction.
Certainly, a kind of computer readable storage medium that the embodiment of the present invention is provided, the computer program stored thereon The method operation being not limited to the described above, can also be performed in the software automatic testing method that any embodiment of the present invention is provided Relevant operation.
The arbitrary of one or more computer-readable media may be used in the computer storage media of the embodiment of the present invention Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or the arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool There are one or the electrical connection of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium, which can be any, includes or the tangible medium of storage program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service It is connected by internet for quotient).
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of Software Automatic Testing Method, which is characterized in that including:
Test scene is determined according to the test instruction obtained, and obtains testing process corresponding with the test scene;
The testing process is executed, the test parameter corresponding to the testing process is chosen according to the testing process, to described Test scene is tested, and generates test result report;
Judge whether the data in the database corresponding with the data of each data in the test result report match, and by institute The judging result for stating each data summarizes the test result for generating the test instruction.
2. according to the method described in claim 1, it is characterized in that, it is described according to obtain test instruction determine test scene, Including:
According to the scene identity for including in the test instruction, test scene corresponding with the scene identity is determined.
3. according to the method described in claim 1, it is characterized in that, described execute the testing process, according to test stream Journey chooses the test parameter corresponding to the testing process, including:
The testing process is executed, according to the store path for each test parameter for including in the testing process, obtains the survey Each test parameter needed for the scape of examination hall.
4. according to the method described in claim 1, it is characterized in that, each data judged in the data sheet and the number Whether matched according to the data in corresponding database, including:
The corresponding database storing location of each data is determined according to each Data Identification in the data sheet;
Data in each data database storing location corresponding with the data are matched, if successful match, are sentenced Data Matching in fixed data database corresponding with the data;Alternatively,
If it fails to match, judge that the data in data database corresponding with the data mismatch.
5. according to the method described in claim 1, it is characterized in that, the test scene includes logging in scene, purchase scene, work At least one of dynamic scene, version iteration scene.
6. if according to the method described in claim 5, it is characterized in that, the test scene is to buy scene, the test Parameter includes user information and merchandise news, and the execution testing process is chosen according to the testing process and corresponds to institute The test parameter for stating testing process tests the test scene, and generates test result report, including:
Login interface is opened, obtains user information according to the user information path in the testing process, and the user is believed Breath is added to logging zone corresponding with the user information, executes register;
If logining successfully, purchase interface is jumped to, is obtained according to the merchandise news path in the testing process to be purchased Merchandise news, and corresponding commodity are selected according to the merchandise news, execute purchase operation;
Result according to purchase operation generates purchase testing journal sheet, and the purchase testing journal sheet includes user identifier, commodity letter Breath and purchase state.
7. a kind of software automatic detection device, which is characterized in that including:
Flow determining module for determining test scene according to the test instruction obtained, and obtains corresponding with the test scene Testing process;
Report generation module is chosen according to the testing process for executing the testing process and corresponds to the testing process Test parameter, the test scene is tested, and generate test result report;
As a result summarizing module, for judging the number in each data database corresponding with the data in the test result report According to whether matching, and the judging result of each data is summarized to the test result for generating the test instruction.
8. device according to claim 7, which is characterized in that the report generation module is specifically used for:
The testing process is executed, according to the store path for each test parameter for including in the testing process, obtains the survey Each test parameter needed for the scape of examination hall.
9. a kind of computer equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now Software Automatic Testing Method as described in any in claim 1-6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The Software Automatic Testing Method as described in any in claim 1-6 is realized when execution.
CN201810494790.1A 2018-05-22 2018-05-22 A kind of Software Automatic Testing Method, device, equipment and medium Pending CN108763076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810494790.1A CN108763076A (en) 2018-05-22 2018-05-22 A kind of Software Automatic Testing Method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810494790.1A CN108763076A (en) 2018-05-22 2018-05-22 A kind of Software Automatic Testing Method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN108763076A true CN108763076A (en) 2018-11-06

Family

ID=64007815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810494790.1A Pending CN108763076A (en) 2018-05-22 2018-05-22 A kind of Software Automatic Testing Method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN108763076A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739771A (en) * 2019-01-04 2019-05-10 北京空间技术研制试验中心 A kind of test method for spacecraft-testing
CN110334023A (en) * 2019-06-28 2019-10-15 京东数字科技控股有限公司 A kind of testing process applied to website determines method and apparatus
CN110351161A (en) * 2019-05-22 2019-10-18 口碑(上海)信息技术有限公司 Business end-to-end test method, apparatus, storage medium and computer equipment
CN110502425A (en) * 2019-06-28 2019-11-26 平安银行股份有限公司 Test data generating method, device, electronic equipment and storage medium
CN110532170A (en) * 2019-07-18 2019-12-03 北京文渊佳科技有限公司 Build method, apparatus, electronic equipment and the medium of test environment
CN110659202A (en) * 2019-08-12 2020-01-07 网宿科技股份有限公司 Client automatic testing method and device
CN110806981A (en) * 2019-11-05 2020-02-18 北京博睿宏远数据科技股份有限公司 Application program testing method, device, equipment and storage medium
CN111258882A (en) * 2020-01-03 2020-06-09 恩亿科(北京)数据科技有限公司 Test data acquisition method and device based on digital media system
CN111314160A (en) * 2018-12-12 2020-06-19 北京奇虎科技有限公司 Testing method and device for application duration statistical function
CN111459809A (en) * 2020-03-23 2020-07-28 汇通达网络股份有限公司 Software testing method based on rapid demand version iteration
CN111695840A (en) * 2019-03-11 2020-09-22 北京京东尚科信息技术有限公司 Method and device for realizing flow control
CN112148623A (en) * 2020-10-19 2020-12-29 青岛鹏海软件有限公司 LIMS-based intelligent complete set of scene testing method
CN112199277A (en) * 2020-09-27 2021-01-08 建信金融科技有限责任公司 Browser-based defect reproduction method, device, equipment and storage medium
CN112256587A (en) * 2020-11-10 2021-01-22 恩亿科(北京)数据科技有限公司 Data testing method and device based on SCRM system, electronic equipment and storage medium
CN112463513A (en) * 2019-09-06 2021-03-09 中国移动通信集团河北有限公司 IT system technology model selection method and device and computing equipment
CN112506759A (en) * 2020-11-23 2021-03-16 四川航天烽火伺服控制技术有限公司 Automatic testing method and device for servo system control software and storage medium
CN112749089A (en) * 2021-01-13 2021-05-04 上海幻电信息科技有限公司 Test method and system for probability related function module
CN113157593A (en) * 2021-05-24 2021-07-23 网易(杭州)网络有限公司 Performance data acquisition method, device, system, electronic equipment and storage medium
CN113238958A (en) * 2021-06-01 2021-08-10 广东好太太智能家居有限公司 Automatic testing method and device for big data visualization platform and electronic equipment
WO2021244535A1 (en) * 2020-06-05 2021-12-09 中国第一汽车股份有限公司 Vehicle software fault detection method, apparatus and device, and storage medium
CN114003310A (en) * 2021-10-29 2022-02-01 深信服科技股份有限公司 Parameter selection method, device, equipment and medium based on service scene
CN114428748A (en) * 2022-03-30 2022-05-03 北京数腾软件科技有限公司 Simulation test method and system for real service scene
CN113157593B (en) * 2021-05-24 2024-05-10 网易(杭州)网络有限公司 Performance data acquisition method, device, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975394A (en) * 2016-05-06 2016-09-28 华为技术有限公司 Program testing method and device
US9734042B1 (en) * 2013-05-27 2017-08-15 Amdocs Software Systems Limited System, method, and computer program for automated parameterized software testing
CN107656871A (en) * 2017-09-30 2018-02-02 郑州云海信息技术有限公司 A kind of rear end storage performance automated testing method based on Postmark
CN107908556A (en) * 2017-11-08 2018-04-13 中国平安人寿保险股份有限公司 Interface test method, device, equipment and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9734042B1 (en) * 2013-05-27 2017-08-15 Amdocs Software Systems Limited System, method, and computer program for automated parameterized software testing
CN105975394A (en) * 2016-05-06 2016-09-28 华为技术有限公司 Program testing method and device
CN107656871A (en) * 2017-09-30 2018-02-02 郑州云海信息技术有限公司 A kind of rear end storage performance automated testing method based on Postmark
CN107908556A (en) * 2017-11-08 2018-04-13 中国平安人寿保险股份有限公司 Interface test method, device, equipment and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘晓明: "软件测试及其自动化模型的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314160A (en) * 2018-12-12 2020-06-19 北京奇虎科技有限公司 Testing method and device for application duration statistical function
CN111314160B (en) * 2018-12-12 2023-02-17 北京奇虎科技有限公司 Testing method and device for application duration statistical function
CN109739771B (en) * 2019-01-04 2022-02-15 北京空间技术研制试验中心 Testing method for spacecraft testing
CN109739771A (en) * 2019-01-04 2019-05-10 北京空间技术研制试验中心 A kind of test method for spacecraft-testing
CN111695840A (en) * 2019-03-11 2020-09-22 北京京东尚科信息技术有限公司 Method and device for realizing flow control
CN111695840B (en) * 2019-03-11 2023-11-07 北京京东振世信息技术有限公司 Method and device for realizing flow control
CN110351161A (en) * 2019-05-22 2019-10-18 口碑(上海)信息技术有限公司 Business end-to-end test method, apparatus, storage medium and computer equipment
CN110502425A (en) * 2019-06-28 2019-11-26 平安银行股份有限公司 Test data generating method, device, electronic equipment and storage medium
CN110334023B (en) * 2019-06-28 2023-09-26 京东科技控股股份有限公司 Test flow determining method and device applied to website
CN110334023A (en) * 2019-06-28 2019-10-15 京东数字科技控股有限公司 A kind of testing process applied to website determines method and apparatus
CN110532170B (en) * 2019-07-18 2023-08-08 北京文渊佳科技有限公司 Method and device for building test environment, electronic equipment and medium
CN110532170A (en) * 2019-07-18 2019-12-03 北京文渊佳科技有限公司 Build method, apparatus, electronic equipment and the medium of test environment
CN110659202A (en) * 2019-08-12 2020-01-07 网宿科技股份有限公司 Client automatic testing method and device
CN112463513A (en) * 2019-09-06 2021-03-09 中国移动通信集团河北有限公司 IT system technology model selection method and device and computing equipment
CN110806981B (en) * 2019-11-05 2023-03-31 北京博睿宏远数据科技股份有限公司 Application program testing method, device, equipment and storage medium
CN110806981A (en) * 2019-11-05 2020-02-18 北京博睿宏远数据科技股份有限公司 Application program testing method, device, equipment and storage medium
CN111258882A (en) * 2020-01-03 2020-06-09 恩亿科(北京)数据科技有限公司 Test data acquisition method and device based on digital media system
CN111258882B (en) * 2020-01-03 2023-08-25 恩亿科(北京)数据科技有限公司 Test data acquisition method and device based on digital media system
CN111459809A (en) * 2020-03-23 2020-07-28 汇通达网络股份有限公司 Software testing method based on rapid demand version iteration
WO2021244535A1 (en) * 2020-06-05 2021-12-09 中国第一汽车股份有限公司 Vehicle software fault detection method, apparatus and device, and storage medium
CN112199277A (en) * 2020-09-27 2021-01-08 建信金融科技有限责任公司 Browser-based defect reproduction method, device, equipment and storage medium
CN112199277B (en) * 2020-09-27 2023-10-27 中国建设银行股份有限公司 Defect reproduction method, device, equipment and storage medium based on browser
CN112148623A (en) * 2020-10-19 2020-12-29 青岛鹏海软件有限公司 LIMS-based intelligent complete set of scene testing method
CN112256587A (en) * 2020-11-10 2021-01-22 恩亿科(北京)数据科技有限公司 Data testing method and device based on SCRM system, electronic equipment and storage medium
CN112506759A (en) * 2020-11-23 2021-03-16 四川航天烽火伺服控制技术有限公司 Automatic testing method and device for servo system control software and storage medium
CN112506759B (en) * 2020-11-23 2023-11-14 四川航天烽火伺服控制技术有限公司 Automatic test method and device for servo system control software and storage medium
CN112749089A (en) * 2021-01-13 2021-05-04 上海幻电信息科技有限公司 Test method and system for probability related function module
CN113157593A (en) * 2021-05-24 2021-07-23 网易(杭州)网络有限公司 Performance data acquisition method, device, system, electronic equipment and storage medium
CN113157593B (en) * 2021-05-24 2024-05-10 网易(杭州)网络有限公司 Performance data acquisition method, device, system, electronic equipment and storage medium
CN113238958A (en) * 2021-06-01 2021-08-10 广东好太太智能家居有限公司 Automatic testing method and device for big data visualization platform and electronic equipment
CN114003310A (en) * 2021-10-29 2022-02-01 深信服科技股份有限公司 Parameter selection method, device, equipment and medium based on service scene
CN114428748A (en) * 2022-03-30 2022-05-03 北京数腾软件科技有限公司 Simulation test method and system for real service scene

Similar Documents

Publication Publication Date Title
CN108763076A (en) A kind of Software Automatic Testing Method, device, equipment and medium
US11934301B2 (en) System and method for automated software testing
US20240037020A1 (en) System and Method for Automated Software Testing
CN107402880B (en) Test method and electronic equipment
US20210279577A1 (en) Testing of Computing Processes Using Artificial Intelligence
EP1899876B1 (en) System and method for using model analysis to generate directed test vectors
US7093238B2 (en) Automated software testing and validation system
CN110309022B (en) Method, simulator, device and storage medium for simulating transaction test
US8752023B2 (en) System, method and program product for executing a debugger
CN107977308A (en) interface test method and device
CN109815147A (en) Test cases generation method, device, server and medium
US11194596B2 (en) Simulating human interface interaction resilient to user interface changes
US9703683B2 (en) Software testing coverage
CN108628746A (en) Automatic interface testing method and system
CN108319575A (en) A kind of method of calibration of page assembly, device, server and storage medium
CN108255702A (en) A kind of test case creation method, apparatus, equipment and storage medium
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
CN112199277A (en) Browser-based defect reproduction method, device, equipment and storage medium
US10915426B2 (en) Intercepting and recording calls to a module in real-time
US11907621B2 (en) Electronic product testing systems for providing automated product testing
CN113934758A (en) Vehicle fault repairing method and device, vehicle-mounted terminal, server and storage medium
US11232019B1 (en) Machine learning based test coverage in a production environment
KR20180076020A (en) Apparatus and method for application test automation
CN110134602A (en) Webpage Automation regression testing method, system, medium and electronic equipment
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106