CN109582517A - System application automated testing method, device, system and tool storage end - Google Patents

System application automated testing method, device, system and tool storage end Download PDF

Info

Publication number
CN109582517A
CN109582517A CN201811474567.7A CN201811474567A CN109582517A CN 109582517 A CN109582517 A CN 109582517A CN 201811474567 A CN201811474567 A CN 201811474567A CN 109582517 A CN109582517 A CN 109582517A
Authority
CN
China
Prior art keywords
test
function
program
tested
sikuli
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.)
Withdrawn
Application number
CN201811474567.7A
Other languages
Chinese (zh)
Inventor
张敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811474567.7A priority Critical patent/CN109582517A/en
Publication of CN109582517A publication Critical patent/CN109582517A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a kind of system application automated testing methods, are related to automatic test field, comprising: running environment is called to start automatic test process;The test function for determining electronic equipment to be tested obtains function to be tested;Access the calling that the corresponding program bag of function to be tested carries out corresponding test function program;Wherein, program bag is the single interface document for being stored with test program;The test data generated in statistical test procedures generates test report.Testing tool is packaged by this method according to test function, facilitates the calling of various test functions, is conducive to the raising of testing efficiency.The invention also discloses a kind of system application automatic test device, system and a kind of testing tool storage ends, all have above-mentioned beneficial effect.

Description

System application automated testing method, device, system and tool storage end
Technical field
The present invention relates to automatic test field, in particular to a kind of system application automated testing method, device, system And a kind of testing tool storage end.
Background technique
Consider for security of system and function optimization etc., need by test method or tool to system function into Row test.With the development of measuring technology, single test method or tool have increasingly been unable to satisfy increasingly complicated more The test request of sample, for the system function under different frameworks, is needed using different surveys such as in Windows system Trial work tool is tested, and generally uses Selenium at present for B/S (Browser/Server, Browser/Server Mode) (tool for system application test) carries out browser end functional test, for C/S (Client/Server, visitor Family machine and server architecture) generally surveyed using the function that Sikuli (a kind of novel figure scripting language) carries out client-side Examination.Since much application needs to combine B/S framework and C/S framework, the reality of task is carried out jointly in client computer and browser end It is existing, when the system of B/S framework and C/S framework is carried out while being tested, Selenium and Sikuli is needed to be organically combined, Uniformly tested.
In the calling process of testing tool, the corresponding interface of each testing procedure, when need to call some step into It needs to access corresponding interface when row test, includes several steps in the detection process of individual feature, then need to call multiple Interface is just able to achieve a Function detection, needs to frequently access under multifunctional testing environment and de-interfaced, this process It not only can delay the plenty of time, but also certain stock number can be occupied.
Therefore, how to realize Selenium and Sikuli during the test facilitate calling, improve testing efficiency, be Those skilled in the art's urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of system application automated testing methods, and this method is by testing tool according to test Function is packaged, and facilitates the calling of various test functions, is conducive to the raising of testing efficiency;It is another object of the present invention to mention For a kind of system application automatic test device, equipment and system, above-mentioned beneficial effect is all had.
In order to solve the above technical problems, the present invention provides a kind of system application automated testing methods, this method comprises:
Running environment is called to start automatic test process;
The test function for determining electronic equipment to be tested obtains function to be tested;
Access the calling that the corresponding program bag of the function to be tested carries out corresponding test function program;Wherein, the journey Sequence packet is the single interface document for being stored with test program;
The test data generated in statistical test procedures generates test report.
Preferably, the calling running environment starts automatic test process, comprising:
General purpose execution environment is called to start automatic test process;Wherein, the general purpose execution environment is in testing tool Storage end is the running environment of the testing tool configuration in advance.
Preferably, the configuration method of the general purpose execution environment, comprising:
Configure Python/Java running environment;
In the Python/Java running environment, the running environment of Selenium and Sikuli is added, is obtained each to be measured Try the general purpose execution environment of host.
Preferably, the packaging method of described program packet, comprising:
The common test function in the Selenium is filtered out, and obtains the test program of the common test function;
The test program of the common test function is packaged, the corresponding program bag of the Selenium is obtained;
The common mathematical function in the Sikuli is filtered out, and obtains the caller of the common mathematical function;
The caller of the common mathematical function is packaged, the corresponding program bag of the Sikuli is obtained.
Preferably, the test program of the common test function is packaged, comprising:
The specified interface type to the Selenium is obtained, specified Selenium interface is obtained;
Common test function program is packaged according to the specified Selenium interface, obtains described Selenium pairs The program bag answered;
Then correspondingly, the caller of the common mathematical function is packaged, comprising:
The specified interface type to the Sikuli is obtained, specified Sikuli interface is obtained;
Common test function program is packaged according to the specified Sikuli interface, it is corresponding to obtain the Sikuli Program bag.
Preferably, the test data generated in statistical test procedures, comprising:
The test result generated in test process is counted according to test function, obtains test report.
The present invention discloses a kind of system application automatic test device, comprising:
Test starting unit, for calling running environment to start automatic test process;
Function determination unit obtains function to be tested for determining the test function of electronic equipment to be tested;
Program bag access unit carries out corresponding test function program for accessing the corresponding program bag of the function to be tested Calling;Wherein, described program packet is the single interface document for being stored with test program;
Report generation unit, the test data for generating in statistical test procedures generate test report.
The present invention discloses a kind of testing tool storage end, comprising:
Memory, for storing program;
Processor, the step of system application automated testing method is realized when for executing described program.
The present invention discloses a kind of system application automatization test system, comprising:
Electronic equipment to be tested, the control instruction for receiving testing tool storage end carry out corresponding feature operation;
Testing tool storage end, for calling running environment to start automatic test process;Determine electronic equipment to be tested Test function, obtain function to be tested;It accesses the corresponding program bag of the function to be tested and carries out corresponding test function program Calling;Wherein, described program packet is the single interface document for being stored with test program;The test number generated in statistical test procedures According to generation test report.
Preferably, the testing tool storage end specifically: USB flash disk.
System application automated testing method provided by the present invention, by the way that each testing tool is carried out test function in advance Encapsulation, generate the corresponding single interface document of each test function, this document is provided with the interface of an entirety, to be tested determining When function, corresponding single interface document need to be only called, can realize each step under this functional test automatically after accessing this document Automatic execution, relative to existing test process, without correspond to executable program progress to each step in a functional test It searches one by one, without the corresponding access repeatedly for executing program of step one by one and picks out operation, simplify testing process, it is convenient The calling of various test functions is conducive to the raising of testing efficiency.
" general purpose execution environment in testing tool storage end is called to open in addition, disclosing in another embodiment in the present invention This technical characteristic of dynamic automatic test process ", by being applied in the unified integrated test wrapper border of testing tool storage end setting B/S and C/S hybrid test can reduce the difficulty of environment deployment, reduce learning cost.
The present invention also provides a kind of system application automatic test device, system and a kind of testing tool storage ends, With above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of system application automated testing method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural block diagram of system application automatic test device provided in an embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of testing tool storage end provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of testing tool storage end provided in an embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of system application automated testing method, and this method is by testing tool according to test Function is packaged, and facilitates the calling of various test functions, is conducive to the raising of testing efficiency;Another core of the invention is to mention For a kind of system application automatic test device, system and a kind of testing tool storage end, above-mentioned beneficial effect is all had.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of flow chart of system application automated testing method provided by the present invention, the party Method may include:
Step s110, running environment is called to start automatic test process.
Running environment can call the operating system environment in tested host, can also voluntarily build an operation Environment is called for application automatic test, without limitation to running environment at this.
It is needed at present when calling Selenium and Sikuli to carry out system functionality test to B/S and C/S respectively Call the running environment of test host.Host OS Type multiplicity, such as windows7, windows8 and Operating system environment according to the difference of the application is needed to carry out specific aim setting to testing tool before the test such as windows10, if It is cumbersome to set process, and is easy to be influenced by test host.
Preferably, general purpose execution environment can be configured in testing tool storage end in advance, specifically, running environment is called to open The process of dynamic automatic test process specifically: general purpose execution environment is called to start automatic test process;Wherein, general operation It is the running environment of testing tool configuration that environment is in testing tool storage end in advance.By in the storage for being stored with testing tool General purpose execution environment is configured in equipment, when storing the testing tool operation in equipment without calling the type of tested host each Different running environment is configured at the running environment of the fixed type of testing tool storage by calling, and avoids in test host All types of running environment are to setting before test and the influence in test process.
Wherein, by the configuration of environment can select common language environment and with the matched environment of testing tool, than It can such as select, C language, Java etc., it is preferable that the configuration process of general purpose execution environment is specifically as follows: configuration Python/ Java Runtime Environment;In Python/Java running environment, add Selenium and Sikuli running environment, obtain respectively to Test the general purpose execution environment of host.
For example, making a Python/Java running environment using USB flash disk, the fortune of Selenium and Sikuli is then added Row environment forms one and is not required to the i.e. workable running environment of configuration host, completes building for general purpose execution environment.Wherein, lead to Building step in detail and can refer to currently running environmental structure method with running environment, details are not described herein.
Step s120, the test function for determining electronic equipment to be tested obtains function to be tested.
Step s130, the calling that the corresponding program bag of function to be tested carries out corresponding test function program is accessed.
The encapsulation of program bag is carried out in the present embodiment by test function, test function is various practical function in system application Can, such as login function, function, search function etc. are published, the program for realizing a kind of test function is encapsulated as a single interface File, such as test process of a login function include 5 steps, need to search this one by one in current existing test method Then 5 steps are sequentially ingressed into this corresponding routine interface of 5 each step in order, will realize in the present embodiment and log in the 5 of test A step is packaged into a logging program packet, when needing to test login function, is directly accessed the corresponding journey of the function Sequence packet includes all configurators for realizing this function in the program bag, can realize the automatic of the function after access automatically The step of testing, simplifying a kind of test function, also avoids the calling of each step procedure interface in a test function.
Specifically, such as using Python/Java programming language automatic test programming is carried out, is related to the survey of WEB UI Examination carries out test case using Selenium and writes, and Sikuli also can be used records script and be not convenient to use for some The interface the UI use-case that Selenium is tested is write, if file uploads, pop-out operation etc.;It is related to client, operation system The test of system etc. carries out test case using the Sikuli interface that Sikuli writes script or calls directly encapsulation and writes, and uses Python/Java programming language is packaged Selenium, Sikuli, is connect by encapsulation Selenium interface and Sikuli Mouthful, different scrnario testings is respectively used to convenient for calling.
Corresponding program bag can be matched for each test function in advance, for the EMS memory occupation for reducing program bag to the greatest extent, simultaneously Simplify searching step, it is preferable that program bag only can be carried out to common test function and be pre-configured with, Selenium can be by one A little common operations are written as function, and general operation can also be written as file packet or executable file by Sikuli, convenient for calling, Specifically, the encapsulation process of program bag may comprise steps of:
The common test function in Selenium is filtered out, and obtains the test program of common test function;
The test program of common test function is packaged, the corresponding program bag of Selenium is obtained;
The common mathematical function in Sikuli is filtered out, and obtains the caller of common mathematical function;
The caller of common mathematical function is packaged, the corresponding program bag of Sikuli is obtained.
Specifically, the end the B browser side in B/S framework is carried out using the Selenium technology for being usually used in WEB UI test When the automatic test in face, Python/Java language can be used, Selenium is packaged, be packaged into the journey of various interfaces Sequence packet, in order to call;The Client in C/S framework, which is carried out, using the Sikuli for graphic programming carries out automation survey Examination, can both be packaged Sikuli, and be packaged into interface, can also call directly the Sikuli file packet write or can File is executed, the program bag after generating encapsulation.
In addition, the setting of package interface can be specified the interface or uniformly of each test function differentiated by relevant operation personnel Interface can also have program voluntarily to distribute, it is preferable that can be according to the specified of each interface type, to realize to each function Adaptive settings, the then process being packaged the test program of common test function specifically:
The specified interface type to Selenium is obtained, specified Selenium interface is obtained;
Common test function program is packaged according to specified Selenium interface, obtains the corresponding program of Selenium Packet;
Then correspondingly, the process caller of common mathematical function being packaged specifically:
The specified interface type to Sikuli is obtained, specified Sikuli interface is obtained;
Common test function program is packaged according to specified Sikuli interface, obtains the corresponding program bag of Sikuli.
In addition, the specific encapsulation process of program bag is also referred to existing encapsulation step, details are not described herein.
Step s140, the test data generated in statistical test procedures generates test report.
Due to may relate to the testing procedure under multi rack structure, including Selenium and Sikuli in single application function Different types of test result, currently used test result statistic processes is generated according to framework type, i.e. test report Including Selenium test report and Sikuli test report, this test report not only needs to compare when checking two parts of surveys It tries report to be checked item by item, trouble and low efficiency.Preferably, the intuitive of the test result of each application function is looked into order to realize It sees, it is preferable that the process of the test data generated in statistical test procedures is specifically as follows: the test that will be generated in test process As a result it is counted according to test function, obtains test report.
Test report can be exported into tested electronic equipment, can also be output in testing tool storage end, can be with It is set as needed.For example the test result of all tests can uniformly be exported into testing tool storage end --- USB flash disk, it is raw At unified test report.
Based on above-mentioned introduction, system application automated testing method provided by the present invention, by advance by each test work Tool carries out the encapsulation of test function, generates the corresponding single interface document of each test function, and this document is provided with connecing for an entirety Mouthful, when determining function to be tested, corresponding single interface document need to be only called, can realize the Xiang Gong automatically after accessing this document The automatic execution of each step under capable of testing, relative to existing test process, without corresponding to step each in a functional test Executable program is searched one by one, without the corresponding access repeatedly for executing program of step one by one and is picked out operation, is simplified Testing process, facilitates the calling of various test functions, is conducive to the raising of testing efficiency.
System application automatic test device provided by the invention is introduced below, referring to FIG. 2, Fig. 2 is this hair A kind of structural block diagram for system application automatic test device that bright embodiment provides;The apparatus may include: test starting list Member 210, function determination unit 220, program bag access unit 230 and report generation unit 240.
Wherein, test starting unit 210 is mainly used for calling running environment starting automatic test process;
Function determination unit 220 is mainly used for determining the test function of electronic equipment to be tested, obtains function to be tested;
Program bag access unit 230 is mainly used for accessing the corresponding test function journey of the corresponding program bag progress of function to be tested The calling of sequence;Wherein, program bag is the single interface document for being stored with test program;Program bag is that program bag encapsulation unit seals in advance Dress obtains.
Report generation unit 240 is mainly used for the test data generated in statistical test procedures, generates test report.
Preferably, test starting unit specifically can be used for: general purpose execution environment being called to start automatic test process;Its In, it is the running environment of testing tool configuration that general purpose execution environment is in testing tool storage end in advance.Wherein, test starting list The general purpose execution environment called in member is configured to obtain by environment configurations unit.
Preferably, environment configurations unit specifically can be used for: configuration Python/Java running environment;In Python/Java In running environment, the running environment of Selenium and Sikuli is added, the general purpose execution environment of each host to be tested is obtained.
Program bag encapsulation unit specifically includes: Selenium encapsulation unit and Sikuli encapsulation unit.
Specifically, Selenium encapsulation unit can specifically include the first screening subelement and the first encapsulation subelement: First screening subelement is specifically used for filtering out the common test function in Selenium, and obtains the test of common test function Program;First encapsulation subelement is mainly used for for the test program of common test function being packaged, and it is corresponding to obtain Selenium Program bag;
Sikuli encapsulation unit can specifically include the second screening subelement and the second encapsulation subelement: the second screening Unit is mainly used for filtering out the common mathematical function in Sikuli, and obtains the caller of common mathematical function;Second encapsulation subelement It is mainly used for for the caller of common mathematical function being packaged, obtains the corresponding program bag of Sikuli.
Preferably, the first encapsulation subelement specifically can be used for: obtaining the specified interface type to Selenium, is referred to Determine Selenium interface;Common test function program is packaged according to specified Selenium interface, obtains Selenium pairs The program bag answered;
Second encapsulation subelement specifically can be used for: obtaining the specified interface type to Sikuli, obtains specified Sikuli Interface;Common test function program is packaged according to specified Sikuli interface, obtains the corresponding program bag of Sikuli.
Preferably, report generation unit specifically can be used for: by the test result generated in test process according to test function It can be carried out statistics, obtain test report.
Testing tool is packaged by system application automatic test device provided by the invention according to test function, will be used In the Selenium of the WEB UI automatic test and Sikuli for graphically testing and programming language such as Python/Java phase In conjunction with the unified test of B/S and C/S framework can be completed by only using a kind of programming language, can cover B/S and C/S comprehensively The test environment of framework, facilitates the calling of various test functions, is conducive to the raising of testing efficiency.
Testing tool storage end provided by the invention is introduced below, it specifically can to the introduction of testing tool storage end Referring to the step of above system application automated testing method, Fig. 3 is a kind of testing tool storage provided in an embodiment of the present invention The structural block diagram at end;The system may include:
Memory 300, for storing computer program;
Processor 310, when for executing computer program the step of realization machine box for server management method.
Referring to FIG. 4, a kind of structural schematic diagram of testing tool storage end provided in an embodiment of the present invention, the testing tool Storage end can generate bigger difference because configuration or performance are different, may include one or more processors (central processing units, CPU) 322 (for example, one or more processors) and memory 332, one Or (such as one or more mass memories are set the storage medium 330 of more than one storage application program 342 or data 344 It is standby).Wherein, memory 332 and storage medium 330 can be of short duration storage or persistent storage.It is stored in the journey of storage medium 330 Sequence may include one or more modules (diagram does not mark), and each module may include to one in data processing equipment Series of instructions operation.Further, central processing unit 322 can be set to communicate with storage medium 330, deposit in testing tool Store up the series of instructions operation executed in storage medium 330 on end 301.
Testing tool storage end 301 can also include one or more wired or wireless network interfaces 350, one or More than one input/output interface 358, and/or, one or more operating systems 341, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in system application automated testing method described in above figure 1 can be by the knot of testing tool storage end Structure is realized.
Readable storage medium storing program for executing provided in an embodiment of the present invention is introduced below, readable storage medium storing program for executing described below with System as described above application automated testing method can correspond to each other reference.
A kind of readable storage medium storing program for executing disclosed by the invention, is stored thereon with program, and system is realized when program is executed by processor The step of system is using automated testing method.
The present embodiment discloses a kind of system application automatization test system, which specifically includes that electronic equipment to be tested And testing tool stores equipment.
Wherein, the control instruction that electronic equipment to be tested is mainly used for receiving testing tool storage end carries out corresponding function Operation;
Testing tool storage end is mainly used for calling running environment starting automatic test process;Determine that electronics to be tested is set Standby test function obtains function to be tested;It accesses the corresponding program bag of function to be tested and carries out corresponding test function program It calls;Wherein, program bag is the single interface document for being stored with test program;The test data generated in statistical test procedures, it is raw At test report.
Preferably, testing tool storage end specifically: USB flash disk.
In system application automatization test system provided in this embodiment, Selenium can be packaged into interface, or often It is extracted and is shared with operation, by Sikuli package interface, or recorded and share script, be converted to executable file, surveyed for client Examination or UI are difficult to the partial test automated;By automatic test environment integrated into test device, test environment configurations are reduced, The complexity of automatic test is reduced, the difficulty of environment deployment is reduced, reduces learning cost, improves testing efficiency.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of equipment, storage medium and unit, can refer to corresponding processes in the foregoing method embodiment, herein no longer It repeats.
In several embodiments provided by the present invention, it should be understood that disclosed device, system, storage medium and Method may be implemented in other ways.For example, apparatus embodiments described above are merely indicative, for example, single Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown The mutual coupling, direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
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 software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a mobile terminal.Based on this understanding, technical solution of the present invention is substantially in other words to the prior art The all or part of the part to contribute or the technical solution can be embodied in the form of software products, which deposits It stores up in one storage medium, including some instructions are used so that a mobile terminal (can be mobile phone or tablet computer Deng) execute all or part of the steps of each embodiment method of the present invention.And storage medium above-mentioned includes: USB flash disk, moves firmly Disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), The various media that can store program code such as magnetic or disk.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, it can be realized with the combination of electronic hardware, terminal or the two, in order to clearly demonstrate hardware and software Interchangeability generally describes each exemplary composition and step according to function in the above description.These functions are studied carefully Unexpectedly it is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technique people Member can use different methods to achieve the described function each specific application, but this realization is it is not considered that super The scope of the present invention out.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
System application automated testing method, device, system and a kind of testing tool provided by the present invention are deposited above Chu Duan is described in detail.It is used herein that a specific example illustrates the principle and implementation of the invention, with The explanation of upper embodiment is merely used to help understand method and its core concept of the invention.It should be pointed out that being led for this technology For the those of ordinary skill in domain, without departing from the principle of the present invention, can also to the present invention carry out it is several improvement and Modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims (10)

1. a kind of system application automated testing method characterized by comprising
Running environment is called to start automatic test process;
The test function for determining electronic equipment to be tested obtains function to be tested;
Access the calling that the corresponding program bag of the function to be tested carries out corresponding test function program;Wherein, described program packet For the single interface document for being stored with test program;
The test data generated in statistical test procedures generates test report.
2. the system as claimed in claim 1 application automated testing method, which is characterized in that the calling running environment starting Automatic test process, comprising:
General purpose execution environment is called to start automatic test process;Wherein, the general purpose execution environment is to store in testing tool End is in advance the running environment of testing tool configuration.
3. system application automated testing method as claimed in claim 2, which is characterized in that the general purpose execution environment is matched Set method, comprising:
Configure Python/Java running environment;
In the Python/Java running environment, the running environment of Selenium and Sikuli is added, each master to be tested is obtained The general purpose execution environment of machine.
4. the system as claimed in claim 1 application automated testing method, which is characterized in that the encapsulation side of described program packet Method, comprising:
The common test function in the Selenium is filtered out, and obtains the test program of the common test function;
The test program of the common test function is packaged, the corresponding program bag of the Selenium is obtained;
The common mathematical function in the Sikuli is filtered out, and obtains the caller of the common mathematical function;
The caller of the common mathematical function is packaged, the corresponding program bag of the Sikuli is obtained.
5. system application automated testing method as claimed in claim 4, which is characterized in that by the common test function Test program is packaged, comprising:
The specified interface type to the Selenium is obtained, specified Selenium interface is obtained;
Common test function program is packaged according to the specified Selenium interface, it is corresponding to obtain the Selenium Program bag;
Then correspondingly, the caller of the common mathematical function is packaged, comprising:
The specified interface type to the Sikuli is obtained, specified Sikuli interface is obtained;
Common test function program is packaged according to the specified Sikuli interface, obtains the corresponding program of the Sikuli Packet.
6. the system as claimed in claim 1 application automated testing method, which is characterized in that generated in statistical test procedures Test data, comprising:
The test result generated in test process is counted according to test function, obtains test report.
7. a kind of system application automatic test device characterized by comprising
Test starting unit, for calling running environment to start automatic test process;
Function determination unit obtains function to be tested for determining the test function of electronic equipment to be tested;
Program bag access unit carries out the tune of corresponding test function program for accessing the corresponding program bag of the function to be tested With;Wherein, described program packet is the single interface document for being stored with test program;
Report generation unit, the test data for generating in statistical test procedures generate test report.
8. a kind of testing tool storage end characterized by comprising
Memory, for storing program;
Processor realizes the system application automatic test side as described in any one of claim 1 to 6 when for executing described program The step of method.
9. a kind of system application automatization test system characterized by comprising
Electronic equipment to be tested, the control instruction for receiving testing tool storage end carry out corresponding feature operation;
Testing tool storage end, for calling running environment to start automatic test process;Determine the survey of electronic equipment to be tested Function is tried, function to be tested is obtained;Access the tune that the corresponding program bag of the function to be tested carries out corresponding test function program With;Wherein, described program packet is the single interface document for being stored with test program;The test data generated in statistical test procedures, Generate test report.
10. applying automatization test system system as claimed in claim 9, which is characterized in that the testing tool storage end Specifically: USB flash disk.
CN201811474567.7A 2018-12-04 2018-12-04 System application automated testing method, device, system and tool storage end Withdrawn CN109582517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811474567.7A CN109582517A (en) 2018-12-04 2018-12-04 System application automated testing method, device, system and tool storage end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811474567.7A CN109582517A (en) 2018-12-04 2018-12-04 System application automated testing method, device, system and tool storage end

Publications (1)

Publication Number Publication Date
CN109582517A true CN109582517A (en) 2019-04-05

Family

ID=65927232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811474567.7A Withdrawn CN109582517A (en) 2018-12-04 2018-12-04 System application automated testing method, device, system and tool storage end

Country Status (1)

Country Link
CN (1) CN109582517A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309575A (en) * 2020-02-18 2020-06-19 深圳市朱墨科技有限公司 Method, device, server and storage medium for starting and stopping test tool
CN111382084A (en) * 2020-05-08 2020-07-07 北京金山云网络技术有限公司 Test method and device and electronic equipment
CN112099772A (en) * 2020-08-21 2020-12-18 深圳市元征科技股份有限公司 Communication interface packaging method, device, equipment and storage medium
CN112799934A (en) * 2020-10-16 2021-05-14 佛山欧神诺云商科技有限公司 Interface test method, terminal and storage device
CN113535536A (en) * 2020-04-20 2021-10-22 阿里巴巴集团控股有限公司 Testing, configuring, installing and operating method, device, electronic equipment and storage medium
CN113778896A (en) * 2021-09-26 2021-12-10 杭州安恒信息技术股份有限公司 Interface test method, device, equipment and medium
CN113778843A (en) * 2020-08-28 2021-12-10 北京同邦卓益科技有限公司 Application program testing method and device, electronic equipment and readable storage medium
CN114062887A (en) * 2020-07-30 2022-02-18 合肥本源量子计算科技有限责任公司 Quantum chip testing method, device and system and storage medium
CN116298825A (en) * 2023-05-08 2023-06-23 杭州长川科技股份有限公司 Chip test system and method, device, drive access device and method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309575A (en) * 2020-02-18 2020-06-19 深圳市朱墨科技有限公司 Method, device, server and storage medium for starting and stopping test tool
CN113535536A (en) * 2020-04-20 2021-10-22 阿里巴巴集团控股有限公司 Testing, configuring, installing and operating method, device, electronic equipment and storage medium
CN111382084A (en) * 2020-05-08 2020-07-07 北京金山云网络技术有限公司 Test method and device and electronic equipment
CN114062887A (en) * 2020-07-30 2022-02-18 合肥本源量子计算科技有限责任公司 Quantum chip testing method, device and system and storage medium
CN112099772A (en) * 2020-08-21 2020-12-18 深圳市元征科技股份有限公司 Communication interface packaging method, device, equipment and storage medium
CN113778843A (en) * 2020-08-28 2021-12-10 北京同邦卓益科技有限公司 Application program testing method and device, electronic equipment and readable storage medium
CN113778843B (en) * 2020-08-28 2024-04-16 北京同邦卓益科技有限公司 Application program testing method and device, electronic equipment and readable storage medium
CN112799934A (en) * 2020-10-16 2021-05-14 佛山欧神诺云商科技有限公司 Interface test method, terminal and storage device
CN113778896A (en) * 2021-09-26 2021-12-10 杭州安恒信息技术股份有限公司 Interface test method, device, equipment and medium
CN116298825A (en) * 2023-05-08 2023-06-23 杭州长川科技股份有限公司 Chip test system and method, device, drive access device and method
CN116298825B (en) * 2023-05-08 2023-10-20 杭州长川科技股份有限公司 Chip test system and method, device, drive access device and method

Similar Documents

Publication Publication Date Title
CN109582517A (en) System application automated testing method, device, system and tool storage end
CN108279892B (en) Method, device and equipment for splitting large-scale application service into micro-service
CN104683386B (en) The stake service implementing method and device of customizable response
CN111897724B (en) Automatic testing method and device suitable for cloud platform
CN104821954B (en) A kind of cross-platform remote procedure calling (PRC) method
CN102118283B (en) Method and device for testing communication equipment
CN104581785B (en) wireless network test method, test device and mobile terminal
CN105740138B (en) Test method, test device and the test macro of application
CN110046101A (en) Page automated testing method, device and computer storage medium
CN113672441B (en) Method and device for testing intelligent equipment
CN106209515B (en) Automatic test system for access network equipment
CN106844213A (en) A kind of front end method of testing and device
CN108874470A (en) A kind of information processing method and server, computer storage medium
CN103279416A (en) Storage software automated testing system and method
WO2019075994A1 (en) Method, device and system for mock data at ios end, and storage medium
CN107070752B (en) Testing method and testing system for long connection capacity
CN105630683A (en) Cloud testing architecture
CN111913764A (en) Service dependency analysis method, electronic device, and storage medium
CN113377596A (en) Method for storing and reading waveform data and related device
CN106681867A (en) Testing method and device
US20240314021A1 (en) Method, apparatus, electronic device and storage medium for resource operation
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN114997101A (en) Signal control method, system, medium and device based on chip verification system
CN106201852A (en) A kind of distributed test method and test system
CN109062805A (en) A kind of AEP memory firmware promotion and demotion test method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20190405

WW01 Invention patent application withdrawn after publication