[go: up one dir, main page]

WO2016206505A1 - Automated testing system and testing method - Google Patents

Automated testing system and testing method Download PDF

Info

Publication number
WO2016206505A1
WO2016206505A1 PCT/CN2016/082513 CN2016082513W WO2016206505A1 WO 2016206505 A1 WO2016206505 A1 WO 2016206505A1 CN 2016082513 W CN2016082513 W CN 2016082513W WO 2016206505 A1 WO2016206505 A1 WO 2016206505A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
automated
module
software
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/082513
Other languages
French (fr)
Chinese (zh)
Inventor
李俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2016206505A1 publication Critical patent/WO2016206505A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software

Definitions

  • This article covers, but is not limited to, the field of embedded device testing, involving automated test systems and test methods.
  • the embodiment of the invention provides an automatic test system and a test method, which solves the technical problem that the related automatic test method cannot meet the test characteristics of the optical network transmission device, thereby increasing the time and labor cost of the test and reducing the test efficiency.
  • An automated test system includes: a version update module, a static check module, a compiling module, a burning module, a test execution module, and a test feedback module;
  • the version update module is configured to detect a version of the test software and update the same;
  • the static check module is configured to perform static check on the program in the updated test software
  • the compiling module is configured to compile a program in the test software after the static check is completed;
  • the programming module is configured to write the program in the compiled test software to the device under test;
  • the test execution module is configured to perform an automated test on the device under test according to a preset test strategy
  • the test feedback module is configured to feed back automated test results and test log information.
  • the automated test system further includes:
  • the jump module is set to determine whether the current module ends execution and jumps to the next module after the current module execution ends.
  • the automated test system further includes:
  • the adaptive decision module is configured to determine whether to continue the automated test when a failure occurs during the automated test.
  • the adaptive decision module is set to:
  • the adaptive decision module determines whether to continue to perform the automatic test according to a preset fault level when the test case fails.
  • test case fails and is the preset first type of fault level
  • test of the current test case is terminated and the tester is notified;
  • test case fails and is the default second level of fault, continue with the next test case.
  • An embodiment of the present invention further provides a testing method, where the testing method includes:
  • the automated test system obtains the updated test software, and performs static check on the program in the updated test software;
  • the method further includes: when the version of the test software is updated, the automated test system detects the updated test software and performs static check on the program in the test software, the automated test system detects Test the version of the software for updates.
  • the method further includes:
  • the automated test system decides whether to continue The automated test described.
  • the automated testing system determines whether to continue to perform the automated testing, including:
  • the automated test system decides whether to continue the automated test based on the preset fault level.
  • the automated test system determines whether to continue to perform the automated test according to a preset fault level, including:
  • the automated test system terminates the test of the current test case and notifies the tester;
  • test case fails and is a preset second type of fault level
  • the automated test system continues to execute the next test case.
  • the embodiment of the invention modularizes each function of the automated test, so that each module functions independently, thereby making the whole test method have strong portability and scalability, and can be fully automated, thereby reducing human factors.
  • the unscientific test of the test has improved the efficiency of research and development.
  • the embodiment of the present invention also considers a situation in which the test process is faulty. By testing the interrupt adaptive mode, the test program decides whether to continue the test, thereby providing a good fault tolerance mechanism for the test interrupt condition, and improving the test efficiency. Reduced product development costs.
  • the embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, the test method is implemented.
  • FIG. 1 is a schematic diagram of functional modules of an automated test system according to a first embodiment of the present invention
  • FIG. 2 is a structural block diagram of an automated test system according to a first embodiment of the present invention
  • FIG. 3 is a schematic diagram of a layered framework of an automated test system according to a first embodiment of the present invention
  • FIG. 4 is a schematic diagram of functional modules of an automated test system according to a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram of functional modules of an automated test system according to a third embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an adaptive process of the adaptive decision module of FIG. 5;
  • FIG. 7 is a schematic flowchart diagram of a testing method according to a fourth embodiment of the present invention.
  • FIG. 8 is another schematic flowchart of a testing method according to a fifth embodiment of the present invention.
  • Embodiments of the present invention provide an automated test system.
  • FIG. 1 is a schematic diagram of functional modules of an automated test system according to an embodiment of the present invention.
  • the automated test system includes: a version update module 10, a static check module 20, a compiling module 30, a programming module 40, a test execution module 50, and a test feedback module 60;
  • the version update module 10 is configured to detect and update the version of the test software
  • the tester needs to continuously modify the test software to achieve the test purpose.
  • the version update module 10 will automatically detect whether there is an update of the version of the test software. If there is an update, the latest version of the test software is automatically downloaded and updated.
  • the test software includes test data for testing, test cases, and test function sets for performing tests.
  • the static check module 20 is configured to perform static check on the program in the updated test software
  • the compiling module 30 is configured to compile the program in the test software after the static check is completed;
  • the programming module 40 is configured to write the program in the compiled test software to the device under test;
  • the device under test includes an embedded device, and the related program in the test software needs to be written into the device under test to facilitate testing.
  • the static check module 20 performs static check on the program in the updated test software, such as checking the syntax structure of the program, the array is out of bounds, the divisor is zero, and the buffer overflows; Static check The program is compiled; the program in the compiled test software is written into the device under test through the programming module 40.
  • the static checking module 20 or the compiling module 30 or the programming module 40 is further configured to feed back the error information that appears to the tester.
  • the test execution module 50 is configured to perform an automated test on the device under test according to a preset test strategy
  • the test feedback module 60 is configured to feed back automated test results and test log information.
  • the test execution module 50 automatically performs an automatic test according to the preset test strategy, and completes the test execution process.
  • the default test strategy includes the type of test and the corresponding test cases, such as regression test, stress test, and so on.
  • the test cases used by different test types can be the same or different.
  • the test feedback module 60 feeds back the automated test results and the test log information to the tester, for example, by sending the test result and the test log to the tester's mailbox by email, so that the tester can follow up and understand the test situation in time. And make subsequent modifications to the test equipment or test procedures.
  • the automated test system includes an automation server, a version server, and a display kanban.
  • the automation server is responsible for automating use case management, parameter configuration, test execution and feedback of test results, and interacts with the device under test to complete the automated test process;
  • the version server is responsible for checking and updating the software version, compiling and programming. And pass the relevant software program to the device under test;
  • the display kanban is set to display software version check, compile, burn, and test result display.
  • the device under test includes an embedded device, which may be an optical network transmission device.
  • the version update module 10, the static check module 20, the compiling module 30, and the burning module 40 may be disposed on the version server
  • the test execution module 50 may be disposed on the automation server
  • the test feedback module 60 may be disposed on the display. Watch on the board.
  • FIG. 1 A schematic diagram of a layered framework of the automated test system of the present invention as shown in FIG.
  • the automated test system is regarded as a framework with a three-layer architecture, which is a support layer, a service layer, and an application layer.
  • the support layer is used to support the underlying device communication protocol to send and receive message platform functions, and can ensure automatic measurement after completing the encapsulation of the underlying device communication protocol.
  • the test system interacts with the communication information of the device under test; the service layer mainly encapsulates the message interface according to the service of the embedded device product, and completes an API (Application Programming Interface) (such as security, performance, maintenance, and alarm). Directly shield the function differences of each device and be called by the upper application layer; the application layer completes the service parameter configuration and use case management functions, and at the same time guarantees the execution result and log output.
  • API Application Programming Interface
  • the modular design adopted in this embodiment has strong portability and scalability, and thus can meet the testing requirements of different embedded device products and different test software versions.
  • the entire execution process of the automated test system simulates the network management operation, thereby ensuring the consistency of the test environment steps, avoiding irregularities or differences in human operation, and automatically feeding back test results.
  • the functions of each module are independent, which makes the whole test method highly portable and scalable, and can be fully automated, thereby reducing the unscientific test caused by human factors and improving R&D. effectiveness.
  • FIG. 4 is a schematic diagram of functional modules of an automated test system according to a second embodiment of the present invention. Based on the foregoing automated test system, the automated test system in this embodiment further includes:
  • the jump module 70 is configured to determine whether the current module ends execution and jump to the next module after the current module execution ends.
  • the current module in this embodiment refers to the running module that is being executed during the automatic testing process, and may be a version update module 10, a static check module 20, a compiling module 30, a burning module 40, a test executing module 50, and Test any of the feedback modules 60.
  • the jump module 70 determines whether the current module is executed and automatically jumps to the next module after the execution of the current module, as the functions of the modules are independent of each other. Thereby, the entire functional modules of the automated test system are connected in series and executed in sequence. Specifically, the end tag and the calling address of the next module can be set in each module.
  • This embodiment is an alternative embodiment for fully automating the test execution process of an automated test system.
  • you can automate the execution according to the calling sequence in the configuration file by setting the configuration file that is executed automatically; or each module notifies the next module by sending a message notification after the execution ends. The block is executed automatically.
  • the test caused by the reduction of human factors is unscientific.
  • each module function is independent of each other and fully automated. It can adapt to the processing of embedded devices and has many types of boards, resulting in a large number of released versions. , testing the technical problems of heavy tasks, thereby saving test time and labor costs, improving test efficiency and development process, and reducing development costs.
  • FIG. 5 is a schematic diagram of functional modules of an automated test system according to a third embodiment of the present invention. Based on the foregoing automated test system, the automated test system in this embodiment further includes:
  • the adaptive decision module 80 is configured to determine whether to continue the test when a failure occurs during the test.
  • the fault analysis and positioning of the optical network transmission device is determined to be inseparable from the actual environment of the site, and therefore, when testing When an external environmental change or a test unexpected interruption occurs in the process, the adaptive decision module 80 determines whether to continue the test.
  • the automatic test system can determine whether to continue the test by presetting the processing method corresponding to all the faults that may occur.
  • the adaptive decision module 80 determines the fault that occurs during the test, and if the test is terminated, the test site is retained; otherwise Continue to perform the test.
  • the adaptive decision module 80 is configured to: when the test case fails, determine whether to continue the test according to the preset fault level.
  • Executing test cases is the core part of the entire automated test, and there are many test cases that need to be executed during the entire automated test process.
  • automated test tests are performed according to the set test sequence, and when a test case fails.
  • the tester needs to manually modify or adjust the execution order of the test cases; or when multiple test cases fail, it will take a lot of time to manually modify or adjust, which affects the test efficiency of the entire automated test.
  • the adaptive decision module 80 determines whether to continue the test according to the preset fault level, thereby better positioning the fault environment of the device under test, and ensuring the entire test process. Automated execution.
  • the adaptive decision module 80 determines whether to continue to perform the automatic test according to a preset fault level when the test case fails.
  • test case fails and is the preset first type of fault level
  • test of the current test case is terminated and the tester is notified;
  • test case fails and is the default second level of fault, continue with the next test case.
  • the fault levels corresponding to the test cases can be correspondingly divided into two categories, for example, the test case failures that are relatively serious and need to be processed by the test personnel in time are preset as the first type of fault level. Other test case failures are preset to the second type of fault level.
  • the test case fails and is the preset first type of fault level the test of the current test case is terminated to retain the field fault environment, and the tester is informed by short message or mail; and when the test case fails When the second type of fault level is preset, continue with the next test case.
  • FIG. 7 is a schematic flowchart of a first testing method according to a fourth embodiment of the present invention.
  • the testing method includes:
  • Step S10 when there is an update of the version of the test software, the automated test system obtains the updated test software and performs static check on the program in the updated test software;
  • Test software includes test data for testing, test Examples and test function sets for performing tests.
  • Step S20 compiling the program in the test software after the static check is completed, and writing the program in the compiled test software to the device under test;
  • the device under test includes an embedded device. Therefore, it is necessary to write related programs in the test software to the device under test to facilitate testing.
  • the automated test system compiles the program that passes the static check and writes the program in the compiled test software to the device under test.
  • the automated test system feeds back error information to the tester.
  • Step S30 Perform an automated test on the device under test according to a preset test strategy, and feed back the automated test result and the test log information.
  • the automated test system When the relevant program of the test is written to the device under test, the automated test system will automatically perform the automated test according to the preset test strategy, and complete the test execution process.
  • the default test strategy includes the type of test and the corresponding test cases, such as regression test, stress test, and so on. At the same time, the test cases used by different test types can be the same or different.
  • the automated test system feeds the automated test results and test log information back to the tester. For example, the test results and test logs are sent to the tester's mailbox by email, so that the tester can follow up and understand the test in time. And make subsequent modifications to the test equipment or test procedures.
  • the modular design adopted in this embodiment has strong portability and scalability, and thus can meet the testing requirements of different embedded device products and different test software versions.
  • the entire execution process of the automated test system simulates the network management operation, thereby ensuring the consistency of the test environment steps, avoiding irregularities or differences in human operation, and automatically feeding back test results.
  • each module is functionally independent, which makes the whole test method highly portable and expandable, reducing the unscientific test caused by human factors and improving the research and development efficiency.
  • FIG. 8 is a schematic flowchart diagram of a testing method according to a fifth embodiment of the present invention. Based on the foregoing test method, in the embodiment, the method further includes: before the step S10:
  • step S00 the automated test system detects whether there is an update of the version of the test software.
  • the tester needs to continuously modify the test software to achieve the test purpose.
  • the automated test system will automatically detect whether the version of the test software is updated. If there is an update, the latest version of the test software is automatically downloaded and updated.
  • performing the automated test on the device under test according to the preset test policy in step S30 includes: when a fault occurs during the test, the automated test system determines whether to continue the test.
  • the fault analysis and positioning of the optical network transmission device is determined to be inseparable from the actual environment of the site, and therefore, when testing When an external environmental change or a test failure is interrupted during the process, the automated test system determines whether to continue the test.
  • the automatic test system can determine whether to continue the test by presetting the processing method corresponding to all the faults that may occur.
  • the field environment in which the device under test is faulty is better positioned, and the entire test process is ensured to be automatically executed.
  • the fault occurs in the test process through the automatic test system, and the test site is retained if the test is terminated; otherwise, the test is continued. test.
  • determining whether to continue to perform the test includes: when the test case fails, the automated test system determines whether to continue the test according to the preset fault level.
  • Executing test cases is the core part of the entire automated test, and there are many test cases that need to be executed during the entire automated test process.
  • automated test tests are performed according to the set test sequence, and when a test case fails.
  • the tester needs to manually modify or adjust the execution order of the test cases; or when multiple test cases fail, it will take a lot of time to manually modify or adjust, which affects the test efficiency of the entire automated test.
  • the automated test system determines whether to continue the test according to the preset fault level, thereby better positioning the fault environment of the device under test, It also ensures the automated execution of the entire test process.
  • determining whether to continue the test according to the preset fault level includes:
  • the automated test system terminates the test of the current test case and notifies the tester;
  • test case fails and is a preset second type of fault level
  • the automated test system continues to execute the next test case.
  • the fault levels corresponding to the test cases can be correspondingly divided into two categories, for example, the test case failures that are relatively serious and need to be processed by the test personnel in time are preset as the first type of fault level. Other test case failures are preset to the second type of fault level.
  • the test case fails and is the preset first type of fault level the automated test system terminates the test of the current test case to preserve the on-site fault environment, while notifying the tester for analysis by short message or mail; and when the test case When a fault occurs and is a preset second type of fault level, the automated test system continues to execute the next test case.
  • the embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, the test method is implemented.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.

Landscapes

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

Abstract

An automated testing system, comprising: a version update module, set up to detect the testing software version and implement updates; a static inspection module, set up to implement static inspection of the programs in the updated testing software; a compiling module, set up to implement compiling of the programs in the testing software after static inspection is complete; a burning module, set up to write the programs in the compiled testing software into a tested device; a testing execution module, set up to execute automated testing on the tested device on the basis of a preset testing policy; and a testing feedback module, set up to feed back the results of the automated testing and testing log information. The present solution implements modularisation of each automated testing function, such that each module has an independent function, and thus the entire testing method has strong portability and scalability, reducing the problem of unscientific testing caused by human factors, and improving research and development efficiency.

Description

自动化测试系统及测试方法Automated test system and test method 技术领域Technical field

本文涉及但不限于嵌入式设备测试领域,涉及自动化测试系统及测试方法。This article covers, but is not limited to, the field of embedded device testing, involving automated test systems and test methods.

背景技术Background technique

随着嵌入式设备的快速发展,尤其是嵌入式通信网络设备的快速发展,具有传输效率高、系统容量大以及传输成本低的嵌入式通信网络设备也越来越受到重视,例如光网络传输设备。但由于光网络传输设备支持的功能多、单板种类多,从而导致发布的测试程序版本也很多,因此,测试人员每次安排测试都要进行大量重复操作,致使时间和人力成本增加,测试效率降低。With the rapid development of embedded devices, especially the rapid development of embedded communication network devices, embedded communication network devices with high transmission efficiency, large system capacity and low transmission cost are also receiving more and more attention, such as optical network transmission equipment. . However, because the optical network transmission equipment supports many functions and many types of boards, the version of the test program is also released. Therefore, the tester has to perform a large number of repeated operations every time the test is scheduled, resulting in an increase in time and labor costs, and test efficiency. reduce.

发明内容Summary of the invention

以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.

本发明实施例提供一种自动化测试系统及测试方法,解决了相关自动化测试方法无法满足光网络传输设备测试特征,从而致使测试的时间和人力成本增加、测试效率降低的技术问题。The embodiment of the invention provides an automatic test system and a test method, which solves the technical problem that the related automatic test method cannot meet the test characteristics of the optical network transmission device, thereby increasing the time and labor cost of the test and reducing the test efficiency.

本发明实施例提供的自动化测试系统,所述自动化测试系统包括:版本更新模块、静态检查模块、编译模块、烧录模块、测试执行模块以及测试反馈模块;An automated test system provided by an embodiment of the present invention includes: a version update module, a static check module, a compiling module, a burning module, a test execution module, and a test feedback module;

所述版本更新模块,设置为检测测试软件的版本并进行更新;The version update module is configured to detect a version of the test software and update the same;

所述静态检查模块,设置为对更新后的测试软件中的程序进行静态检查;The static check module is configured to perform static check on the program in the updated test software;

所述编译模块,设置为对完成静态检查后的测试软件中的程序进行编译;The compiling module is configured to compile a program in the test software after the static check is completed;

所述烧录模块,设置为将编译后的测试软件中的程序写入被测设备;The programming module is configured to write the program in the compiled test software to the device under test;

所述测试执行模块,设置为根据预设的测试策略,在所述被测设备上执行自动化测试;The test execution module is configured to perform an automated test on the device under test according to a preset test strategy;

所述测试反馈模块,设置为反馈自动化测试结果及测试日志信息。 The test feedback module is configured to feed back automated test results and test log information.

可选地,所述自动化测试系统还包括:Optionally, the automated test system further includes:

跳转模块,设置为判断当前模块是否执行结束以及在当前模块执行结束后跳转到下一模块。The jump module is set to determine whether the current module ends execution and jumps to the next module after the current module execution ends.

可选地,所述自动化测试系统还包括:Optionally, the automated test system further includes:

自适应判决模块,设置为当自动化测试过程中出现故障时,判断是否继续执行所述自动化测试。The adaptive decision module is configured to determine whether to continue the automated test when a failure occurs during the automated test.

可选地,所述自适应判决模块是设置为:Optionally, the adaptive decision module is set to:

当测试用例出现故障时,根据预设的故障等级,判断是否继续执行所述自动化测试。When the test case fails, it is determined whether to continue the automatic test according to the preset fault level.

可选地,所述自适应判决模块通过如下方式实现当测试用例出现故障时,根据预设的故障等级,判断是否继续执行所述自动化测试:Optionally, the adaptive decision module determines whether to continue to perform the automatic test according to a preset fault level when the test case fails.

当测试用例出现故障且为预设的第一类故障等级时,终止当前测试用例的测试并通知测试人员;When the test case fails and is the preset first type of fault level, the test of the current test case is terminated and the tester is notified;

当测试用例出现故障且为预设的第二类故障等级时,继续执行下一测试用例。When the test case fails and is the default second level of fault, continue with the next test case.

本发明实施例还提供一种测试方法,所述测试方法包括:An embodiment of the present invention further provides a testing method, where the testing method includes:

当测试软件的版本存在更新时,自动化测试系统获取更新后的测试软件,并对所述更新后的测试软件中的程序进行静态检查;When there is an update of the version of the test software, the automated test system obtains the updated test software, and performs static check on the program in the updated test software;

对完成静态检查后的测试软件中的程序进行编译,将编译后的测试软件中的程序写入被测设备;Compiling the program in the test software after the static check is completed, and writing the program in the compiled test software to the device under test;

根据预设测试策略,在所述被测设备上执行自动化测试,并反馈自动化测试结果及测试日志信息。Perform automated testing on the device under test according to a preset test strategy, and feed back automated test results and test log information.

可选地,所述方法还包括:所述当测试软件的版本存在更新时,自动化测试系统获取更新后的测试软件并对所述测试软件中的程序进行静态检查之前,所述自动化测试系统检测测试软件的版本是否存在更新。Optionally, the method further includes: when the version of the test software is updated, the automated test system detects the updated test software and performs static check on the program in the test software, the automated test system detects Test the version of the software for updates.

可选地,所述方法还包括:Optionally, the method further includes:

当自动化测试过程中出现故障时,所述自动化测试系统判决是否继续执 行所述自动化测试。When a failure occurs during an automated test, the automated test system decides whether to continue The automated test described.

可选地,所述当自动化测试过程中出现故障时,所述自动化测试系统判决是否继续执行所述自动化测试包括:Optionally, when the fault occurs in the automated testing process, the automated testing system determines whether to continue to perform the automated testing, including:

当测试用例出现故障时,所述自动化测试系统根据预设的故障等级,判决是否继续执行所述自动化测试。When the test case fails, the automated test system decides whether to continue the automated test based on the preset fault level.

可选地,所述当测试用例出现故障时,所述自动化测试系统根据预设的故障等级,判决是否继续执行所述自动化测试包括:Optionally, when the test case fails, the automated test system determines whether to continue to perform the automated test according to a preset fault level, including:

当测试用例出现故障且为预设的第一类故障等级时,所述自动化测试系统终止当前测试用例的测试并通知测试人员;When the test case fails and is a preset first type of fault level, the automated test system terminates the test of the current test case and notifies the tester;

当测试用例出现故障且为预设的第二类故障等级时,所述自动化测试系统继续执行下一测试用例。When the test case fails and is a preset second type of fault level, the automated test system continues to execute the next test case.

本发明实施例通过将自动化测试的每个功能进行模块化,从而使得每个模块功能独立,进而使整个测试方法具有很强的移植性与扩展性,能够全自动化执行,进而减少了人为因素造成的测试不科学的问题,提高了研发效率。另外,本发明实施例还考虑了测试过程出现故障的情况,通过测试中断自适应方式,由测试程序判决是否继续测试,从而为测试中断情况提供了很好的容错机制,提高了测试的效率并降低了产品的研发成本。本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现测试方法。The embodiment of the invention modularizes each function of the automated test, so that each module functions independently, thereby making the whole test method have strong portability and scalability, and can be fully automated, thereby reducing human factors. The unscientific test of the test has improved the efficiency of research and development. In addition, the embodiment of the present invention also considers a situation in which the test process is faulty. By testing the interrupt adaptive mode, the test program decides whether to continue the test, thereby providing a good fault tolerance mechanism for the test interrupt condition, and improving the test efficiency. Reduced product development costs. The embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, the test method is implemented.

在阅读并理解了附图和详细描述后,可以明白其它方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.

附图说明DRAWINGS

图1为本发明第一实施例的自动化测试系统的功能模块示意图;1 is a schematic diagram of functional modules of an automated test system according to a first embodiment of the present invention;

图2为本发明第一实施例的自动化测试系统的结构框图;2 is a structural block diagram of an automated test system according to a first embodiment of the present invention;

图3为本发明第一实施例的自动化测试系统的分层框架示意图;3 is a schematic diagram of a layered framework of an automated test system according to a first embodiment of the present invention;

图4为本发明第二实施例的自动化测试系统的功能模块示意图; 4 is a schematic diagram of functional modules of an automated test system according to a second embodiment of the present invention;

图5为本发明第三实施例的自动化测试系统的功能模块示意图;5 is a schematic diagram of functional modules of an automated test system according to a third embodiment of the present invention;

图6为图5中的自适应判决模块的自适应流程示意图;6 is a schematic diagram of an adaptive process of the adaptive decision module of FIG. 5;

图7为本发明第四实施例的测试方法的流程示意图;FIG. 7 is a schematic flowchart diagram of a testing method according to a fourth embodiment of the present invention; FIG.

图8为本发明第五实施例的测试方法的另一流程示意图。FIG. 8 is another schematic flowchart of a testing method according to a fifth embodiment of the present invention.

具体实施方式detailed description

应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to limit the invention.

第一实施例First embodiment

本发明实施例提供一种自动化测试系统。Embodiments of the present invention provide an automated test system.

参照图1,图1为本发明实施例的自动化测试系统的功能模块示意图。Referring to FIG. 1, FIG. 1 is a schematic diagram of functional modules of an automated test system according to an embodiment of the present invention.

在本实施例中,该自动化测试系统包括:版本更新模块10、静态检查模块20、编译模块30、烧录模块40、测试执行模块50以及测试反馈模块60;In this embodiment, the automated test system includes: a version update module 10, a static check module 20, a compiling module 30, a programming module 40, a test execution module 50, and a test feedback module 60;

版本更新模块10设置为检测测试软件的版本并进行更新;The version update module 10 is configured to detect and update the version of the test software;

根据测试需要,测试人员需要不断对测试软件进行修改从而实现测试目的。当测试人员修改完毕并上传测试软件后,版本更新模块10将自动检测该测试软件的版本是否存在更新,若存在更新,则自动下载该测试软件的最新版本并进行更新。测试软件包括用于进行测试的测试数据、测试用例以及执行测试的测试函数集等。According to the test needs, the tester needs to continuously modify the test software to achieve the test purpose. After the tester has modified and uploaded the test software, the version update module 10 will automatically detect whether there is an update of the version of the test software. If there is an update, the latest version of the test software is automatically downloaded and updated. The test software includes test data for testing, test cases, and test function sets for performing tests.

静态检查模块20设置为对更新后的测试软件中的程序进行静态检查;The static check module 20 is configured to perform static check on the program in the updated test software;

编译模块30设置为对完成静态检查后的测试软件中的程序进行编译;The compiling module 30 is configured to compile the program in the test software after the static check is completed;

烧录模块40设置为将编译后的测试软件中的程序写入被测设备;The programming module 40 is configured to write the program in the compiled test software to the device under test;

本实施例中,被测设备包括嵌入式设备,需要将测试软件中的相关程序写入被测设备中以便于进行测试。在本实施例中,通过静态检查模块20对更新后的测试软件中的程序进行静态检查,比如检查程序的语法结构、数组越界、除数为零以及缓冲区溢出等;再通过编译模块30对完成静态检查后的程 序进行编译;再通过烧录模块40将编译后的测试软件中的程序写入被测设备中。另外,可选的,当静态检查或编译或烧录过程中出现错误时,静态检查模块20或编译模块30或烧录模块40还设置为将出现的错误信息反馈给测试人员。In this embodiment, the device under test includes an embedded device, and the related program in the test software needs to be written into the device under test to facilitate testing. In this embodiment, the static check module 20 performs static check on the program in the updated test software, such as checking the syntax structure of the program, the array is out of bounds, the divisor is zero, and the buffer overflows; Static check The program is compiled; the program in the compiled test software is written into the device under test through the programming module 40. In addition, optionally, when an error occurs during static checking or compiling or burning, the static checking module 20 or the compiling module 30 or the programming module 40 is further configured to feed back the error information that appears to the tester.

测试执行模块50设置为根据预设的测试策略,在所述被测设备上执行自动化测试;The test execution module 50 is configured to perform an automated test on the device under test according to a preset test strategy;

测试反馈模块60设置为反馈自动化测试结果及测试日志信息。The test feedback module 60 is configured to feed back automated test results and test log information.

当将测试的相关程序写入被测设备后,测试执行模块50将根据预设的测试策略,自动执行自动化测试,完成测试执行过程。预设的测试策略包括测试的类型及对应的测试用例,比如回归测试、压力测试等。同时,不同的测试类型所采用的测试用例可以相同,也可以不同。当自动化测试结束后,测试反馈模块60将自动化测试结果及测试日志信息反馈给测试人员,比如通过邮件形式将测试结果及测试日志发送到测试人员的邮箱中,以便测试人员及时跟进了解测试情况,并对测试设备或测试程序进行后续修改完善。After the relevant program of the test is written to the device under test, the test execution module 50 automatically performs an automatic test according to the preset test strategy, and completes the test execution process. The default test strategy includes the type of test and the corresponding test cases, such as regression test, stress test, and so on. At the same time, the test cases used by different test types can be the same or different. After the automated test is finished, the test feedback module 60 feeds back the automated test results and the test log information to the tester, for example, by sending the test result and the test log to the tester's mailbox by email, so that the tester can follow up and understand the test situation in time. And make subsequent modifications to the test equipment or test procedures.

如图2所示的自动化测试系统的结构框图。该自动化测试系统包括自动化服务器、版本服务器以及显示看板。The block diagram of the automated test system shown in Figure 2. The automated test system includes an automation server, a version server, and a display kanban.

自动化服务器负责完成自动化用例管理、参数配置、测试执行及测试结果反馈等功能,并与被测设备交互,完成自动化测试过程;版本服务器负责软件版本的检查与更新、编译及程序烧录等功能,并将相关软件程序传递给被测设备;显示看板设置为显示软件版本检查、编译、烧录及测试结果显示等功能。另外,需要说明的是,本实施例中,被测设备包括嵌入式设备,可选为光网络传输设备。在本实施例中,版本更新模块10、静态检查模块20、编译模块30以及烧录模块40可以设置在版本服务器上,测试执行模块50可以设置在自动化服务器上,测试反馈模块60可以设置在显示看板上。The automation server is responsible for automating use case management, parameter configuration, test execution and feedback of test results, and interacts with the device under test to complete the automated test process; the version server is responsible for checking and updating the software version, compiling and programming. And pass the relevant software program to the device under test; the display kanban is set to display software version check, compile, burn, and test result display. In addition, it should be noted that, in this embodiment, the device under test includes an embedded device, which may be an optical network transmission device. In this embodiment, the version update module 10, the static check module 20, the compiling module 30, and the burning module 40 may be disposed on the version server, the test execution module 50 may be disposed on the automation server, and the test feedback module 60 may be disposed on the display. Watch on the board.

如图3所示的本发明自动化测试系统的分层框架示意图。本实施例中引入模块化的设计思路,将自动化测试系统看作一个具有三层架构的框架,分别为支撑层、业务层及应用层。其中,支撑层用于支撑底层设备通信协议收发消息平台功能,并在完成对底层设备通信协议封装后即可以保证自动化测 试系统与被测试设备的通信信息交互;业务层主要是根据嵌入式设备产品的业务进行消息接口封装,完成API(Application Programming Interface,应用程序编程接口)(比如安全、性能、维护及告警),直接屏蔽各个设备的功能差异,并被上层应用层调用;应用层则完成业务参数配置及用例管理功能,同时,保证执行结果及日志输出。A schematic diagram of a layered framework of the automated test system of the present invention as shown in FIG. In this embodiment, a modular design idea is introduced, and the automated test system is regarded as a framework with a three-layer architecture, which is a support layer, a service layer, and an application layer. The support layer is used to support the underlying device communication protocol to send and receive message platform functions, and can ensure automatic measurement after completing the encapsulation of the underlying device communication protocol. The test system interacts with the communication information of the device under test; the service layer mainly encapsulates the message interface according to the service of the embedded device product, and completes an API (Application Programming Interface) (such as security, performance, maintenance, and alarm). Directly shield the function differences of each device and be called by the upper application layer; the application layer completes the service parameter configuration and use case management functions, and at the same time guarantees the execution result and log output.

本实施例中采用的模块化设计具有很强的移植性及扩展性,因而能满足不同嵌入式设备产品和不同测试软件版本的测试需求。自动化测试系统的整个执行过程模拟网管操作,从而保证测试环境步骤一致性,避免人为操作不规范或差异性,并自动反馈测试结果。通过将自动化测试的各个功能进行模块化,从而使得各个模块功能独立,进而使整个测试方法具有很强的移植性与扩展性,能够全自动化执行,进而减少人为因素造成的测试不科学,提高研发效率。The modular design adopted in this embodiment has strong portability and scalability, and thus can meet the testing requirements of different embedded device products and different test software versions. The entire execution process of the automated test system simulates the network management operation, thereby ensuring the consistency of the test environment steps, avoiding irregularities or differences in human operation, and automatically feeding back test results. By modularizing the functions of the automated test, the functions of each module are independent, which makes the whole test method highly portable and scalable, and can be fully automated, thereby reducing the unscientific test caused by human factors and improving R&D. effectiveness.

第二实施例Second embodiment

参照图4,图4为本发明第二实施例的自动化测试系统的功能模块示意图。基于前述自动化测试系统,本实施例中的所述自动化测试系统还包括:Referring to FIG. 4, FIG. 4 is a schematic diagram of functional modules of an automated test system according to a second embodiment of the present invention. Based on the foregoing automated test system, the automated test system in this embodiment further includes:

跳转模块70,设置为判断当前模块是否执行结束以及在当前模块执行结束后跳转到下一模块。The jump module 70 is configured to determine whether the current module ends execution and jump to the next module after the current module execution ends.

需要说明的是,本实施例中的当前模块指自动化测试过程中,正在执行的运行模块,可以是版本更新模块10、静态检查模块20、编译模块30、烧录模块40、测试执行模块50以及测试反馈模块60中的任何一个。It should be noted that the current module in this embodiment refers to the running module that is being executed during the automatic testing process, and may be a version update module 10, a static check module 20, a compiling module 30, a burning module 40, a test executing module 50, and Test any of the feedback modules 60.

由于每个模块功能相互独立,同时为保证整个自动化测试过程全自动执行,本实施例中,通过跳转模块70判断当前模块是否执行结束以及在当前模块执行结束后自动跳转到下一模块,从而将自动化测试系统的整个功能模块串联后依次执行。具体可在每个模块设置结束标记以及下一模块的调用地址。In this embodiment, the jump module 70 determines whether the current module is executed and automatically jumps to the next module after the execution of the current module, as the functions of the modules are independent of each other. Thereby, the entire functional modules of the automated test system are connected in series and executed in sequence. Specifically, the end tag and the calling address of the next module can be set in each module.

本实施例为实现自动化测试系统的测试执行过程全自动化的可选实施例。此外还可以通过设置自动化执行的配置文件,根据配置文件中的调用顺序自动化执行;或者每个模块在执行结束后通过发送消息通知的方式通知下一模 块自动执行。通过全自动化执行,能够减人为因素所造成的测试不科学,同时每个模块功能相互独立以及全自动化执行能够适应处理嵌入式设备支持功能多、单板种类多,从而导致发布的版本也非常多,测试任务繁重的技术问题,从而节省了测试的时间及人力成本,提高了测试效率及研发进程,同时也降低了研发成本。This embodiment is an alternative embodiment for fully automating the test execution process of an automated test system. In addition, you can automate the execution according to the calling sequence in the configuration file by setting the configuration file that is executed automatically; or each module notifies the next module by sending a message notification after the execution ends. The block is executed automatically. Through fully automated execution, the test caused by the reduction of human factors is unscientific. At the same time, each module function is independent of each other and fully automated. It can adapt to the processing of embedded devices and has many types of boards, resulting in a large number of released versions. , testing the technical problems of heavy tasks, thereby saving test time and labor costs, improving test efficiency and development process, and reducing development costs.

第三实施例Third embodiment

参照图5,图5为本发明第三实施例的自动化测试系统的功能模块示意图。基于前述自动化测试系统,本实施例中的所述自动化测试系统还包括:Referring to FIG. 5, FIG. 5 is a schematic diagram of functional modules of an automated test system according to a third embodiment of the present invention. Based on the foregoing automated test system, the automated test system in this embodiment further includes:

自适应判决模块80,设置为当测试过程中出现故障时,判断是否继续执行测试。The adaptive decision module 80 is configured to determine whether to continue the test when a failure occurs during the test.

本实施例中,考虑到嵌入式设备,尤其是光网络传输设备的测试与环境的强关联性,从而决定了光网络传输设备进行测试的故障分析定位离不开现场实际环境,因此,当测试过程中发生外部环境变化或测试意外中断的故障时,通过自适应判决模块80判断是否继续执行测试。可以通过预设可能出现的所有故障所对应的处理方式,从而交由自动化测试系统自行判断是否继续执行测试。In this embodiment, considering the strong correlation between the test of the embedded device, especially the optical network transmission device and the environment, the fault analysis and positioning of the optical network transmission device is determined to be inseparable from the actual environment of the site, and therefore, when testing When an external environmental change or a test unexpected interruption occurs in the process, the adaptive decision module 80 determines whether to continue the test. The automatic test system can determine whether to continue the test by presetting the processing method corresponding to all the faults that may occur.

本实施例为更好定位被测设备发生故障的现场环境,同时也保证整个测试过程自动化执行,通过自适应判决模块80对测试过程中出现的故障进行判断,若终止测试则保留测试现场;否则继续执行测试。In this embodiment, in order to better locate the faulty on-site environment of the device under test, and also ensure that the entire test process is automatically executed, the adaptive decision module 80 determines the fault that occurs during the test, and if the test is terminated, the test site is retained; otherwise Continue to perform the test.

可选的,所述自适应判决模块80是设置为:当测试用例出现故障时,根据预设的故障等级,判断是否继续执行测试。Optionally, the adaptive decision module 80 is configured to: when the test case fails, determine whether to continue the test according to the preset fault level.

执行测试用例是整个自动化测试的核心部分,且整个自动化测试过程中所需要执行的测试用例很多,一般自动化测试都是按照设定好的测试顺序执行各测试用例,而当一测试用例出现故障时,需要测试人员进行手动修改或调整测试用例的执行顺序;或者多个测试用例都出现故障时,将需要花费大量时间进行手动修改或调整,从而影响了整个自动化测试的测试效率。 Executing test cases is the core part of the entire automated test, and there are many test cases that need to be executed during the entire automated test process. Generally, automated test tests are performed according to the set test sequence, and when a test case fails. The tester needs to manually modify or adjust the execution order of the test cases; or when multiple test cases fail, it will take a lot of time to manually modify or adjust, which affects the test efficiency of the entire automated test.

本实施例中,当测试用例出现故障时,自适应判决模块80根据预设的故障等级,判断是否继续执行测试,从而更好定位被测设备发生故障的现场环境,同时也保证整个测试过程的自动化执行。In this embodiment, when the test case fails, the adaptive decision module 80 determines whether to continue the test according to the preset fault level, thereby better positioning the fault environment of the device under test, and ensuring the entire test process. Automated execution.

可选的,参照图6,所述自适应判决模块80通过如下方式实现当测试用例出现故障时,根据预设的故障等级,判断是否继续执行所述自动化测试:Optionally, referring to FIG. 6, the adaptive decision module 80 determines whether to continue to perform the automatic test according to a preset fault level when the test case fails.

当测试用例出现故障且为预设的第一类故障等级时,终止当前测试用例的测试并通知测试人员;When the test case fails and is the preset first type of fault level, the test of the current test case is terminated and the tester is notified;

当测试用例出现故障且为预设的第二类故障等级时,继续执行下一测试用例。When the test case fails and is the default second level of fault, continue with the next test case.

本实施例中,根据终止执行与继续执行,可将测试用例出现的故障等级对应分为两类,例如将问题相对比较严重、需要测试人员及时处理的测试用例故障预设为第一类故障等级;而其他的测试用例故障则预设为第二类故障等级。当测试用例出现故障且为预设的第一类故障等级时,终止当前测试用例的测试以保留现场故障环境,同时通过如短消息或邮件方式告知测试人员进行分析;而当测试用例出现故障且为预设的第二类故障等级时,继续执行下一测试用例。In this embodiment, according to the termination execution and the continuation execution, the fault levels corresponding to the test cases can be correspondingly divided into two categories, for example, the test case failures that are relatively serious and need to be processed by the test personnel in time are preset as the first type of fault level. Other test case failures are preset to the second type of fault level. When the test case fails and is the preset first type of fault level, the test of the current test case is terminated to retain the field fault environment, and the tester is informed by short message or mail; and when the test case fails When the second type of fault level is preset, continue with the next test case.

第四实施例Fourth embodiment

参照图7,图7为本发明第四实施例的测试方法第的流程示意图。本实施例中,测试方法包括:Referring to FIG. 7, FIG. 7 is a schematic flowchart of a first testing method according to a fourth embodiment of the present invention. In this embodiment, the testing method includes:

步骤S10,当测试软件的版本存在更新时,自动化测试系统获取更新后的测试软件并对所述更新后的测试软件中的程序进行静态检查;Step S10, when there is an update of the version of the test software, the automated test system obtains the updated test software and performs static check on the program in the updated test software;

根据测试需要,测试人员需要不断对测试软件进行修改从而实现测试目的。当测试人员修改完毕并上传测试软件时,也即测试软件的版本存在更新时,自动化测试系统将自动下载该测试软件的最新版本并进行更新,同时对测试软件中的程序进行静态检查,比如检查程序的语法结构、数组越界、除数为零以及缓冲区溢出等。测试软件包括用于进行测试的测试数据、测试用 例以及执行测试的测试函数集等。According to the test needs, the tester needs to continuously modify the test software to achieve the test purpose. When the tester modifies and uploads the test software, that is, when the version of the test software is updated, the automated test system will automatically download and update the latest version of the test software, and perform static check on the program in the test software, such as checking The syntax structure of the program, the array is out of bounds, the divisor is zero, and the buffer overflows. Test software includes test data for testing, test Examples and test function sets for performing tests.

步骤S20,对完成静态检查后的测试软件中的程序进行编译,并将编译后的测试软件中的程序写入被测设备;Step S20, compiling the program in the test software after the static check is completed, and writing the program in the compiled test software to the device under test;

本实施例中,被测设备包括嵌入式设备。因此需要将测试软件中的相关程序写入被测设备中以便于进行测试。自动化测试系统对通过静态检查的程序进行编译,并将编译后的测试软件中的程序写入被测设备中。另外,可选的,当静态检查或编译或烧录过程中出现错误时,自动化测试系统将出现的错误信息反馈给测试人员。In this embodiment, the device under test includes an embedded device. Therefore, it is necessary to write related programs in the test software to the device under test to facilitate testing. The automated test system compiles the program that passes the static check and writes the program in the compiled test software to the device under test. In addition, optionally, when an error occurs during static checking or compiling or burning, the automated test system feeds back error information to the tester.

步骤S30,根据预设测试策略,在所述被测设备上执行自动化测试,并反馈自动化测试结果及测试日志信息。Step S30: Perform an automated test on the device under test according to a preset test strategy, and feed back the automated test result and the test log information.

当将测试的相关程序写入被测设备后,自动化测试系统将根据预设的测试策略,自动执行自动化测试,完成测试执行过程。预设的测试策略包括测试的类型及对应的测试用例,比如回归测试、压力测试等。同时,不同的测试类型所采用的测试用例可以相同,也可以不同。当自动化测试结束后,自动化测试系统将自动化测试结果及测试日志信息反馈给测试人员,比如通过邮件形式将测试结果及测试日志发送到测试人员的邮箱中,以便测试人员及时跟进了解测试情况,并对测试设备或测试程序进行后续修改完善。When the relevant program of the test is written to the device under test, the automated test system will automatically perform the automated test according to the preset test strategy, and complete the test execution process. The default test strategy includes the type of test and the corresponding test cases, such as regression test, stress test, and so on. At the same time, the test cases used by different test types can be the same or different. When the automated test is over, the automated test system feeds the automated test results and test log information back to the tester. For example, the test results and test logs are sent to the tester's mailbox by email, so that the tester can follow up and understand the test in time. And make subsequent modifications to the test equipment or test procedures.

本实施例中采用的模块化设计具有很强的移植性及扩展性,因而能满足不同嵌入式设备产品和不同测试软件版本的测试需求。自动化测试系统的整个执行过程模拟网管操作,从而保证测试环境步骤一致性,避免人为操作不规范或差异性,并自动反馈测试结果。通过将自动化测试的每个功能进行模块化,从而使得每个模块功能独立,进而使整个测试方法具有很强的移植性与扩展性,减少人为因素造成的测试不科学,提高研发效率。The modular design adopted in this embodiment has strong portability and scalability, and thus can meet the testing requirements of different embedded device products and different test software versions. The entire execution process of the automated test system simulates the network management operation, thereby ensuring the consistency of the test environment steps, avoiding irregularities or differences in human operation, and automatically feeding back test results. By modularizing each function of the automated test, each module is functionally independent, which makes the whole test method highly portable and expandable, reducing the unscientific test caused by human factors and improving the research and development efficiency.

第五实施例Fifth embodiment

参照图8,图8为本发明第五实施例的测试方法的流程示意图。基于前述测试方法,本实施例中,所述方法在上述步骤S10之前还包括:Referring to FIG. 8, FIG. 8 is a schematic flowchart diagram of a testing method according to a fifth embodiment of the present invention. Based on the foregoing test method, in the embodiment, the method further includes: before the step S10:

步骤S00,所述自动化测试系统检测测试软件的版本是否存在更新。 In step S00, the automated test system detects whether there is an update of the version of the test software.

根据测试需要,测试人员需要不断对测试软件进行修改从而实现测试目的。本实施例中,当测试人员修改完毕并上传测试软件时,自动化测试系统将自动检测该测试软件的版本是否存在更新,若存在更新,则自动下载该测试软件的最新版本并进行更新。According to the test needs, the tester needs to continuously modify the test software to achieve the test purpose. In this embodiment, when the tester modifies and uploads the test software, the automated test system will automatically detect whether the version of the test software is updated. If there is an update, the latest version of the test software is automatically downloaded and updated.

可选的,在本实施例中,步骤S30中根据预设测试策略,在所述被测设备上执行自动化测试包括:当测试过程中出现故障时,所述自动化测试系统判断是否继续执行测试。Optionally, in this embodiment, performing the automated test on the device under test according to the preset test policy in step S30 includes: when a fault occurs during the test, the automated test system determines whether to continue the test.

本实施例中,考虑到嵌入式设备,尤其是光网络传输设备的测试与环境的强关联性,从而决定了光网络传输设备进行测试的故障分析定位离不开现场实际环境,因此,当测试过程中发生外部环境变化或测试意外中断的故障时,通过自动化测试系统判断是否继续执行测试。可以通过预设可能出现的所有故障所对应的处理方式,从而交由自动化测试系统自行判断是否继续执行测试。In this embodiment, considering the strong correlation between the test of the embedded device, especially the optical network transmission device and the environment, the fault analysis and positioning of the optical network transmission device is determined to be inseparable from the actual environment of the site, and therefore, when testing When an external environmental change or a test failure is interrupted during the process, the automated test system determines whether to continue the test. The automatic test system can determine whether to continue the test by presetting the processing method corresponding to all the faults that may occur.

本实施例为更好定位被测设备发生故障的现场环境,同时也保证整个测试过程自动化执行,通过自动化测试系统对测试过程中出现的故障进行判断,若终止测试则保留测试现场;否则继续执行测试。In this embodiment, the field environment in which the device under test is faulty is better positioned, and the entire test process is ensured to be automatically executed. The fault occurs in the test process through the automatic test system, and the test site is retained if the test is terminated; otherwise, the test is continued. test.

可选的,基于上述实施例,当测试过程中出现故障时,判断是否继续执行测试包括:当测试用例出现故障时,所述自动化测试系统根据预设的故障等级,判断是否继续执行测试。Optionally, based on the foregoing embodiment, when a fault occurs during the testing, determining whether to continue to perform the test includes: when the test case fails, the automated test system determines whether to continue the test according to the preset fault level.

执行测试用例是整个自动化测试的核心部分,且整个自动化测试过程中所需要执行的测试用例很多,一般自动化测试都是按照设定好的测试顺序执行各测试用例,而当一测试用例出现故障时,需要测试人员进行手动修改或调整测试用例的执行顺序;或者多个测试用例都出现故障时,将需要花费大量时间进行手动修改或调整,从而影响了整个自动化测试的测试效率。Executing test cases is the core part of the entire automated test, and there are many test cases that need to be executed during the entire automated test process. Generally, automated test tests are performed according to the set test sequence, and when a test case fails. The tester needs to manually modify or adjust the execution order of the test cases; or when multiple test cases fail, it will take a lot of time to manually modify or adjust, which affects the test efficiency of the entire automated test.

本实施例中,当测试用例出现故障时,自动化测试系统根据预设的故障等级,判断是否继续执行测试,从而更好定位被测设备发生故障的现场环境, 同时也保证整个测试过程的自动化执行。In this embodiment, when the test case fails, the automated test system determines whether to continue the test according to the preset fault level, thereby better positioning the fault environment of the device under test, It also ensures the automated execution of the entire test process.

可选的,基于上述实施例,当测试用例出现故障时,根据预设的故障等级,判断是否继续执行测试包括:Optionally, based on the foregoing embodiment, when the test case fails, determining whether to continue the test according to the preset fault level includes:

当测试用例出现故障且为预设的第一类故障等级时,所述自动化测试系统终止当前测试用例的测试并通知测试人员;When the test case fails and is a preset first type of fault level, the automated test system terminates the test of the current test case and notifies the tester;

当测试用例出现故障且为预设的第二类故障等级时,所述自动化测试系统继续执行下一测试用例。When the test case fails and is a preset second type of fault level, the automated test system continues to execute the next test case.

本实施例中,根据终止执行与继续执行,可将测试用例出现的故障等级对应分为两类,例如将问题相对比较严重、需要测试人员及时处理的测试用例故障预设为第一类故障等级;而其他的测试用例故障则预设为第二类故障等级。当测试用例出现故障且为预设的第一类故障等级时,自动化测试系统终止当前测试用例的测试以保留现场故障环境,同时通过如短消息或邮件方式告知测试人员进行分析;而当测试用例出现故障且为预设的第二类故障等级时,自动化测试系统继续执行下一测试用例。In this embodiment, according to the termination execution and the continuation execution, the fault levels corresponding to the test cases can be correspondingly divided into two categories, for example, the test case failures that are relatively serious and need to be processed by the test personnel in time are preset as the first type of fault level. Other test case failures are preset to the second type of fault level. When the test case fails and is the preset first type of fault level, the automated test system terminates the test of the current test case to preserve the on-site fault environment, while notifying the tester for analysis by short message or mail; and when the test case When a fault occurs and is a preset second type of fault level, the automated test system continues to execute the next test case.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现测试方法。The embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, the test method is implemented.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请 的权利要求范围当中。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application is not limited to any specific combination of hardware and software. A person skilled in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application, and should be covered in the present application. Within the scope of the claims.

工业实用性Industrial applicability

上述技术方案具有很强的移植性与扩展性,能够全自动化执行,可以减少人为因素造成的测试不科学的问题,提高了研发效率,降低了产品的研发成本。 The above technical solutions have strong portability and scalability, can be fully automated, can reduce the unscientific testing caused by human factors, improve research and development efficiency, and reduce product development costs.

Claims (10)

一种自动化测试系统,所述自动化测试系统包括:版本更新模块、静态检查模块、编译模块、烧录模块、测试执行模块以及测试反馈模块;An automated test system includes: a version update module, a static check module, a compiling module, a burning module, a test execution module, and a test feedback module; 所述版本更新模块,设置为检测测试软件的版本并进行更新;The version update module is configured to detect a version of the test software and update the same; 所述静态检查模块,设置为对更新后的测试软件中的程序进行静态检查;The static check module is configured to perform static check on the program in the updated test software; 所述编译模块,设置为对完成静态检查后的测试软件中的程序进行编译;The compiling module is configured to compile a program in the test software after the static check is completed; 所述烧录模块,设置为将编译后的测试软件中的程序写入被测设备;The programming module is configured to write the program in the compiled test software to the device under test; 所述测试执行模块,设置为根据预设的测试策略,在所述被测设备上执行自动化测试;The test execution module is configured to perform an automated test on the device under test according to a preset test strategy; 所述测试反馈模块,设置为反馈自动化测试结果及测试日志信息。The test feedback module is configured to feed back automated test results and test log information. 如权利要求1所述的自动化测试系统,所述自动化测试系统还包括:The automated test system of claim 1 further comprising: 跳转模块,设置为判断当前模块是否执行结束以及在当前模块执行结束后跳转到下一模块。The jump module is set to determine whether the current module ends execution and jumps to the next module after the current module execution ends. 如权利要求1或2所述的自动化测试系统,所述自动化测试系统还包括:The automated test system of claim 1 or 2, further comprising: 自适应判决模块,设置为当自动化测试过程中出现故障时,判断是否继续执行所述自动化测试。The adaptive decision module is configured to determine whether to continue the automated test when a failure occurs during the automated test. 如权利要求3所述的自动化测试系统,所述自适应判决模块是设置为:The automated test system of claim 3 wherein said adaptive decision module is configured to: 当测试用例出现故障时,根据预设的故障等级,判断是否继续执行所述自动化测试。When the test case fails, it is determined whether to continue the automatic test according to the preset fault level. 如权利要求4所述的自动化测试系统,所述自适应判决模块通过如下方式实现当测试用例出现故障时,根据预设的故障等级,判断是否继续执行所述自动化测试:The automated test system of claim 4, wherein the adaptive decision module determines whether to continue to perform the automated test according to a preset fault level when the test case fails: 当测试用例出现故障且为预设的第一类故障等级时,终止当前测试用例的测试并通知测试人员;When the test case fails and is the preset first type of fault level, the test of the current test case is terminated and the tester is notified; 当测试用例出现故障且为预设的第二类故障等级时,继续执行下一测试用例。 When the test case fails and is the default second level of fault, continue with the next test case. 一种测试方法,所述测试方法包括:A test method, the test method comprising: 当测试软件的版本存在更新时,自动化测试系统获取更新后的测试软件,并对所述更新后的测试软件中的程序进行静态检查;When there is an update of the version of the test software, the automated test system obtains the updated test software, and performs static check on the program in the updated test software; 对完成静态检查后的测试软件中的程序进行编译,将编译后的测试软件中的程序写入被测设备;Compiling the program in the test software after the static check is completed, and writing the program in the compiled test software to the device under test; 根据预设测试策略,在所述被测设备上执行自动化测试,并反馈自动化测试结果及测试日志信息。Perform automated testing on the device under test according to a preset test strategy, and feed back automated test results and test log information. 如权利要求6所述的测试方法,所述方法还包括:所述当测试软件的版本存在更新时,自动化测试系统获取更新后的测试软件并对所述测试软件中的程序进行静态检查之前,所述自动化测试系统检测测试软件的版本是否存在更新。The test method according to claim 6, further comprising: said, when the version of the test software is updated, the automated test system acquires the updated test software and performs a static check on the program in the test software, The automated test system detects if there is an update to the version of the test software. 如权利要求6或7所述的测试方法,所述方法还包括:The test method according to claim 6 or 7, further comprising: 当自动化测试过程中出现故障时,所述自动化测试系统判决是否继续执行所述自动化测试。When a failure occurs during an automated test, the automated test system decides whether to proceed with the automated test. 如权利要求8所述的测试方法,其中,所述当自动化测试过程中出现故障时,所述自动化测试系统判决是否继续执行所述自动化测试包括:The test method according to claim 8, wherein said automatic test system decides whether to continue execution of said automated test when a failure occurs during an automated test, comprising: 当测试用例出现故障时,所述自动化测试系统根据预设的故障等级,判决是否继续执行所述自动化测试。When the test case fails, the automated test system decides whether to continue the automated test based on the preset fault level. 如权利要求9所述的测试方法,其中,所述当测试用例出现故障时,所述自动化测试系统根据预设的故障等级,判决是否继续执行所述自动化测试包括:The testing method according to claim 9, wherein when the test case fails, the automated test system determines whether to continue executing the automated test according to a preset fault level, including: 当测试用例出现故障且为预设的第一类故障等级时,所述自动化测试系统终止当前测试用例的测试并通知测试人员;When the test case fails and is a preset first type of fault level, the automated test system terminates the test of the current test case and notifies the tester; 当测试用例出现故障且为预设的第二类故障等级时,所述自动化测试系统继续执行下一测试用例。 When the test case fails and is a preset second type of fault level, the automated test system continues to execute the next test case.
PCT/CN2016/082513 2015-06-26 2016-05-18 Automated testing system and testing method Ceased WO2016206505A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510366735.0 2015-06-26
CN201510366735.0A CN106326093A (en) 2015-06-26 2015-06-26 Automated testing system and testing method

Publications (1)

Publication Number Publication Date
WO2016206505A1 true WO2016206505A1 (en) 2016-12-29

Family

ID=57584442

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/082513 Ceased WO2016206505A1 (en) 2015-06-26 2016-05-18 Automated testing system and testing method

Country Status (2)

Country Link
CN (1) CN106326093A (en)
WO (1) WO2016206505A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457204A (en) * 2019-07-05 2019-11-15 深圳壹账通智能科技有限公司 Code testing method, device, computer equipment and storage medium
CN111176995A (en) * 2019-12-25 2020-05-19 中国航空工业集团公司西安飞机设计研究所 A test method and test system based on big data test cases
CN111194046A (en) * 2018-11-14 2020-05-22 上海富瀚微电子股份有限公司 Automatic WIFI module testing system and method
CN111309633A (en) * 2020-03-23 2020-06-19 上海新炬网络信息技术股份有限公司 Continuous performance testing method based on automatic operation and maintenance
CN113746501A (en) * 2021-09-14 2021-12-03 北京中睿昊天信息科技有限公司 Simulation device system and test method for evaluating HPLC (high performance liquid chromatography) deepening function
CN113760774A (en) * 2021-09-28 2021-12-07 中汽创智科技有限公司 OTA simulation test method, platform and system
CN114860590A (en) * 2022-04-28 2022-08-05 济南浪潮数据技术有限公司 Interface testing method, device, equipment and storage medium
CN114980193A (en) * 2022-05-27 2022-08-30 成都泽耀科技有限公司 Full-automatic wireless communication module production and test integrated system and method
CN118400051A (en) * 2024-06-28 2024-07-26 深圳东昇射频技术有限公司 Test method, device, medium and equipment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685767A (en) * 2017-03-22 2017-05-17 百通赫思曼工业(苏州)有限公司 Multi-pair-data automatic testing system
CN107122280A (en) * 2017-04-28 2017-09-01 上海斐讯数据通信技术有限公司 The automated testing method and system of DUT basic tests
CN107703395A (en) * 2017-10-31 2018-02-16 惠州市德赛西威汽车电子股份有限公司 A kind of pulse test system and method for testing for vehicle-carrying display screen
CN110235393A (en) * 2018-01-05 2019-09-13 深圳市汇顶科技股份有限公司 Automated testing method and system
CN109460359A (en) * 2018-10-26 2019-03-12 深圳市鼎阳科技有限公司 A kind of software version test method and system for embedded device
CN109725629B (en) * 2018-12-29 2020-05-22 一汽-大众汽车有限公司 Vehicle control unit refreshes test system
CN110838951A (en) * 2019-10-22 2020-02-25 北京天融信网络安全技术有限公司 Network equipment testing method and system
CN115408257A (en) * 2021-05-28 2022-11-29 中移物联网有限公司 A test method, device and test system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server
US20090307665A1 (en) * 2004-10-19 2009-12-10 Ebay Inc. Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface
CN101986278A (en) * 2010-10-29 2011-03-16 中国计量科学研究院 Automatic testing method and system for electronic equipment
CN102255748A (en) * 2011-06-27 2011-11-23 中兴通讯股份有限公司 Automated testing system and method, version server and terminal
CN103136098A (en) * 2011-11-30 2013-06-05 西门子公司 Method, device and system for fuzzing test

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7644334B2 (en) * 2006-11-27 2010-01-05 Honeywell International, Inc. Requirements-based test generation
CN101833500A (en) * 2010-04-07 2010-09-15 南京航空航天大学 An Agent-based Intelligent Testing Method for Embedded Software
CN104424088B (en) * 2013-08-21 2019-09-13 腾讯科技(深圳)有限公司 The test method and device of software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090307665A1 (en) * 2004-10-19 2009-12-10 Ebay Inc. Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface
CN101447892A (en) * 2008-11-24 2009-06-03 中兴通讯股份有限公司 Distributed test method, system and test server
CN101986278A (en) * 2010-10-29 2011-03-16 中国计量科学研究院 Automatic testing method and system for electronic equipment
CN102255748A (en) * 2011-06-27 2011-11-23 中兴通讯股份有限公司 Automated testing system and method, version server and terminal
CN103136098A (en) * 2011-11-30 2013-06-05 西门子公司 Method, device and system for fuzzing test

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111194046A (en) * 2018-11-14 2020-05-22 上海富瀚微电子股份有限公司 Automatic WIFI module testing system and method
CN110457204A (en) * 2019-07-05 2019-11-15 深圳壹账通智能科技有限公司 Code testing method, device, computer equipment and storage medium
CN111176995A (en) * 2019-12-25 2020-05-19 中国航空工业集团公司西安飞机设计研究所 A test method and test system based on big data test cases
CN111309633A (en) * 2020-03-23 2020-06-19 上海新炬网络信息技术股份有限公司 Continuous performance testing method based on automatic operation and maintenance
CN113746501A (en) * 2021-09-14 2021-12-03 北京中睿昊天信息科技有限公司 Simulation device system and test method for evaluating HPLC (high performance liquid chromatography) deepening function
CN113760774A (en) * 2021-09-28 2021-12-07 中汽创智科技有限公司 OTA simulation test method, platform and system
CN113760774B (en) * 2021-09-28 2023-10-27 中汽创智科技有限公司 OTA simulation test method, platform and system
CN114860590A (en) * 2022-04-28 2022-08-05 济南浪潮数据技术有限公司 Interface testing method, device, equipment and storage medium
CN114980193A (en) * 2022-05-27 2022-08-30 成都泽耀科技有限公司 Full-automatic wireless communication module production and test integrated system and method
CN118400051A (en) * 2024-06-28 2024-07-26 深圳东昇射频技术有限公司 Test method, device, medium and equipment

Also Published As

Publication number Publication date
CN106326093A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2016206505A1 (en) Automated testing system and testing method
US10430319B1 (en) Systems and methods for automatic software testing
CN110008123B (en) Method for automatically deploying test software and corresponding device
WO2016177124A1 (en) Method and device for implementing continuous integration test
US20150100832A1 (en) Method and system for selecting and executing test scripts
US9712418B2 (en) Automated network control
US20150100829A1 (en) Method and system for selecting and executing test scripts
CN107463500B (en) Debugging method, medium, system and computing device for test script
US20150100831A1 (en) Method and system for selecting and executing test scripts
US20150100830A1 (en) Method and system for selecting and executing test scripts
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
US9672139B2 (en) Debugging in a production environment
US20090204946A1 (en) Intelligent software code updater
CN105912460A (en) Software test method and system based on QTP
CN104360952A (en) A software testing system and method
WO2017028574A1 (en) Router testing method and testing device
US9612944B2 (en) Method and system for verifying scenario based test selection, execution and reporting
JP6643407B2 (en) Method, apparatus, server and program for inspecting defect function
CN107807869A (en) A kind of test system and method for testing
US10417116B2 (en) System, method, and apparatus for crowd-sourced gathering of application execution events for automatic application testing and replay
CN114035786B (en) A dependency-based micro-frontend compatible migration method and system
US20110270802A1 (en) Method for controlling changes of replication directions in a multi-site disaster recovery environment for high available application
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN118092942B (en) Offline deployment method and device of big data analysis platform
CN111581081B (en) Automatic test system and method

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: 16813621

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: 16813621

Country of ref document: EP

Kind code of ref document: A1