CN108845950A - Test device, the method for test and storage medium - Google Patents

Test device, the method for test and storage medium Download PDF

Info

Publication number
CN108845950A
CN108845950A CN201810876143.7A CN201810876143A CN108845950A CN 108845950 A CN108845950 A CN 108845950A CN 201810876143 A CN201810876143 A CN 201810876143A CN 108845950 A CN108845950 A CN 108845950A
Authority
CN
China
Prior art keywords
test
script
testing procedure
page
request
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
CN201810876143.7A
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 CN201810876143.7A priority Critical patent/CN108845950A/en
Priority to PCT/CN2018/107712 priority patent/WO2020024408A1/en
Publication of CN108845950A publication Critical patent/CN108845950A/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

Abstract

The present invention relates to a kind of test device, the method for test and storage medium, this method to include:Receive the testing procedure inputted on the page, obtain the type of web request, corresponding test template is obtained according to the type, the position of request address and the position of required parameter in test template are obtained respectively, request address in the position of request address write-in testing procedure, and the required parameter in the position of required parameter write-in testing procedure;The test template is generated into corresponding scripting object, corresponding test script is generated according to scripting object, is stored in script bank after testing procedure is associated with the test script;When carrying out interface testing and/or performance test to web request, the corresponding testing procedure of web request is obtained, the associated test script in the script bank is obtained based on the testing procedure, is tested based on test script.The present invention can reduce test job amount, improve testing efficiency.

Description

Test device, the method for test and storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of test devices, the method for test and storage medium.
Background technique
Currently, being generally tested for the property with Jmeter tool when testing web request based on http, with inner work Tool or other similar tool carry out interface testing.For the same request, not only may need to be tested for the property but also need to carry out Interface testing.For not only needing to be tested for the property but also need to carry out the request of interface testing, due to the limitation of testing tool, Data, configuration etc. between two kinds of tests can not share, it is therefore desirable to which developer individually develops corresponding testing tool, leads in this way The heavy workload of test is caused, testing efficiency is low.
Summary of the invention
The purpose of the present invention is to provide a kind of test device, the method for test and storage mediums, it is intended to reduce test work It measures, improves testing efficiency.
To achieve the above object, the present invention provides a kind of test device, the test device include memory and with it is described The processor of memory connection, is stored with the processing system that can be run on the processor, the processing in the memory System realizes following steps when being executed by the processor:
The testing procedure inputted on the page is received, the testing procedure includes web request, request address and request ginseng Number;
The type for obtaining the web request obtains corresponding test template according to the type of the web request, passes through mould The matched mode of formula obtains the position of request address and the position of required parameter in the test template respectively, on the request ground The request address in the testing procedure is written in the position of location, and is written in the testing procedure in the position of the required parameter Required parameter;
Test template after write request address and required parameter is generated into corresponding scripting object, according to the script pair As generating corresponding test script, deposited after the testing procedure is associated with the test script by scheduled interrelational form Storage is in the script bank pre-established;
When carrying out interface testing and/or performance test to web request, the web request selected on the page is obtained Corresponding testing procedure, based on the testing procedure obtain in the script bank with the associated test script of the testing procedure, base It is tested in the test script.
Preferably, the scheduled interrelational form is that the testing procedure passes through class name+method name association test foot This, it is described when being tested for the property to web request, based on the testing procedure obtain in the script bank with the testing procedure After associated test script, the scenario parameters of setting are obtained, are tested based on the test script and the scenario parameters, The scenario parameters include concurrent user number, test time.
Preferably, the page is the platform page of the Gatling as the script visual edit of enforcement engine, the foot It include test cases base area and editor's frame region on the platform page of this visual edit, the processing system is by the processing When device executes, following steps are also realized:When receiving edit instruction, the testing procedure on the page is edited, and It is saved after completing the editing.
It preferably, further include page switching control, the processing system on the platform page of the script visual edit When being executed by the processor, following steps are also realized:
When receiving the switching command based on page switching control sending, from the platform of the script visual edit Page switching is edited to the visual edit page of scheduled code editor with the code to test script.
To achieve the above object, the present invention also provides a kind of method of test, the method for the test includes:
S1 receives the testing procedure inputted on the page, and the testing procedure includes web request, request address and request Parameter;
S2 obtains the type of the web request, obtains corresponding test template according to the type of the web request, passes through The mode of pattern match obtains the position of request address and the position of required parameter in the test template respectively, in the request The request address in the testing procedure is written in the position of address, and the testing procedure is written in the position of the required parameter In required parameter;
Test template after write request address and required parameter is generated corresponding scripting object, according to the foot by S3 This object generates corresponding test script, and the testing procedure is associated with the test script by scheduled interrelational form It is stored in the script bank pre-established afterwards;
S4 obtains the web selected on the page and asks when carrying out interface testing and/or performance test to web request Seek corresponding testing procedure, based on the testing procedure obtain in the script bank with the associated test script of the testing procedure, It is tested based on the test script.
Preferably, the scheduled interrelational form is that the testing procedure passes through class name+method name association test foot This, it is described when being tested for the property to web request, based on the testing procedure obtain in the script bank with the testing procedure After associated test script, the scenario parameters of setting are obtained, are tested based on the test script and the scenario parameters, The scenario parameters include concurrent user number, test time.
Preferably, the page is the platform page of the Gatling as the script visual edit of enforcement engine, the foot Include test cases base area and editor's frame region on the platform page of this visual edit, after the step S4, further includes: When receiving edit instruction, the testing procedure on the page is edited, and is saved after completing the editing.
Preferably, further include page switching control on the platform page of the script visual edit, the step S4 it Afterwards, further include:When receiving the switching command based on page switching control sending, from the flat of the script visual edit Platform page switching is edited to the visual edit page of scheduled code editor with the code to test script.
Preferably, the visual edit page of the scheduled code editor is ACE Editor visual edit page Face.
The present invention also provides a kind of computer readable storage medium, processing is stored on the computer readable storage medium The step of system, the processing system realizes the method for above-mentioned test when being executed by processor.
The beneficial effects of the invention are as follows:The invention proposes the concepts for establishing script bank, using a web request as minimum Granularity, a web request correspond to corresponding testing procedure, and testing procedure generates a scripting object and is stored in script bank, right It is straight according to service logic in test for the web request for not only needing to carry out interface testing but also needing to be tested for the property It connects and is associated with to obtain interface testing script and performance test script in script bank using testing procedure, performance thus may be implemented The multiplexing of the script of test and interface testing, meanwhile, test script and configuration are also managed on the same platform, can be total to With can reduce test job amount, improve testing efficiency.
Detailed description of the invention
Fig. 1 is the schematic diagram of the hardware structure of one embodiment of test device of the present invention;
Fig. 2 is the flow diagram for the method first embodiment that the present invention tests;
Fig. 3 is the flow diagram for the method second embodiment that the present invention tests.
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.
As shown in fig.1, being the schematic diagram of the hardware structure of one embodiment of test device of the present invention.The test device 1 It is that one kind can be according to the instruction for being previously set or storing, the automatic equipment for carrying out numerical value calculating and/or information processing.Institute State test device 1 can be computer, be also possible to single network server, multiple network servers composition server group or The cloud that a large amount of hosts or network server is made of of the person based on cloud computing, wherein cloud computing is one kind of distributed computing, A super virtual computer consisting of a loosely coupled set of computers.
In the present embodiment, test device 1 may include, but be not limited only to, and can be in communication with each other connection by system bus Memory 11, processor 12, network interface 13, memory 11 are stored with the processing system that can be run on the processor 12.It needs , it is noted that Fig. 1 illustrates only the test device 1 with component 11-13, it should be understood that being not required for implementing all The component shown, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes the readable storage medium storing program for executing of memory and at least one type.Inside save as the fortune of test device 1 Row provides caching;Readable storage medium storing program for executing can be for if flash memory, hard disk, multimedia card, card-type memory are (for example, SD or DX memory Deng), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electric erasable can compile Journey read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. it is non-volatile Storage medium.In some embodiments, readable storage medium storing program for executing can be the internal storage unit of test device 1, such as the test The hard disk of device 1;In further embodiments, the external storage which is also possible to test device 1 is set Plug-in type hard disk that is standby, such as being equipped in test device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..In the present embodiment, the readable storage medium storing program for executing of memory 11 Commonly used in storing in the operating system and types of applications software that are installed on test device 1, such as storage one embodiment of the invention Processing system program code etc..It has exported or will export in addition, memory 11 can be also used for temporarily storing Various types of data.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control survey 1 overall operation is set in trial assembly, such as execute control relevant to other equipment progress data interaction or communication and processing etc..This In embodiment, the processor 12 is used to run the program code stored in the memory 11 or processing data, such as transports Row processing system etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the test device 1 and other electronic equipments.
The processing system is stored in memory 11, is stored in including at least one computer-readable in memory 11 Instruction, at least one computer-readable instruction can be executed by processor device 12, the method to realize each embodiment of the application;With And the function that at least one computer-readable instruction is realized according to its each section is different, can be divided into different logic moulds Block.
In one embodiment, following steps are realized when above-mentioned processing system is executed by the processor 12:
The testing procedure inputted on the page is received, the testing procedure includes web request, request address and request ginseng Number;
Wherein, user's typing one or more testing procedure on the page, include in each testing procedure web request, Request address, required parameter.After saving testing procedure, the operation for automatically generating test script is executed on backstage.
The type for obtaining the web request obtains corresponding test template according to the type of the web request, passes through mould The matched mode of formula obtains the position of request address and the position of required parameter in the test template respectively, on the request ground The request address in the testing procedure is written in the position of location, and is written in the testing procedure in the position of the required parameter Required parameter;
Wherein, the type of web request includes POST request and GET request, and GET request is from specified Energy Resources Service's number of request According to POST request submits data to be processed to specified Energy Resources Service.POST request corresponds to the test template of POST request, GET request corresponds to the test template of GET request.
For GET request, required parameter is attached to as a key or value pairs of sequence (i.e. inquiry string) On URL;For POST request, required parameter is a different piece (entitled entitybody) transmission in http title 's.POST request is designed to support the user field on web forms, and required parameter is also as key or value to biography It is defeated.Such as: http://www.taobao.com?ItemId=123 is GET request, http://www.taobao.com is POST request.I.e. the tail portion of GET request has parameter, and the parameter of POST request carries in http agreement.
Wherein, the mode of pattern match includes that the position of request address in test template is found by way of matching keyword It sets and the position of required parameter, such as the matching keyword of request address is " * http* ", the matching keyword of required parameter is " * itemId=* ".
Test template after write request address and required parameter is generated into corresponding scripting object, according to the script pair As generating corresponding test script, deposited after the testing procedure is associated with the test script by scheduled interrelational form Storage is in the script bank pre-established;
When carrying out interface testing and/or performance test to web request, the web request selected on the page is obtained Corresponding testing procedure, based on the testing procedure obtain in the script bank with the associated test script of the testing procedure, base It is tested in the test script.
Wherein, for the ease of quickly finding the associated test script of testing procedure, scheduled affiliated party in script bank Formula is that each testing procedure passes through specified title (for example, class name+method name) association test script.
When carrying out interface testing to web request, selected on the page one of the corresponding interface testing of the web request or Multiple testing procedures, due to having generated the corresponding test script of testing procedure in script bank, each testing procedure The test script in script bank is associated with by aforementioned scheduled interrelational form, it can obtains the survey of executable interface testing Training sheet, executing test script can test;
When being tested for the property to web request, selected on the page one of the corresponding performance test of the web request or Multiple testing procedures, due to having generated the corresponding test script of testing procedure in script bank, each testing procedure The test script in script bank is associated with by aforementioned scheduled interrelational form, it can obtains the survey of executable performance test Training sheet, executing test script can test.
Further, in order to which the flexibility for improving test is being based on the test when being tested for the property to web request Step obtains in the script bank and after the associated test script of testing procedure, and the scene of test can be arranged in user on the page Parameter, scenario parameters include concurrent user number, test time, are then based on test script and scenario parameters are tested.
Wherein, information of user's typing at present, such as web request, request address etc., are actually deposited in the form of data It puts in the database, is just taken out from database when being executed, be assembled into test cases, therefore user can not check real execution Test script, can not modify, need developer modify code just may be implemented, development amount is big.
In a preferred embodiment, it can be used the Gatling for supporting DSL language as enforcement engine, in the page of web terminal Face is the platform page of the Gatling as the script visual edit of enforcement engine, improves convenience and the flexibility of test, institute When stating processing system and being executed by the processor 12, also realization following steps:When receiving edit instruction, on the page Testing procedure edited, and saved after completing the editing.
Wherein, test cases base area and editor's frame region are included at least on the platform page of script visual edit, it can It can for simply editing by the testing procedure that a control in test cases base area is associated in corresponding script bank It is visually edited so that corresponding testing procedure is drawn in editor's frame region by control, wherein editor includes repairing Change, replicate, tune sequence, delete etc., after completing the editing, saved, edited testing procedure generates correspondence in sequence Test script, which directly executes for Gatling enforcement engine.
Further, for complicated editor, page switching control, place are provided on the platform page of script visual edit When reason system is executed by the processor 12, following steps are also realized:It is cut receiving based on what the page switching control issued When changing instruction, can from it is current comprising case base area, edit the page switching of frame region to scheduled code editor can Depending on changing edit page, the visual edit page of the scheduled code editor is, for example, ACE Editor visual edit page Face realizes the visual edit of the customized scripted code of user, further increases convenience and the flexibility of test.
Wherein, in the visual edit page of scheduled code editor, since Gatling enforcement engine supports field special With language DSL, can be carried out based on the fixed feature of Domain Specific Language DSL keyword in user's edit script code It is highlighted, meanwhile, gatling keyword can associate prompt, and the validity of scripted code can be easily recognized in assist edit.
Compared with prior art, the invention proposes the concepts for establishing script bank, using a web request as most granule Degree, a web request correspond to corresponding testing procedure, and testing procedure generates a scripting object and is stored in script bank, for Not only for needing to carry out interface testing but also needing the web request that is tested for the property, in test, directly made according to service logic It is associated with to obtain interface testing script and performance test script in script bank with testing procedure, performance test thus may be implemented With the multiplexing of the script of interface testing, meanwhile, test script and configuration be also managed on the same platform, can share, Test job amount can be reduced, testing efficiency is improved.
As shown in Fig. 2, Fig. 2 is the flow diagram for one embodiment of method that the present invention tests, the method for the test includes Following steps:
Step S1 receives the testing procedure inputted on the page;
Wherein, user's typing one or more testing procedure on the page, include in each testing procedure web request, Request address, required parameter.After saving testing procedure, the operation for automatically generating test script is executed on backstage.
Step S2 obtains the type of the web request, obtains corresponding test template according to the type of the web request, The position of request address and the position of required parameter in the test template are obtained respectively by way of pattern match, described The request address in the testing procedure is written in the position of request address, and the test is written in the position of the required parameter Required parameter in step;
Wherein, the type of web request includes POST request and GET request, and GET request is from specified Energy Resources Service's number of request According to POST request submits data to be processed to specified Energy Resources Service.POST request corresponds to the test template of POST request, GET request corresponds to the test template of GET request.
For GET request, required parameter is attached to as a key or value pairs of sequence (i.e. inquiry string) On URL;For POST request, required parameter is a different piece (entitled entitybody) transmission in http title 's.POST request is designed to support the user field on web forms, and required parameter is also as key or value to biography It is defeated.Such as: http://www.taobao.com?ItemId=123 is GET request, http://www.taobao.com is POST request.I.e. the tail portion of GET request has parameter, and the parameter of POST request carries in http agreement.
Wherein, the mode of pattern match includes that the position of request address in test template is found by way of matching keyword It sets and the position of required parameter, such as the matching keyword of request address is " * http* ", the matching keyword of required parameter is " * itemId=* ".
Test template after write request address and required parameter is generated corresponding scripting object, according to institute by step S3 It states scripting object and generates corresponding test script, the testing procedure is carried out with the test script by scheduled interrelational form It is stored in after association in the script bank pre-established;
Step S4 is obtained described in selecting on the page when carrying out interface testing and/or performance test to web request The corresponding testing procedure of web request, based on the testing procedure obtain in the script bank with the associated test of the testing procedure Script is tested based on the test script.
Wherein, for the ease of quickly finding the associated test script of testing procedure, scheduled affiliated party in script bank Formula is that each testing procedure passes through specified title (for example, class name+method name) association test script.
When carrying out interface testing to web request, selected on the page one of the corresponding interface testing of the web request or Multiple testing procedures, due to having generated the corresponding test script of testing procedure in script bank, each testing procedure The test script in script bank is associated with by aforementioned scheduled interrelational form, it can obtains the survey of executable interface testing Training sheet, executing test script can test;
When being tested for the property to web request, selected on the page one of the corresponding performance test of the web request or Multiple testing procedures, due to having generated the corresponding test script of testing procedure in script bank, each testing procedure The test script in script bank is associated with by aforementioned scheduled interrelational form, it can obtains the survey of executable performance test Training sheet, executing test script can test.
Further, in order to which the flexibility for improving test is being based on the test when being tested for the property to web request Step obtains in the script bank and after the associated test script of testing procedure, and the scene of test can be arranged in user on the page Parameter, scenario parameters include concurrent user number, test time, are then based on test script and scenario parameters are tested.
Wherein, information of user's typing at present, such as web request, request address etc., are actually deposited in the form of data It puts in the database, is just taken out from database when being executed, be assembled into test cases, therefore user can not check real execution Test script, can not modify, need developer modify code just may be implemented, development amount is big.
In a preferred embodiment, it can be used the Gatling for supporting DSL language as enforcement engine, in the page of web terminal Face is the platform page of the Gatling as the script visual edit of enforcement engine, improves convenience and the flexibility of test, such as Shown in Fig. 3, after step s4, further include:Step S5, when receiving edit instruction, to the testing procedure on the page It is edited, and is saved after completing the editing.
Wherein, test cases base area and editor's frame region are included at least on the platform page of script visual edit, it can It can for simply editing by the testing procedure that a control in test cases base area is associated in corresponding script bank It is visually edited so that corresponding testing procedure is drawn in editor's frame region by control, wherein editor includes repairing Change, replicate, tune sequence, delete etc., after completing the editing, saved, edited testing procedure generates correspondence in sequence Test script, which directly executes for Gatling enforcement engine.
Further, for complicated editor, page switching control is provided on the platform page of script visual edit, After above-mentioned steps S4, further include:It, can be from current packet when receiving the switching command based on page switching control sending To the visual edit page of scheduled code editor, this is scheduled for base area containing case, the page switching of editor's frame region The visual edit page of code editor is, for example, the ACE Editor visual edit page, realizes the customized script of user The visual edit of code further increases convenience and the flexibility of test.
Wherein, in the visual edit page of scheduled code editor, since Gatling enforcement engine supports field special With language DSL, can be carried out based on the fixed feature of Domain Specific Language DSL keyword in user's edit script code It is highlighted, meanwhile, gatling keyword can associate prompt, and the validity of scripted code can be easily recognized in assist edit.
The invention proposes the concepts for establishing script bank, using a web request as minimum particle size, a web request pair Corresponding testing procedure is answered, testing procedure generates a scripting object and is stored in script bank, for both needing to carry out interface survey For trying the web request for needing to be tested for the property again, in test, directly testing procedure is used to be associated with according to service logic Interface testing script and performance test script into script bank, thus may be implemented the script of performance test and interface testing Multiplexing, meanwhile, test script and configuration be also managed on the same platform, can share, test job can be reduced Amount improves testing efficiency.
The present invention also provides a kind of computer readable storage medium, processing is stored on the computer readable storage medium The step of system, the processing system realizes the method for above-mentioned test when being executed by processor.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
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 by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of test device, which is characterized in that the test device includes memory and the processing that connect with the memory Device is stored with the processing system that can be run on the processor in the memory, and the processing system is by the processor Following steps are realized when execution:
The testing procedure inputted on the page is received, the testing procedure includes web request, request address and required parameter;
The type for obtaining the web request obtains corresponding test template according to the type of the web request, passes through mode The mode matched obtains the position of request address and the position of required parameter in the test template respectively, in the request address The request address in the testing procedure is written in position, and asking in the testing procedure is written in the position of the required parameter Seek parameter;
Test template after write request address and required parameter is generated into corresponding scripting object, it is raw according to the scripting object At corresponding test script, it is stored in after the testing procedure is associated with the test script by scheduled interrelational form In the script bank pre-established;
When carrying out interface testing and/or performance test to web request, it is corresponding to obtain the web request selected on the page Testing procedure, based on the testing procedure obtain in the script bank with the associated test script of the testing procedure, be based on institute Test script is stated to be tested.
2. test device according to claim 1, which is characterized in that the scheduled interrelational form is the testing procedure It is associated with the test script by class name+method name, it is described when being tested for the property to web request, it is being based on the test step Suddenly it obtains in the script bank and after the associated test script of the testing procedure, obtains the scenario parameters of setting, based on described Test script and the scenario parameters are tested, and the scenario parameters include concurrent user number, test time.
3. test device according to claim 1 or 2, which is characterized in that the page is Gatling as enforcement engine Script visual edit the platform page, include on the platform page of the script visual edit test cases base area and Frame region is edited, when the processing system is executed by the processor, also realizes following steps:When receiving edit instruction, Testing procedure on the page is edited, and is saved after completing the editing.
4. test device according to claim 3, which is characterized in that on the platform page of the script visual edit also Including page switching control, when the processing system is executed by the processor, following steps are also realized:
When receiving the switching command based on page switching control sending, from the platform page of the script visual edit The visual edit page for switching to scheduled code editor, is edited with the code to test script.
5. a kind of method of test, which is characterized in that the method for the test includes:
S1 receives the testing procedure inputted on the page, and the testing procedure includes web request, request address and required parameter;
S2 obtains the type of the web request, obtains corresponding test template according to the type of the web request, passes through mode Matched mode obtains the position of request address and the position of required parameter in the test template respectively, in the request address Position the request address in the testing procedure is written, and be written in the testing procedure in the position of the required parameter Required parameter;
Test template after write request address and required parameter is generated corresponding scripting object, according to the script pair by S3 As generating corresponding test script, deposited after the testing procedure is associated with the test script by scheduled interrelational form Storage is in the script bank pre-established;
S4 obtains the web request pair selected on the page when carrying out interface testing and/or performance test to web request The testing procedure answered is obtained in the script bank with the associated test script of the testing procedure based on the testing procedure, is based on The test script is tested.
6. the method for test according to claim 5, which is characterized in that the scheduled interrelational form is the test step Suddenly the test script is associated with by class name+method name, it is described when being tested for the property to web request, it is being based on the test Step obtains in the script bank and after the associated test script of the testing procedure, obtains the scenario parameters of setting, is based on institute It states test script and the scenario parameters is tested, the scenario parameters include concurrent user number, test time.
7. the method for test according to claim 5 or 6, which is characterized in that the page is that Gatling draws as execution The platform page for the script visual edit held up includes test cases base area on the platform page of the script visual edit And editor's frame region, after the step S4, further include:When receiving edit instruction, to the testing procedure on the page It is edited, and is saved after completing the editing.
8. the method for test according to claim 7, which is characterized in that on the platform page of the script visual edit Further include page switching control, after the step S4, further includes:Receiving the switching issued based on the page switching control When instruction, from the platform page switching of the script visual edit to the visual edit page of scheduled code editor, It is edited with the code to test script.
9. the method for test according to claim 8, which is characterized in that the visualization of the scheduled code editor is compiled Collecting the page is the ACE Editor visual edit page.
10. a kind of computer readable storage medium, which is characterized in that be stored with processing system on the computer readable storage medium System realizes the step of the method for the test as described in any one of claim 5 to 9 when the processing system is executed by processor Suddenly.
CN201810876143.7A 2018-08-03 2018-08-03 Test device, the method for test and storage medium Pending CN108845950A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810876143.7A CN108845950A (en) 2018-08-03 2018-08-03 Test device, the method for test and storage medium
PCT/CN2018/107712 WO2020024408A1 (en) 2018-08-03 2018-09-26 Test device, test method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810876143.7A CN108845950A (en) 2018-08-03 2018-08-03 Test device, the method for test and storage medium

Publications (1)

Publication Number Publication Date
CN108845950A true CN108845950A (en) 2018-11-20

Family

ID=64195538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810876143.7A Pending CN108845950A (en) 2018-08-03 2018-08-03 Test device, the method for test and storage medium

Country Status (2)

Country Link
CN (1) CN108845950A (en)
WO (1) WO2020024408A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710532A (en) * 2018-12-28 2019-05-03 北京金山安全软件有限公司 Test case management method and device and electronic equipment
CN109815123A (en) * 2018-12-15 2019-05-28 中国平安人寿保险股份有限公司 Interface testing case script classification method, device, electronic equipment and medium
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN109871314A (en) * 2019-01-02 2019-06-11 石化盈科信息技术有限责任公司 The automatic generation method of test script
CN109885473A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Automated testing method and device, terminal and computer readable storage medium
CN109918060A (en) * 2019-01-29 2019-06-21 深圳点猫科技有限公司 A kind of switching method and device for realizing multi-tag page under single window
CN110197089A (en) * 2019-05-23 2019-09-03 深圳市创自技术有限公司 Reader detection method, equipment and computer readable storage medium
CN110399305A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The test method and device of BTT module
CN110704312A (en) * 2019-09-25 2020-01-17 浙江大搜车软件技术有限公司 Pressure testing method and device, computer equipment and storage medium
CN110896362A (en) * 2019-11-05 2020-03-20 泰康保险集团股份有限公司 Fault detection method and device
CN112148600A (en) * 2020-09-16 2020-12-29 上海中通吉网络技术有限公司 Software performance testing method, device, equipment and storage medium
CN113742238A (en) * 2021-09-14 2021-12-03 南方电网深圳数字电网研究院有限公司 Test case generation method and device
CN113742238B (en) * 2021-09-14 2024-05-14 南方电网数字平台科技(广东)有限公司 Method and device for generating test cases

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495834B (en) * 2020-04-07 2022-06-14 阿里巴巴集团控股有限公司 User acceptance test method, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754760A (en) * 1996-05-30 1998-05-19 Integrity Qa Software, Inc. Automatic software testing tool
CN104298589A (en) * 2013-07-16 2015-01-21 阿里巴巴集团控股有限公司 Performance test method and performance test equipment
CN104679658A (en) * 2015-03-17 2015-06-03 百度在线网络技术(北京)有限公司 Test method and test system for WEB pages
CN105302718A (en) * 2015-10-26 2016-02-03 浪潮电子信息产业股份有限公司 Reusable software-oriented test model design method
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium
CN107526679A (en) * 2017-07-13 2017-12-29 深圳市小牛在线互联网信息咨询有限公司 Automated test frame, the automated testing method based on thereon, storage medium and computer equipment
CN108268377A (en) * 2018-01-23 2018-07-10 郑州云海信息技术有限公司 A kind of service test method of server, device and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7810070B2 (en) * 2004-03-29 2010-10-05 Sas Institute Inc. System and method for software testing
CN107133161B (en) * 2016-02-26 2021-03-05 中移动信息技术有限公司 Method and device for generating client performance test script
CN107480048A (en) * 2017-07-13 2017-12-15 深圳市小牛在线互联网信息咨询有限公司 Testing tool generation method, device, storage medium and computer equipment
CN107766252A (en) * 2017-11-08 2018-03-06 平安科技(深圳)有限公司 Test script automated execution method, apparatus, equipment and storage medium
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754760A (en) * 1996-05-30 1998-05-19 Integrity Qa Software, Inc. Automatic software testing tool
CN104298589A (en) * 2013-07-16 2015-01-21 阿里巴巴集团控股有限公司 Performance test method and performance test equipment
CN104679658A (en) * 2015-03-17 2015-06-03 百度在线网络技术(北京)有限公司 Test method and test system for WEB pages
CN105302718A (en) * 2015-10-26 2016-02-03 浪潮电子信息产业股份有限公司 Reusable software-oriented test model design method
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium
CN107526679A (en) * 2017-07-13 2017-12-29 深圳市小牛在线互联网信息咨询有限公司 Automated test frame, the automated testing method based on thereon, storage medium and computer equipment
CN108268377A (en) * 2018-01-23 2018-07-10 郑州云海信息技术有限公司 A kind of service test method of server, device and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
方睿: "《网络测试技术》", 31 December 2010 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN109885473A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Automated testing method and device, terminal and computer readable storage medium
CN109815123A (en) * 2018-12-15 2019-05-28 中国平安人寿保险股份有限公司 Interface testing case script classification method, device, electronic equipment and medium
CN109710532A (en) * 2018-12-28 2019-05-03 北京金山安全软件有限公司 Test case management method and device and electronic equipment
CN109871314A (en) * 2019-01-02 2019-06-11 石化盈科信息技术有限责任公司 The automatic generation method of test script
CN109918060A (en) * 2019-01-29 2019-06-21 深圳点猫科技有限公司 A kind of switching method and device for realizing multi-tag page under single window
CN110197089A (en) * 2019-05-23 2019-09-03 深圳市创自技术有限公司 Reader detection method, equipment and computer readable storage medium
CN110399305A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The test method and device of BTT module
CN110399305B (en) * 2019-07-31 2023-12-08 中国工商银行股份有限公司 BTT module testing method and device
CN110704312A (en) * 2019-09-25 2020-01-17 浙江大搜车软件技术有限公司 Pressure testing method and device, computer equipment and storage medium
CN110704312B (en) * 2019-09-25 2023-09-12 浙江大搜车软件技术有限公司 Method, device, computer equipment and storage medium for pressure test
CN110896362A (en) * 2019-11-05 2020-03-20 泰康保险集团股份有限公司 Fault detection method and device
CN112148600A (en) * 2020-09-16 2020-12-29 上海中通吉网络技术有限公司 Software performance testing method, device, equipment and storage medium
CN113742238A (en) * 2021-09-14 2021-12-03 南方电网深圳数字电网研究院有限公司 Test case generation method and device
CN113742238B (en) * 2021-09-14 2024-05-14 南方电网数字平台科技(广东)有限公司 Method and device for generating test cases

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108845950A (en) Test device, the method for test and storage medium
CN110661658B (en) Node management method and device of block chain network and computer storage medium
CN108920146A (en) Page control assembly and visual Simulation operating system
CN110673923A (en) XWIKI system configuration method, system and computer equipment
CN112558946A (en) Method, device and equipment for generating code and computer readable storage medium
CN111414391A (en) Method and system for accessing multiple data sources
CN105704188A (en) Deployment method and apparatus of applications and services
CN112764751A (en) Interface generation method and device, interface request method and device and storage medium
CN110502530A (en) Database functions call method, system, computer equipment and storage medium
CN108416679A (en) More insurance products go out single device, method and computer readable storage medium
CN109447384A (en) Verification method, device, equipment and the storage medium of air control system
CN110059278A (en) Web page configuration method, server and computer readable storage medium
CN112084446A (en) Webpage editing method, editor, electronic equipment and readable storage medium
CN114553960A (en) Data caching method, device, equipment and storage medium
CN113722114A (en) Data service processing method and device, computing equipment and storage medium
CN108664343A (en) A kind of stateful call method and device of micro services
CN105373415A (en) Virtualization based application storage method, execution method, apparatus and system
CN112182606A (en) Access request processing method and device, electronic equipment and readable storage medium
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN112367661B (en) USAT application matching implementation method, USIM, terminal, device and medium
CN114040378A (en) Application arranging method and device, computer equipment and storage medium
CN110046141B (en) Data storage method and system based on data playback
CN113342647A (en) Test data generation method and device
CN113312661B (en) User authorization system, method and device and electronic equipment
CN115023931B (en) Method and network entity for service API release

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

Application publication date: 20181120

RJ01 Rejection of invention patent application after publication