CN107291623A - A kind of applied program testing method and device - Google Patents
A kind of applied program testing method and device Download PDFInfo
- Publication number
- CN107291623A CN107291623A CN201710640868.1A CN201710640868A CN107291623A CN 107291623 A CN107291623 A CN 107291623A CN 201710640868 A CN201710640868 A CN 201710640868A CN 107291623 A CN107291623 A CN 107291623A
- Authority
- CN
- China
- Prior art keywords
- test
- script
- application program
- tested
- test script
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
This application discloses a kind of applied program testing method and device, methods described includes:Test request is received, wherein, the test request includes the identification information of application program to be tested and the first test script;According to the identification information of first test script, first test script is determined;According to first test script, the application program to be tested is tested.The method and apparatus of the embodiment of the present application, the test environment of test lead is constantly in running status, so that after the test request that research and development end is sent is received, can be according to the identification information of the first test script, it is quick to determine the first test script, and then according to the first test script, OnNow treats the test of test application program, effectively increases the testing efficiency of application program in process of application development.
Description
Technical field
The application is related to Application testing technical field, more particularly to a kind of applied program testing method and device.
Background technology
In process of application development, application requirement design is generally involved, source code is write, software test etc.
Stage.
In actual applications, the different application development stages has often performed with the developer of different departments
Into for example:The source code writing phase of application program is completed by the research staff of research and development department, and the software test stage is by test department
The tester of door completes.Test of the tester to application program frequently relies on the research and development progress of research staff, but by
It is separate in interdepartmental work so that tester can not be in time to research staff in process of application development
The application program of research and development is tested, and causes testing efficiency relatively low.
How to improve Application testing efficiency in process of application development is technical problems to be solved in this application.
The content of the invention
The embodiment of the present application provides a kind of applied program testing method and device, to solve existing application development
During Application testing it is less efficient the problem of.
The embodiment of the present application provides a kind of applied program testing method, including:
Test request is received, wherein, the test request includes the mark of application program to be tested and the first test script
Know information;
According to the identification information of first test script, first test script is determined;
According to first test script, the application program to be tested is tested.
Alternatively, according to the identification information of first test script, first test script is determined, including:
From script bank corresponding with the application program to be tested, it is determined that the identification information with first test script
Corresponding first test script.
Alternatively, first test script is the test script that functional test is carried out to the application program to be tested;
According to first test script, the application program to be tested is tested, including:
According to first test script, functional test is carried out to the application program to be tested.
Alternatively, methods described also includes:
It is determined that carrying out the test result of functional test to the application program to be tested;
According to the test result that functional test is carried out to the application program to be tested, update and the application journey to be tested
The corresponding script bank of sequence.
Alternatively, script bank corresponding with the application program to be tested is updated, including:
Parameter modification is carried out to the test script in the script bank;And/or,
Instrument is recorded by script script recording is carried out to the application program to be tested, and obtained test will be recorded
Script is stored in the script bank.
Alternatively, methods described also includes:
The application program to be tested is carried out the test result of functional test for not by when, repeat function survey
Try is rapid, until it is the stable version application program to be tested passed through to get test result;
Wherein, the functional test step includes:The test knot of functional test is carried out according to the application program to be tested
Really, script bank corresponding with the application program to be tested is updated;Receive and function survey is carried out according to the application program to be tested
The test result of examination is adjusted the application program to be tested after the adjustment obtained after processing to the application program to be tested;From
The second test script for carrying out functional test to the application program to be tested is determined in script bank after renewal;According to institute
The second test script is stated, functional test is carried out to the application program to be tested after the adjustment.
Alternatively, methods described also includes:
Determined from the script bank after last time renewal for carrying out performance test to the application program to be tested
3rd test script;
According to the 3rd test script, performance test is carried out to the stable version application program to be tested.
Alternatively, the adjustment processing includes eliminating bug processing and/or code optimization processing.
The embodiment of the present application also provides a kind of Application testing device, including:Receiving unit, determining unit and test are single
Member, wherein:
Receiving unit, for receiving test request, wherein, the test request includes application program to be tested and first
The identification information of test script;
Determining unit, for the identification information according to first test script, determines first test script;
Test cell, for according to first test script, testing the application program to be tested.
The embodiment of the present application also provides a kind of Application testing device, including:Memory and processor, wherein:
Memory, for depositing program;
Processor, the program for performing the memory storage, and specifically perform:
Test request is received, wherein, the test request includes the mark of application program to be tested and the first test script
Know information;
According to the identification information of first test script, first test script is determined;
According to first test script, the application program to be tested is tested.
At least one above-mentioned technical scheme that the embodiment of the present application is used can reach following beneficial effect:
The test environment of test lead is constantly in running status so that research and develop being answered including to be tested for end transmission when receiving
After program and the test request of the identification information of the first test script, test lead can be believed according to the mark of the first test script
Breath, it is quick to determine the first test script, and then according to the first test script, OnNow treats the test of test application program,
Effectively increase the testing efficiency of application program in process of application development.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please is used to explain the application, does not constitute the improper restriction to the application.In the accompanying drawings:
A kind of schematic flow sheet for applied program testing method that Fig. 1 provides for the embodiment of the present application;
The schematic flow sheet for the application development that Fig. 2 provides for the embodiment of the present application;
Fig. 3 is the structural representation of one embodiment electronic equipment of the application;
A kind of structural representation for Application testing device that Fig. 4 provides for the embodiment of the present application.
Embodiment
In order to realize the purpose of the application, the embodiment of the present application provides a kind of applied program testing method and device, described
Method includes:The test environment of test lead is constantly in running status so that when receive research and development end send include it is to be tested
After the test request of the identification information of application program and the first test script, test lead can be according to the mark of the first test script
Information, it is quick to determine the first test script, and then according to the first test script, OnNow treats the survey of test application program
Examination, effectively increases the testing efficiency of application program in process of application development.
Technical scheme is clearly and completely retouched with reference to the application specific embodiment and corresponding accompanying drawing
State.Obviously, described embodiment is only some embodiments of the present application, rather than whole embodiments.Based in the application
Embodiment, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made,
Belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
Embodiment 1
In order to solve the problem of Application testing is less efficient in process of application development in the prior art, the application
Embodiment 1 provides a kind of applied program testing method.The applied program testing method of the embodiment of the present application 1 is applied to application program
In development platform, the application development platform is the platform for development and application program, including researches and develops end and test lead.Using
Program research staff can log in research and development end and carry out application program research and development, it is possible to which the application program to be tested for obtaining research and development is sent out
It is sent to test lead.Application testing personnel can log in test lead, and what application program research staff research and development were obtained is to be tested
Application program sets test condition, for example:Select test script and test order etc. is set, it is possible to be uploaded to test condition
Server end.The test condition that test lead is set according to Application testing personnel researches and develops what is obtained to application program research staff
Application program to be tested is tested.
A kind of schematic flow sheet for applied program testing method that Fig. 1 provides for the embodiment of the present application.Methods described can be with
It is as follows.
Step 100:Receive test request.
Wherein, test request includes the identification information of application program to be tested and the first test script.
Application program research staff carries out application program research and development by application development platform, the obtained for research and development
One version application program (hereinafter referred to as APP 1.0), it is necessary to enter to APP 1.0 before application program user oriented is disclosed
Row test, it is ensured that there is no problem for its function and performance, can normally run.
Research staff is sent to test lead by APP 1.0 and to the testing requirement of the APP 1.0 from research and development end.Tester
Answered in the test lead foundation version repository that is used to store application program corresponding with the identification information of application program and for storing
With the script bank of program test script, and the APP 1.0 received is stored in the version repository;In addition, tester always according to
The testing requirements corresponding with its of APP 1.0 received, instrument is recorded by script, and recording obtains the corresponding tests of APP 1.0
Script, the corresponding test scripts of APP 1.0 that recording is obtained are stored in script bank, and then corresponding by the APP 1.0
Test script, realizes the automatic test to APP 1.0.
Similarly, each version application program being stored with the version repository of test lead in process of application development, and in pin
Be stored with test script corresponding with each version application program in this storehouse.
In the embodiment of the present application, the test script stored in script bank includes:Basic function script, regression test script,
Core Feature use-case, variable parameter data, safety test script, history failure use-case.
In actual applications, research staff constantly can carry out current version renewal or upgraded version more to application program
Newly.For the application program after renewal, it is still desirable to after test, formal it could be used to user's issue.
The test environment of test lead is constantly in version repository, script bank, test terminal of running status, i.e. test lead etc.
In state can be called at any time.Research and develop end research staff can research and development any stage to test lead initiate test request,
Test lead is received being capable of OnNow test after test request.
, it is necessary to send test environment information request, test to test lead in advance before research staff initiates test request
Termination is received after test environment request, and the test environment information of current test lead is pushed to research and development end, including:Test can be used
End message, script bank information.
Research and development termination is received after the test environment information of test lead transmission, according to the application to be tested of current development
The testing requirement of program, chooses the first test script for meeting testing requirement, from available terminal information from script bank information
Choose the test terminal for meeting testing requirement.
Research and development end is determined meet the first test script of testing requirement after, being sent to test lead includes application to be tested
The test request of program, the identification information of the first test script so that test lead is received and can opened immediately after the test request
Dynamic test.
In the embodiment of the present application, the model of test terminal can also be included in test request, test lead is according to receiving
The model of terminal is tested, it is determined that test terminal corresponding with the model, and then application program to be tested is arranged on test terminal
In.
Step 102:According to the identification information of the first test script, the first test script is determined.
In the embodiment of the present application, according to the identification information of the first test script, the first test script is determined, including:
From script bank corresponding with application program to be tested, it is determined that corresponding with the identification information of the first test script
One test script.
Because the test environment of test lead is constantly in the version repository, script bank, test terminal of running status, i.e. test lead
Etc. being in that state can be called at any time., can be by API server from script bank after test lead receives test request
Called in test script corresponding with application program to be tested corresponding with the identification information of the first test script in test request
The first test script.
Step 104:According to the first test script, treat test application program and tested.
In test lead, choose the first test script, and test terminal in install application program to be tested it
Afterwards, according to the first test script, the application program to be tested in test terminal is tested.
The embodiment of the present application, the first test script is to treat the test script that test application program carries out functional test;
According to the first test script, treat test application program and tested, including:
According to the first test script, treat test application program and carry out functional test.
In the embodiment of the present application, in addition to:
It is determined that treating the test result that test application program carries out functional test;
According to the test result for treating test application program progress functional test, update corresponding with application program to be tested
Script bank.
Be stored with the application program of at least one version in version repository, is stored with and each version application program pair in script bank
The test script answered.
The application program to be tested that test lead is sent to research and development end is carried out after functional test, can be according to test result pair
The corresponding test script stored in script bank is updated.
For example, the application program for three versions that are stored with version repository:APP 1.0, APP 1.1 and APP1.2.Script
Be stored with test script corresponding with the application program of three versions in storehouse.
When the upgraded version that the application program to be tested that includes of test request that research and development end is sent is APP 1.2, i.e., pair
, can be according to test result to script bank after functional test is carried out to APP 1.2 when APP 1.2 has been carried out using updating
Middle storage is updated with the corresponding test scripts of APP 1.2, make it that the test script in the script bank after updating is suitable
The test script applied assigned in latest edition.
In the embodiment of the present application, script bank corresponding with application program to be tested is updated, including:
Parameter modification is carried out to the test script in script bank;And/or,
Instrument is recorded by script and treats test application program progress script recording, and obtained test script will be recorded
It is stored in script bank.
When according to test result determine application program to be tested be to first version application program functional upgrade when,
Need to only parameter modification be carried out to the corresponding test script of upgrade function in script bank;It is to be tested when being determined according to test result
Application program is when New function is added to first version application program, it is necessary to by script recording instrument, enter to what's new
Travel far and wide this recording, and obtained test script will be recorded and be stored in script bank.
Obtained application program to be tested is developed for research staff, in test process, is divided into functional test and performance
Test, is properly termed as stablizing version application program to be tested by the application program to be tested of functional test, represents its each function
Module can normally be run;Performance test is carried out to stablizing version application program to be tested, it is to be measured by the stable version of performance test
Examination application program is properly termed as an edition application program of reaching the standard grade, and represents that it can be used with user oriented issue.
In the embodiment of the present application, in addition to:
Treat test application program carry out functional test test result for not by when, repeat functional test step
Suddenly, until it is the stable version application program to be tested passed through to get test result;
Wherein, functional test step includes:According to application program to be tested carry out functional test test result, update with
The corresponding script bank of application program to be tested;Receive and the test result of functional test is carried out to be measured according to application program to be tested
Examination application program is adjusted the application program to be tested after the adjustment obtained after processing;Determine to use from the script bank after renewal
In the second test script for treating test application program progress functional test;According to the second test script, to be measured after adjustment
Try application program and carry out functional test.
In the embodiment of the present application, adjustment processing includes eliminating bug processing and/or code optimization processing.
The application program to be tested researched and developed for research staff, is carrying out the functional test stage, it may be necessary to through excessive wheel
Test modifications, can just obtain the stable version application program to be tested by test.
Treat after a test application program functional test of progress, if test result is does not pass through, needing will test knot
Fruit feeds back to research and development end so that research staff treats test application program according to test result and carries out eliminating bug processing and/or generation
Code optimization processing, the application program to be tested after being adjusted.
In addition, treat test application program carry out a functional test after, can according to test result, pair with it is to be tested
The corresponding script bank of application program is updated, it is ensured that the test script in script bank is the test for adapting to latest edition application
Script.
Application program to be tested after adjustment is sent to test lead by research and development end;Test lead is from according to last test result
The second test script for treating test application program progress functional test is selected in script bank after renewal, is surveyed according to second
Training this application program to be tested after adjustment is tested again.
When the application program to be tested after to adjustment test result still for not by when, repeat according to test result
The operation of application program-functional test to be tested after script bank-reception adjustment processing is updated, is logical until obtaining test result
The stable version application program to be tested crossed.
It should be noted that the first test script and the second test script can also be differed, not done here with identical
It is specific to limit.First test script and the second test script are functional test script, lay particular emphasis on basic function script, regression test
Script and Core Feature use-case, for variable parameter data, safety test script and history failure use-case etc. using less.
In the embodiment of the present application, in addition to:
Determined from the script bank after last time renewal for treating the test application program carries out performance test the 3rd
Test script;
According to the 3rd test script, performance test is carried out to stablizing version application program to be tested.
It is used to treat the 3rd test that test application program carries out performance test in the script bank updated according to last time
Script, performance test is carried out for the stable version application program to be tested by functional test.
It should be noted that when carrying out performance test to stablizing version application program to be tested, the script bank of application be
Script bank after functional test stage renolation.
It should be noted that the 3rd test script is performance test script, variable parameter data, safety test pin are laid particular emphasis on
Sheet and history failure use-case, are used less for basic function script, regression test script and Core Feature use-case etc..
When carrying out performance test to stablizing version application program to be tested, without updating script bank.
When to stablize version application program to be tested carry out the test result of performance test for not by when, it is necessary to which test is tied
Fruit feedback research and development end so that research staff is adjusted processing to stablizing version application program to be tested, and to adjustment processing after
The test operation of stable version application program perform function test-performance test to be tested, until obtaining by the upper of performance test
Line version application program, and then edition application program user oriented issue that will reach the standard grade uses.
The technical scheme that the embodiment of the present application is recorded, the test environment of test lead is constantly in running status so that when connecing
After the test request for receiving the identification information for including application program to be tested and the first test script that research and development end is sent, test lead
Can be quick to determine the first test script according to the identification information of the first test script, and then according to the first test script, immediately
Start the test for treating test application program, effectively increase the testing efficiency of application program in process of application development.
Embodiment 2
The schematic flow sheet for the application development that Fig. 2 provides for the embodiment of the present application.
Step 200:Research staff carries out the exploitation of application source code, carries out the research and development of application program or eliminate to answer
With bug or Optimized code in program etc., and create daily build.
Wherein, daily build means automatically, daily, intactly builds whole code tree.(translator presses:" code tree ",
Original text is source tree, means that, by the catalogue of whole project source code, subdirectory, the position of file is as solid in advance as possible
Decide, so on stream between modules, the relative position between each file is all without confusion.
Step 202:Research staff carries out joint debugging of testing oneself to the application program developed, to detect each function of application program
Whether data flow and controlling stream between the correctness of intermodule interface, each functional module realize its function, Yi Jiji according to design
Into the correctness of rear allomeric function.Application program to be tested is used as by the application program after joint debugging of testing oneself and is sent to test
End.
Step 204:Tester treats test application program and carries out trigger-type functional test.The side of trigger-type functional test
Method can be using the reception test request described in above-described embodiment 1 and the side according to test request OnNow functional test
Method, is repeated no more here.
Step 206:When application program to be tested is not by functional test, then functional test results are fed back into research and development
End so that research staff treats test application program and carry out eliminating the tune such as bug and/or Optimized code according to functional test results
Whole processing, the application program to be tested after being adjusted.And repeated according to the application program to be tested after adjustment according to survey
Test result updates the operation of application program-functional test to be tested after script bank-reception adjustment processing, until obtaining by work(
The stable version application program to be tested that can be tested.Concrete operation step is on the books in above-described embodiment 1, is not repeating here.
Step 208:According to the script bank obtained after renolation, performance survey is carried out to stablizing version application program to be tested
Examination.
Step 210:When stablizing version application program to be tested not by performance test, then the performance test results are fed back to
Research and develop end so that research staff carries out eliminating bug and/or excellent according to the performance test results to stablizing version application program to be tested
Change the adjustment such as code processing, the application program to be tested after being adjusted.And repeated according to the application program to be tested after adjustment
The operation of perform function test-performance test, until obtaining edition application program of reaching the standard grade by performance test.
Embodiment 3
Fig. 3 is the structural representation of one embodiment electronic equipment of the application.Fig. 3 is refer to, in hardware view, the electricity
Sub- equipment includes processor, alternatively also includes internal bus, network interface, memory.Wherein, memory may be comprising interior
Deposit, for example high-speed random access memory (Random-Access Memory, RAM), it is also possible to also including non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, the electronic equipment is also possible that other
Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, and the internal bus can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..For ease of representing, only represented in Fig. 3 with a four-headed arrow, it is not intended that only one bus or a type of
Bus.
Memory, for depositing program.Specifically, program can include program code, and described program code includes calculating
Machine operational order.Memory can include internal memory and nonvolatile memory, and provide instruction and data to processor.
Processor reads corresponding computer program into internal memory and then run from nonvolatile memory, in logical layer
Application testing device is formed on face.Processor, performs the program that memory is deposited, and specifically for performing following grasp
Make:
Test request is received, wherein, test request includes the mark letter of application program to be tested and the first test script
Breath;
According to the identification information of the first test script, the first test script is determined;
According to the first test script, treat test application program and tested.
The above-mentioned method as the embodiment of the present application 1 is performed can apply in processor, or be realized by processor.Processing
Device is probably a kind of IC chip, the disposal ability with signal.In implementation process, each step of the above method can be with
Completed by the integrated logic circuit of the hardware in processor or the instruction of software form.Above-mentioned processor can be general
Processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;Can also be digital signal processor (Digital Signal Processor, DSP), it is special integrated
Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present application.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the embodiment of the present application institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory, processor reads the information in memory, the step of completing the above method with reference to its hardware.
The electronic equipment can also carry out the method that Fig. 1 and/or Fig. 2 is performed, and realize above-described embodiment 1 and/or embodiment 2
Function, the embodiment of the present application will not be repeated here.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is held when the electronic equipment for being included multiple application programs
During row, the method that the electronic equipment can be made to perform Application testing in embodiment illustrated in fig. 1, and specifically for performing:
Test request is received, wherein, test request includes the mark letter of application program to be tested and the first test script
Breath;
According to the identification information of the first test script, the first test script is determined;
According to the first test script, treat test application program and tested.
A kind of structural representation for Application testing device that Fig. 4 provides for the embodiment of the present application.Device 400 includes:
Receiving unit 401, determining unit 402 and test cell 403, wherein:
Receiving unit 401, for receiving test request, wherein, test request includes application program to be tested and first
The identification information of test script;
Determining unit 402, for the identification information according to the first test script, determines the first test script;
Test cell 403, for according to the first test script, treating test application program and being tested.
Optionally it is determined that identification information of the unit 402 according to the first test script, determines the first test script, including:
From script bank corresponding with application program to be tested, it is determined that corresponding with the identification information of the first test script
One test script.
Alternatively, the first test script is to treat the test script that test application program carries out functional test;
Test cell 403 is treated test application program and tested according to the first test script, including:
According to the first test script, treat test application program and carry out functional test.
Alternatively, device 400 also includes:Updating block, wherein:
Determining unit, is additionally operable to determine to treat the test result that test application program carries out functional test;
Updating block, for according to treat test application program carry out functional test test result, update with it is to be tested
The corresponding script bank of application program.
Alternatively, updating block updates script bank corresponding with application program to be tested, including:
Parameter modification is carried out to the test script in script bank;And/or,
Instrument is recorded by script and treats test application program progress script recording, and obtained test script will be recorded
It is stored in script bank.
Alternatively, device 400 also includes:Retest unit, wherein:
Retest unit, for treat test application program carry out functional test test result for not by when,
Functional test step is repeated, until it is the stable version application program to be tested passed through to get test result;
Wherein, functional test step includes:According to application program to be tested carry out functional test test result, update with
The corresponding script bank of application program to be tested;Receive and the test result of functional test is carried out to be measured according to application program to be tested
Examination application program is adjusted the application program to be tested after the adjustment obtained after processing;Determine to use from the script bank after renewal
In the second test script for treating test application program progress functional test;According to the second test script, to be measured after adjustment
Try application program and carry out functional test.
Optionally it is determined that unit 402, is additionally operable to determine to be used for from the script bank after last time renewal to answer to be tested
The 3rd test script of performance test is carried out with program;
Test cell 403, is additionally operable to according to the 3rd test script, and performance survey is carried out to stablizing version application program to be tested
Examination.
Alternatively, adjusting processing includes eliminating bug processing and/or code optimization processing.
According to Application testing device, receiving unit is used to receive test request, wherein, test request includes to be measured
Try the identification information of application program and the first test script;Determining unit is used for the identification information according to the first test script, really
Fixed first test script;Test cell is used for according to the first test script, treats test application program and is tested, is effectively improved
The testing efficiency of application program in process of application development.
In the 1990s, for a technology improvement can clearly distinguish be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or application program on improvement (for changing for method flow
Enter).However, with the development of technology, the improvement of current many method flows can be considered as the straight of hardware circuit
Connect improvement.Designer nearly all obtains corresponding hardware circuit by the way that improved method flow is programmed into hardware circuit
Structure.Therefore, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, FPGA
Device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable
Gate Array, FPGA)) it is exactly such a integrated circuit, its logic function is determined by user to device programming.By designing
Personnel are voluntarily programmed a digital display circuit " integrated " on a piece of PLD, without asking chip maker designing and
Make special IC chip.Moreover, nowadays, substitution manually makes IC chip, and this programming also changes mostly
Realized with " logic compiler (logic compiler) " application program, its application program used when being write with program development
Compiler is similar, and the source code before compiling also write by handy specific programming language, and this is referred to as hardware and retouches
Predicate says (Hardware Description Language, HDL), and HDL is also not only a kind of, but has many kinds, such as
ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also should
This understands, it is only necessary to slightly programming in logic and be programmed into method flow in integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be just readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
Device and storage can by the computer readable program code (such as application program or firmware) of (micro-) computing device calculating
Machine computer-readable recording medium, gate, switch, application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but is not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that except with
Pure computer readable program code mode is realized beyond controller, can be made completely by the way that method and step is carried out into programming in logic
Obtain controller and come real in the form of gate, switch, application specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and various for realizing to including in it
The device of function can also be considered as the structure in hardware component.Or even, can be by for realizing that the device of various functions is regarded
For that not only can be the application program module of implementation method but also can be the structure in hardware component.
System, device, module or unit that above-described embodiment is illustrated, can specifically be realized by computer chip or entity,
Or realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet PC, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple application programs and/or hardware during application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using complete hardware embodiment, complete application program embodiment or connected applications program and hardware
The form of the embodiment of aspect.Moreover, the present invention can be used wherein includes computer usable program code one or more
Computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the calculating implemented
The form of machine program product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements are not only including those key elements, but also wrap
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by
Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can be with
Positioned at including in the local and remote computer-readable storage medium including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for system
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., it should be included within the scope of claims hereof.
Claims (10)
1. a kind of applied program testing method, it is characterised in that including:
Test request is received, wherein, the test request includes the mark letter of application program to be tested and the first test script
Breath;
According to the identification information of first test script, first test script is determined;
According to first test script, the application program to be tested is tested.
2. the method as described in claim 1, it is characterised in that according to the identification information of first test script, determine institute
The first test script is stated, including:
From script bank corresponding with the application program to be tested, it is determined that corresponding with the identification information of first test script
First test script.
3. the method as described in claim 1, it is characterised in that first test script is to the application program to be tested
Carry out the test script of functional test;
According to first test script, the application program to be tested is tested, including:
According to first test script, functional test is carried out to the application program to be tested.
4. method as claimed in claim 3, it is characterised in that methods described also includes:
It is determined that carrying out the test result of functional test to the application program to be tested;
According to the test result that functional test is carried out to the application program to be tested, update and the application program pair to be tested
The script bank answered.
5. method as claimed in claim 4, it is characterised in that update script bank corresponding with the application program to be tested,
Including:
Parameter modification is carried out to the test script in the script bank;And/or,
Instrument is recorded by script script recording is carried out to the application program to be tested, and obtained test script will be recorded
It is stored in the script bank.
6. method as claimed in claim 4, it is characterised in that methods described also includes:
The application program to be tested is carried out the test result of functional test for not by when, repeat functional test step
Suddenly, until it is the stable version application program to be tested passed through to get test result;
Wherein, the functional test step includes:The test result of functional test is carried out according to the application program to be tested, more
New script bank corresponding with the application program to be tested;Receive the survey that functional test is carried out according to the application program to be tested
Test result is adjusted the application program to be tested after the adjustment obtained after processing to the application program to be tested;After renewal
Script bank in determine the second test script for carrying out functional test to the application program to be tested;According to described second
Test script, functional test is carried out to the application program to be tested after the adjustment.
7. method as claimed in claim 6, it is characterised in that methods described also includes:
Determined from the script bank after last time renewal for carrying out the 3rd of performance test to the application program to be tested
Test script;
According to the 3rd test script, performance test is carried out to the stable version application program to be tested.
8. method as claimed in claim 6, it is characterised in that the adjustment processing includes eliminating bug processing and/or code is excellent
Change is handled.
9. a kind of Application testing device, it is characterised in that including:Receiving unit, determining unit and test cell, wherein:
Receiving unit, for receiving test request, wherein, the test request includes application program to be tested and the first test
The identification information of script;
Determining unit, for the identification information according to first test script, determines first test script;
Test cell, for according to first test script, testing the application program to be tested.
10. a kind of Application testing device, it is characterised in that including:Memory and processor, wherein:
Memory, for depositing program;
Processor, the program for performing the memory storage, and specifically perform:
Test request is received, wherein, the test request includes the mark letter of application program to be tested and the first test script
Breath;
According to the identification information of first test script, first test script is determined;
According to first test script, the application program to be tested is tested.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710640868.1A CN107291623A (en) | 2017-07-31 | 2017-07-31 | A kind of applied program testing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710640868.1A CN107291623A (en) | 2017-07-31 | 2017-07-31 | A kind of applied program testing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107291623A true CN107291623A (en) | 2017-10-24 |
Family
ID=60103955
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710640868.1A Pending CN107291623A (en) | 2017-07-31 | 2017-07-31 | A kind of applied program testing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107291623A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107729255A (en) * | 2017-11-10 | 2018-02-23 | 北京奇虎科技有限公司 | Method for testing software, apparatus and system |
| CN109581106A (en) * | 2018-11-28 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | Test equipment control method, device, system and electronic equipment |
| CN110597526A (en) * | 2019-09-17 | 2019-12-20 | 深圳联想懂的通信有限公司 | A downloader-based client adaptation method and electronic device |
| CN112306849A (en) * | 2019-07-31 | 2021-02-02 | 深圳Tcl数字技术有限公司 | Application program testing method and system, intelligent terminal and storage medium |
| CN114328182A (en) * | 2021-11-30 | 2022-04-12 | 苏州浪潮智能科技有限公司 | A kind of switch PSU testing method and related device |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103136101A (en) * | 2012-12-31 | 2013-06-05 | 博彦科技(上海)有限公司 | Software automated testing unified operation platform |
| CN103237082A (en) * | 2013-05-06 | 2013-08-07 | 百度在线网络技术(北京)有限公司 | Cloud testing method, system, and cloud server |
| CN103678132A (en) * | 2013-12-18 | 2014-03-26 | 中国科学院深圳先进技术研究院 | Application software cloud testing system |
| CN103927255A (en) * | 2013-01-16 | 2014-07-16 | 腾讯科技(深圳)有限公司 | Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system |
| CN104572444A (en) * | 2014-12-10 | 2015-04-29 | 网易(杭州)网络有限公司 | Cloud testing platform for game performance and testing method for cloud testing platform |
| CN104679659A (en) * | 2015-03-24 | 2015-06-03 | 小米科技有限责任公司 | Testing method and testing device of application program as well as electronic equipment |
| CN105867990A (en) * | 2015-11-20 | 2016-08-17 | 乐视云计算有限公司 | Software development integration method and device thereof |
| CN106293820A (en) * | 2016-08-02 | 2017-01-04 | 山东大学 | Exploitation test O&M integral system, deployment, full dose and increment updating method |
| CN106326127A (en) * | 2016-08-29 | 2017-01-11 | 浪潮电子信息产业股份有限公司 | Automatic testing method |
| US20170109270A1 (en) * | 2015-10-16 | 2017-04-20 | International Business Machines Corporation | Crowdsourced device cloud for application testing |
| CN106598865A (en) * | 2016-12-22 | 2017-04-26 | 动视云(北京)科技有限公司 | Software testing method and device |
| CN106933729A (en) * | 2015-12-29 | 2017-07-07 | 苏宁云商集团股份有限公司 | A kind of method of testing and system based on cloud platform |
-
2017
- 2017-07-31 CN CN201710640868.1A patent/CN107291623A/en active Pending
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103136101A (en) * | 2012-12-31 | 2013-06-05 | 博彦科技(上海)有限公司 | Software automated testing unified operation platform |
| CN103927255A (en) * | 2013-01-16 | 2014-07-16 | 腾讯科技(深圳)有限公司 | Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system |
| CN103237082A (en) * | 2013-05-06 | 2013-08-07 | 百度在线网络技术(北京)有限公司 | Cloud testing method, system, and cloud server |
| CN103678132A (en) * | 2013-12-18 | 2014-03-26 | 中国科学院深圳先进技术研究院 | Application software cloud testing system |
| CN104572444A (en) * | 2014-12-10 | 2015-04-29 | 网易(杭州)网络有限公司 | Cloud testing platform for game performance and testing method for cloud testing platform |
| CN104679659A (en) * | 2015-03-24 | 2015-06-03 | 小米科技有限责任公司 | Testing method and testing device of application program as well as electronic equipment |
| US20170109270A1 (en) * | 2015-10-16 | 2017-04-20 | International Business Machines Corporation | Crowdsourced device cloud for application testing |
| CN105867990A (en) * | 2015-11-20 | 2016-08-17 | 乐视云计算有限公司 | Software development integration method and device thereof |
| CN106933729A (en) * | 2015-12-29 | 2017-07-07 | 苏宁云商集团股份有限公司 | A kind of method of testing and system based on cloud platform |
| CN106293820A (en) * | 2016-08-02 | 2017-01-04 | 山东大学 | Exploitation test O&M integral system, deployment, full dose and increment updating method |
| CN106326127A (en) * | 2016-08-29 | 2017-01-11 | 浪潮电子信息产业股份有限公司 | Automatic testing method |
| CN106598865A (en) * | 2016-12-22 | 2017-04-26 | 动视云(北京)科技有限公司 | Software testing method and device |
Non-Patent Citations (7)
| Title |
|---|
| FENG_BLOG6688: "性能测试与功能测试", 《HTTPS://BLOG.CSDN.NET/JIANGYINGFENG/ARTICLE/DETAILS/46595727》 * |
| FENG_BLOG6688: "性能测试与功能测试", 《HTTPS://BLOG.CSDN.NET/JIANGYINGFENG/ARTICLE/DETAILS/46595727》, 22 June 2015 (2015-06-22), pages 1 * |
| ZHENYU LIU 等: "A Novel Automated Software Test Technology with Cloud Technology", 《2014 IEEE 11TH INTL CONF ON UBIQUITOUS INTELLIGENCE AND COMPUTING AND 2014 IEEE 11TH INTL CONF ON AUTONOMIC AND TRUSTED COMPUTING AND 2014 IEEE 14TH INTL CONF ON SCALABLE COMPUTING AND COMMUNICATIONS AND ITS ASSOCIATED WORKSHOPS》 * |
| ZHENYU LIU 等: "A Novel Automated Software Test Technology with Cloud Technology", 《2014 IEEE 11TH INTL CONF ON UBIQUITOUS INTELLIGENCE AND COMPUTING AND 2014 IEEE 11TH INTL CONF ON AUTONOMIC AND TRUSTED COMPUTING AND 2014 IEEE 14TH INTL CONF ON SCALABLE COMPUTING AND COMMUNICATIONS AND ITS ASSOCIATED WORKSHOPS》, 26 October 2015 (2015-10-26), pages 712 - 716 * |
| 会飞的鱼: "自动化测试实施步骤和最佳实践", 《HTTPS://WWW.ITEYE.COM/BLOG/LUJAR-221788》 * |
| 会飞的鱼: "自动化测试实施步骤和最佳实践", 《HTTPS://WWW.ITEYE.COM/BLOG/LUJAR-221788》, 7 December 2006 (2006-12-07), pages 1 - 12 * |
| 冯灵霞 等: "《软件测试技术》", 31 January 2017, 西安电子科技大学出版社, pages: 106 - 107 * |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107729255A (en) * | 2017-11-10 | 2018-02-23 | 北京奇虎科技有限公司 | Method for testing software, apparatus and system |
| CN107729255B (en) * | 2017-11-10 | 2021-04-09 | 北京奇虎科技有限公司 | Software testing method, device and system |
| CN109581106A (en) * | 2018-11-28 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | Test equipment control method, device, system and electronic equipment |
| CN112306849A (en) * | 2019-07-31 | 2021-02-02 | 深圳Tcl数字技术有限公司 | Application program testing method and system, intelligent terminal and storage medium |
| CN110597526A (en) * | 2019-09-17 | 2019-12-20 | 深圳联想懂的通信有限公司 | A downloader-based client adaptation method and electronic device |
| CN114328182A (en) * | 2021-11-30 | 2022-04-12 | 苏州浪潮智能科技有限公司 | A kind of switch PSU testing method and related device |
| CN114328182B (en) * | 2021-11-30 | 2023-11-10 | 苏州浪潮智能科技有限公司 | Switch PSU testing method and related device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107273300A (en) | A kind of applied program testing method and device | |
| CN106970873A (en) | Mock method of testings, apparatus and system on line | |
| CN107844400B (en) | A method and device for verifying log data | |
| CN106383786B (en) | Interface pressure performance testing method and device and electronic equipment | |
| CN107291623A (en) | A kind of applied program testing method and device | |
| CN107329899A (en) | A kind of application compatibility method of testing and device | |
| CN107402881A (en) | The choosing method and device of a kind of project testing | |
| CN107679700A (en) | Business flow processing method, apparatus and server | |
| CN107133174A (en) | Test case code automatically generating device and method | |
| CN105468797B (en) | An information processing method and device | |
| CN108345511A (en) | A kind of application data verification method, device and electronic equipment | |
| US9652368B2 (en) | Using linked data to determine package quality | |
| CN106909498A (en) | A kind of java applet injects the method and system of failure | |
| CN110888794B (en) | Interface testing method and device | |
| US9122801B2 (en) | Test planning with order coverage requirements | |
| CN108282518A (en) | A kind of customer terminal webpage generation method and device | |
| CN112380876B (en) | Translation method, device, equipment and medium based on multilingual machine translation model | |
| CN107203465A (en) | System interface method of testing and device | |
| CN109922142A (en) | A kind of document down loading method, apparatus and system | |
| CN107368292A (en) | A kind of resource Compilation Method and device | |
| CN107368420A (en) | API method of testings, device and electronic equipment | |
| CN111563257A (en) | Data detection method and device, computer readable medium and terminal equipment | |
| CN109284222A (en) | Project testing method, device and equipment in software unit, data processing system | |
| CN106484771B (en) | Different information file generated and application process, device | |
| CN111385661B (en) | Method, device, terminal and storage medium for voice control of full screen playing |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171024 |