CN109885473A - Automated testing method and device, terminal and computer readable storage medium - Google Patents

Automated testing method and device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109885473A
CN109885473A CN201811535095.1A CN201811535095A CN109885473A CN 109885473 A CN109885473 A CN 109885473A CN 201811535095 A CN201811535095 A CN 201811535095A CN 109885473 A CN109885473 A CN 109885473A
Authority
CN
China
Prior art keywords
test
configuration information
types
sets
threads
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
CN201811535095.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.)
Ping An Wanjia Medical Investment Management Co Ltd
Original Assignee
Ping An Wanjia Medical Investment Management 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 Wanjia Medical Investment Management Co Ltd filed Critical Ping An Wanjia Medical Investment Management Co Ltd
Priority to CN201811535095.1A priority Critical patent/CN109885473A/en
Publication of CN109885473A publication Critical patent/CN109885473A/en
Pending legal-status Critical Current

Links

Abstract

The invention proposes a kind of automated testing method and device, terminal and computer readable storage medium, it is related to researching and developing administrative skill field, wherein this method comprises: obtaining the configuration information of target detection according to automatic test order;According to the sets of threads quantity and scheduler Boolean in the configuration information, the test-types of the automatic test order instruction are determined;According to the test-types, corresponding test script and/or test case set are selected by the interface based on Jmeter;The target detection is executed according to the configuration information, the test script and/or the test case set.According to the technical solution of the present invention, match posting port using same, it is only necessary to modify the test script and/or test case set that configuration file is pointed out, it will be able to enter different types of test, the degree of automation of test is improved, the high efficiency and practicability of test are improved.

Description

Automated testing method and device, terminal and computer readable storage medium
[technical field]
The present invention relates to research and development administrative skill field more particularly to a kind of automated testing methods and device, terminal and meter Calculation machine readable storage medium storing program for executing.
[background technique]
Most of automated test frame has its limitation, for different test-types, interface automatic test It is confined to interface testing, automatic performance test is confined to performance test, what interface automatic test and automatic performance were tested Test frame, test script and test case are all artificial individually creations and safeguard, time-consuming and laborious, and are easy error.
Therefore, the convenience for how further promoting automatic test, becomes a technical problem to be solved urgently.
[summary of the invention]
The embodiment of the invention provides a kind of automated testing method and device, terminal and computer readable storage medium, Aim to solve the problem that interface testing in the related technology and performance test are required to the technical issues of being separately configured and safeguarding, it can will be same Frame application is covered in interface testing and performance test, promotes the convenience of automatic test.
In a first aspect, the embodiment of the invention provides a kind of automated testing methods, comprising: ordered according to automatic test It enables, obtains the configuration information of target detection;According to the sets of threads quantity and scheduler Boolean in the configuration information, institute is determined State the test-types of automatic test order instruction;According to the test-types, select to correspond to by the interface based on Jmeter Test script and/or test case set;According to the configuration information, the test script and/or the test use cases It closes and executes the target detection.
In the above embodiment of the present invention, optionally, the test-types include interface testing and performance test, wherein The interface testing is corresponding with interface testing script and interface testing use-case set, and the performance test is corresponding with performance test foot Sheet and performance test case set.
In the above embodiment of the present invention, optionally, the sets of threads quantity and scheduling according in the configuration information Device Boolean, the step of determining the test-types of automatic test order instruction, comprising: judge in the configuration information Whether sets of threads quantity is within the scope of predetermined quantity, and whether the scheduler Boolean is predetermined value;When judging result is Sets of threads quantity in the configuration information is within the scope of the predetermined quantity, and the scheduler Boolean is described predetermined When value, determine that the test-types of the automatic test order instruction are the interface testing;Otherwise, it determines described automatic The test-types for changing test command instruction are the performance test.
In the above embodiment of the present invention, optionally, described according to automatic test order, matching for target detection is obtained Before the step of confidence ceases, further includes: the configuration information is written in sets of threads configuration information, wherein the sets of threads configuration Information includes the sets of threads quantity;The automated testing method further include: ordered according to the sets of threads configuration change received It enables, the sets of threads configuration information in the configuration information is changed by Maven item objects model.
In the above embodiment of the present invention, optionally, described according to the test-types, pass through connecing based on Jmeter Mouth selected before the step of corresponding test script and/or test case set, further includes: obtains the automatic test order Sender Authority Verification information;According to the Authority Verification information, judge whether the sender has calling corresponding The permission that the test script and/or the test case set are tested, wherein when judging result is sender tool When having the permission, into described according to the test-types, corresponding test script is selected by the interface based on Jmeter And/or the step of test case set.
In the above embodiment of the present invention, optionally, the Authority Verification information includes biological information and abiotic information, Wherein, the biological information includes one or more in finger print information, palm print information, acoustic information and iris information;It is described Abiotic information includes user identity identification code and/or the Permission Levels of user.
Second aspect, the embodiment of the invention provides a kind of automatic test devices, comprising: configuration information acquiring unit, For obtaining the configuration information of target detection according to automatic test order;Test-types determination unit, for matching according to Sets of threads quantity and scheduler Boolean in confidence breath determine the test-types of the automatic test order instruction;Automatically Change test cell, for selecting corresponding test script and/or survey by the interface based on Jmeter according to the test-types Example set on probation;Automatic test unit, for according to the configuration information, the test script and/or the test case Set executes the target detection.
In the above embodiment of the present invention, optionally, the test-types include interface testing and performance test, wherein The interface testing is corresponding with interface testing script and interface testing use-case set, and the performance test is corresponding with performance test foot Sheet and performance test case set.
In the above embodiment of the present invention, optionally, the test-types determination unit is specifically used for: judging the configuration Whether the sets of threads quantity in information is within the scope of predetermined quantity, and whether the scheduler Boolean is predetermined value;When sentencing Disconnected result is that the sets of threads quantity in the configuration information is within the scope of the predetermined quantity, and the scheduler Boolean is When the predetermined value, determine that the test-types of the automatic test order instruction are the interface testing;Otherwise, it determines The test-types of the automatic test order instruction are the performance test.
In the above embodiment of the present invention, optionally, further includes: configuration information edit cell, for matching confidence described It is before breath acquiring unit obtains the configuration information of the target detection, the write-in of sets of threads configuration information is described with confidence Breath, wherein the sets of threads configuration information includes the sets of threads quantity;Sets of threads configuration change unit, for according to reception The sets of threads configuration change order arrived, is matched by the sets of threads that Maven item objects model is changed in the configuration information Confidence breath.
In the above embodiment of the present invention, optionally, further includes: Authority Verification information acquisition unit, for it is described from Before dynamicization test cell selects the test script and/or the test case set, the automatic test order is obtained Sender Authority Verification information;Authority Verification unit, for judging that the sender is according to the Authority Verification information It is no that there is the permission for calling the corresponding test script and/or the test case set to be tested, wherein when judgement is tied When fruit is that the sender has the permission, into described according to the test-types, selected by the interface based on Jmeter The step of selecting corresponding test script and/or test case set.
In the above embodiment of the present invention, optionally, the Authority Verification information includes biological information and abiotic information, Wherein, the biological information includes one or more in finger print information, palm print information, acoustic information and iris information;It is described Abiotic information includes user identity identification code and/or the Permission Levels of user.
The third aspect, the embodiment of the invention provides a kind of terminals, comprising: at least one processor;And with it is described extremely The memory of few processor communication connection;Wherein, the memory, which is stored with, to be executed by least one described processor Instruction, described instruction is arranged to be used for executing method described in any one of above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, and it is executable to be stored with computer Instruction, the computer executable instructions are for executing method flow described in any one of above-mentioned first aspect.
Above technical scheme is required to the skill for being separately configured and safeguarding for interface testing in the related technology and performance test Art problem can promote the convenience of automatic test by same set of frame application in interface testing and performance test.
Specifically, firstly, being only provided with one in a test system with posting port, either which kind of test command, all The work of test script and/or test case is only called with posting port by this.It should be to be based on posting port The interface of Jmeter, Jmeter be based on java exploitation a open source pressure test tool, have the function of it is small in size, complete, make With convenient advantage.On this basis, sets of threads quantity and scheduler Boolean can be indicated in the configuration information of test, by The sets of threads quantity possessed by different test-types is different with scheduler Boolean, therefore, according to the line in configuration information Journey group quantity and scheduler Boolean can determine the test-types of this test.Wherein, test-types include but is not limited to property It can test and interface testing.Then, according to the configuration information and the corresponding test script of this test-types can be called And/or test case set carries out automatic test.
Wherein, it has extracted sets of threads quantity is abstract in configuration information, it specifically, can be by the publication of Maven together The characteristic enjoyed configures sets of threads in write-in configuration file, wherein Maven is a kind of advanced project management tool, can be with clear The information of clear mode defined item purpose composition and publication project.In this way, the interface based on Jmeter can be directly according to configuration Sets of threads configuration and scheduler Boolean in information determine that this test is performance test or interface testing.
In the above-mentioned technical solutions, Jmeter is realized in conjunction with Maven, on the basis of Jmeter is in conjunction with Maven, Match posting port using same, it is only necessary to modify the test script and/or test case set that configuration file is pointed out, it will be able into Enter different types of test, in other words, can same set of frame performance test and interface testing be greatly reduced automation and surveyed The workload of configuration and maintenance during examination, has saved manpower and time cost, improve test the degree of automation and The high efficiency and practicability of test.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 shows the flow chart of the automated testing method of one embodiment of the present of invention;
Fig. 2 shows the flow charts of the automated testing method of another embodiment of the invention;
Fig. 3 shows the flow chart of the automated testing method of yet another embodiment of the present invention;
Fig. 4 shows the block diagram of the automatic test device of one embodiment of the present of invention;
Fig. 5 shows the block diagram of the terminal of one embodiment of the present of invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning.
Fig. 1 shows the flow chart of the automated testing method of one embodiment of the present of invention.
As shown in Figure 1, the process of the automated testing method of one embodiment of the present of invention includes:
Step 102, according to automatic test order, the configuration information of target detection is obtained.
Step 104, according to the sets of threads quantity and scheduler Boolean in the configuration information, determine that the automation is surveyed The test-types of examination order instruction.
Firstly, being only provided with one in a test system with posting port, either which kind of test command, all only pass through this A work that test script and/or test case are called with posting port.This is the interface based on Jmeter with posting port, Jmeter is that have the advantages that small in size, function is complete, easy to use based on a open source pressure test tool of java exploitation. On this basis, sets of threads quantity and scheduler Boolean can be indicated in the configuration information of test, due to different tests Sets of threads quantity possessed by type is different with scheduler Boolean, therefore, according to the sets of threads quantity and tune in configuration information Device Boolean is spent, can determine the test-types of this test.Wherein, test-types include but is not limited to performance test and interface Test.
Step 106, according to the test-types, by the interface based on Jmeter select corresponding test script and/or Test case set;
Step 108, the mesh is executed according to the configuration information, the test script and/or the test case set Mapping examination.
Then, the corresponding test script of this test-types and/or test case set can called to be automated Test.
Above technical scheme is required to the skill for being separately configured and safeguarding for interface testing in the related technology and performance test Art problem can promote the convenience of automatic test by same set of frame application in interface testing and performance test.Wherein, Sets of threads quantity is abstracted and has been extracted in configuration information, it specifically, can be by the publication and shared characteristic of Maven, by line In journey group configuration write-in configuration file, wherein Maven is a kind of advanced project management tool, can be defined in a manner of clearly The composition of project and the information for issuing project.In this way, the interface based on Jmeter can be directly according to the thread in configuration information Group configuration and scheduler Boolean determine that this test is performance test or interface testing.
In the above-mentioned technical solutions, Jmeter is realized in conjunction with Maven, on the basis of Jmeter is in conjunction with Maven, Match posting port using same, it is only necessary to modify the test script and/or test case set that configuration file is pointed out, it will be able into Enter different types of test, in other words, can same set of frame performance test and interface testing be greatly reduced automation and surveyed The workload of configuration and maintenance during examination, has saved manpower and time cost, improve test the degree of automation and The high efficiency and practicability of test.
Fig. 2 shows the flow charts of the automated testing method of another embodiment of the invention.
As shown in Fig. 2, the process of the automated testing method of another embodiment of the invention includes:
Step 202, configuration information is written into sets of threads configuration information, wherein the sets of threads configuration information includes described Sets of threads quantity.
Configuration information is the information of each attribute and step in the environment and instruction test process for be used to configure automatic test, Wherein, sets of threads configuration information indicates that needing to be arranged how many threads executes test, assembles in confidence breath in thread, including title, The contents such as sets of threads quantity, scheduler configuration, number of users when how many a users, i.e. automatic test is indicated with sets of threads quantity It measures, starting time, end time, duration of test script etc. is then set in scheduler configuration.
Step 204, according to the sets of threads configuration change order received, by described in the change of Maven item objects model The sets of threads configuration information in configuration information.
If configuration information is written in sets of threads configuration information as a result, when needing to change sets of threads configuration, as long as matching It is modified in confidence breath, sets of threads configuration information is repaired one by one instead of the client for opening Jmeter in the related technology The technical solution changed enormously simplifies the maintenance cost of sets of threads configuration, and the maintenance for reducing sets of threads configuration is automatic to testing Change horizontal influence.
Changing sets of threads configuration information is by Maven item objects model realization, and Maven item objects model can provide Advanced project management tool.Since the default building rule of Maven has higher reusability, so usually with two or three row Maven, which constructs script, to use the information of clearly mode defined item purpose composition and publication project, realize that building is simple Project.
In the technical scheme, it when receiving sets of threads configuration change order, can be issued together by Maven project The characteristic enjoyed updates the configuration of updated sets of threads in configuration file, without opening the client of each Jmeter more New thread group configuration information automatically updates to realize in the client of each Jmeter, enormously simplifies sets of threads configuration Maintenance cost, reduce influence of the maintenance to test automation level of sets of threads configuration.Therefore, by way of Maven The change for realizing sets of threads configuration information improves the efficiency of management and change convenience to sets of threads configuration information.
Step 206, the configuration information according to automatic test order, after obtaining the change of target detection.
Step 208, judge whether the sets of threads quantity in the configuration information is within the scope of predetermined quantity, and the tune It spends whether device Boolean is predetermined value, when the judgment result is yes, enters step 210, when the judgment result is no, enter step 212。
I.e. in the due configuration information of interface testing institute, sets of threads quantity is within the scope of predetermined quantity, and scheduler cloth Value of is predetermined value (scheduler Boolean is 0 or 1), whereas if being unsatisfactory for this configuration information, then explanation this time test is property It can test.
Step 210, the test-types for determining the automatic test order instruction are the interface testing.
Step 212, the test-types for determining the automatic test order instruction are the performance test.
Step 214, according to the test-types, by the interface based on Jmeter select corresponding test script and/or Test case set;
Step 216, it is held according to configuration information, the test script and/or the test case set after the change The row target detection.
The test-types include interface testing and performance test, wherein the interface testing is corresponding with interface testing foot This and interface testing use-case set, the performance test are corresponding with performance test script and performance test case set.Work as step 208 judging result is within the scope of the predetermined quantity for the sets of threads quantity in the configuration information, and the scheduler When Boolean is the predetermined value, illustrate that configuration information configuration information corresponding with interface testing is consistent, therefore current test is to connect Interface based on Jmeter, can be switched to the state of callable interface test script and interface testing use-case set by mouth test, For interface testing use.Conversely, illustrating that configuration information configuration information corresponding with interface testing is not consistent, then configuration can be assert Information configuration information corresponding with performance test is consistent, therefore current test is performance test, can cut the interface based on Jmeter The state that can call performance test script and performance test case set is shifted to, for performance test use.
By above technical scheme, on the basis of Jmeter is in conjunction with Maven, matches posting port using same, only need Modify the test script and/or test case set that configuration file is pointed out, it will be able to enter different types of test, change speech It, can greatly reduce the configuration and maintenance in automatic test course for same set of frame performance test and interface testing Workload, saved manpower and time cost, improved the degree of automation of test and the high efficiency of test and practicability.
Fig. 3 shows the flow chart of the automated testing method of yet another embodiment of the present invention.
As shown in figure 3, the process of the automated testing method of yet another embodiment of the present invention includes:
Step 302, according to automatic test order, the configuration information of target detection is obtained.
Step 304, according to the sets of threads quantity and scheduler Boolean in the configuration information, determine that the automation is surveyed The test-types of examination order instruction.
Step 306, the Authority Verification information of the sender of the automatic test order is obtained.
The Authority Verification information includes biological information and abiotic information, wherein the biological information includes fingerprint letter It is one or more in breath, palm print information, acoustic information and iris information;The abiotic information includes user identity identification code And/or the Permission Levels of user.
A variety of Authority Verification information can be used alone, and can also be applied in combination, further to promote the peace of this Authority Verification Quan Xing escorts for safety test.
Step 308, according to the Authority Verification information, judge whether the sender has and call the corresponding test The permission that script and/or the test case set are tested enters step 310 when the judgment result is yes, when judgement is tied When fruit is no, terminate process.
That is, needing whether the sender of verification test order has permission starting to this survey before being tested The test of type is tried, to promote Security of test, other people maloperations or malice is avoided to steal test achievement.
Step 310, according to the test-types, by the interface based on Jmeter select corresponding test script and/or Test case set;
Step 312, the mesh is executed according to the configuration information, the test script and/or the test case set Mapping examination.
Fig. 4 shows the block diagram of the automatic test device of one embodiment of the present of invention.
As shown in figure 4, the automatic test device 400 of one embodiment of the present of invention includes: configuration information acquiring unit 402, for obtaining the configuration information of target detection according to automatic test order;Test-types determination unit 404 is used for root According to the sets of threads quantity and scheduler Boolean in the configuration information, the test class of the automatic test order instruction is determined Type;Automatic test unit 406, for selecting corresponding test by the interface based on Jmeter according to the test-types Script and/or test case set;Automatic test unit 408, for according to the configuration information, the test script and/ Or the test case set executes the target detection.
The automatic test device 400 uses scheme described in any one of embodiment shown in Fig. 1 to Fig. 3, therefore, tool There are above-mentioned all technical effects, details are not described herein.Automatic test device 400 also has following technical characteristic:
In the above embodiment of the present invention, optionally, the test-types include interface testing and performance test, wherein The interface testing is corresponding with interface testing script and interface testing use-case set, and the performance test is corresponding with performance test foot Sheet and performance test case set.
In the above embodiment of the present invention, optionally, the test-types determination unit 404 is specifically used for: described in judgement Whether the sets of threads quantity in configuration information is within the scope of predetermined quantity, and whether the scheduler Boolean is predetermined value; When judging result is that sets of threads quantity in the configuration information is within the scope of the predetermined quantity, and the scheduler boolean When value is the predetermined value, determine that the test-types of the automatic test order instruction are the interface testing;Otherwise, The test-types for determining the automatic test order instruction are the performance test.
In the above embodiment of the present invention, optionally, further includes: configuration information edit cell, for matching confidence described Before breath acquiring unit 402 obtains the configuration information of the target detection, the configuration is written into sets of threads configuration information Information, wherein the sets of threads configuration information includes the sets of threads quantity;Sets of threads configuration change unit connects for basis The sets of threads configuration change order received, the sets of threads in the configuration information is changed by Maven item objects model Configuration information.
In the above embodiment of the present invention, optionally, further includes: Authority Verification information acquisition unit, for it is described from Before dynamicization test cell 406 selects the test script and/or the test case set, the automatic test life is obtained The Authority Verification information of the sender of order;Authority Verification unit, for judging the sender according to the Authority Verification information Whether there is the permission for calling the corresponding test script and/or the test case set to be tested, wherein work as judgement When as a result there is the permission for the sender, into described according to the test-types, pass through the interface based on Jmeter The step of selecting corresponding test script and/or test case set.
In the above embodiment of the present invention, optionally, the Authority Verification information includes biological information and abiotic information, Wherein, the biological information includes one or more in finger print information, palm print information, acoustic information and iris information;It is described Abiotic information includes user identity identification code and/or the Permission Levels of user.
Fig. 5 shows the block diagram of the terminal of one embodiment of the present of invention.
As shown in figure 5, the terminal 500 of one embodiment of the present of invention, including at least one processor 502;And with institute State the processor 504 of the communication connection of at least one processor 502;Wherein, the memory be stored with can by it is described at least one The instruction that processor 504 executes, described instruction are arranged to be used for executing above-mentioned Fig. 1 to described in any one of Fig. 3 embodiment Scheme.Therefore, which has and Fig. 1 is to the identical technical effect of any one of Fig. 3 embodiment, and details are not described herein.
In addition, computer executable instructions are stored with the embodiment of the invention provides a kind of computer readable storage medium, The computer executable instructions are used to execute above-mentioned Fig. 1 to the method flow described in any one of Fig. 3 embodiment.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, according to the technical solution of the present invention, realizes Jmeter is in conjunction with Maven, on the basis of Jmeter is in conjunction with Maven, matches posting port using same, it is only necessary to which modification is matched Set the test script and/or test case set that file is pointed out, it will be able to enter different types of test, it in other words, can will be same A set of frame performance test and interface testing greatly reduce the workload of the configuration and maintenance in automatic test course, Manpower and time cost have been saved, the degree of automation of test and the high efficiency of test and practicability are improved.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement Or event) when " or " in response to detection (condition or event of statement) ".
It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to personal computer (PersonalComputer, PC), personal digital assistant (PersonalDigitalAssistant, PDA), wireless handheld are set Standby, tablet computer (TabletComputer), mobile phone, MP3 player, MP4 player etc..
In several embodiments provided by the present invention, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- OnlyMemory, ROM), random access memory (RandomAccessMemory, RAM), magnetic or disk etc. are various can be with Store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of automated testing method characterized by comprising
According to automatic test order, the configuration information of target detection is obtained;
According to the sets of threads quantity and scheduler Boolean in the configuration information, the automatic test order instruction is determined Test-types;
According to the test-types, corresponding test script and/or test case set are selected by the interface based on Jmeter;
The target detection is executed according to the configuration information, the test script and/or the test case set.
2. automated testing method according to claim 1, which is characterized in that
The test-types include interface testing and performance test, wherein
The interface testing is corresponding with interface testing script and interface testing use-case set, and the performance test is corresponding with performance survey Training sheet and performance test case set.
3. automated testing method according to claim 2, which is characterized in that the line according in the configuration information Journey group quantity and scheduler Boolean, the step of determining the test-types of automatic test order instruction, comprising:
Judge whether the sets of threads quantity in the configuration information is within the scope of predetermined quantity, and the scheduler Boolean is No is predetermined value;
When judging result is that sets of threads quantity in the configuration information is within the scope of the predetermined quantity, and the scheduler When Boolean is the predetermined value, determine that the test-types of the automatic test order instruction are the interface testing;
Otherwise, it determines the test-types of the automatic test order instruction are the performance test.
4. automated testing method according to claim 1, which is characterized in that described according to automatic test order, Before the step of obtaining the configuration information of target detection, further includes:
The configuration information is written into sets of threads configuration information, wherein the sets of threads configuration information includes the sets of threads number Amount;
The automated testing method further include:
According to the sets of threads configuration change order received, changed in the configuration information by Maven item objects model The sets of threads configuration information.
5. automated testing method according to any one of claim 1 to 4, which is characterized in that described according to Test-types, before the step of selecting corresponding test script and/or test case set by interface based on Jmeter, also Include:
Obtain the Authority Verification information of the sender of the automatic test order;
According to the Authority Verification information, judges whether the sender has and call the corresponding test script and/or institute State the permission that test case set is tested, wherein when judging result is that the sender has the permission, into institute It states according to the test-types, corresponding test script and/or test case set is selected by the interface based on Jmeter Step.
6. automated testing method according to claim 5, which is characterized in that
The Authority Verification information includes biological information and abiotic information, wherein
The biological information includes one or more in finger print information, palm print information, acoustic information and iris information;
The abiotic information includes user identity identification code and/or the Permission Levels of user.
7. a kind of automatic test device characterized by comprising
Configuration information acquiring unit, for obtaining the configuration information of target detection according to automatic test order;
Test-types determination unit, for determining institute according to the sets of threads quantity and scheduler Boolean in the configuration information State the test-types of automatic test order instruction;
Automatic test unit, for selecting corresponding test foot by the interface based on Jmeter according to the test-types Sheet and/or test case set;
Automatic test unit, for being executed according to the configuration information, the test script and/or the test case set The target detection.
8. automatic test device according to claim 7, which is characterized in that
The test-types include interface testing and performance test, wherein
The interface testing is corresponding with interface testing script and interface testing use-case set, and the performance test is corresponding with performance survey Training sheet and performance test case set.
9. a kind of terminal characterized by comprising at least one processor;And connect at least one described processor communication The memory connect;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, and described instruction is arranged to use Method described in any one of execution the claims 1 to 6.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer executable instructions, the computer can It executes instruction for executing such as method flow described in any one of claims 1 to 6.
CN201811535095.1A 2018-12-14 2018-12-14 Automated testing method and device, terminal and computer readable storage medium Pending CN109885473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535095.1A CN109885473A (en) 2018-12-14 2018-12-14 Automated testing method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535095.1A CN109885473A (en) 2018-12-14 2018-12-14 Automated testing method and device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109885473A true CN109885473A (en) 2019-06-14

Family

ID=66925142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535095.1A Pending CN109885473A (en) 2018-12-14 2018-12-14 Automated testing method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109885473A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110896362A (en) * 2019-11-05 2020-03-20 泰康保险集团股份有限公司 Fault detection method and device
CN112180890A (en) * 2019-07-05 2021-01-05 北京新能源汽车股份有限公司 Test case generation method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298595A (en) * 2014-09-29 2015-01-21 百视通网络电视技术发展有限责任公司 Automatic testing method and testing system
CN105468519A (en) * 2015-11-17 2016-04-06 中国建设银行股份有限公司 Performance-testing tool control method and device
US20170322873A1 (en) * 2016-05-05 2017-11-09 Oracle International Corporation Methods, systems, and computer readable media for automated generation of test files and testing network equipment using same
CN108614774A (en) * 2018-04-24 2018-10-02 百度在线网络技术(北京)有限公司 Automated testing method and device
CN108845950A (en) * 2018-08-03 2018-11-20 平安科技(深圳)有限公司 Test device, the method for test and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298595A (en) * 2014-09-29 2015-01-21 百视通网络电视技术发展有限责任公司 Automatic testing method and testing system
CN105468519A (en) * 2015-11-17 2016-04-06 中国建设银行股份有限公司 Performance-testing tool control method and device
US20170322873A1 (en) * 2016-05-05 2017-11-09 Oracle International Corporation Methods, systems, and computer readable media for automated generation of test files and testing network equipment using same
CN108614774A (en) * 2018-04-24 2018-10-02 百度在线网络技术(北京)有限公司 Automated testing method and device
CN108845950A (en) * 2018-08-03 2018-11-20 平安科技(深圳)有限公司 Test device, the method for test and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SSZMVB1234: "JMeter性能测试,完整入门篇", 《HTTPS://BLOG.CSDN.NET/U012111923/ARTICLE/DETAILS/80705141》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112180890A (en) * 2019-07-05 2021-01-05 北京新能源汽车股份有限公司 Test case generation method, device and equipment
CN112180890B (en) * 2019-07-05 2022-01-07 北京新能源汽车股份有限公司 Test case generation method, device and equipment
CN110896362A (en) * 2019-11-05 2020-03-20 泰康保险集团股份有限公司 Fault detection method and device

Similar Documents

Publication Publication Date Title
CN104978258B (en) Automatic software test method and system
CN103941871B (en) The method and apparatus for controlling the hardware running status of intelligent terminal
CN109885473A (en) Automated testing method and device, terminal and computer readable storage medium
CN105095062B (en) Applied program testing method and system
CN110525823A (en) A kind of method, apparatus and system that monitoring rubbish is put on by classification
CN106713674B (en) Call processing method and incoming call handling device
CN107360265B (en) A kind of equipment exclusive identification code acquisition methods, device and mobile terminal
JP2018014765A5 (en)
CN104751350B (en) A kind of method for information display and terminal
CN107765853A (en) Using method for closing, device, storage medium and electronic equipment
CN106296135A (en) Event-prompting method, device and terminal
CN108632089A (en) Test management method, device, equipment and the computer storage media of terminal
CN110018962A (en) Service adjustment method and system based on distributed service framework and registration center
CN106776350A (en) The accurate method of testing and device of a kind of program
CN109215293A (en) A kind of method for detecting fatigue driving, device and vehicle-mounted terminal equipment
CN110493812A (en) Processing method, device, system, processor and the main control device of distribution test
CN109558297A (en) EMS memory management process and device
CN109189437A (en) Software upgrading reminding method, device, computer equipment and readable storage medium storing program for executing
CN108920370A (en) Compatibility issue detection method, device and equipment
CN106713666A (en) Recognition display method and device of verification information
CN104581808B (en) Test the method, device and mobile terminal of mobile network property
CN109885474A (en) Test case edit methods and device, terminal and computer readable storage medium
CN109783287A (en) Test instruction generation method, system, terminal and medium based on configuration file
CN110502429A (en) Management method, device, equipment and the storage medium of test macro
CN109032956A (en) A kind of interface test method and device

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