WO2018227736A1 - Test construction method and device - Google Patents

Test construction method and device Download PDF

Info

Publication number
WO2018227736A1
WO2018227736A1 PCT/CN2017/095892 CN2017095892W WO2018227736A1 WO 2018227736 A1 WO2018227736 A1 WO 2018227736A1 CN 2017095892 W CN2017095892 W CN 2017095892W WO 2018227736 A1 WO2018227736 A1 WO 2018227736A1
Authority
WO
WIPO (PCT)
Prior art keywords
source code
package
application
log
application source
Prior art date
Application number
PCT/CN2017/095892
Other languages
French (fr)
Chinese (zh)
Inventor
吕更
李健
杨维
罗洪礼
Original Assignee
百富计算机技术(深圳)有限公司
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 百富计算机技术(深圳)有限公司 filed Critical 百富计算机技术(深圳)有限公司
Publication of WO2018227736A1 publication Critical patent/WO2018227736A1/en

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

Definitions

  • the present invention belongs to the technical field of POS terminals, and in particular, to a construction test method and apparatus.
  • the API interface test of the operating system OS in the POS terminal involves the OS and the test case code.
  • the OS is continuously upgraded and updated, in order to adapt to this situation, the corresponding test case It is also constantly being updated and updated to accommodate system changes, and it is necessary to perform OS testing through test cases for the quality of the POS OS.
  • the embodiment of the present invention provides a method and apparatus for constructing a test to solve the problem that the existing POS terminal cannot be automatically tested in the test case and affects the test efficiency.
  • a first aspect of an embodiment of the present invention provides a method for constructing a test, including:
  • a second aspect of the embodiments of the present invention provides a constructing test apparatus, including:
  • an application package obtaining module configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package;
  • a system package obtaining module configured to transmit FTP information according to the configured file, and obtain an updated system package from the system burst server;
  • a test result obtaining module configured to connect a pre-configured use case management system TESTLINK download use case, and the relay control POS terminal downloads the application package and the system package, and after the download succeeds, controls the POS terminal to execute the specified use case, and executes After the end, obtain the test results;
  • the sending module is configured to generate statistics according to the obtained test result, retrieve the log according to the obtained test result, and send the generated statistical information and the retrieved log by using a preset manner.
  • a third aspect of an embodiment of the present invention provides a construction test device/terminal device including a memory, a processor, and a computer program stored in the memory and operable on the processor, the process The computer program is executed to implement the steps of the above method.
  • a fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the method.
  • the automatic test without stopping can save the manpower and time in the test resources, improve the execution frequency in the test process, and greatly improve the test efficiency.
  • FIG. 1 is a flowchart of an implementation of a build test method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an implementation of a scheduling script in a build test method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an implementation of a compiled application process in a build test method according to an embodiment of the present invention
  • FIG. 4 is a flowchart of an implementation of downloading an OS and an application in a build test method according to an embodiment of the present invention
  • FIG. 5 is a flowchart of an implementation of a compiled application process in a build test method according to an embodiment of the present invention
  • FIG. 6 is a flowchart of an implementation of sending a mail in a build test method according to an embodiment of the present invention
  • FIG. 7 is a structural block diagram of a construction test apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a test device/terminal device provided by an embodiment of the present invention.
  • the term “if” may be interpreted as “when" or “once” or “in response to determining” or “in response to detecting” depending on the context. ". Similarly, the phrase “such as If it is determined “or” if the [described condition or event described] is detected, it may be interpreted as meaning “once determined” or “in response to determination” or “once detected [condition or event described]” or “response” Upon detection of [conditions or events described].
  • the terminal device described in the embodiments of the present invention includes, but is not limited to, a mobile phone, a laptop computer or a tablet computer such as a touch sensitive surface (eg, a touch screen display and/or a touch pad).
  • a touch sensitive surface eg, a touch screen display and/or a touch pad
  • Other portable devices e.g., the device is not a portable communication device, but a desktop computer having a touch sensitive surface (e.g., a touch screen display and/or a touch pad).
  • terminal device including a display and a touch sensitive surface is described.
  • the terminal device can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
  • the terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application.
  • the various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch sensitive surface.
  • One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application.
  • the terminal's common physical architecture e.g., touch-sensitive surface
  • FIG. 1 is a flowchart of an implementation of a build test method according to an embodiment of the present invention. The method is applied to a terminal device.
  • the test method shown in FIG. 1 may include the following steps:
  • S101 Obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package.
  • S101 is specifically:
  • the current time is read, and it is monitored whether the current scheduled time has reached the preset scheduling point. If the current scheduled time reaches the scheduled scheduling point, and the last scheduling is also completed.
  • the updated application source code is obtained from the source code management software, the updated application source code is compiled, and the compiled application source code is packaged into an application package.
  • S102 Transmit FTP information according to the configured file, and obtain an updated system package from the system burst server.
  • the update identifier is read from the system burst server, and the updated system package is obtained according to the update identifier.
  • S103 Connect a pre-configured use case management system TESTLINK download use case, and control the POS terminal to download the application package and the system package by using a relay. After the download succeeds, the POS terminal is controlled to execute the specified use case, and after the execution ends, the test is acquired. Result
  • the updated application source code is obtained from the source code management software, the updated application source code is compiled, and the compiled application source code is packaged into an application package, specifically :
  • HTML HyperText Markup Language
  • the controlling POS terminal executes the specified use case, specifically:
  • the POS terminal is controlled to execute the specified use case through a serial communication protocol or a parallel port communication protocol.
  • S104 Generate statistics according to the obtained test result, retrieve a log according to the obtained test result, and send the generated statistical information and the retrieved log by a preset manner.
  • the sending the generated statistical information and the retrieved log by using a preset manner specifically: [0058] sending the generated statistical information and the retrieved log to the preset responsible person mailbox through the mail tool; [0059] Alternatively, sending the generated statistical information and the retrieved log to the preset responsible person account through the instant communication tool;
  • the telephone tool is used to make a call to the preset person in charge number, the statistical information generated by the voice broadcast, and the retrieved log.
  • one or more person in charge mailboxes, a person in charge account, and a person in charge number are set, and the manner and quantity of setting are not limited herein.
  • the embodiment of the present invention solves the problem that the POS terminal is too long in the test case, and cannot perform the OS test through the test case, which affects the test efficiency and can realize the automatic test without stopping.
  • FIG. 2 is a flowchart of an implementation of a scheduling script in a build test method according to an embodiment of the present invention.
  • the build test method is applied to a terminal device. As shown in FIG. 2, the method includes the following steps:
  • FIG. 3 is a flowchart of an implementation process of a compiled application process in a build test method according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • S301 Download an application source code according to the configured version control system SVN information.
  • FIG. 4 is a flowchart of an implementation of downloading an OS and an application in a build test method according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • S401 Download an OS system package according to the configured FTP information.
  • S402. Determine whether the OS system package is successfully downloaded.
  • FIG. 5 is a flowchart of an implementation process of a compiled application process in a build test method according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • S501 Download an application source according to the configured SVN information.
  • FIG. 6 is a flowchart of an implementation of sending a mail in a build test method according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
  • the embodiments of the present invention save manpower in test resources, can cover different PC system platforms, and perform OS testing through use cases, and can discover compatibility problems between application packages and system packages.
  • FIG. 7 is a structural block diagram of a construction testing device according to an embodiment of the present invention, which is applied to a terminal device, where the terminal device includes but is not limited to a computer.
  • Mobile Phone Pocket PC (PPC), Pocket PC, Laptop, Personal Digital Assistant (PDA).
  • PPC Personal Computer
  • PDA Personal Digital Assistant
  • the construction test apparatus includes:
  • the application package obtaining module 71 is configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package. ;
  • the system package obtaining module 72 is configured to transmit FTP information according to the configured file, from the system bursting server Obtain an updated system package;
  • the test result obtaining module 73 is configured to connect a pre-configured use case management system TESTLINK download use case, and download the application package and the system package by using a relay control POS terminal, and after the download succeeds, control P
  • the OS terminal executes the specified use case, and after the execution ends, the test result is obtained;
  • the sending module 74 is configured to generate statistics according to the obtained test result, obtain a log according to the obtained test result, and send the generated statistical information and the retrieved log by using a preset manner.
  • the application package acquiring module includes:
  • a starting unit configured to start a scheduling script
  • a monitoring unit configured to monitor whether the content of the scheduling script is running, if the content of the scheduling script is not running, then snooze the log file and record the log;
  • the application package obtaining unit is configured to: in the recorded log, read the current time, and monitor whether the current scheduled time reaches the preset scheduling point, if the current time reaches the preset scheduling time point, and After the last scheduling is also completed, the updated application source code is obtained from the source code management software according to the pre-configured version control system information, the updated application source code is compiled, and the compiled application source code is packaged into an application package.
  • the application package obtaining module is specifically configured to obtain updated application source code from source code management software according to pre-configured version control system information. Compiling the updated application source code, processing the compiled information to generate a hypertext markup language HTML file, and using the HTML file to determine whether the compilation is successful. If the compilation is successful, the HTML file is packaged into an application package and placed in a specified location. ;
  • the sending module is specifically configured to send the generated statistical information and the retrieved log to the preset responsible person's mailbox through the mail tool; or send the generated statistical information and the retrieved log to the pre-prepared by the instant communication tool.
  • the test result obtaining module is specifically configured to control the P OS terminal to execute the specified use case by using a serial communication protocol or a parallel port communication protocol.
  • Embodiment 4 8 is a schematic diagram of a test device/terminal device according to an embodiment of the present invention.
  • the build test device/terminal device 8 of this embodiment comprises: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and operable on the processor 80, such as a build test program.
  • the processor 80 executes the computer program 82 to implement the steps in the foregoing various construction test method embodiments, such as steps 101 to 104 shown in FIG. 1, or the processor 80 executes the computer program 82 ⁇ .
  • the computer program 82 may be partitioned into one or more modules/units, which are stored in the memory 81 and executed by the processor 80.
  • the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 82 in the construction test device/terminal device 8.
  • the computer program 82 can be divided into an application package acquisition module, a system package acquisition module, a test result acquisition module, and a transmission module (modules in a virtual device). The specific functions of each module are as follows:
  • an application package obtaining module configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package;
  • a system package obtaining module configured to transmit the FTP information according to the configured file, and obtain the updated system package from the system bursting server;
  • a test result obtaining module configured to connect a pre-configured use case management system TESTLINK download use case, and download the application package and the system package by using a relay control POS terminal, and after the download succeeds, control the POS terminal to execute the specified use case, and execute After the end, obtain the test results;
  • the sending module is configured to generate statistics according to the obtained test result, retrieve the log according to the obtained test result, and send the generated statistical information and the retrieved log by using a preset manner.
  • the build test device/terminal device 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the building test device/terminal device may include, but is not limited to, the processor 80 and the memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of constructing the test device/terminal device 8, and does not constitute a limitation on constructing the test device/terminal device 8, and may include more or less than the illustration.
  • the components, or a combination of certain components, or different components, such as the construction test device/terminal device may also include input and output devices, network access devices, buses, and the like.
  • the processor 80 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-to-use programmable gate array
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 81 may be an internal storage unit of the build test device/terminal device 8, such as a hard disk or a memory of the test device/terminal device 8.
  • the memory 81 may also be an external storage device that constructs the test device/terminal device 8, for example, a plug-in hard disk equipped with the test device/terminal device 8, a smart memory card (SMC), Secure Digital (SD) card, Flash Card, etc.
  • the memory 81 may also include both the internal storage unit of the construction test device/terminal device 8 and an external storage device.
  • the memory 81 is used to store the computer program and other programs and data required to construct the test device/terminal device.
  • the memory 81 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit and module in the foregoing system may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware.
  • Formal implementation can also be implemented in the form of software functional units.
  • the specific names of the functional units and modules are only for the purpose of distinguishing between the two, and are not intended to limit the scope of protection of the present application.
  • the disclosed device/terminal device and method may be implemented in other manners.
  • the device/terminal device embodiment described above is merely illustrative.
  • the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units.
  • components may be combined or integrated into another system, or some features may be omitted or not implemented.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated module/unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
  • the computer program may be stored in a computer readable storage medium. After the program is executed by the processor, the steps of the various method embodiments described above can be implemented. .
  • the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive , Disk, CD, computer memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
  • the device/terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the device/terminal device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of a device/terminal device, and does not constitute a limitation of the device/terminal device, and may include more or less components than those illustrated, or may be combined with some components, or Different components, such as the device/terminal device, may also include input and output devices, network access devices, buses, and the like.
  • the so-called processor may be a central processing unit (CPU), and may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC). ), ready-made programmable gate array
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor is a control center of the device/terminal device, and connects the entire device/terminal device by using various interfaces and lines. Various parts.
  • the memory can be used to store the computer program and/or module, the processor being implemented by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created based on the use of the mobile phone (such as audio data, phone book, etc.).
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • Flash Card at least one disk storage device, flash device, or other volatile solid-state storage device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a test construction method and a device. The method comprises: acquiring updated application source code from a source code management software according to pre-configured version control system information, compiling the updated application source code, and packaging compiled application source code into an application package (S101); acquiring an updated system package from a system development server according to configured file transfer FTP information (S102); connecting to a pre-configured case management system TESTLINK to download cases, controlling a POS terminal through a relay to download the application package and the system package, and controlling the POS terminal to execute the specified cases after downloading is successful, and acquiring a test result after execution is complete (S103); and generating statistical information according to the acquired test result, retrieving a log according to the acquired test result, and sending the generated statistical information and the retrieved log through a preset manner (S104). According to the method, a ceaseless automatic test can be realized, manpower and test time are saved, and test efficiency is greatly improved.

Description

发明名称:一种构建测试方法及装置  Invention name: a construction test method and device
技术领域  Technical field
[0001] 本发明属于 POS终端技术领域, 尤其涉及一种构建测试方法及装置。  [0001] The present invention belongs to the technical field of POS terminals, and in particular, to a construction test method and apparatus.
背景技术  Background technique
[0002] POS终端中操作系统 OS的 API接口测试涉及 OS和测试用例代码, 随着不断增加 的客户需求以及新技术的引入, 造成 OS不断的升级更新, 为了适应这种状况, 对应的测试用例也不断增加和更新以适应系统的变化, 为了 POS机 OS的质量, 及吋通过测试用例进行 OS测试很有必要。  [0002] The API interface test of the operating system OS in the POS terminal involves the OS and the test case code. With the increasing customer demand and the introduction of new technologies, the OS is continuously upgraded and updated, in order to adapt to this situation, the corresponding test case It is also constantly being updated and updated to accommodate system changes, and it is necessary to perform OS testing through test cases for the quality of the POS OS.
[0003] 然而, 现有 P0S终端在测试用例吋, 幵发人员每天需要不断手动提交代码, 构 建新的 OS包, 测试人员每天需要手动增加和更新用例以适应系统幵发的修改, 这增加了测试人员的工作量, 耗费的吋间过长, 难以及吋发现问题, 影响了测 试效率。 [0003] However, in the existing use cases of the POS terminal, the issuer needs to manually submit the code every day to build a new OS package, and the tester needs to manually add and update the use case every day to adapt to the system burst modification, which increases The workload of the testers, the long time spent, the difficulty and the problems found, affect the efficiency of the test.
技术问题  technical problem
[0004] 有鉴于此, 本发明实施例提供了一种构建测试方法及装置, 以解决现有 POS终 端在测试用例吋, 不能自动测试, 影响了测试效率的问题。  In view of this, the embodiment of the present invention provides a method and apparatus for constructing a test to solve the problem that the existing POS terminal cannot be automatically tested in the test case and affects the test efficiency.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0005] 本发明实施例的第一方面提供了一种构建测试方法, 包括:  [0005] A first aspect of an embodiment of the present invention provides a method for constructing a test, including:
[0006] 根据预配置的版本控制系统信息, 从源代码管理软件上获取更新的应用源码, 对更新的应用源码进行编译, 将编译后的应用源码打包成应用包;  [0006] according to the pre-configured version control system information, obtaining updated application source code from the source code management software, compiling the updated application source code, and packaging the compiled application source code into an application package;
[0007] 根据配置的文件传输 FTP信息, 从系统幵发服务器上获取更新的系统包; [0008] 连接预配置的用例管理系统 TESTLINK下载用例, 通过继电器控制 P0S终端下 载所述应用包以及所述系统包, 下载成功后, 控制 POS终端执行指定的用例, 执 行结束后, 获取测试结果; [0007] obtaining an updated system package from the system burst server according to the configured file transfer FTP information; [0008] connecting the pre-configured use case management system TESTLINK download use case, downloading the application package by the relay control POS terminal, and the After the system package is successfully downloaded, the POS terminal is controlled to execute the specified use case. After the execution ends, the test result is obtained.
[0009] 根据获取的测试结果生成统计信息, 根据获取的测试结果调取日志, 通过预设 方式发送生成的统计信息以及调取的日志。 [0010] 本发明实施例的第二方面提供了一种构建测试装置, 包括: [0009] Generate statistics according to the obtained test result, retrieve the log according to the obtained test result, and send the generated statistical information and the retrieved log by a preset manner. [0010] A second aspect of the embodiments of the present invention provides a constructing test apparatus, including:
[0011] 应用包获取模块, 用于根据预配置的版本控制系统信息, 从源代码管理软件上 获取更新的应用源码, 对更新的应用源码进行编译, 将编译后的应用源码打包 成应用包;  [0011] an application package obtaining module, configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package;
[0012] 系统包获取模块, 用于根据配置的文件传输 FTP信息, 从系统幵发服务器上获 取更新的系统包;  [0012] a system package obtaining module, configured to transmit FTP information according to the configured file, and obtain an updated system package from the system burst server;
[0013] 测试结果获取模块, 用于连接预配置的用例管理系统 TESTLINK下载用例, 通 过继电器控制 POS终端下载所述应用包以及所述系统包, 下载成功后, 控制 POS 终端执行指定的用例, 执行结束后, 获取测试结果;  [0013] a test result obtaining module, configured to connect a pre-configured use case management system TESTLINK download use case, and the relay control POS terminal downloads the application package and the system package, and after the download succeeds, controls the POS terminal to execute the specified use case, and executes After the end, obtain the test results;
[0014] 发送模块, 用于根据获取的测试结果生成统计信息, 根据获取的测试结果调取 日志, 通过预设方式发送生成的统计信息以及调取的日志。  [0014] The sending module is configured to generate statistics according to the obtained test result, retrieve the log according to the obtained test result, and send the generated statistical information and the retrieved log by using a preset manner.
[0015] 本发明实施例的第三方面提供了一种构建测试装置 /终端设备, 包括存储器、 处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序, 所述 处理器执行所述计算机程序吋实现上述方法的步骤。 [0015] A third aspect of an embodiment of the present invention provides a construction test device/terminal device including a memory, a processor, and a computer program stored in the memory and operable on the processor, the process The computer program is executed to implement the steps of the above method.
[0016] 本发明实施例的第四方面提供了一种计算机可读存储介质, 所述计算机可读存 储介质存储有计算机程序, 所述计算机程序被处理器执行吋实现上述方法的步 骤。 A fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the method.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0017] 本发明实施例与现有技术相比存在的有益效果是:  [0017] The beneficial effects of the embodiments of the present invention compared with the prior art are:
[0018] 能够实现不停歇的自动测试, 节省了测试资源中的人力和吋间, 提高了测试过 程中的执行频度, 大大提高了测试效率。  [0018] The automatic test without stopping can save the manpower and time in the test resources, improve the execution frequency in the test process, and greatly improve the test efficiency.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0019] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。 [0020] 图 1是本发明实施例提供的构建测试方法的实现流程图; [0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the skilled artisan. 1 is a flowchart of an implementation of a build test method according to an embodiment of the present invention;
[0021] 图 2是本发明实施例提供的构建测试方法中调度脚本的实现流程图;  [0021] FIG. 2 is a flowchart of an implementation of a scheduling script in a build test method according to an embodiment of the present invention;
[0022] 图 3是本发明实施例提供的构建测试方法中编译应用流程的实现流程图;  [0022] FIG. 3 is a flowchart of an implementation of a compiled application process in a build test method according to an embodiment of the present invention;
[0023] 图 4是本发明实施例提供的构建测试方法中下载 OS和应用的实现流程图; 4 is a flowchart of an implementation of downloading an OS and an application in a build test method according to an embodiment of the present invention;
[0024] 图 5是本发明实施例提供的构建测试方法中编译应用流程的实现流程图; [0024] FIG. 5 is a flowchart of an implementation of a compiled application process in a build test method according to an embodiment of the present invention;
[0025] 图 6是本发明实施例提供的构建测试方法中发送邮件的实现流程图;  6 is a flowchart of an implementation of sending a mail in a build test method according to an embodiment of the present invention;
[0026] 图 7是本发明实施例提供的构建测试装置的结构框图;  7 is a structural block diagram of a construction test apparatus according to an embodiment of the present invention;
[0027] 图 8是本发明实施例提供的构建测试装置 /终端设备的示意图。  8 is a schematic diagram of a test device/terminal device provided by an embodiment of the present invention.
本发明的实施方式 Embodiments of the invention
[0028] 以下描述中, 为了说明而不是为了限定, 提出了诸如特定系统结构、 技术之类 的具体细节, 以便透彻理解本发明实施例。 然而, 本领域的技术人员应当清楚 , 在没有这些具体细节的其它实施例中也可以实现本发明。 在其它情况中, 省 略对众所周知的系统、 装置、 电路以及方法的详细说明, 以免不必要的细节妨 碍本发明的描述。  [0028] In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.
[0029] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。  [0029] In order to explain the technical solutions described in the present invention, the following description will be made by way of specific embodiments.
[0030] 应当理解, 当在本说明书和所附权利要求书中使用吋, 术语"包括"指示所描述 特征、 整体、 步骤、 操作、 元素和 /或组件的存在, 但并不排除一个或多个其它 特征、 整体、 步骤、 操作、 元素、 组件和 /或其集合的存在或添加。 [0030] It is to be understood that the terms "comprising", when used in the specification and the claims The presence or addition of other features, integers, steps, operations, elements, components, and/or their collections.
[0031] 还应当理解, 在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的 目的而并不意在限制本发明。 如在本发明说明书和所附权利要求书中所使用的 那样, 除非上下文清楚地指明其它情况, 否则单数形式的"一"、 "一个 "及"该"意 在包括复数形式。 The terminology used herein is for the purpose of describing particular embodiments and is not intended to limit the invention. The singular forms "a", "the", and "the"
[0032] 还应当进一步理解, 在本发明说明书和所附权利要求书中使用的术语 "和 /或"是 指相关联列出的项中的一个或多个的任何组合以及所有可能组合, 并且包括这 些组合。  [0032] It should also be further understood that the term "and/or" used in the description of the invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and These combinations are included.
[0033] 如在本说明书和所附权利要求书中所使用的那样, 术语"如果"可以依据上下文 被解释为 "当…吋 "或"一旦"或"响应于确定"或"响应于检测到"。 类似地, 短语"如 果确定 "或"如果检测到 [所描述条件或事件]"可以依据上下文被解释为意指"一旦 确定"或"响应于确定"或"一旦检测到 [所描述条件或事件]"或"响应于检测到 [所描 述条件或事件]"。 [0033] As used in this specification and the appended claims, the term "if" may be interpreted as "when..." or "once" or "in response to determining" or "in response to detecting" depending on the context. ". Similarly, the phrase "such as If it is determined "or" if the [described condition or event described] is detected, it may be interpreted as meaning "once determined" or "in response to determination" or "once detected [condition or event described]" or "response" Upon detection of [conditions or events described].
[0034] 具体实现中, 本发明实施例中描述的终端设备包括但不限于诸如具有触摸敏感 表面 (例如, 触摸屏显示器和 /或触摸板)的移动电话、 膝上型计算机或平板计算机 之类的其它便携式设备。 还应当理解的是, 在某些实施例中, 所述设备并非便 携式通信设备, 而是具有触摸敏感表面 (例如, 触摸屏显示器和 /或触摸板)的台式 计算机。  [0034] In a specific implementation, the terminal device described in the embodiments of the present invention includes, but is not limited to, a mobile phone, a laptop computer or a tablet computer such as a touch sensitive surface (eg, a touch screen display and/or a touch pad). Other portable devices. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch sensitive surface (e.g., a touch screen display and/or a touch pad).
[0035] 在接下来的讨论中, 描述了包括显示器和触摸敏感表面的终端设备。 然而, 应 当理解的是, 终端设备可以包括诸如物理键盘、 鼠标和 /或控制杆的一个或多个 其它物理用户接口设备。  [0035] In the following discussion, a terminal device including a display and a touch sensitive surface is described. However, it should be understood that the terminal device can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
[0036] 终端设备支持各种应用程序, 例如以下中的一个或多个: 绘图应用程序、 演示 应用程序、 文字处理应用程序、 网站创建应用程序、 盘刻录应用程序、 电子表 格应用程序、 游戏应用程序、 电话应用程序、 视频会议应用程序、 电子邮件应 用程序、 即吋消息收发应用程序、 锻炼支持应用程序、 照片管理应用程序、 数 码相机应用程序、 数字摄影机应用程序、 web浏览应用程序、 数字音乐播放器应 用程序和 /或数字视频播放器应用程序。  [0036] The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application. Programs, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music Player application and / or digital video player application.
[0037] 可以在终端设备上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个 公共物理用户接口设备。 可以在应用程序之间和 /或相应应用程序内调整和 /或改 变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。 这样, 终端的 公共物理架构 (例如, 触摸敏感表面)可以支持具有对用户而言直观且透明的用户 界面的各种应用程序。  [0037] The various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application. In this way, the terminal's common physical architecture (e.g., touch-sensitive surface) can support a variety of applications with a user interface that is intuitive and transparent to the user.
[0038] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。  [0038] In order to explain the technical solutions described in the present invention, the following description will be made by way of specific embodiments.
[0039] 实施例一  [0039] Embodiment 1
[0040] 参考图 1, 图 1是本发明实施例提供的构建测试方法的实现流程图, 该方法应用 于终端设备, 如图 1所示构建测试方法可以包括以下步骤:  Referring to FIG. 1, FIG. 1 is a flowchart of an implementation of a build test method according to an embodiment of the present invention. The method is applied to a terminal device. The test method shown in FIG. 1 may include the following steps:
[0041] S101 , 根据预配置的版本控制系统信息, 从源代码管理软件上获取更新的应用 源码, 对更新的应用源码进行编译, 将编译后的应用源码打包成应用包; [0042] 进一步地, S101, 具体为: [0041] S101. Obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package. [0042] Further, S101 is specifically:
[0043] 启动调度脚本; [0043] starting a scheduling script;
[0044] 监测调度脚本的内容是否运行, 如果调度脚本的内容没有运行, 则打幵日志文 件, 记录日志;  [0044] monitoring whether the content of the scheduling script is running, if the content of the scheduling script is not running, then snoozing the log file and recording the log;
[0045] 在记录的日志中, 读取当前吋间, 监测当前吋间是否到了预设的调度吋间点, 如果当前吋间到了预设的调度吋间点, 且上次的调度也运行完毕, 则根据预配 置的版本控制系统信息, 从源代码管理软件上获取更新的应用源码, 对更新的 应用源码进行编译, 将编译后的应用源码打包成应用包。  [0045] In the recorded log, the current time is read, and it is monitored whether the current scheduled time has reached the preset scheduling point. If the current scheduled time reaches the scheduled scheduling point, and the last scheduling is also completed. According to the pre-configured version control system information, the updated application source code is obtained from the source code management software, the updated application source code is compiled, and the compiled application source code is packaged into an application package.
[0046] 检测上次的调度是否产生测试结果, 如果检测到上次的调度产生了测试结果, 判断上次的调度运行完毕。  [0046] Detecting whether the last schedule generates a test result, and if it is detected that the last schedule has generated a test result, it is determined that the last scheduled operation is completed.
[0047] S102, 根据配置的文件传输 FTP信息, 从系统幵发服务器上获取更新的系统包  [0047] S102. Transmit FTP information according to the configured file, and obtain an updated system package from the system burst server.
[0048] 根据配置的文件传输 FTP信息, 从系统幵发服务器上读取更新标识, 根据更新 标识获取更新的系统包。 [0048] According to the configured file transfer FTP information, the update identifier is read from the system burst server, and the updated system package is obtained according to the update identifier.
[0049] S103 , 连接预配置的用例管理系统 TESTLINK下载用例, 通过继电器控制 POS 终端下载所述应用包以及所述系统包, 下载成功后, 控制 POS终端执行指定的用 例, 执行结束后, 获取测试结果; [0049] S103. Connect a pre-configured use case management system TESTLINK download use case, and control the POS terminal to download the application package and the system package by using a relay. After the download succeeds, the POS terminal is controlled to execute the specified use case, and after the execution ends, the test is acquired. Result
[0050] 进一步地, 所述根据预配置的版本控制系统信息, 从源代码管理软件上获取更 新的应用源码, 对更新的应用源码进行编译, 将编译后的应用源码打包成应用 包, 具体为:  [0050] Further, according to the pre-configured version control system information, the updated application source code is obtained from the source code management software, the updated application source code is compiled, and the compiled application source code is packaged into an application package, specifically :
[0051] 根据预配置的版本控制系统信息, 从源代码管理软件上获取更新的应用源码, 对更新的应用源码进行编译, 处理编译信息生成超文本标记语言 (HyperText Markup Language, HTML)文件;  [0051] obtaining updated application source code from the source code management software according to the pre-configured version control system information, compiling the updated application source code, and processing the compiled information to generate a HyperText Markup Language (HTML) file;
[0052] 利用所述 HTML文件判断编译是否成功, 倘若编译成功, 则将所述 HTML文件 打包成应用包, 并放到指定位置上。 [0052] determining whether the compilation is successful by using the HTML file, and if the compilation is successful, packaging the HTML file into an application package and placing it in a specified location.
[0053] 进一步地, 所述控制 POS终端执行指定的用例, 具体为: [0053] Further, the controlling POS terminal executes the specified use case, specifically:
[0054] 通过串口通讯协议或并口通讯协议, 控制 POS终端执行指定的用例。 [0054] The POS terminal is controlled to execute the specified use case through a serial communication protocol or a parallel port communication protocol.
[0055] 其中, 通过串口通讯协议或并口通讯协议, 向 POS终端发送执行用例的指令, 等待 POS终端执行完要执行的用例后, 获取测试结果。 [0055] wherein, by using a serial communication protocol or a parallel port communication protocol, an instruction for executing a use case is sent to the POS terminal, After waiting for the POS terminal to execute the use case to be executed, obtain the test result.
[0056] S104, 根据获取的测试结果生成统计信息, 根据获取的测试结果调取日志, 通 过预设方式发送生成的统计信息以及调取的日志。 [0056] S104: Generate statistics according to the obtained test result, retrieve a log according to the obtained test result, and send the generated statistical information and the retrieved log by a preset manner.
[0057] 进一步地, 所述通过预设方式发送生成的统计信息以及调取的日志, 具体为: [0058] 通过邮件工具发送生成的统计信息以及调取的日志给预设的负责人邮箱; [0059] 或者, 通过即吋通信工具发送生成的统计信息以及调取的日志给预设的负责人 账号; [0057] Further, the sending the generated statistical information and the retrieved log by using a preset manner, specifically: [0058] sending the generated statistical information and the retrieved log to the preset responsible person mailbox through the mail tool; [0059] Alternatively, sending the generated statistical information and the retrieved log to the preset responsible person account through the instant communication tool;
[0060] 或者, 通过电话工具向预设的负责人号码拨打电话, 语音播报生成的统计信息 以及调取的日志。  [0060] Alternatively, the telephone tool is used to make a call to the preset person in charge number, the statistical information generated by the voice broadcast, and the retrieved log.
[0061] 其中, 设定一个或多个负责人邮箱、 负责人账号以及负责人号码, 设定的方式 和数量, 在此不做限定。  [0061] Wherein, one or more person in charge mailboxes, a person in charge account, and a person in charge number are set, and the manner and quantity of setting are not limited herein.
[0062] 本发明实施例解决了 POS终端在测试用例吋, 耗费的吋间过长, 且不能及吋通 过测试用例进行 OS测试, 影响了测试效率的问题, 能够实现不停歇的自动测试[0062] The embodiment of the present invention solves the problem that the POS terminal is too long in the test case, and cannot perform the OS test through the test case, which affects the test efficiency and can realize the automatic test without stopping.
, 节省了测试资源中的人力, 提高了测试过程中的执行频度, 及吋通过用例进 行 OS测试, 大大提高了测试效率。 , saving manpower in test resources, improving the frequency of execution during the test process, and performing OS tests through use cases, greatly improving test efficiency.
[0063] 实施例二 Embodiment 2
[0064] 参考图 2, 图 2是本发明实施例提供的构建测试方法中调度脚本的实现流程图, 该构建测试方法应用于终端设备, 如图 2所示, 包括以下步骤:  Referring to FIG. 2, FIG. 2 is a flowchart of an implementation of a scheduling script in a build test method according to an embodiment of the present invention. The build test method is applied to a terminal device. As shown in FIG. 2, the method includes the following steps:
[0065] S201 , 启动调度脚本; [0065] S201, starting a scheduling script;
[0066] S202, 判断调度脚本有没有运行; [0066] S202, determining whether the scheduling script is running;
[0067] S203 , 打幵日志文件, 记录日志; [0067] S203, snoozing a log file, recording a log;
[0068] S204, 判断是否到了调度吋间点, 是则执行 S205 , 否则执行 S207 ;  [0068] S204, determining whether the scheduling point is reached, if yes, executing S205, otherwise executing S207;
[0069] S205 , 判断幵始监测上次的调度是否运行完, 是则执行 S206,否则执行 S207 ;  [0069] S205, determining to monitor whether the last schedule is run, if yes, execute S206, otherwise execute S207;
[0070] S206 , 异步启动调用执行步骤 S101至 S104的批处理脚本;  [0070] S206, asynchronously invoking a batch processing script that performs steps S101 to S104;
[0071] S207 , 进入指定超吋的休眠状态;  [0071] S207, entering a dormant state of the specified super-;;
[0072] 调度脚本启动吋首先监测调度脚本是否运行, 如果运行则退出, 如果没有则启 动, 打幵日志文件, 用于记录日志, 接着判断当前吋间是否到了调度吋间点, 如果没有, 则休眠一段吋间继续监测, 否则监测上次调度是否没有运行完, 如 果没有, 则不调度, 如果有则异步调用异步启动调用执行步骤 S101至 S104的批 处理脚本。 调度脚本则继续进行检测是否到了调度吋间点, 循环往复运行。 参考图 3, 图 3是本发明实施例提供的构建测试方法中编译应用流程的实现流程 图, 如图 3所示, 包括以下步骤: [0072] The scheduling script is started, firstly, whether the scheduling script is running, if it is running, exiting, if not, starting, snoozing the log file, for recording the log, and then determining whether the current day is at the scheduling point, if not, then Do not continue to monitor during the period of sleep, otherwise monitor whether the last schedule has not been run, such as If not, it is not scheduled. If there is, the asynchronous call is asynchronously called to execute the batch script of steps S101 to S104. The scheduling script continues to detect if it has reached the scheduling point and loops back and forth. Referring to FIG. 3, FIG. 3 is a flowchart of an implementation process of a compiled application process in a build test method according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
[0074] S301 , 根据配置的版本控制系统 SVN信息下载应用源码;  [0074] S301. Download an application source code according to the configured version control system SVN information.
[0075] S302, 判断下载是否成功, 是则执行 S303, 否则结束;  [0075] S302, determining whether the download is successful, if yes, executing S303, otherwise ending;
[0076] S303 , 编译应用;  [0076] S303, compiling an application;
[0077] S304, 处理编译信息生成 HTML;  [0077] S304, processing compilation information to generate HTML;
[0078] S305 , 判断编译是否成功, 是则执行 S306, 否则结束;  [0078] S305, determining whether the compilation is successful, if yes, executing S306, otherwise ending;
[0079] S306 , 打包应用;  [0079] S306, packaging the application;
[0080] 其中, 根据配置的源代码管理器信息, 从源代码管理器上下载应用源码, 如出 错, 返回错误, 如正常, 则幵始编译代码, 编译完成, 禾 1」用脚本处理生成 HTML 文件, 还要检査编译有无错误, 如有则返回编译错误日志, 如无则幵始打包应 用, 放置到指定位置供下载使用。  [0080] wherein, according to the configured source code manager information, downloading the application source code from the source code manager, such as an error, returning an error, such as normal, then compiling the code, compiling is completed, and using a script to generate HTML The file, also check the compilation for errors, if any, return the compilation error log, if not, then package the application and place it in the specified location for download.
参考图 4, 图 4是本发明实施例提供的构建测试方法中下载 OS和应用的实现流 程图, 如图 4所示, 包括以下步骤:  Referring to FIG. 4, FIG. 4 is a flowchart of an implementation of downloading an OS and an application in a build test method according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
[0082] S401 , 根据配置的 FTP信息下载 OS系统包;  [0082] S401. Download an OS system package according to the configured FTP information.
[0083] S402, 判断 OS系统包是否下载成功;  [0083] S402. Determine whether the OS system package is successfully downloaded.
[0084] S403 , 下载应用包;  [0084] S403, downloading an application package;
[0085] S404, 判断应用包是否下载成功;  [0085] S404. Determine whether the application package is successfully downloaded.
[0086] S405 , 切换 POS应用到自动测试模式。  [0086] S405. Switch the POS application to the automatic test mode.
[0087] 其中, 从幵发服务器上下载当前编译好的 OS系统, 如果失败返回, 否则下载 0 [0087] wherein, downloading the currently compiled OS system from the burst server, if the failure returns, otherwise downloading 0
S系统, 如果失败返回, 否则下载应用, 如果失败返回, 否则切换 POS到自动下 载模式。 S system, if it returns, otherwise download the application, if it returns, otherwise switch POS to automatic download mode.
[0088] 参考图 5, 图 5是本发明实施例提供的构建测试方法中编译应用流程的实现流程 图, 如图 5所示, 包括以下步骤:  Referring to FIG. 5, FIG. 5 is a flowchart of an implementation process of a compiled application process in a build test method according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
[0089] S501 , 根据配置的 SVN信息下载应用源码; [0089] S501. Download an application source according to the configured SVN information.
[0090] S502, 判断下载是否成功, 是则执行 S503, 否则结束; [0091] S503 , 读取用例列表, 幵始执行用例 [0090] S502, determining whether the download is successful, if yes, executing S503, otherwise ending; [0091] S503, reading the use case list, starting the execution use case
[0092] S504, 判断执行用例是否成功, 是则执行 S505, 否则结束; [0092] S504, determining whether the execution use case is successful, if yes, executing S505, otherwise ending;
[0093] S505 , 是否执行完全部用例, 是则执行 S506, 否则执行 S503; [0093] S505, whether to execute the full use case, if yes, execute S506, otherwise execute S503;
[0094] S506, 执行用例完成后, 从 POS上传结果文件到 PC; [0094] S506, after the execution use case is completed, uploading the result file from the POS to the PC;
[0095] S507 , 分析结果文件, 生成统计信息。 [0095] S507, analyzing the result file, and generating statistical information.
[0096] 参考图 6, 图 6是本发明实施例提供的构建测试方法中发送邮件的实现流程图, 如图 6所示, 包括以下步骤:  6 is a flowchart of an implementation of sending a mail in a build test method according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
[0097] S601 , 收集前几个步骤的信息; [0097] S601, collecting information of the first few steps;
[0098] 几个步骤是指图 1至图 5中的步骤。 [0098] Several steps refer to the steps in FIGS. 1 to 5.
[0099] S602, 设置好邮件主题、 接收者、 正文和附件信息; [0099] S602, setting a mail subject, a recipient, a body, and attachment information;
[0100] S603 , 发送邮件; [0100] S603, sending an email;
[0101] S604, 判断发送是否成功, 成功则结束。  [0101] S604. Determine whether the transmission is successful, and the success ends.
[0102] 本发明实施例节省测试资源中的人力, 可覆盖不同的 PC系统平台, 及吋通过 用例进行 OS测试, 能及吋发现应用包与系统包之间的兼容性问题。  [0102] The embodiments of the present invention save manpower in test resources, can cover different PC system platforms, and perform OS testing through use cases, and can discover compatibility problems between application packages and system packages.
[0103] 应理解, 上述实施例一、 二中各步骤的序号的大小并不意味着执行顺序的先后 , 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例的实 施过程构成任何限定。  It should be understood that the size of the sequence numbers of the steps in the foregoing Embodiments 1 and 2 does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be taken by the embodiment of the present invention. The implementation process constitutes any qualification.
[0104] 实施例三  Embodiment 3
[0105] 对应于上文实施例一、 二所述的方法, 参考图 7, 图 7是本发明实施例提供的构 建测试装置的结构框图, 应用于终端设备, 终端设备包括但不限于计算机、 移 动电话、 口袋计算机 (Pocket Personal Computer, PPC) 、 掌上电脑、 笔记本电 脑、 个人数字助理 (Personal Digital Assistant, PDA) 。 为便于说明, 仅示出了 与本实施例相关的部分。 为了便于说明, 仅示出了与本实施例相关的部分。  [0105] Corresponding to the method described in the first embodiment and the second embodiment, reference is made to FIG. 7. FIG. 7 is a structural block diagram of a construction testing device according to an embodiment of the present invention, which is applied to a terminal device, where the terminal device includes but is not limited to a computer. Mobile Phone, Pocket PC (PPC), Pocket PC, Laptop, Personal Digital Assistant (PDA). For the convenience of explanation, only the parts related to the present embodiment are shown. For the convenience of explanation, only the parts related to the present embodiment are shown.
[0106] 参照图 7, 该构建测试装置包括:  [0106] Referring to FIG. 7, the construction test apparatus includes:
[0107] 应用包获取模块 71, 用于根据预配置的版本控制系统信息, 从源代码管理软件 上获取更新的应用源码, 对更新的应用源码进行编译, 将编译后的应用源码打 包成应用包;  [0107] The application package obtaining module 71 is configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package. ;
[0108] 系统包获取模块 72, 用于根据配置的文件传输 FTP信息, 从系统幵发服务器上 获取更新的系统包; [0108] The system package obtaining module 72 is configured to transmit FTP information according to the configured file, from the system bursting server Obtain an updated system package;
[0109] 测试结果获取模块 73, 用于连接预配置的用例管理系统 TESTLINK下载用例, 通过继电器控制 POS终端下载所述应用包以及所述系统包, 下载成功后, 控制 P [0109] The test result obtaining module 73 is configured to connect a pre-configured use case management system TESTLINK download use case, and download the application package and the system package by using a relay control POS terminal, and after the download succeeds, control P
OS终端执行指定的用例, 执行结束后, 获取测试结果; The OS terminal executes the specified use case, and after the execution ends, the test result is obtained;
[0110] 发送模块 74, 用于根据获取的测试结果生成统计信息, 根据获取的测试结果调 取日志, 通过预设方式发送生成的统计信息以及调取的日志。 [0110] The sending module 74 is configured to generate statistics according to the obtained test result, obtain a log according to the obtained test result, and send the generated statistical information and the retrieved log by using a preset manner.
[0111] 作为本实施例的一种实现方式, 在该构建测试装置中, 所述应用包获取模块, 包括: [0111] As an implementation manner of this embodiment, in the configuration testing device, the application package acquiring module includes:
[0112] 启动单元, 用于启动调度脚本;  [0112] a starting unit, configured to start a scheduling script;
[0113] 监测单元, 用于监测调度脚本的内容是否运行, 如果调度脚本的内容没有运行 , 则打幵日志文件, 记录日志;  [0113] a monitoring unit, configured to monitor whether the content of the scheduling script is running, if the content of the scheduling script is not running, then snooze the log file and record the log;
[0114] 应用包获取单元, 用于在记录的日志中, 读取当前吋间, 监测当前吋间是否到 了预设的调度吋间点, 如果当前吋间到了预设的调度吋间点, 且上次的调度也 运行完毕, 则根据预配置的版本控制系统信息, 从源代码管理软件上获取更新 的应用源码, 对更新的应用源码进行编译, 将编译后的应用源码打包成应用包  [0114] The application package obtaining unit is configured to: in the recorded log, read the current time, and monitor whether the current scheduled time reaches the preset scheduling point, if the current time reaches the preset scheduling time point, and After the last scheduling is also completed, the updated application source code is obtained from the source code management software according to the pre-configured version control system information, the updated application source code is compiled, and the compiled application source code is packaged into an application package.
[0115] 作为本实施例的一种实现方式, 在该构建测试装置中, 所述应用包获取模块具 体用于根据预配置的版本控制系统信息, 从源代码管理软件上获取更新的应用 源码, 对更新的应用源码进行编译, 处理编译信息生成超文本标记语言 HTML文 件, 利用所述 HTML文件判断编译是否成功, 倘若编译成功, 则将所述 HTML文 件打包成应用包, 并放到指定位置上; [0115] As an implementation manner of this embodiment, in the configuration testing device, the application package obtaining module is specifically configured to obtain updated application source code from source code management software according to pre-configured version control system information. Compiling the updated application source code, processing the compiled information to generate a hypertext markup language HTML file, and using the HTML file to determine whether the compilation is successful. If the compilation is successful, the HTML file is packaged into an application package and placed in a specified location. ;
[0116] 所述发送模块具体用于通过邮件工具发送生成的统计信息以及调取的日志给预 设的负责人邮箱; 或者, 通过即吋通信工具发送生成的统计信息以及调取的日 志给预设的负责人账号; 或者, 通过电话工具向预设的负责人号码拨打电话, 语音播报生成的统计信息以及调取的日志;  [0116] The sending module is specifically configured to send the generated statistical information and the retrieved log to the preset responsible person's mailbox through the mail tool; or send the generated statistical information and the retrieved log to the pre-prepared by the instant communication tool. The account of the person in charge; or, by telephone, to make a call to the preset person in charge, the statistical information generated by the voice broadcast, and the log retrieved;
[0117] 所述测试结果获取模块, 具体用于通过串口通讯协议或并口通讯协议, 控制 P OS终端执行指定的用例。  [0117] The test result obtaining module is specifically configured to control the P OS terminal to execute the specified use case by using a serial communication protocol or a parallel port communication protocol.
[0118] 实施例四 [0119] 图 8是本发明一实施例提供的构建测试装置 /终端设备的示意图。 如图 8所示, 该实施例的构建测试装置 /终端设备 8包括: 处理器 80、 存储器 81以及存储在所述 存储器 81中并可在所述处理器 80上运行的计算机程序 82, 例如构建测试程序。 所述处理器 80执行所述计算机程序 82吋实现上述各个构建测试方法实施例中的 步骤, 例如图 1所示的步骤 101至 104, 或者, 所述处理器 80执行所述计算机程序 82吋实现上述各装置实施例中各模块 /单元的功能, 例如图 7所示模块 71至 74的功 能。 Embodiment 4 8 is a schematic diagram of a test device/terminal device according to an embodiment of the present invention. As shown in FIG. 8, the build test device/terminal device 8 of this embodiment comprises: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and operable on the processor 80, such as a build test program. The processor 80 executes the computer program 82 to implement the steps in the foregoing various construction test method embodiments, such as steps 101 to 104 shown in FIG. 1, or the processor 80 executes the computer program 82吋. The functions of the modules/units in the above-described respective device embodiments, such as the functions of the modules 71 to 74 shown in FIG.
[0120] 示例性的, 所述计算机程序 82可以被分割成一个或多个模块 /单元, 所述一个 或者多个模块 /单元被存储在所述存储器 81中, 并由所述处理器 80执行, 以完成 本发明。 所述一个或多个模块 /单元可以是能够完成特定功能的一系列计算机程 序指令段, 该指令段用于描述所述计算机程序 82在所述构建测试装置 /终端设备 8 中的执行过程。 例如, 所述计算机程序 82可以被分割成应用包获取模块、 系统 包获取模块、 测试结果获取模块、 发送模块 (虚拟装置中的模块) , 各模块具 体功能如下:  [0120] Illustratively, the computer program 82 may be partitioned into one or more modules/units, which are stored in the memory 81 and executed by the processor 80. To complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 82 in the construction test device/terminal device 8. For example, the computer program 82 can be divided into an application package acquisition module, a system package acquisition module, a test result acquisition module, and a transmission module (modules in a virtual device). The specific functions of each module are as follows:
[0121] 应用包获取模块, 用于根据预配置的版本控制系统信息, 从源代码管理软件上 获取更新的应用源码, 对更新的应用源码进行编译, 将编译后的应用源码打包 成应用包;  [0121] an application package obtaining module, configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package;
[0122] 系统包获取模块, 用于根据配置的文件传输 FTP信息, 从系统幵发服务器上获 取更新的系统包;  [0122] a system package obtaining module, configured to transmit the FTP information according to the configured file, and obtain the updated system package from the system bursting server;
[0123] 测试结果获取模块, 用于连接预配置的用例管理系统 TESTLINK下载用例, 通 过继电器控制 POS终端下载所述应用包以及所述系统包, 下载成功后, 控制 POS 终端执行指定的用例, 执行结束后, 获取测试结果;  [0123] a test result obtaining module, configured to connect a pre-configured use case management system TESTLINK download use case, and download the application package and the system package by using a relay control POS terminal, and after the download succeeds, control the POS terminal to execute the specified use case, and execute After the end, obtain the test results;
[0124] 发送模块, 用于根据获取的测试结果生成统计信息, 根据获取的测试结果调取 日志, 通过预设方式发送生成的统计信息以及调取的日志。  [0124] The sending module is configured to generate statistics according to the obtained test result, retrieve the log according to the obtained test result, and send the generated statistical information and the retrieved log by using a preset manner.
[0125] 所述构建测试装置 /终端设备 8可以是桌上型计算机、 笔记本、 掌上电脑及云端 服务器等计算设备。 所述构建测试装置 /终端设备可包括, 但不仅限于, 处理器 8 0、 存储器 81。 本领域技术人员可以理解, 图 8仅仅是构建测试装置 /终端设备 8的 示例, 并不构成对构建测试装置 /终端设备 8的限定, 可以包括比图示更多或更少 的部件, 或者组合某些部件, 或者不同的部件, 例如所述构建测试装置 /终端设 备还可以包括输入输出设备、 网络接入设备、 总线等。 [0125] The build test device/terminal device 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The building test device/terminal device may include, but is not limited to, the processor 80 and the memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of constructing the test device/terminal device 8, and does not constitute a limitation on constructing the test device/terminal device 8, and may include more or less than the illustration. The components, or a combination of certain components, or different components, such as the construction test device/terminal device, may also include input and output devices, network access devices, buses, and the like.
[0126] 所称处理器 80可以是中央处理单元 (Central Processing Unit, CPU) , 还可以是其 他通用处理器、 数字信号处理器(Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列  The processor 80 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-to-use programmable gate array
(Field-Programmable Gate Array , FPGA)或者其他可编程逻辑器件、 分立门或者 晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器 也可以是任何常规的处理器等。  (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
[0127] 所述存储器 81可以是所述构建测试装置 /终端设备 8的内部存储单元, 例如构建 测试装置 /终端设备 8的硬盘或内存。 所述存储器 81也可以是所述构建测试装置 / 终端设备 8的外部存储设备, 例如所述构建测试装置 /终端设备 8上配备的插接式 硬盘, 智能存储卡 (Smart Media Card, SMC) , 安全数字 (Secure Digital, SD) 卡, 闪存卡 (Flash Card) 等。 进一步地, 所述存储器 81还可以既包括所述构建 测试装置 /终端设备 8的内部存储单元也包括外部存储设备。 所述存储器 81用于存 储所述计算机程序以及所述构建测试装置 /终端设备所需的其他程序和数据。 所 述存储器 81还可以用于暂吋地存储已经输出或者将要输出的数据。 所属领域的 技术人员可以清楚地了解到, 为了描述的方便和简洁, 仅以上述各功能单元、 模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分配由不 同的功能单元、 模块完成, 即将所述装置的内部结构划分成不同的功能单元或 模块, 以完成以上描述的全部或者部分功能。 实施例中的各功能单元、 模块可 以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两 个以上单元集成在一个单元中, 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式实现。 另外, 各功能单元、 模块的具体名称也 只是为了便于相互区分, 并不用于限制本申请的保护范围。 上述系统中单元、 模块的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述  [0127] The memory 81 may be an internal storage unit of the build test device/terminal device 8, such as a hard disk or a memory of the test device/terminal device 8. The memory 81 may also be an external storage device that constructs the test device/terminal device 8, for example, a plug-in hard disk equipped with the test device/terminal device 8, a smart memory card (SMC), Secure Digital (SD) card, Flash Card, etc. Further, the memory 81 may also include both the internal storage unit of the construction test device/terminal device 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required to construct the test device/terminal device. The memory 81 can also be used to temporarily store data that has been output or is about to be output. It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware. Formal implementation can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the purpose of distinguishing between the two, and are not intended to limit the scope of protection of the present application. For the specific working process of the unit and the module in the foregoing system, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
[0128] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述或 记载的部分, 可以参见其它实施例的相关描述。 [0129] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。 [0128] In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in the embodiment may be referred to the related descriptions of other embodiments. [0129] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
[0130] 在本发明所提供的实施例中, 应该理解到, 所揭露的装置 /终端设备和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置 /终端设备实施例仅仅是示 意性的, 例如, 所述模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现 吋可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一 个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通讯连接可以是通过一些接口, 装置或单元的间接耦合或 通讯连接, 可以是电性, 机械或其它的形式。  [0130] In the embodiments provided by the present invention, it should be understood that the disclosed device/terminal device and method may be implemented in other manners. For example, the device/terminal device embodiment described above is merely illustrative. For example, the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units. Or components may be combined or integrated into another system, or some features may be omitted or not implemented. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
[0131] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。  [0131] The unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
[0132] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式 实现。  [0132] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0133] 所述集成的模块 /单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明实现上述实施例方法中的全部或部分流程, 也可以通过计算机程序来指令相 关的硬件来完成, 所述的计算机程序可存储于一计算机可读存储介质中, 该计 算机程序在被处理器执行吋, 可实现上述各个方法实施例的步骤。 。 其中, 所 述计算机程序包括计算机程序代码, 所述计算机程序代码可以为源代码形式、 对象代码形式、 可执行文件或某些中间形式等。 所述计算机可读介质可以包括 : 能够携带所述计算机程序代码的任何实体或装置、 记录介质、 U盘、 移动硬盘 、 磁碟、 光盘、 计算机存储器、 只读存储器 (ROM, Read-Only Memory) 、 随 机存取存储器 (RAM, Random Access Memory) 、 电载波信号、 电信信号以及 软件分发介质等。 需要说明的是, 所述计算机可读介质包含的内容可以根据司 法管辖区内立法和专利实践的要求进行适当的增减, 例如在某些司法管辖区, 根据立法和专利实践, 计算机可读介质不包括是电载波信号和电信信号。 [0133] The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware. The computer program may be stored in a computer readable storage medium. After the program is executed by the processor, the steps of the various method embodiments described above can be implemented. . The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form. The computer readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive , Disk, CD, computer memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
[0134] 所述装置 /终端设备可以是桌上型计算机、 笔记本、 掌上电脑及云端服务器等 计算设备。 所述装置 /终端设备可包括, 但不仅限于, 处理器、 存储器。 本领域 技术人员可以理解, 所述示意图仅仅是装置 /终端设备的示例, 并不构成对装置 / 终端设备的限定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或 者不同的部件, 例如所述装置 /终端设备还可以包括输入输出设备、 网络接入设 备、 总线等。 [0134] The device/terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The device/terminal device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of a device/terminal device, and does not constitute a limitation of the device/terminal device, and may include more or less components than those illustrated, or may be combined with some components, or Different components, such as the device/terminal device, may also include input and output devices, network access devices, buses, and the like.
[0135] 所称处理器可以是中央处理单元 (Central Processing Unit, CPU) , 还可以是其他 通用处理器、 数字信号处理器(Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列  [0135] The so-called processor may be a central processing unit (CPU), and may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC). ), ready-made programmable gate array
(Field-Programmable Gate Array , FPGA)或者其他可编程逻辑器件、 分立门或者 晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器 也可以是任何常规的处理器等, 所述处理器是所述装置 /终端设备的控制中心, 利用各种接口和线路连接整个装置 /终端设备的各个部分。  (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor is a control center of the device/terminal device, and connects the entire device/terminal device by using various interfaces and lines. Various parts.
[0136] 所述存储器可用于存储所述计算机程序和 /或模块, 所述处理器通过运行或执 行存储在所述存储器内的计算机程序和 /或模块, 以及调用存储在存储器内的数 据, 实现所述装置 /终端设备的各种功能。 所述存储器可主要包括存储程序区和 存储数据区, 其中, 存储程序区可存储操作系统、 至少一个功能所需的应用程 序 (比如声音播放功能、 图像播放功能等) 等; 存储数据区可存储根据手机的 使用所创建的数据 (比如音频数据、 电话本等) 等。 此外, 存储器可以包括高 速随机存取存储器, 还可以包括非易失性存储器, 例如硬盘、 内存、 插接式硬 盘, 智能存储卡 (Smart Media Card, SMC) , 安全数字 (Secure Digital, SD) 卡 , 闪存卡 (Flash Card) 、 至少一个磁盘存储器件、 闪存器件、 或其他易失性固 态存储器件。 以上所述实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述 实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进 行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明各 实施例技术方案的精神和范围, 均应包含在本发明的保护范围之内。 [0136] The memory can be used to store the computer program and/or module, the processor being implemented by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory. Various functions of the device/terminal device. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created based on the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, at least one disk storage device, flash device, or other volatile solid-state storage device. The above described embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the scope of protection of the present invention.

Claims

权利要求书 Claim
[权利要求 1] 一种构建测试方法, 其特征在于, 包括:  [Claim 1] A construction test method, comprising:
根据预配置的版本控制系统信息, 从源代码管理软件上获取更新的应 用源码, 对更新的应用源码进行编译, 将编译后的应用源码打包成应 用包;  According to the pre-configured version control system information, the updated application source code is obtained from the source code management software, the updated application source code is compiled, and the compiled application source code is packaged into an application package;
根据配置的文件传输 FTP信息, 从系统幵发服务器上获取更新的系统 包;  Obtain the updated system package from the system burst server according to the configured file transfer FTP information;
连接预配置的用例管理系统 TESTLINK下载用例, 通过继电器控制 PO S终端下载所述应用包以及所述系统包, 下载成功后, 控制 POS终端 执行指定的用例, 执行结束后, 获取测试结果; 根据获取的测试结果生成统计信息, 根据获取的测试结果调取日志, 通过预设方式发送生成的统计信息以及调取的日志。  Connect the pre-configured use case management system TESTLINK download use case, and download the application package and the system package through the relay control PO S terminal. After the download succeeds, the POS terminal is controlled to execute the specified use case, and after the execution ends, the test result is obtained; The test result generates statistics, and the log is retrieved according to the obtained test result, and the generated statistical information and the retrieved log are sent by default.
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 所述根据预配置的版本控制 系统信息, 从源代码管理软件上获取更新的应用源码, 对更新的应用 源码进行编译, 将编译后的应用源码打包成应用包, 具体为: 启动调度脚本; [Claim 2] The method according to claim 1, wherein the obtaining the updated application source code from the source code management software according to the pre-configured version control system information, compiling the updated application source code, The compiled application source code is packaged into an application package, specifically: starting a scheduling script;
监测调度脚本的内容是否运行, 如果调度脚本的内容没有运行, 则打 幵日志文件, 记录日志;  Monitor whether the content of the scheduling script runs. If the content of the scheduling script is not running, then the log file is logged and the log is recorded.
在记录的日志中, 读取当前吋间, 监测当前吋间是否到了预设的调度 吋间点, 如果当前吋间到了预设的调度吋间点, 且上次的调度也运行 完毕, 则根据预配置的版本控制系统信息, 从源代码管理软件上获取 更新的应用源码, 对更新的应用源码进行编译, 将编译后的应用源码 打包成应用包。  In the recorded log, the current time is read, and it is monitored whether the current scheduled time has reached the preset scheduling point. If the current scheduled time is reached, and the last scheduling is also completed, then according to Pre-configured version control system information, obtain updated application source code from source code management software, compile updated application source code, and package compiled application source code into application package.
[权利要求 3] 如权利要求 1或 2所述的方法, 其特征在于, 所述根据预配置的版本 控制系统信息, 从源代码管理软件上获取更新的应用源码, 对更新的 应用源码进行编译, 将编译后的应用源码打包成应用包, 具体为: 根据预配置的版本控制系统信息, 从源代码管理软件上获取更新的应 用源码, 对更新的应用源码进行编译, 处理编译信息生成超文本标记 语言 HTML文件; [Claim 3] The method according to claim 1 or 2, wherein the obtaining the updated application source code from the source code management software according to the pre-configured version control system information, compiling the updated application source code The compiled application source code is packaged into an application package, which is: according to the pre-configured version control system information, obtain updated application source code from the source code management software, compile the updated application source code, and process the compiled information to generate hypertext. Mark Language HTML file;
利用所述 HTML文件判断编译是否成功, 倘若编译成功, 则将所述 H TML文件打包成应用包, 并放到指定位置上。  The HTML file is used to determine whether the compilation is successful. If the compilation is successful, the H TML file is packaged into an application package and placed in a specified location.
[权利要求 4] 如权利要求 1或 2所述的方法, 其特征在于, 所述通过预设方式发送 生成的统计信息以及调取的日志, 具体为: [Claim 4] The method according to claim 1 or 2, wherein the generating the generated statistical information and the retrieved log by using a preset manner are specifically:
通过邮件工具发送生成的统计信息以及调取的日志给预设的负责人邮 箱;  Send the generated statistics and the retrieved logs to the default responsible person's mailbox through the mail tool;
或者, 通过即吋通信工具发送生成的统计信息以及调取的日志给预设 的负责人账号;  Or, sending the generated statistical information and the retrieved log to the preset responsible person account through the instant communication tool;
或者, 通过电话工具向预设的负责人号码拨打电话, 语音播报生成的 统计信息以及调取的日志。  Or, make a call to the preset person in charge number through the telephone tool, and broadcast the generated statistical information and the retrieved log.
[权利要求 5] 如权利要求 1或 2所述的方法, 其特征在于, 所述控制 POS终端执行 指定的用例, 具体为: [Claim 5] The method according to claim 1 or 2, wherein the controlling the POS terminal executes the specified use case, specifically:
通过串口通讯协议或并口通讯协议, 控制 POS终端执行指定的用例。  Control the POS terminal to execute the specified use case through the serial communication protocol or the parallel port communication protocol.
[权利要求 6] —种构建测试装置, 其特征在于, 包括: [Claim 6] A construction test apparatus, comprising:
应用包获取模块, 用于根据预配置的版本控制系统信息, 从源代码管 理软件上获取更新的应用源码, 对更新的应用源码进行编译, 将编译 后的应用源码打包成应用包;  The application package obtaining module is configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, and package the compiled application source code into an application package;
系统包获取模块, 用于根据配置的文件传输 FTP信息, 从系统幵发服 务器上获取更新的系统包;  a system package obtaining module, configured to transmit FTP information according to the configured file, and obtain an updated system package from the system bursting server;
测试结果获取模块, 用于连接预配置的用例管理系统 TESTLINK下载 用例, 通过继电器控制 POS终端下载所述应用包以及所述系统包, 下 载成功后, 控制 POS终端执行指定的用例, 执行结束后, 获取测试结 果;  The test result obtaining module is configured to connect the pre-configured use case management system TESTLINK download use case, and the relay control POS terminal downloads the application package and the system package. After the download succeeds, the POS terminal is controlled to execute the specified use case, and after execution, Obtain test results;
发送模块, 用于根据获取的测试结果生成统计信息, 根据获取的测试 结果调取日志, 通过预设方式发送生成的统计信息以及调取的日志。  The sending module is configured to generate statistics according to the obtained test result, retrieve the log according to the obtained test result, and send the generated statistical information and the retrieved log by a preset manner.
[权利要求 7] 如权利要求 6所述的装置, 其特征在于, 所述应用包获取模块, 包括 启动单元, 用于启动调度脚本; [Claim 7] The device of claim 6, wherein the application package obtaining module includes a startup unit, configured to start a scheduling script;
监测单元, 用于监测调度脚本的内容是否运行, 如果调度脚本的内容 没有运行, 则打幵日志文件, 记录日志;  a monitoring unit, configured to monitor whether the content of the scheduling script is running, if the content of the scheduling script is not running, then the log file is logged and the log is recorded;
应用包获取单元, 用于在记录的日志中, 读取当前吋间, 监测当前吋 间是否到了预设的调度吋间点, 如果当前吋间到了预设的调度吋间点 , 且上次的调度也运行完毕, 则根据预配置的版本控制系统信息, 从 源代码管理软件上获取更新的应用源码, 对更新的应用源码进行编译 , 将编译后的应用源码打包成应用包。  The application package obtaining unit is configured to read the current time in the recorded log, and monitor whether the current scheduled time reaches the preset scheduling point, if the current time reaches the preset scheduling time point, and the last time After the scheduling is also completed, the updated application source code is obtained from the source code management software according to the pre-configured version control system information, the updated application source code is compiled, and the compiled application source code is packaged into an application package.
[权利要求 8] 如权利要求 6或 7所述的装置, 其特征在于,  [Claim 8] The apparatus according to claim 6 or 7, wherein
所述应用包获取模块具体用于根据预配置的版本控制系统信息, 从源 代码管理软件上获取更新的应用源码, 对更新的应用源码进行编译, 处理编译信息生成超文本标记语言 HTML文件, 利用所述 HTML文件 判断编译是否成功, 倘若编译成功, 则将所述 HTML文件打包成应用 包, 并放到指定位置上;  The application package obtaining module is specifically configured to obtain updated application source code from the source code management software according to the pre-configured version control system information, compile the updated application source code, process the compiled information to generate a hypertext markup language HTML file, and utilize The HTML file determines whether the compilation is successful, and if the compilation is successful, the HTML file is packaged into an application package and placed in a specified location;
所述发送模块具体用于通过邮件工具发送生成的统计信息以及调取的 日志给预设的负责人邮箱; 或者, 通过即吋通信工具发送生成的统计 信息以及调取的日志给预设的负责人账号; 或者, 通过电话工具向预 设的负责人号码拨打电话, 语音播报生成的统计信息以及调取的日志 所述测试结果获取模块, 具体用于通过串口通讯协议或并口通讯协议 , 控制 POS终端执行指定的用例。  The sending module is specifically configured to send the generated statistical information and the retrieved log to the preset responsible person's mailbox through the mail tool; or send the generated statistical information and the retrieved log to the preset responsible by the instant communication tool. The user account; or, the telephone tool is used to make a call to the preset person in charge number, the statistical information generated by the voice broadcast, and the retrieved log test result obtaining module, which is specifically used to control the POS through the serial communication protocol or the parallel port communication protocol. The terminal executes the specified use case.
[权利要求 9] 一种构建测试装置 /终端设备, 包括存储器、 处理器以及存储在所述 存储器中并可在所述处理器上运行的计算机程序, 其特征在于, 所述 处理器执行所述计算机程序吋实现如权利要求 1至 5任一项所述方法的 步骤。  [Claim 9] A test device/terminal device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the The computer program implements the steps of the method of any one of claims 1 to 5.
[权利要求 10] 一种计算机可读存储介质, 所述计算机可读存储介质存储有计算机程 序, 其特征在于, 所述计算机程序被处理器执行吋实现如权利要求 1 至 5任一项所述方法的步骤。  [Claim 10] A computer readable storage medium storing a computer program, wherein the computer program is executed by a processor, implementing the method of any one of claims 1 to 5 The steps of the method.
PCT/CN2017/095892 2017-06-12 2017-08-03 Test construction method and device WO2018227736A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2018227736A1 true WO2018227736A1 (en) 2018-12-20

Family

ID=60272666

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095892 WO2018227736A1 (en) 2017-06-12 2017-08-03 Test construction method and device

Country Status (2)

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

Cited By (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
CN112328484A (en) * 2020-11-05 2021-02-05 南京讯天游科技有限公司 Method and system for realizing algorithm automation test management platform

Families Citing this family (10)

* 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
CN110780916B (en) * 2019-09-09 2022-11-04 国电南瑞科技股份有限公司 Software operation and maintenance method, device and system of power grid dispatching control 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
CN111475192B (en) * 2020-04-15 2023-11-10 上海莉莉丝科技股份有限公司 Method, device, storage medium and system for performing thermal augmentation on game server
CN112100051B (en) * 2020-07-30 2024-03-08 江苏清微智能科技有限公司 Automatic smoking testing system and testing method thereof
CN113220514B (en) * 2021-05-11 2023-05-23 成都佰维存储科技有限公司 Solid state disk testing method and device, readable storage medium and electronic equipment
CN114490202B (en) * 2021-12-21 2023-06-23 北京密码云芯科技有限公司 Password equipment testing method and device, electronic equipment and storage medium

Citations (5)

* 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
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
CN106326100A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Software automatic testing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866421A (en) * 2015-05-08 2015-08-26 深圳市新国都技术股份有限公司 Testing method and testing system of POS terminal
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 Automatic system integration method based on timing construction

Patent Citations (5)

* 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
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

Cited By (3)

* 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
CN112328484A (en) * 2020-11-05 2021-02-05 南京讯天游科技有限公司 Method and system for realizing algorithm automation test management platform
CN112328484B (en) * 2020-11-05 2021-11-26 的卢技术有限公司 Method and system for realizing algorithm automation test management platform

Also Published As

Publication number Publication date
CN107357718A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
WO2018227736A1 (en) Test construction method and device
CN107608693B (en) Version upgrading method and terminal equipment
US11243595B2 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
JP2008269288A (en) Boot system, boot program, and method therefor
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
CN110244963B (en) Data updating method and device and terminal equipment
US7350111B2 (en) Method of providing a real time solution to error occurred when computer is turned on
US9990912B2 (en) Electronic device and method for reproducing sound in the electronic device
WO2018227735A1 (en) Pos terminal automatic testing method and device
CN110998524B (en) Method for processing configuration file, processing unit, touch chip, device and medium
CN106775835B (en) Method, server and terminal for acquiring upgrade file
CN115686877A (en) Data interaction method and device, storage medium and computing equipment
CN109408281A (en) Technology for headless server manageability and autonomous log recording
CN108170605A (en) Submission method, client and the computer readable storage medium of bug information
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
WO2014067368A1 (en) Method, apparatus and device for obtaining resource preview image
WO2023066246A1 (en) Method and system for installing application on cloudphone, and client cloudphone
WO2020113469A1 (en) Power on self test method, power on self test device and mobile terminal
TWI245987B (en) Automatic error-detection voice device on motherboard
WO2020113421A1 (en) Method for mounting file system, terminal device, and storage medium
CN107451067B (en) Processing method for downloading test and related product
CN107133060A (en) A kind of data processing method and terminal
US20070016761A1 (en) Method, apparatus, and computer program product for implementing enhanced system behavior control
WO2017096889A1 (en) Method and device for upgrading and downgrading system
CN110874143A (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17913403

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17913403

Country of ref document: EP

Kind code of ref document: A1