CN107357718A - One kind structure method of testing and device - Google Patents

One kind structure method of testing and device Download PDF

Info

Publication number
CN107357718A
CN107357718A CN201710447102.1A CN201710447102A CN107357718A CN 107357718 A CN107357718 A CN 107357718A CN 201710447102 A CN201710447102 A CN 201710447102A CN 107357718 A CN107357718 A CN 107357718A
Authority
CN
China
Prior art keywords
source code
bag
renewal
daily record
compiling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710447102.1A
Other languages
Chinese (zh)
Inventor
吕更
李健
杨维
罗洪礼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PAX Computer Technology Shenzhen Co Ltd
PAX Tech Ltd
Original Assignee
PAX Computer Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PAX Computer Technology Shenzhen Co Ltd filed Critical PAX Computer Technology Shenzhen Co Ltd
Priority to CN201710447102.1A priority Critical patent/CN107357718A/en
Priority to PCT/CN2017/095892 priority patent/WO2018227736A1/en
Publication of CN107357718A publication Critical patent/CN107357718A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The present invention is applied to POS terminal technical field, there is provided one kind structure method of testing and device, including:According to pre-configured version control system information, renewal is obtained from Source code management software applies source code, and renewal is compiled using source code, will be packaged into after compiling using source code using bag;FTP information is transmitted according to the file of configuration, the system bag of renewal is obtained from system development server;Connect pre-configured case management system TESTLINK and download use-case, the application bag and the system bag are downloaded by Control POS terminal, after downloading successfully, control POS terminal performs the use-case specified, and after execution terminates, obtains test result;Statistical information is generated according to the test result of acquisition, daily record is transferred according to the test result of acquisition, the daily record for sending the statistical information of generation by predetermined manner and transferring.The present invention can realize continuous automatic test, save manpower and testing time, substantially increase testing efficiency.

Description

One kind structure method of testing and device
Technical field
The invention belongs to POS terminal technical field, more particularly to a kind of structure method of testing and device.
Background technology
Operating system OS api interface test is related to OS and test case code in POS terminal, with ever-increasing visitor The introducing of family demand and new technology, OS is caused constantly to upgrade renewal, in order to adapt to this situation, corresponding test case It is continuously increased and updates the change with adaptive system, for POS OS quality, OS tests is carried out very by test case in time It is necessary.
However, existing POS terminal, in test case, developer needs constantly to submit code manually daily, and structure is new OS bags, tester needs increase manually and the modification developed with adaptive system of renewal use-case daily, and which increase tester The workload of member, the overlong time of consuming, it is difficult to pinpoint the problems in time, have impact on testing efficiency.
The content of the invention
In view of this, the embodiments of the invention provide one kind structure method of testing and device, existed with solving existing POS terminal During test case, it is impossible to automatic test, the problem of have impact on testing efficiency.
The first aspect of the embodiment of the present invention provides a kind of structure method of testing, including:
According to pre-configured version control system information, the source code of applying of renewal is obtained from Source code management software, it is right Renewal is compiled using source code, will be packaged into after compiling using source code using bag;
FTP information is transmitted according to the file of configuration, the system bag of renewal is obtained from system development server;
Connect pre-configured case management system TESTLINK and download use-case, institute is downloaded by Control POS terminal State using bag and the system bag, after downloading successfully, control POS terminal performs the use-case specified, and after execution terminates, obtains and surveys Test result;
Statistical information is generated according to the test result of acquisition, daily record is transferred according to the test result of acquisition, passes through default side The daily record that formula sends the statistical information of generation and transferred.
The second aspect of the embodiment of the present invention provides a kind of structure test device, including:
Using bag acquisition module, for according to pre-configured version control system information, being obtained from Source code management software Take renewal applies source code, and renewal is compiled using source code, will be packaged into after compiling using source code using bag;
System bag acquisition module, for transmitting FTP information according to the file of configuration, obtained more from system development server New system bag;
Test result acquisition module, use-case is downloaded for connecting pre-configured case management system TESTLINK, by after Electrical equipment control POS terminal downloads the application bag and the system bag, and after downloading successfully, control POS terminal performs what is specified Use-case, after execution terminates, obtain test result;
Sending module, for generating statistical information according to the test result of acquisition, day is transferred according to the test result of acquisition Will, the daily record for sending the statistical information of generation by predetermined manner and transferring.
The third aspect of the embodiment of the present invention provides a kind of structure test device/terminal device, including memory, processing Device and the computer program that can be run in the memory and on the processor is stored in, described in the computing device The step of above method is realized during computer program.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has the step of computer program, the computer program realizes the above method when being executed by processor.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
Continuous automatic test can be realized, the manpower in test resource and time is saved, improves test process In execution frequency, substantially increase testing efficiency.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process figure of structure method of testing provided in an embodiment of the present invention;
Fig. 2 is the implementation process figure that script is dispatched in structure method of testing provided in an embodiment of the present invention;
Fig. 3 is the implementation process figure that application flow is compiled in structure method of testing provided in an embodiment of the present invention;
Fig. 4 is to download OS and the implementation process figure of application in structure method of testing provided in an embodiment of the present invention;
Fig. 5 is the implementation process figure that application flow is compiled in structure method of testing provided in an embodiment of the present invention;
Fig. 6 is the implementation process figure that mail is sent in structure method of testing provided in an embodiment of the present invention;
Fig. 7 is the structured flowchart of structure test device provided in an embodiment of the present invention;
Fig. 8 is the schematic diagram of structure test device/terminal device provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
It should be appreciated that ought be in this specification and in the appended claims in use, special described by the instruction of term " comprising " Sign, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal device described in the embodiment of the present invention is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet PC in face (for example, touch-screen display and/or touch pad) etc it is other Portable set.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal device including display and touch sensitive surface is described.However, it should manage Solution, one or more of the other physical User that terminal device can include such as physical keyboard, mouse and/or control-rod connect Jaws equipment.
Terminal device supports various application programs, such as one or more of following:Drawing application program, demonstration application Program, word-processing application, website establishment application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing should With program, digital music player application and/or video frequency player application program.
The various application programs that can be performed on the terminal device can use at least one of such as touch sensitive surface Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.So, terminal public physical structure (for example, Touch sensitive surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one
With reference to figure 1, Fig. 1 is the implementation process figure of structure method of testing provided in an embodiment of the present invention, and this method is applied to Terminal device, method of testing is built as shown in Figure 1 and may comprise steps of:
S101, according to pre-configured version control system information, the application source of renewal is obtained from Source code management software Code, renewal is compiled using source code, will be packaged into after compiling using source code using bag;
Further, S101, it is specially:
Start scheduling script;
Whether the content of monitoring and dispatching script is run, if the content of scheduling script is not run, opens journal file, Log;
In the daily record of record, current time is read, whether monitoring current time has arrived default scheduling time point, if Current time has arrived default scheduling time point, and the scheduling of last time also runs and finished, then according to pre-configured Version Control system System information, renewal is obtained from Source code management software applies source code, renewal is compiled using source code, after compiling Using source code be packaged into using bag.
Whether the scheduling of detection last time produces test result, if detecting that the scheduling of last time generates test result, sentences The management and running of disconnected last time finish.
S102, FTP information is transmitted according to the file of configuration, the system bag of renewal is obtained from system development server;
FTP information is transmitted according to the file of configuration, more new logo is read from system development server, according to more new logo Obtain the system bag of renewal.
S103, connect pre-configured case management system TESTLINK and download use-case, by under Control POS terminal The application bag and the system bag are carried, after downloading successfully, control POS terminal performs the use-case specified, and after execution terminates, obtains Take test result;
Further, it is described according to pre-configured version control system information, renewal is obtained from Source code management software Apply source code, renewal is compiled using source code, will be after compiling be packaged into using source code using bag, is specially:
According to pre-configured version control system information, the source code of applying of renewal is obtained from Source code management software, it is right Renewal is compiled using source code, processing compiling information generation HTML (HyperText Markup Language, HTML) file;
Judge whether compiling succeeds using the html file, if compiling successfully, be then packaged into the html file Using bag, and it is put into specified location.
Further, the control POS terminal performs the use-case specified, and is specially:
By serial port communicating protocol or parallel port communication agreement, control POS terminal performs the use-case specified.
Wherein, by serial port communicating protocol or parallel port communication agreement, the instruction for performing use-case is sent to POS terminal, is waited After the POS terminal use-case to be performed, test result is obtained.
S104, statistical information is generated according to the test result of acquisition, daily record is transferred according to the test result of acquisition, by pre- If the daily record that mode sends the statistical information of generation and transferred.
Further, the daily record for sending the statistical information of generation by predetermined manner and transferring, it is specially:
The statistical information generated and the daily record transferred are sent to default director's mailbox by e-mail tool;
Or the daily record for sending the statistical information of generation by JICQ and transferring is responsible for acknowledging a debt to default Number;
Or by telephony tools to default director's number call phone, the statistical information of voice broadcast generation with And the daily record transferred.
Wherein, one or more director's mailboxes, director's account and director's number, the mode sum of setting are set Amount, is not limited herein.
The embodiment of the present invention solves POS terminal in test case, the overlong time of consuming, and can not pass through survey in time Example on probation carries out OS tests, the problem of have impact on testing efficiency, can realize continuous automatic test, save test resource In manpower, improve the execution frequency in test process, in time by use-case carry out OS tests, substantially increase test effect Rate.
Embodiment two
With reference to figure 2, Fig. 2 is the implementation process figure that script is dispatched in structure method of testing provided in an embodiment of the present invention, should Structure method of testing is applied to terminal device, as shown in Fig. 2 comprising the following steps:
S201, start scheduling script;
S202, judge to dispatch script either with or without operation;
S203, open journal file, log;
S204, judge whether to scheduling time point, be to perform S205, otherwise perform S207;
Whether S205, the scheduling for judging to start to monitor last time have run, have been to perform S206, otherwise perform S207;
S206, asynchronous starting call the batch processing script for performing step S101 to S104;
S207, into specified overtime resting state;
Whether monitoring and dispatching script first runs when dispatching script startup, is exited if operation, if starting without if, Journal file is opened, for log, whether current time is then judged to scheduling time point, if it is not, dormancy A period of time continues to monitor, and whether last scheduled is otherwise monitored without having run, if it is not, not dispatching, if then different Step calls the batch processing script for performing step S101 to S104 with asynchronous starting.Scheduling script then continues to detect whether Scheduling time point, move in circles operation.
With reference to figure 3, Fig. 3 is the implementation process that application flow is compiled in structure method of testing provided in an embodiment of the present invention Figure, as shown in figure 3, comprising the following steps:
S301, downloaded according to the version control system SVN information of configuration and apply source code;
S302, judges whether download succeeds, and is to perform S303, otherwise terminates;
S303, compiling application;
S304, processing compiling information generation HTML;
S305, judges whether compiling succeeds, and is to perform S306, otherwise terminates;
S306, packing application;
Wherein, according to the Source code management device information of configuration, application source code is downloaded from Source code management device, is such as malfunctioned, Mistake is returned, it is such as normal, then start compiled code, compiling is completed, and is handled generation html file using script, also to be checked compiling There is inerrancy, if any compile error daily record is then returned, as started packing application without if, be placed into specified location and used for downloading.
With reference to figure 4, Fig. 4 is the implementation process that OS and application are downloaded in structure method of testing provided in an embodiment of the present invention Figure, as shown in figure 4, comprising the following steps:
S401, OS system bags are downloaded according to the FTP information of configuration;
S402, judges whether OS systems bag downloads success;
S403, download application bag;
S404, judge whether download success using bag;
S405, switching POS are applied to automatic test pattern.
Wherein, current compiled OS systems are downloaded from exploitation server, if unsuccessfully returned, otherwise download OS systems System, if unsuccessfully returned, application is otherwise downloaded, if unsuccessfully returned, otherwise switch POS to automatic downloading mode.
With reference to figure 5, Fig. 5 is the implementation process that application flow is compiled in structure method of testing provided in an embodiment of the present invention Figure, as shown in figure 5, comprising the following steps:
S501, downloaded according to the SVN information of configuration and apply source code;
S502, judges whether download succeeds, and is to perform S503, otherwise terminates;
S503, use-case list is read, start to perform use-case
S504, judge to perform whether use-case succeeds, be to perform S505, otherwise terminate;
S505, if performed whole use-cases, be, performed S506, otherwise perform S503;
S506, after the completion of performing use-case, destination file is uploaded to PC from POS;
S507, analysis result file, generate statistical information.
With reference to figure 6, Fig. 6 is the implementation process figure that mail is sent in structure method of testing provided in an embodiment of the present invention, such as Shown in Fig. 6, comprise the following steps:
S601, the information of several steps before collection;
Several steps refer to the step in Fig. 1 to Fig. 5.
S602, set mail matter topics, recipient, text and accessory information;
S603, send mail;
Whether S604, judge to send and succeed, successful then terminate.
The manpower that the embodiment of the present invention is saved in test resource, can cover different PC system platforms, pass through use-case in time OS tests are carried out, can be found in time using the compatibility issue between bag and system bag.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence in above-described embodiment one, two, respectively The execution sequence of process should determine that the implementation process without tackling the embodiment of the present invention forms any with its function and internal logic Limit.
Embodiment three
Corresponding to the method described in foregoing embodiments one, two, with reference to figure 7, Fig. 7 is that structure provided in an embodiment of the present invention is surveyed The structured flowchart that trial assembly is put, applied to terminal device, terminal device includes but is not limited to computer, mobile phone, pocket and calculated Machine (Pocket Personal Computer, PPC), palm PC, notebook computer, personal digital assistant (Personal Digital Assistant, PDA).For purposes of illustration only, it illustrate only part related to the present embodiment.For convenience of description, It illustrate only part related to the present embodiment.
Reference picture 7, the structure test device include:
Using bag acquisition module 71, for according to pre-configured version control system information, from Source code management software Obtain renewal applies source code, and renewal is compiled using source code, will be packaged into after compiling using source code using bag;
System bag acquisition module 72, for transmitting FTP information according to the file of configuration, obtained from system development server The system bag of renewal;
Test result acquisition module 73, use-case is downloaded for connecting pre-configured case management system TESTLINK, is passed through Control POS terminal downloads the application bag and the system bag, and after downloading successfully, control POS terminal, which performs, specifies Use-case, execution terminate after, obtain test result;
Sending module 74, for generating statistical information according to the test result of acquisition, transferred according to the test result of acquisition Daily record, the daily record for sending the statistical information of generation by predetermined manner and transferring.
As a kind of implementation of the present embodiment, in the structure test device, the application bag acquisition module, wrap Include:
Start unit, script is dispatched for starting;
Whether monitoring unit, the content for monitoring and dispatching script are run, if the content of scheduling script is not run, Open journal file, log;
Using bag acquiring unit, in the daily record of record, reading current time, it is pre- whether monitoring current time has arrived If scheduling time point, if current time has arrived default scheduling time point, and the scheduling of last time also runs and finished, then basis Pre-configured version control system information, renewal is obtained from Source code management software applies source code, to the application source of renewal Code is compiled, and will be packaged into after compiling using source code using bag.
As a kind of implementation of the present embodiment, in the structure test device, the application bag acquisition module is specific For according to pre-configured version control system information, renewal is obtained from Source code management software to apply source code, to renewal Be compiled using source code, processing compiling information generation HTML html file, sentenced using the html file Whether disconnected compiling succeeds, if compiling successfully, then the html file is packaged into using bag, and be put into specified location;
The daily record that the sending module is specifically used for sending the statistical information of generation by e-mail tool and transferring is to pre- If director's mailbox;Or the statistical information generated and the daily record transferred are sent to default by JICQ Director's account;Or the statistical information generated by telephony tools to default director's number call phone, voice broadcast And the daily record transferred;
The test result acquisition module, specifically for whole by serial port communicating protocol or parallel port communication agreement, control POS End performs the use-case specified.
Example IV
Fig. 8 is the schematic diagram for structure test device/terminal device that one embodiment of the invention provides.As shown in figure 8, the reality Applying structure test device/terminal device 8 of example includes:Processor 80, memory 81 and it is stored in the memory 81 simultaneously The computer program 82 that can be run on the processor 80, such as build test program.The processor 80 performs the meter Realize the step in above-mentioned each structure method of testing embodiment during calculation machine program 82, such as step 101 shown in Fig. 1 is to 104, Or the processor 80 realizes the work(of each module/unit in above-mentioned each device embodiment when performing the computer program 82 Can, such as the function of module 71 to 74 shown in Fig. 7.
Exemplary, the computer program 82 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 81, and are performed by the processor 80, to complete the present invention.Described one Individual or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used for Implementation procedure of the computer program 82 in the structure test device/terminal device 8 is described.For example, the computer Program 82 can be divided into (empty using bag acquisition module, system bag acquisition module, test result acquisition module, sending module Intend the module in device), each module concrete function is as follows:
Using bag acquisition module, for according to pre-configured version control system information, being obtained from Source code management software Take renewal applies source code, and renewal is compiled using source code, will be packaged into after compiling using source code using bag;
System bag acquisition module, for transmitting FTP information according to the file of configuration, obtained more from system development server New system bag;
Test result acquisition module, use-case is downloaded for connecting pre-configured case management system TESTLINK, by after Electrical equipment control POS terminal downloads the application bag and the system bag, and after downloading successfully, control POS terminal performs what is specified Use-case, after execution terminates, obtain test result;
Sending module, for generating statistical information according to the test result of acquisition, day is transferred according to the test result of acquisition Will, the daily record for sending the statistical information of generation by predetermined manner and transferring.
Structure test device/the terminal device 8 can be desktop PC, notebook, palm PC and high in the clouds clothes The computing devices such as business device.Structure test device/the terminal device may include, but be not limited only to, processor 80, memory 81. It will be understood by those skilled in the art that Fig. 8 is only the example for building test device/terminal device 8, does not form and structure is surveyed Trial assembly puts/restriction of terminal device 8, it can include than illustrating more or less parts, either combine some parts or not With part, such as the structure test device/terminal device can also include input-output equipment, network access equipment, total Line etc..
Alleged processor 80 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 81 can be the internal storage unit of the structure test device/terminal device 8, such as build and survey Trial assembly puts/hard disk or internal memory of terminal device 8.The memory 81 can also be the structure test device/terminal device 8 The plug-in type hard disk being equipped with External memory equipment, such as the structure test device/terminal device 8, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Enter One step, the memory 81 can also both include the structure test device/terminal device 8 internal storage unit and also including External memory equipment.The memory 81 is used to store the computer program and the structure test device/terminal device Other required programs and data.The memory 81 can be also used for temporarily storing the number that has exported or will export According to.It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function list The division progress of member, module, can be as needed and by above-mentioned function distribution by different functions for example, in practical application Unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, to complete above description All or part of function.Each functional unit, module in embodiment can be integrated in a processing unit or Unit is individually physically present, can also two or more units it is integrated in a unit, above-mentioned integrated unit Both it can be realized, can also be realized in the form of SFU software functional unit in the form of hardware.In addition, each functional unit, mould The specific name of block is not limited to the protection domain of the application also only to facilitate mutually distinguish.It is single in said system Member, the specific work process of module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, can be with Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, there can be other dividing mode when actually realizing, such as Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, by computer program the hardware of correlation can also be instructed to complete, described meter Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or some intermediate forms etc..Computer-readable Jie Matter can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk, Magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Described device/terminal device can be that desktop PC, notebook, palm PC and cloud server etc. calculate Equipment.Described device/terminal device may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that The schematic diagram is only the example of device/terminal device, not the restriction of structure twin installation/terminal device, can include than More or less parts are illustrated, either combine some parts or different parts, such as described device/terminal device is also Input-output equipment, network access equipment, bus etc. can be included.
Alleged processor can be CPU (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng the processor is the control centre of described device/terminal device, utilizes various interfaces and connection whole device/end The various pieces of end equipment.
The memory can be used for storing the computer program and/or module, and the processor is by running or performing The computer program and/or module being stored in the memory, and the data being stored in memory are called, described in realization The various functions of device/terminal device.The memory can mainly include storing program area and storage data field, wherein, storage Program area can storage program area, application program (such as sound-playing function, image player function needed at least one function Deng) etc.;Storage data field can store uses created data (such as voice data, phone directory etc.) etc. according to mobile phone.This Outside, memory can include high-speed random access memory, can also include nonvolatile memory, such as hard disk, internal memory, insert Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory Block (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. one kind structure method of testing, it is characterised in that including:
According to pre-configured version control system information, renewal is obtained from Source code management software applies source code, to renewal Be compiled using source code, will be after compiling be packaged into using source code using bag;
FTP information is transmitted according to the file of configuration, the system bag of renewal is obtained from system development server;
Connect pre-configured case management system TESTLINK and download use-case, described answer is downloaded by Control POS terminal With bag and the system bag, after downloading successfully, control POS terminal performs the use-case specified, and after execution terminates, obtains test knot Fruit;
Statistical information is generated according to the test result of acquisition, daily record is transferred according to the test result of acquisition, sent out by predetermined manner The daily record sent the statistical information of generation and transferred.
2. the method as described in claim 1, it is characterised in that it is described according to pre-configured version control system information, from source Renewal is obtained in code management software applies source code, and renewal is compiled using source code, will apply source code after compiling It is packaged into using bag, is specially:
Start scheduling script;
Whether the content of monitoring and dispatching script is run, if the content of scheduling script is not run, opens journal file, records Daily record;
In the daily record of record, current time is read, whether monitoring current time has arrived default scheduling time point, if currently Time is up default scheduling time point, and the scheduling of last time also runs and finished, then is believed according to pre-configured version control system Cease, renewal is obtained from Source code management software applies source code, and renewal is compiled using source code, by answering after compiling It is packaged into source code using bag.
3. method as claimed in claim 1 or 2, it is characterised in that it is described according to pre-configured version control system information, from Renewal is obtained on Source code management software applies source code, renewal is compiled using source code, by the application source after compiling Code is packaged into using bag, is specially:
According to pre-configured version control system information, renewal is obtained from Source code management software applies source code, to renewal Be compiled using source code, processing compiling information generation HTML html file;
Judge whether compiling succeeds using the html file, if compiling successfully, then the html file is packaged into application Bag, and be put into specified location.
4. method as claimed in claim 1 or 2, it is characterised in that the statistical information that generation is sent by predetermined manner And the daily record transferred, it is specially:
The statistical information generated and the daily record transferred are sent to default director's mailbox by e-mail tool;
Or the statistical information generated and the daily record transferred are sent to default director's account by JICQ;
Or the statistical information and tune generated by telephony tools to default director's number call phone, voice broadcast The daily record taken.
5. method as claimed in claim 1 or 2, it is characterised in that the control POS terminal performs the use-case specified, specifically For:
By serial port communicating protocol or parallel port communication agreement, control POS terminal performs the use-case specified.
6. one kind structure test device, it is characterised in that including:
Using bag acquisition module, for according to pre-configured version control system information, being obtained more from Source code management software New applies source code, and renewal is compiled using source code, will be packaged into after compiling using source code using bag;
System bag acquisition module, for transmitting FTP information according to the file of configuration, renewal is obtained from system development server System bag;
Test result acquisition module, use-case is downloaded for connecting pre-configured case management system TESTLINK, passes through relay POS terminal is controlled to download the application bag and the system bag, after downloading successfully, control POS terminal performs the use-case specified, After execution terminates, test result is obtained;
Sending module, for generating statistical information according to the test result of acquisition, daily record is transferred according to the test result of acquisition, led to Cross the daily record that predetermined manner sends the statistical information of generation and transferred.
7. device as claimed in claim 6, it is characterised in that the application bag acquisition module, including:
Start unit, script is dispatched for starting;
Whether monitoring unit, the content for monitoring and dispatching script are run, if the content of scheduling script is not run, open Journal file, log;
Using bag acquiring unit, in the daily record of record, reading current time, it is default whether monitoring current time has arrived Scheduling time point, if current time has arrived default scheduling time point, and the scheduling of last time also runs and finished, then according to prewired The version control system information put, renewal is obtained from Source code management software applies source code, and renewal is entered using source code Row compiling, it will be packaged into after compiling using source code using bag.
8. device as claimed in claims 6 or 7, it is characterised in that
The application bag acquisition module is specifically used for according to pre-configured version control system information, from Source code management software Obtain renewal applies source code, and renewal is compiled using source code, processing compiling information generation HTML Html file, judge whether compiling succeeds using the html file, if compiling successfully, be then packaged into the html file Using bag, and it is put into specified location;
The daily record that the sending module is specifically used for sending the statistical information of generation by e-mail tool and transferring is to default Director's mailbox;Or the daily record for sending the statistical information of generation by JICQ and transferring is responsible for default People's account;Or by telephony tools to default director's number call phone, the statistical information of voice broadcast generation and The daily record transferred;
The test result acquisition module, specifically for being held by serial port communicating protocol or parallel port communication agreement, control POS terminal The use-case that row is specified.
9. one kind structure test device/terminal device, including memory, processor and it is stored in the memory and can be The computer program run on the processor, it is characterised in that realized such as during computer program described in the computing device The step of any one of claim 1 to 5 methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 methods described.
CN201710447102.1A 2017-06-12 2017-06-12 One kind structure method of testing and device Pending CN107357718A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710447102.1A CN107357718A (en) 2017-06-12 2017-06-12 One kind structure method of testing and device
PCT/CN2017/095892 WO2018227736A1 (en) 2017-06-12 2017-08-03 Test construction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710447102.1A CN107357718A (en) 2017-06-12 2017-06-12 One kind structure method of testing and device

Publications (1)

Publication Number Publication Date
CN107357718A true CN107357718A (en) 2017-11-17

Family

ID=60272666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710447102.1A Pending CN107357718A (en) 2017-06-12 2017-06-12 One kind structure method of testing and device

Country Status (2)

Country Link
CN (1) CN107357718A (en)
WO (1) WO2018227736A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254914A (en) * 2018-08-15 2019-01-22 中国平安人寿保险股份有限公司 Software development kit test method, system, computer installation and readable storage medium storing program for executing
CN109298996A (en) * 2018-07-13 2019-02-01 万达百汇科技(深圳)有限公司 A kind of test method, device and terminal device
CN109783120A (en) * 2018-12-28 2019-05-21 易票联支付有限公司 A kind of POS machine software version updating method and system
CN110716878A (en) * 2019-10-11 2020-01-21 赛诺贝斯(北京)营销技术股份有限公司 Automatic interface testing method, device and system
CN110780916A (en) * 2019-09-09 2020-02-11 国电南瑞科技股份有限公司 Software operation and maintenance method, device and system of power grid dispatching control system
CN111475192A (en) * 2020-04-15 2020-07-31 上海莉莉丝科技股份有限公司 Method, device, storage medium and system for performing hot update on game server
CN112100051A (en) * 2020-07-30 2020-12-18 江苏清微智能科技有限公司 Automatic smoking test system and test method thereof
CN113220514A (en) * 2021-05-11 2021-08-06 成都佰维存储科技有限公司 Solid state disk testing method and device, readable storage medium and electronic equipment
CN113297055A (en) * 2020-02-24 2021-08-24 国家广播电视总局广播电视科学研究院 Cloud testing system and method
CN114490202A (en) * 2021-12-21 2022-05-13 北京密码云芯科技有限公司 Password equipment testing method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597708A (en) * 2019-08-02 2019-12-20 北京奇艺世纪科技有限公司 Test case file conversion method and device, electronic equipment and storage medium
CN112328484B (en) * 2020-11-05 2021-11-26 的卢技术有限公司 Method and system for realizing algorithm automation test management platform

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352916B2 (en) * 2006-02-17 2013-01-08 International Business Machines Corporation Facilitating the automated testing of daily builds of software
CN103838584A (en) * 2014-03-26 2014-06-04 北京京东尚科信息技术有限公司 Development method and device for mobile terminal application
CN104866421A (en) * 2015-05-08 2015-08-26 深圳市新国都技术股份有限公司 Testing method and testing system of POS terminal
CN105049532A (en) * 2015-08-28 2015-11-11 北京奇艺世纪科技有限公司 Method and device for packaging SDK package, and method and device for downloading SDK package
CN105653325A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Method and device for updating data packet in test environment and electronic equipment
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 A kind of Automatic System Inteqration method built based on timing
CN106326100A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Software automatic testing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352916B2 (en) * 2006-02-17 2013-01-08 International Business Machines Corporation Facilitating the automated testing of daily builds of software
CN103838584A (en) * 2014-03-26 2014-06-04 北京京东尚科信息技术有限公司 Development method and device for mobile terminal application
CN104866421A (en) * 2015-05-08 2015-08-26 深圳市新国都技术股份有限公司 Testing method and testing system of POS terminal
CN106326100A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Software automatic testing method and device
CN105049532A (en) * 2015-08-28 2015-11-11 北京奇艺世纪科技有限公司 Method and device for packaging SDK package, and method and device for downloading SDK package
CN105653325A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Method and device for updating data packet in test environment and electronic equipment
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 A kind of Automatic System Inteqration method built based on timing

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298996A (en) * 2018-07-13 2019-02-01 万达百汇科技(深圳)有限公司 A kind of test method, device and terminal device
CN109254914A (en) * 2018-08-15 2019-01-22 中国平安人寿保险股份有限公司 Software development kit test method, system, computer installation and readable storage medium storing program for executing
CN109783120A (en) * 2018-12-28 2019-05-21 易票联支付有限公司 A kind of POS machine software version updating method and system
CN110780916A (en) * 2019-09-09 2020-02-11 国电南瑞科技股份有限公司 Software operation and maintenance method, device and system of power grid dispatching control system
CN110780916B (en) * 2019-09-09 2022-11-04 国电南瑞科技股份有限公司 Software operation and maintenance method, device and system of power grid dispatching control system
CN110716878A (en) * 2019-10-11 2020-01-21 赛诺贝斯(北京)营销技术股份有限公司 Automatic interface testing method, device and system
CN110716878B (en) * 2019-10-11 2023-09-26 赛诺贝斯(北京)营销技术股份有限公司 Automatic interface testing method, device and system
CN113297055A (en) * 2020-02-24 2021-08-24 国家广播电视总局广播电视科学研究院 Cloud testing system and method
CN111475192A (en) * 2020-04-15 2020-07-31 上海莉莉丝科技股份有限公司 Method, device, storage medium and system for performing hot update on game server
CN111475192B (en) * 2020-04-15 2023-11-10 上海莉莉丝科技股份有限公司 Method, device, storage medium and system for performing thermal augmentation on game server
CN112100051A (en) * 2020-07-30 2020-12-18 江苏清微智能科技有限公司 Automatic smoking test system and test method thereof
CN112100051B (en) * 2020-07-30 2024-03-08 江苏清微智能科技有限公司 Automatic smoking testing system and testing method thereof
CN113220514A (en) * 2021-05-11 2021-08-06 成都佰维存储科技有限公司 Solid state disk testing method and device, readable storage medium and electronic equipment
CN113220514B (en) * 2021-05-11 2023-05-23 成都佰维存储科技有限公司 Solid state disk testing method and device, readable storage medium and electronic equipment
CN114490202A (en) * 2021-12-21 2022-05-13 北京密码云芯科技有限公司 Password equipment testing method and device, electronic equipment and storage medium
CN114490202B (en) * 2021-12-21 2023-06-23 北京密码云芯科技有限公司 Password equipment testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2018227736A1 (en) 2018-12-20

Similar Documents

Publication Publication Date Title
CN107357718A (en) One kind structure method of testing and device
CN109479061A (en) Compliance violates detection
CN107844189A (en) A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
CN106547578A (en) The loading method and device of terminal applies APP
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN107886361A (en) A kind of method and server for assessing ad conversion rates prediction model
CN107451244A (en) File naming method, mobile terminal and computer-readable recording medium
CN108804175A (en) Multilingual adaptation method, mobile terminal and computer readable storage medium
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN110442502A (en) A kind of method, apparatus buried a little, equipment and storage medium
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN107656750A (en) Update of plug-in method and device
CN109975688A (en) General evaluating method and device for heterogeneous chip
CN108984339A (en) Data reconstruction method and Related product
CN107861855A (en) A kind of method, terminal, system and computer-readable recording medium for reducing abnormal power consumption
CN107239387A (en) A kind of data exception detection method and terminal
CN110244963A (en) Data-updating method, device and terminal device
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN108920704A (en) File access pattern method, file restoring device and mobile terminal
CN109213662A (en) A kind of user's touch-control behavioral data collection method and terminal
CN112308590B (en) Parameter processing method and device, computing equipment and storage medium
CN107332988A (en) Information processing method, mobile terminal and computer-readable recording medium
CN107679222A (en) Image processing method, mobile terminal and computer-readable recording medium

Legal Events

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

Application publication date: 20171117