[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2017197829A1 - Test information management method and apparatus, and test case execution system and device - Google Patents

Test information management method and apparatus, and test case execution system and device Download PDF

Info

Publication number
WO2017197829A1
WO2017197829A1 PCT/CN2016/101781 CN2016101781W WO2017197829A1 WO 2017197829 A1 WO2017197829 A1 WO 2017197829A1 CN 2016101781 W CN2016101781 W CN 2016101781W WO 2017197829 A1 WO2017197829 A1 WO 2017197829A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
device under
information
test case
interaction information
Prior art date
Application number
PCT/CN2016/101781
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 WO2017197829A1 publication Critical patent/WO2017197829A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • 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/3684Test management for test design, e.g. generating new test cases
    • 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 relates to the field of software testing and hardware testing, and in particular, to a test information management method, apparatus, test case execution system and device.
  • the prior art proposes Construct a virtual device under test corresponding to the device under test.
  • the virtual device under test has exactly the same environmental conditions as the device under test.
  • This method can save a lot of resources and time, and can be used as an continuation of automated test cases.
  • the integrated test environment can be verified in time and quickly when test cases and keywords are modified.
  • using this method often requires testing in a real test environment to facilitate the detection of the availability of test cases.
  • test cases that have passed the test under the real test
  • the interaction information between the test system and the real device under test needs to be manually filled into the virtual device under test when using these test cases; in actual use, Test cases tend to have a large number, and the amount of interaction information generated when the test system interacts with the information of the actual device under test is even larger; this will waste more manpower in some repetitive work. Up, and work efficiency is also low.
  • the test system in the prior art has the problem of wasting human resources and inefficient work.
  • the main technical problem to be solved by the present invention is to provide a test information management method, device, and test case execution system and device, which solves the problem of waste of human resources and low work efficiency in the test system in the prior art.
  • the present invention provides a test information management method, including:
  • the interaction information includes a control instruction sent by the test case execution system to the real device under test according to the test case, and Determining an execution result obtained by the real device under test according to the control instruction;
  • the method before saving the interaction information, the method further includes: determining whether the interaction information already exists locally, and when the determination result is no, saving the interaction information; otherwise, not saving the location Interacting information.
  • saving the interaction information includes: converting the format of the interaction information into a target format, and saving interaction information of the target format; the target format is completed with the virtual device under test When testing the test case, the format required for the test information matches.
  • the method before collecting the interaction information between the test case execution system and the real device under test, the method further includes: monitoring a communication protocol channel between the test case execution system and the real device under test. Monitor the information interaction between the test case execution system and the real device under test.
  • the invention also provides a test information management device, comprising:
  • the processing module is configured to collect interaction information between the test case execution system and the real device under test, and save the interaction information, where the interaction information includes a test case execution system that is sent to the real device under test according to the test case. a control instruction, and an execution result obtained by the real device under test according to the control instruction;
  • the import module is configured to import the interaction information into a virtual device under test corresponding to the real device under test.
  • the method further includes: a determining module, configured to determine whether the interaction information already exists locally, and when the determination result is no, the processing module saves the interaction information; otherwise, the processing The module does not save the interaction information.
  • the processing module includes a format conversion sub-module, configured to convert a format of the interaction information into a target format, and save interaction information of the target format; the target format and the virtual When the device under test completes the test for the test case, the format required for the test information matches.
  • the monitoring module is further configured to monitor between the test case execution system and the real device under test before collecting the interaction information between the test case execution system and the real device under test.
  • the communication protocol channel monitors the information interaction between the test case execution system and the real device under test.
  • the present invention further provides a test case execution system, comprising: the test information management device in the above embodiment, configured to control a real device under test to execute a test case by using a control command, and receive the test device by the real device under test to execute the test case. The result of the execution.
  • the present invention also provides an apparatus, comprising: the test information management apparatus in the above embodiment, for testing
  • the control instruction of the execution system executes the test case, and sends the execution result of the test case to the test case execution system, or is used to complete the test of the corresponding test case according to the interaction information.
  • the invention provides a test information management method, device, test case execution system and device, and the test information management device monitors the information interaction between the test case execution system and the real device under test, and collects two The interaction information between the two, and then the collected interaction information is saved; the interaction information includes a control instruction sent by the test case execution system to the real device under test according to the test case, and the real device under test performs the test according to the control instruction. The result of the execution; finally, the interaction information is imported to the virtual device under test.
  • the test information management can be used to collect the relevant information of the test case when testing the real device under test; then the information is imported into the virtual device under test, and the virtual device under test can directly utilize the above interaction information and test.
  • the use case execution system interacts to complete testing of the virtual device under test. It does not require the staff to manually fill in the execution test, the interaction information between the test system and the real device under test, which can effectively solve the problem of wasted human resources and low work efficiency in the test system in the prior art; thereby saving human resources. To improve the efficiency of work.
  • FIG. 1 is a flowchart of a test information management method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural diagram of a test information management apparatus according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of a system of a specific example of a test information management apparatus according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of a specific example of a test information management apparatus in Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a test case execution system according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of a device in Embodiment 2 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a test information management method. Referring to FIG. 1, the method includes:
  • S101 Collect interaction information between the test case execution system and the real device under test, and save the interaction information
  • step S101 is first performed to collect interaction information between the test case execution system and the real device under test, and save the interaction information.
  • the test case execution system sends a control command to the mobile phone under test, for example, needs to perform a dialing action, dial a number, etc.;
  • the test case is executed according to the control command, and the test result is returned to the test case execution system.
  • the test case execution system sends a control command to the mobile phone under test and the mobile phone executes the test according to the control command, and the execution result returned to the test case execution system is collected.
  • the interaction information includes a control instruction sent by the test case execution system to the real device under test according to the test case, and an execution result obtained by the real device under test according to the control instruction.
  • the prior art proposes to construct a virtual device under test corresponding to the real device under test, and the virtual device under test has exactly the same environmental conditions; if the virtual device under test is to be normal After completing the test, you usually need to get the interactive information.
  • the format of the information collected by the test information management device is inconsistent with the format required for the virtual device under test to complete the test, it is usually necessary to perform format conversion on the interaction information.
  • the information format that the test information management device may collect is: control command: A; response message: B.
  • the control command A is the information sent by the test case execution system to the real device under test; and the response message B is also the response information of the real device under test.
  • the virtual device under test is used as the device under test to simulate the real device under test. Therefore, if it is directly saved in the original format, it will be understood that the virtual device under test sends a control command A to the test case execution system.
  • the test case execution system replies to the virtual device under test with a response message B; obviously, this does not work, so the format is converted and converted into a target format, and the target format is the virtual device under test.
  • the test information needs to be in a format that matches the format.
  • the above examples are only used to illustrate the solution of the present invention, and are not intended to limit the scope of the present invention.
  • the virtual device under test may also need a variety of other formats to complete the test.
  • the test case execution system stores the written test case; the test case execution system sends the control command, which is generated according to the test case.
  • the test case may define one or more items to be tested, so The test case execution system sends the corresponding control instruction to the real device under test, and the expected execution result is defined in the test case; the test case execution success can be judged according to the actual execution result. Then, the test case execution system can test the virtual device under test for the corresponding test case, and the execution efficiency is greatly improved compared with the use of the real test device, and the running time is greatly reduced.
  • the final purpose is to enable the obtained information to work successfully on the virtual device test system. Therefore, it is first required to ensure that the acquired information is working properly.
  • the information is also monitored.
  • the monitoring test system generally runs on the test equipment, and may be some commonly used automatic test systems. It may also be a manual test system executed by the staff. The test personnel execute the system to issue control commands to the real device under test through the test case execution system.
  • test case execution system sends a control command to the mobile phone under test, for example, a dialing action, a dialing number, etc.; the mobile phone executes the test case according to the control command, and then the test is performed. The result is returned to the test case execution system.
  • the information interaction between the monitoring test instance execution system and the real device under test is completed by monitoring the communication protocol channels of the two, and the so-called communication protocol channel is the communication communication between the two. Ways, communication protocols, etc.
  • the test case execution system needs to test the remote radio unit.
  • the two use the Telnet protocol (remote terminal protocol) to communicate.
  • the test case execution system uses the Telnet protocol to send control commands to the remote radio unit to be tested.
  • the unit also uses the Telnet protocol to send the execution result, so that the monitoring of the information interaction between the test case execution system and the real device under test only needs to monitor the Telnet channel between the two.
  • the test information management device performs monitoring of information interaction between the test case execution system and the real device under test, collects interaction information, saves the interaction information, and then saves the interaction information.
  • Imported into the virtual device under test, and the format of the saved interactive information is the format that the test information needs to be completed when the virtual device under test is tested; thus, not only human resources can be saved, human resource costs are reduced, and resource waste is reduced; Reduce the probability of errors, improve work efficiency, and improve the quality of work.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the test information management apparatus 2 includes a processing module 21 and an import module 22.
  • the processing module 21 is configured to collect interaction information between the test case execution system and the real device under test, and save the interaction information.
  • the import module 22 is configured to import the interaction information into the virtual device test system.
  • the test information management apparatus 2 may further include a monitoring module 23 for monitoring information interaction between the test case execution system and the real device under test.
  • the monitoring test system generally runs on the test equipment, and may be some commonly used automatic test systems. It may also be a manual test system executed by the staff. The test personnel execute the system to issue control commands to the real device under test through the test case execution system.
  • the information interaction between the monitoring test instance execution system and the real device under test is completed by monitoring the communication protocol channels of the two, and the so-called communication protocol channel is the communication communication between the two. Ways, communication protocols, etc.
  • the test case execution system needs to test the switch controller, and the two use the UDP protocol (user datagram protocol) for communication.
  • the test case execution system uses the UDP protocol to send control commands to the switch controller under test, and the switch control is tested.
  • the controller also uses the UDP protocol to send the execution result, so that the monitoring of the information interaction between the test case execution system and the real device under test only needs to monitor the UDP channel between the two.
  • the processing module 21 collects the interaction information between the two, and the interaction information includes the control that the test case execution system sends to the real device under test according to the test case.
  • the instruction, and the actual device under test perform the test according to the control instruction.
  • a judging module 24 is further configured to determine whether the interaction information already exists locally before saving the interaction information, and if it is already saved, it is unnecessary. Saving the waste resource again; but if not saved, it will be saved by the processing module 21.
  • a format conversion sub-module 211 is further disposed in the processing module, configured to convert the format of the interaction information into a target format and save the target format when the interaction information is saved. Interactive information.
  • the target format is the format that the test information needs to be provided when the virtual device under test corresponding to the real device under test completes the test case. Therefore, when the target format is tested with the virtual device under test for the test case, The test information needs to match the format. After the interaction information is saved, the saved interaction information needs to be imported into the virtual device under test. This step is completed by the import module 22.
  • test information management device 2 in this embodiment will be described below with a specific example.
  • the monitoring module 23, the processing module 21, the importing module 22 and the judging module 24 are included; the processing module 21 includes a format conversion sub-module 211.
  • the test information management device 2 is provided as an independent device, and is disposed outside the test case execution system 31 and the real device under test 32.
  • Figure 4 including:
  • S401 The monitoring module of the test information management device starts monitoring information interaction between the test case execution system and the real device under test;
  • test case execution system sends a control command to the real device under test
  • S403 The processing module of the test information management device collects a control command.
  • S404 The real device under test performs a test according to the control command, and obtains an execution result
  • S405 The real device under test sends the execution result to the test case execution system.
  • S407 The conversion sub-module of the test information management device performs format conversion on the collected control command and execution result. change;
  • S408 The judgment module of the test information management device determines whether to save; if yes, execute 409, otherwise execute S410;
  • S409 The processing module of the test information management device saves the interaction information of the target format
  • the import module of the test information management device imports the interaction information of the target format into the virtual device under test.
  • test case execution system may include the test information management device in this embodiment.
  • the test case execution system 51 is configured to control the real device under test 52 to execute the test case by using the control command, and receive the execution result of the test device by the real device under test 52, and import the interaction information into Virtual device under test 53.
  • the virtual device under test 53 has the same function, the same operating environment, and the like as the real device under test 52; it may complete all functions of the real device under test 52 in the form of software.
  • a device is also protected, and the device may include the test information management device in this embodiment.
  • the device 61 is typically a virtual device that can have the same functionality as a real device and can be used as a device under test (i.e., the aforementioned virtual device under test).
  • the real device under test 63 performs a corresponding action according to the control instruction of the test case execution system 62, and transmits an execution result of the execution test to the test case execution system 62, thereby completing some tests.
  • the test information management device 2 in the device 61 monitors the interaction and collects the interaction information (the interaction information includes the above control command and the execution result), and then saves the interaction information, and the test module of the device 61 obtains the interaction information and completes Subsequent testing of the corresponding test case.
  • the device 61 has the same function, the same operating environment, and the like as the real device under test 63; it may complete all functions of the real device under test 52 in the form of software.
  • the above examples are only used to illustrate the solution of the present invention, and are not intended to limit the scope of the present invention.
  • the device may also be a real device under test, and communication between the real device under test and the virtual device under test is established; when the device under test is provided with the test in the embodiment.
  • the information management device can import the play interaction information into the virtual device under test after the real device under test saves the interaction information.
  • the test information management apparatus in this embodiment can be used to execute the test information management method of the above embodiment. That is to say, for each step in the test information management method of the above-described embodiment, the test information management apparatus in this embodiment has a corresponding module to complete, although it may not be enumerated in this embodiment.
  • the test information management device is set in the test case execution system and the device, corresponding modules are also provided to complete the steps of the test information management method of the above embodiment.
  • the test information management device and the test case are executed in this embodiment.
  • the system and equipment can complete the whole process of testing without manual participation; not only can save human resources, reduce human resource costs, reduce resource waste; it can also reduce the probability of error, improve work efficiency, and improve work quality.
  • the test information management device can flexibly select its setting position according to requirements, and can be used independently or in other systems, which is convenient and flexible.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • they may be implemented by program code executable by the computing device such that they may be stored in a storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases
  • the steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
  • the invention relates to the field of software testing and hardware testing to solve the problem of inefficient testing.
  • the test information management device monitors the information interaction between the test case execution system and the real device under test, and collects the interaction information between the two, and then saves the collected interaction information, and finally The interactive information is imported to the virtual device under test.
  • the relevant information of the test case is executed; then the information is imported into the virtual device under test, and the virtual device under test can directly use the interaction information and the test case execution system. Interact and complete the test of the virtual device under test. Therefore, the problem that the test system wastes human resources and the work efficiency is low in the prior art is solved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A test information management method and apparatus, and a test case execution system and device. The test information management apparatus monitors information interaction between a test case execution system and a real tested device, and collects interaction information therebetween, and then stores the collected interaction information (S101); the interaction information comprises a control instruction sent to the real tested device by the test case execution system according to a test case, and the execution result of the test executed by the real tested device according to the control instruction; finally, the interaction information is imported to a virtual tested device (S102). The method and apparatus effectively solve the problems of waste of human resources and low working efficiency of the test system in the prior art, thereby saving human resources and improving the working efficiency.

Description

测试信息管理方法、装置、测试用例执行系统及设备Test information management method, device, test case execution system and device
本申请基于申请号为CN201610340345.0、申请日为2016年5月19日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Jan. 19, 2016, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及软件测试和硬件测试领域,尤其涉及测试信息管理方法、装置、测试用例执行系统及设备。The present invention relates to the field of software testing and hardware testing, and in particular, to a test information management method, apparatus, test case execution system and device.
背景技术Background technique
随着信息技术的发展,软硬件市场越来越繁荣,与此同时,提供更好的软件或硬件也成为许多商家的宗旨和目标;为了使生产的设备或者设计的软件具有更好的性能和用户体验,通常商家会在将产品投入使用之前进行大量的测试。With the development of information technology, the software and hardware market is becoming more and more prosperous. At the same time, providing better software or hardware has become the aim and goal of many businesses; in order to make the production equipment or designed software have better performance and User experience, usually the merchant will do a lot of testing before putting the product into use.
在现有技术中,存在这样的情况,由于对真实的被测设备利用测试用例进行测试往往会存在占用资源较多、维护工作量大、调试过程耗时等问题;于是现有技术中提出了,构造真实的被测设备对应的虚拟被测设备,虚拟被测设备和真实被测设备具有完全一样的环境状况;利用这种方式可以节约大量的资源和时间,同时能作为自动化测试用例的持续集成测试环境,在测试用例及关键字修改时,能及时快速的得到验证。但是,使用这种方式往往需要首先在真实的测试环境下进行测试,以便于对测试用例的可用性进行检测。对于那些在真实换将下测试通过了的测试用例,需要把利用这些测试用例进行测试时,测试系统与真实被测设备之间的交互信息手工填写到虚拟被测设备;在实际使用的时候,测试用例往往会具有庞大的数量,测试系统与真实被测设备之间的信息交互时,产生的交互信息量就更为庞大了;这样一来,就会浪费较多的人力在一些重复的工作上,并且工作效率也低下。综上所述,现有技术中的测试系统存在浪费人力资源,工作效率低下的问题。In the prior art, there is a case in which the test of the test device by the actual device under test often has problems such as occupying more resources, having a large maintenance workload, and taking time in the debugging process; thus, the prior art proposes Construct a virtual device under test corresponding to the device under test. The virtual device under test has exactly the same environmental conditions as the device under test. This method can save a lot of resources and time, and can be used as an continuation of automated test cases. The integrated test environment can be verified in time and quickly when test cases and keywords are modified. However, using this method often requires testing in a real test environment to facilitate the detection of the availability of test cases. For the test cases that have passed the test under the real test, the interaction information between the test system and the real device under test needs to be manually filled into the virtual device under test when using these test cases; in actual use, Test cases tend to have a large number, and the amount of interaction information generated when the test system interacts with the information of the actual device under test is even larger; this will waste more manpower in some repetitive work. Up, and work efficiency is also low. In summary, the test system in the prior art has the problem of wasting human resources and inefficient work.
发明内容Summary of the invention
本发明要解决的主要技术问题是,提供一种测试信息管理方法、装置、测试用例执行系统及设备,解决现有技术中的测试系统存在的浪费人力资源,工作效率低下的问题。The main technical problem to be solved by the present invention is to provide a test information management method, device, and test case execution system and device, which solves the problem of waste of human resources and low work efficiency in the test system in the prior art.
为解决上述技术问题,本发明提供一种测试信息管理方法,包括: To solve the above technical problem, the present invention provides a test information management method, including:
采集测试用例执行系统和真实被测设备之间的交互信息,并将所述交互信息保存;所述交互信息包括测试用例执行系统根据测试用例发送给所述真实被测设备的控制指令,和所述真实被测设备根据所述控制指令执行测试得到的执行结果;Collecting interaction information between the test case execution system and the real device under test, and saving the interaction information; the interaction information includes a control instruction sent by the test case execution system to the real device under test according to the test case, and Determining an execution result obtained by the real device under test according to the control instruction;
将所述交互信息导入到与所述真实被测设备对应的虚拟被测设备。Importing the interaction information into a virtual device under test corresponding to the real device under test.
在本发明一种实施例中,在将所述交互信息保存之前还包括:判断所述交互信息在本地是否已经存在,当判断结果为否时,将所述交互信息保存;否则,不保存所述交互信息。In an embodiment of the present invention, before saving the interaction information, the method further includes: determining whether the interaction information already exists locally, and when the determination result is no, saving the interaction information; otherwise, not saving the location Interacting information.
在本发明一种实施例中,将所述交互信息保存包括:将所述交互信息的格式转换成目标格式,保存所述目标格式的交互信息;所述目标格式与所述虚拟被测设备完成针对所述测试用例的测试时,测试信息所需要格式相匹配。In an embodiment of the present invention, saving the interaction information includes: converting the format of the interaction information into a target format, and saving interaction information of the target format; the target format is completed with the virtual device under test When testing the test case, the format required for the test information matches.
在本发明一种实施例中,在采集所述测试用例执行系统和真实被测设备之间的交互信息之前还包括:监控所述测试用例执行系统和真实被测设备之间的通信协议通道来对测试用例执行系统和真实被测设备之间的信息交互进行监控。In an embodiment of the present invention, before collecting the interaction information between the test case execution system and the real device under test, the method further includes: monitoring a communication protocol channel between the test case execution system and the real device under test. Monitor the information interaction between the test case execution system and the real device under test.
本发明还提供一种测试信息管理装置,包括:The invention also provides a test information management device, comprising:
处理模块:用于采集测试用例执行系统和真实被测设备之间的交互信息,并将所述交互信息保存;所述交互信息包括测试用例执行系统根据测试用例发送给所述真实被测设备的控制指令,和所述真实被测设备根据所述控制指令执行测试得到的执行结果;The processing module is configured to collect interaction information between the test case execution system and the real device under test, and save the interaction information, where the interaction information includes a test case execution system that is sent to the real device under test according to the test case. a control instruction, and an execution result obtained by the real device under test according to the control instruction;
导入模块:用于将所述交互信息导入到与所述真实被测设备对应的虚拟被测设备。The import module is configured to import the interaction information into a virtual device under test corresponding to the real device under test.
在本发明一种实施例中,还包括判断模块,用于判断所述交互信息在本地是否已经存在,当判断结果为否时,所述处理模块将所述交互信息保存;否则,所述处理模块不保存所述交互信息。In an embodiment of the present invention, the method further includes: a determining module, configured to determine whether the interaction information already exists locally, and when the determination result is no, the processing module saves the interaction information; otherwise, the processing The module does not save the interaction information.
在本发明一种实施例中,所述处理模块包括格式转换子模块,用于将所述交互信息的格式转换成目标格式,保存所述目标格式的交互信息;所述目标格式与所述虚拟被测设备完成针对所述测试用例的测试时,测试信息所需要格式相匹配。In an embodiment of the present invention, the processing module includes a format conversion sub-module, configured to convert a format of the interaction information into a target format, and save interaction information of the target format; the target format and the virtual When the device under test completes the test for the test case, the format required for the test information matches.
在本发明一种实施例中,还包括监控模块,用于在采集所述测试用例执行系统和真实被测设备之间的交互信息之前,监控所述测试用例执行系统和真实被测设备之间的通信协议通道来对测试用例执行系统和真实被测设备之间的信息交互进行监控。In an embodiment of the present invention, the monitoring module is further configured to monitor between the test case execution system and the real device under test before collecting the interaction information between the test case execution system and the real device under test. The communication protocol channel monitors the information interaction between the test case execution system and the real device under test.
本发明还提供一种测试用例执行系统,包括:上述实施例中的测试信息管理装置,用于利用控制指令控制真实被测设备执行测试用例,并接收所述真实被测设备执行所述测试用例的执行结果。The present invention further provides a test case execution system, comprising: the test information management device in the above embodiment, configured to control a real device under test to execute a test case by using a control command, and receive the test device by the real device under test to execute the test case. The result of the execution.
本发明还提供一种设备,包括:上述实施例中的测试信息管理装置,用于根据测试用 例执行系统的控制指令执行测试用例,并向所述测试用例执行系统发送执行所述测试用例的执行结果,或用于根据交互信息完成对相应测试用例的测试。The present invention also provides an apparatus, comprising: the test information management apparatus in the above embodiment, for testing The control instruction of the execution system executes the test case, and sends the execution result of the test case to the test case execution system, or is used to complete the test of the corresponding test case according to the interaction information.
本发明的有益效果是:本发明提供一种测试信息管理方法、装置、测试用例执行系统及设备,测试信息管理装置监控测试用例执行系统和真实的被测设备之间的信息交互,并且采集二者之间的交互信息,然后将采集到的该交互信息进行保存;在交互信息中包括测试用例执行系统根据测试用例发送到真实被测设备的控制指令,和真实被测设备根据控制指令执行测试得到的执行结果;最后还会将交互信息导入到虚拟被测设备。如此一来,可以通过测试信息管理采集到对真实被测设备进行测试时,执行测试用例的相关信息;然后将该信息导入到虚拟被测设备,虚拟被测设备可以直接利用上述交互信息与测试用例执行系统进行交互,完成对虚拟被测设备的测试。不需要工作人员手动填写执行测试用时,测试系统与真实被测设备之间的交互信息,可以有效解决现有技术中的测试系统存在的浪费人力资源,工作效率低下的问题;从而达到节约人力资源,提高工作效率的效果。The invention provides a test information management method, device, test case execution system and device, and the test information management device monitors the information interaction between the test case execution system and the real device under test, and collects two The interaction information between the two, and then the collected interaction information is saved; the interaction information includes a control instruction sent by the test case execution system to the real device under test according to the test case, and the real device under test performs the test according to the control instruction. The result of the execution; finally, the interaction information is imported to the virtual device under test. In this way, the test information management can be used to collect the relevant information of the test case when testing the real device under test; then the information is imported into the virtual device under test, and the virtual device under test can directly utilize the above interaction information and test. The use case execution system interacts to complete testing of the virtual device under test. It does not require the staff to manually fill in the execution test, the interaction information between the test system and the real device under test, which can effectively solve the problem of wasted human resources and low work efficiency in the test system in the prior art; thereby saving human resources. To improve the efficiency of work.
附图说明DRAWINGS
图1为本发明实施例一中的测试信息管理方法的流程图;1 is a flowchart of a test information management method according to Embodiment 1 of the present invention;
图2为本发明实施例二中的测试信息管理装置的结构示意图;2 is a schematic structural diagram of a test information management apparatus according to Embodiment 2 of the present invention;
图3为本发明实施例二中的测试信息管理装置具体示例的系统原理图;3 is a schematic diagram of a system of a specific example of a test information management apparatus according to Embodiment 2 of the present invention;
图4为本发明实施例二中的测试信息管理装置具体示例的工作流程图;4 is a flowchart of a specific example of a test information management apparatus in Embodiment 2 of the present invention;
图5为本发明实施例二中的测试用例执行系统的结构示意图;FIG. 5 is a schematic structural diagram of a test case execution system according to Embodiment 2 of the present invention; FIG.
图6为本发明实施例二中的设备的结构示意图。FIG. 6 is a schematic structural diagram of a device in Embodiment 2 of the present invention.
具体实施方式detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
本实施例提供一种测试信息管理方法,请参考图1,该方法包括:This embodiment provides a test information management method. Referring to FIG. 1, the method includes:
S101:采集测试用例执行系统和真实被测设备之间的交互信息,并将交互信息保存;S101: Collect interaction information between the test case execution system and the real device under test, and save the interaction information;
S102:将交互信息导入到虚拟被测设备。S102: Import the interaction information into the virtual device under test.
在本实施例中,首先执行步骤S101,采集测试用例执行系统和真实被测设备之间的交互信息,并将交互信息保存。例如,现在需要对某手机的拨号功能进行测试,于是测试用例执行系统向被测手机发送控制命令,例如,需要执行拨号动作,拨打号码等等;手机 根据控制命令执行测试用例,然后会将测试结果返回给测试用例执行系统。在上述过程中,测试用例执行系统向被测手机发送控制命令以及手机根据控制命令执行测试,并返回给测试用例执行系统的执行结果都会被采集到。并且将采集到的交互信息进行保存,以便于后续使用。所以,在交互信息中会包括测试用例执行系统根据测试用例发送给真实被测设备的控制指令,和真实被测设备根据控制指令执行测试得到的执行结果。In this embodiment, step S101 is first performed to collect interaction information between the test case execution system and the real device under test, and save the interaction information. For example, it is now necessary to test the dialing function of a mobile phone, so the test case execution system sends a control command to the mobile phone under test, for example, needs to perform a dialing action, dial a number, etc.; The test case is executed according to the control command, and the test result is returned to the test case execution system. In the above process, the test case execution system sends a control command to the mobile phone under test and the mobile phone executes the test according to the control command, and the execution result returned to the test case execution system is collected. And the collected interactive information is saved for subsequent use. Therefore, the interaction information includes a control instruction sent by the test case execution system to the real device under test according to the test case, and an execution result obtained by the real device under test according to the control instruction.
在一种具体实施方式中,为了避免重复保存,浪费资源,在将采集到的交互信息进行保存之前还会有一个判断过程,判断所述交互信息在本地是否已经存在,如果已经保存的话也就没必要再浪费资源进行保存了;但是如果没有保存,就有必要将其保存了。In a specific implementation manner, in order to avoid repeated storage and waste resources, there is a judgment process before the collected interactive information is saved, and it is determined whether the interactive information already exists locally, if it is already saved. There is no need to waste resources to save; but if it is not saved, it is necessary to save it.
为了使得节约资源和时间,现有技术提出了构造真实的被测设备对应的虚拟被测设备,虚拟被测设备和真实被测设备具有完全一样的环境状况;这些虚拟被测设备如果要正常的完成测试,通常还需要获取交互信息。但是,由于测试信息管理装置采集到的信息的格式和虚拟被测设备完成测试所需要的格式并不一致,所以通常还需要对交互信息进行格式转换。举例而言,测试信息管理装置可能采集到的信息格式为:控制命令:A;应答消息:B。此处控制命令A也就是测试用例执行系统发送到真实被测设备的信息;而应答消息B也就是真实被测设备的响应信息。但是,虚拟被测设备是作为被测设备的,用来模拟真实被测设备的,所以如果直接按原来的格式保存,就会被理解成虚拟被测设备向测试用例执行系统发送控制命令A,而测试用例执行系统向虚拟被测设备回复了响应消息B;很明显这是行不通的,所以会将其格式进行转换,转换成目标格式,所谓目标格式也即是虚拟被测设备完成针对所述测试用例的测试时,测试信息所需要格式相匹配的格式。上述举例仅用于对本发明的方案进行说明,而不对本发明的方案做任何限定。根据具体情况,虚拟被测设备完成测试需要的还可能是其他多种格式。In order to save resources and time, the prior art proposes to construct a virtual device under test corresponding to the real device under test, and the virtual device under test has exactly the same environmental conditions; if the virtual device under test is to be normal After completing the test, you usually need to get the interactive information. However, since the format of the information collected by the test information management device is inconsistent with the format required for the virtual device under test to complete the test, it is usually necessary to perform format conversion on the interaction information. For example, the information format that the test information management device may collect is: control command: A; response message: B. Here, the control command A is the information sent by the test case execution system to the real device under test; and the response message B is also the response information of the real device under test. However, the virtual device under test is used as the device under test to simulate the real device under test. Therefore, if it is directly saved in the original format, it will be understood that the virtual device under test sends a control command A to the test case execution system. The test case execution system replies to the virtual device under test with a response message B; obviously, this does not work, so the format is converted and converted into a target format, and the target format is the virtual device under test. When testing a test case, the test information needs to be in a format that matches the format. The above examples are only used to illustrate the solution of the present invention, and are not intended to limit the scope of the present invention. Depending on the situation, the virtual device under test may also need a variety of other formats to complete the test.
将交互信息保存后,还需要将保存的交互信息导入到虚拟被测设备,执行步骤S102。通常,测试用例执行系统上保存有已编写好的测试用例;测试用例执行系统执发送的控制指令,是根据该测试用例来生成的,测试用例可能定义了一个或多个需要测试的项目,于是测试用例执行系统会向真实被测设备发送向对应的控制指令,并且在测试用例中会定义预期的执行结果;可以根据实际执行结果判断测试用例执行是否成功。然后,测试用例执行系统可以对该虚拟被测设备进行针对相应测试用例进行测试,相对于利用真实测试设备的执行效率会大大提高,运行时间大大减少。After the interaction information is saved, the saved interaction information needs to be imported to the virtual device under test, and step S102 is performed. Usually, the test case execution system stores the written test case; the test case execution system sends the control command, which is generated according to the test case. The test case may define one or more items to be tested, so The test case execution system sends the corresponding control instruction to the real device under test, and the expected execution result is defined in the test case; the test case execution success can be judged according to the actual execution result. Then, the test case execution system can test the virtual device under test for the corresponding test case, and the execution efficiency is greatly improved compared with the use of the real test device, and the running time is greatly reduced.
由于最终目的是为了让获取到的信息能成功在虚拟设备测试系统上能够工作,所以首先需要保证获取的信息是可以正常工作的,在本实施例的一种具体实施方式中还会会监控 测试用例执行系统和真实被测设备之间的信息交互。监控测试系统一般运行在测试设备上,可以是常用的某些自动化测试系统;也可以是工作人员执行的手工测试系统,工作人员通过该测试用例执行系统向真实被测设备下发控制命令。例如,现在需要对某手机的拨号功能进行测试,于是测试用例执行系统向被测手机发送控制命令,例如,需要执行拨号动作,拨打号码等等;手机根据控制命令执行测试用例,然后会将测试结果返回给测试用例执行系统。The final purpose is to enable the obtained information to work successfully on the virtual device test system. Therefore, it is first required to ensure that the acquired information is working properly. In a specific implementation manner of this embodiment, the information is also monitored. The information interaction between the test case execution system and the real device under test. The monitoring test system generally runs on the test equipment, and may be some commonly used automatic test systems. It may also be a manual test system executed by the staff. The test personnel execute the system to issue control commands to the real device under test through the test case execution system. For example, it is now necessary to test the dialing function of a mobile phone, so the test case execution system sends a control command to the mobile phone under test, for example, a dialing action, a dialing number, etc.; the mobile phone executes the test case according to the control command, and then the test is performed. The result is returned to the test case execution system.
在一种具体实施方式中,监控测试用例执行系统和真实被测设备之间的信息交互是通过监控二者的通信协议通道来完成的,所谓通信协议通道,就是二者相互间通信利用的通信方式,通信协议等等。例如测试用例执行系统需要对射频拉远单元进行测试,二者利用Telnet协议(远程终端协议)进行通信,测试用例执行系统利用Telnet协议向被测射频拉远单元发送控制命令,被测射频拉远单元也利用Telnet协议发送执行结果,于是完成测试用例执行系统和真实被测设备之间的信息交互的监控只需要监控二者之间Telnet通道就可以了。In a specific implementation manner, the information interaction between the monitoring test instance execution system and the real device under test is completed by monitoring the communication protocol channels of the two, and the so-called communication protocol channel is the communication communication between the two. Ways, communication protocols, etc. For example, the test case execution system needs to test the remote radio unit. The two use the Telnet protocol (remote terminal protocol) to communicate. The test case execution system uses the Telnet protocol to send control commands to the remote radio unit to be tested. The unit also uses the Telnet protocol to send the execution result, so that the monitoring of the information interaction between the test case execution system and the real device under test only needs to monitor the Telnet channel between the two.
采用本实施例的测试信息管理方法,由测试信息管理装置来执行测试用例执行系统和真实被测设备之间的信息交互的监控,并采集交互信息,将交互信息保存,然后将保存的交互信息导入到虚拟被测设备,而且保存的交互信息的格式是与虚拟被测设备完成测试时,测试信息需要具备的格式;如此,不但可以节约人力资源,降低人力资源成本,减少资源浪费;还可以减少出错概率,提高工作效率,并且提高工作质量。With the test information management method of the embodiment, the test information management device performs monitoring of information interaction between the test case execution system and the real device under test, collects interaction information, saves the interaction information, and then saves the interaction information. Imported into the virtual device under test, and the format of the saved interactive information is the format that the test information needs to be completed when the virtual device under test is tested; thus, not only human resources can be saved, human resource costs are reduced, and resource waste is reduced; Reduce the probability of errors, improve work efficiency, and improve the quality of work.
实施例二:Embodiment 2:
本实施例提供一种测试信息管理装置,请参考图2,该测试信息管理装置2包括:处理模块21和导入模块22。处理模块21用于采集测试用例执行系统和真实被测设备之间的交互信息,并将交互信息保存。导入模块22用于将交互信息导入到虚拟设备测试系统。The present embodiment provides a test information management apparatus. Referring to FIG. 2, the test information management apparatus 2 includes a processing module 21 and an import module 22. The processing module 21 is configured to collect interaction information between the test case execution system and the real device under test, and save the interaction information. The import module 22 is configured to import the interaction information into the virtual device test system.
在本实施例中,测试信息管理装置2还可以包括监控模块23,监控模块23用于监控测试用例执行系统和真实被测设备之间的信息交互。监控测试系统一般运行在测试设备上,可以是常用的某些自动化测试系统;也可以是工作人员执行的手工测试系统,工作人员通过该测试用例执行系统向真实被测设备下发控制命令。在一种具体实施方式中,监控测试用例执行系统和真实被测设备之间的信息交互是通过监控二者的通信协议通道来完成的,所谓通信协议通道,就是二者相互间通信利用的通信方式,通信协议等等。例如测试用例执行系统需要对切换控制器进行测试,二者使用UDP协议(用户数据报协议)进行通信,测试用例执行系统利用UDP协议向被测切换控制器发送控制命令,被测切换控 制器也利用UDP协议发送执行结果,于是完成测试用例执行系统和真实被测设备之间的信息交互的监控只需要监控二者之间UDP通道就可以了。In this embodiment, the test information management apparatus 2 may further include a monitoring module 23 for monitoring information interaction between the test case execution system and the real device under test. The monitoring test system generally runs on the test equipment, and may be some commonly used automatic test systems. It may also be a manual test system executed by the staff. The test personnel execute the system to issue control commands to the real device under test through the test case execution system. In a specific implementation manner, the information interaction between the monitoring test instance execution system and the real device under test is completed by monitoring the communication protocol channels of the two, and the so-called communication protocol channel is the communication communication between the two. Ways, communication protocols, etc. For example, the test case execution system needs to test the switch controller, and the two use the UDP protocol (user datagram protocol) for communication. The test case execution system uses the UDP protocol to send control commands to the switch controller under test, and the switch control is tested. The controller also uses the UDP protocol to send the execution result, so that the monitoring of the information interaction between the test case execution system and the real device under test only needs to monitor the UDP channel between the two.
在监控了测试用例执行系统和真实被测设备之间的信息交互之后,处理模块21会采集二者之间的交互信息,交互信息包括测试用例执行系统根据测试用例发送给真实被测设备的控制指令,和真实被测设备根据控制指令执行测试得到的执行结果。After monitoring the information interaction between the test case execution system and the real device under test, the processing module 21 collects the interaction information between the two, and the interaction information includes the control that the test case execution system sends to the real device under test according to the test case. The instruction, and the actual device under test perform the test according to the control instruction.
在一种具体实施方式中,为了避免重复保存,浪费资源,还会设置判断模块24,用于在保存交互信息之前先判断所述交互信息在本地是否已经存在,如果已经保存的话也就没必要再进行保存浪费资源;但是如果没有保存,就会通过处理模块21将其保存。In a specific implementation manner, in order to avoid redundant storage and waste resources, a judging module 24 is further configured to determine whether the interaction information already exists locally before saving the interaction information, and if it is already saved, it is unnecessary. Saving the waste resource again; but if not saved, it will be saved by the processing module 21.
为了使得节约资源和时间,现有技术提出了构造真实的被测设备对应的虚拟被测设备,虚拟被测设备和真实被测设备具有完全一样的环境状况;这些虚拟被测设备如果要正常的完成测试,通常还需要获取交互信息。但是,由于测试信息管理装置采集到的信息的格式和虚拟被测设备完成测试所需要的格式并不一致,所以通常还需要对交互信息进行格式转换。针对上述问题,在本发明一种具体实施方式中,还会在处理模块中设置格式转换子模块211,用于在保存交互信息的时候,将交互信息的格式转换成目标格式,保存目标格式的交互信息。所谓目标格式也就是与对真实被测设备对应的虚拟被测设备完成针对相应测试用例时候,其测试信息需要具备的格式,所以,目标格式是与虚拟被测设备完成针对测试用例的测试时,测试信息所需要格式相匹配的。将交互信息保存后,还需要将保存的交互信息导入到虚拟被测设备,该步骤由导入模块22来完成。In order to save resources and time, the prior art proposes to construct a virtual device under test corresponding to the real device under test, and the virtual device under test has exactly the same environmental conditions; if the virtual device under test is to be normal After completing the test, you usually need to get the interactive information. However, since the format of the information collected by the test information management device is inconsistent with the format required for the virtual device under test to complete the test, it is usually necessary to perform format conversion on the interaction information. In a specific implementation manner of the present invention, a format conversion sub-module 211 is further disposed in the processing module, configured to convert the format of the interaction information into a target format and save the target format when the interaction information is saved. Interactive information. The target format is the format that the test information needs to be provided when the virtual device under test corresponding to the real device under test completes the test case. Therefore, when the target format is tested with the virtual device under test for the test case, The test information needs to match the format. After the interaction information is saved, the saved interaction information needs to be imported into the virtual device under test. This step is completed by the import module 22.
下面将以一个具体示例来对本实施例中的测试信息管理装置2,其系统原理图,请参考图3。包括监控模块23、处理模块21、导入模块22和判断模块24;处理模块21包括格式转换子模块211。该测试信息管理装置2作为独立的装置,设置在测试用例执行系统31和真实被测设备32之外。其具体的工作流程,请参考图4,包括:The test information management device 2 in this embodiment will be described below with a specific example. For the system schematic diagram, please refer to FIG. 3. The monitoring module 23, the processing module 21, the importing module 22 and the judging module 24 are included; the processing module 21 includes a format conversion sub-module 211. The test information management device 2 is provided as an independent device, and is disposed outside the test case execution system 31 and the real device under test 32. For its specific workflow, please refer to Figure 4, including:
S401:测试信息管理装置的监控模块开始监控测试用例执行系统和真实被测设备间的信息交互;S401: The monitoring module of the test information management device starts monitoring information interaction between the test case execution system and the real device under test;
S402:测试用例执行系统向真实被测设备发送控制命令;S402: The test case execution system sends a control command to the real device under test;
S403:测试信息管理装置的处理模块采集控制命令;S403: The processing module of the test information management device collects a control command.
S404:真实被测设备根据控制命令执行测试,得到执行结果;S404: The real device under test performs a test according to the control command, and obtains an execution result;
S405:真实被测设备将执行结果发送给测试用例执行系统;S405: The real device under test sends the execution result to the test case execution system.
S406:测试信息管理装置的处理模块采集执行结果,S406: The processing module of the test information management device collects the execution result,
S407:测试信息管理装置的转换子模块将采集到的控制命令和执行结果进行格式转 换;S407: The conversion sub-module of the test information management device performs format conversion on the collected control command and execution result. change;
S408:测试信息管理装置的判断模块判断是否要进行保存;若是,则执行409,否则执行S410;S408: The judgment module of the test information management device determines whether to save; if yes, execute 409, otherwise execute S410;
S409:测试信息管理装置的处理模块将目标格式的交互信息保存;S409: The processing module of the test information management device saves the interaction information of the target format;
S410:测试信息管理装置的导入模块将目标格式的交互信息导入到虚拟被测设备。S410: The import module of the test information management device imports the interaction information of the target format into the virtual device under test.
在本实施例中还保护一种测试用例执行系统,该测试用例执行系统可以包括本实施例中的测试信息管理装置,请参考图5,也就是说,将测试信息管理装置2的所有功能都集成到测试用例执行系统51中,该测试用例执行系统51用于利用控制指令控制真实被测设备52执行测试用例,并接收真实被测设备52执行测试用例的执行结果,以及将交互信息导入到虚拟被测设备53。虚拟被测设备53与真实被测设备52,具有相同的功能,相同的运行环境等;其可能是以软体的形式完成真实被测设备52的所有功能。上述举例仅用于对本发明的方案进行说明,而不对本发明的方案做任何限定。In this embodiment, a test case execution system is further protected. The test case execution system may include the test information management device in this embodiment. Please refer to FIG. 5, that is, all functions of the test information management device 2 are Integrated into the test case execution system 51, the test case execution system 51 is configured to control the real device under test 52 to execute the test case by using the control command, and receive the execution result of the test device by the real device under test 52, and import the interaction information into Virtual device under test 53. The virtual device under test 53 has the same function, the same operating environment, and the like as the real device under test 52; it may complete all functions of the real device under test 52 in the form of software. The above examples are only used to illustrate the solution of the present invention, and are not intended to limit the scope of the present invention.
在本实施例中还保护一种设备,该设备可以包括本实施例中的测试信息管理装置,请参考图6,也就是说,将测试信息管理装置2的所有功能都集成到设备61中,该设备61通常是虚拟设备,其可以具有真实设备一样的功能,可被用于作为被测设备(也就是前述的虚拟被测设备)。真实被测设备63根据测试用例执行系统62的控制指令执行相应动作,并向测试用例执行系统62发送执行测试的执行结果,从而完成某些测试。设备61中的测试信息管理装置2会监控到该交互,并采集到交互信息(交互信息包括上述控制命令和执行结果),然后保存交互信息,设备61的测试模块会获取到该交互信息,完成后续的对相应测试用例的测试。设备61与真实被测设备63,具有相同的功能,相同的运行环境等;其可能是以软体的形式完成真实被测设备52的所有功能。上述举例仅用于对本发明的方案进行说明,而不对本发明的方案做任何限定。In the embodiment, a device is also protected, and the device may include the test information management device in this embodiment. Referring to FIG. 6, that is, all the functions of the test information management device 2 are integrated into the device 61. The device 61 is typically a virtual device that can have the same functionality as a real device and can be used as a device under test (i.e., the aforementioned virtual device under test). The real device under test 63 performs a corresponding action according to the control instruction of the test case execution system 62, and transmits an execution result of the execution test to the test case execution system 62, thereby completing some tests. The test information management device 2 in the device 61 monitors the interaction and collects the interaction information (the interaction information includes the above control command and the execution result), and then saves the interaction information, and the test module of the device 61 obtains the interaction information and completes Subsequent testing of the corresponding test case. The device 61 has the same function, the same operating environment, and the like as the real device under test 63; it may complete all functions of the real device under test 52 in the form of software. The above examples are only used to illustrate the solution of the present invention, and are not intended to limit the scope of the present invention.
在本实施例的一种具体实施方式中,该设备也可以是真实被测设备,真实被测设备和虚拟被测设备之间建立通信;当真实被测设备中设置有本实施例中的测试信息管理装置,在真实被测设备在保存交互信息后,可以根据需要将这戏交互信息导入到虚拟被测设备。In a specific implementation manner of the embodiment, the device may also be a real device under test, and communication between the real device under test and the virtual device under test is established; when the device under test is provided with the test in the embodiment. The information management device can import the play interaction information into the virtual device under test after the real device under test saves the interaction information.
本实施例中的测试信息管理装置可用于执行上述实施例一种的测试信息管理方法。也就是说,对于上述实施例一种的测试信息管理方法中的每个步骤,本实施例中的测试信息管理装置都有相应的模块来完成,虽然可能在本实施例中没有一一列举。当测试用例执行系统和设备中设置该测试信息管理装置时,相应的也会有对应的模块来完成上述实施例一种的测试信息管理方法的各个步骤。采用本实施例中的测试信息管理装置、测试用例执行 系统和设备,完成测试工作的全程可以不需要人工的参与;不但可以节约人力资源,降低人力资源成本,减少资源浪费;还可以减少出错概率,提高工作效率,并且提高工作质量。而且该测试信息管理装置可以根据需求灵活选择其设置位置,既可以独立使用,也可以设置在其他系统中,方便灵活。The test information management apparatus in this embodiment can be used to execute the test information management method of the above embodiment. That is to say, for each step in the test information management method of the above-described embodiment, the test information management apparatus in this embodiment has a corresponding module to complete, although it may not be enumerated in this embodiment. When the test information management device is set in the test case execution system and the device, corresponding modules are also provided to complete the steps of the test information management method of the above embodiment. The test information management device and the test case are executed in this embodiment. The system and equipment can complete the whole process of testing without manual participation; not only can save human resources, reduce human resource costs, reduce resource waste; it can also reduce the probability of error, improve work efficiency, and improve work quality. Moreover, the test information management device can flexibly select its setting position according to requirements, and can be used independently or in other systems, which is convenient and flexible.
显然,本领域的技术人员应该明白,上述本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in a storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases The steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明涉及软件测试和硬件测试领域,用以解决测试效率低下的问题。本申请中,测试信息管理装置监控测试用例执行系统和真实的被测设备之间的信息交互,并且采集二者之间的交互信息,然后将采集到的该交互信息进行保存,最后还会将交互信息导入到虚拟被测设备。这样通过测试信息管理采集到对真实被测设备进行测试时,执行测试用例的相关信息;然后将该信息导入到虚拟被测设备,虚拟被测设备可以直接利用上述交互信息与测试用例执行系统进行交互,完成对虚拟被测设备的测试。从而解决现有技术中,测试系统浪费人力资源,工作效率低下的问题。 The invention relates to the field of software testing and hardware testing to solve the problem of inefficient testing. In the present application, the test information management device monitors the information interaction between the test case execution system and the real device under test, and collects the interaction information between the two, and then saves the collected interaction information, and finally The interactive information is imported to the virtual device under test. In this way, when testing the real device under test through the test information management, the relevant information of the test case is executed; then the information is imported into the virtual device under test, and the virtual device under test can directly use the interaction information and the test case execution system. Interact and complete the test of the virtual device under test. Therefore, the problem that the test system wastes human resources and the work efficiency is low in the prior art is solved.

Claims (10)

  1. 一种测试信息管理方法,其中,包括:A test information management method, which includes:
    采集测试用例执行系统和真实被测设备之间的交互信息,并将所述交互信息保存;所述交互信息包括测试用例执行系统根据测试用例发送给所述真实被测设备的控制指令,和所述真实被测设备根据所述控制指令执行测试得到的执行结果;Collecting interaction information between the test case execution system and the real device under test, and saving the interaction information; the interaction information includes a control instruction sent by the test case execution system to the real device under test according to the test case, and Determining an execution result obtained by the real device under test according to the control instruction;
    将所述交互信息导入到与所述真实被测设备对应的虚拟被测设备。Importing the interaction information into a virtual device under test corresponding to the real device under test.
  2. 如权利要求1所述的测试信息管理方法,其中,在将所述交互信息保存之前还包括:判断所述交互信息在本地是否已经存在,当判断结果为否时,将所述交互信息保存;否则,不保存所述交互信息。The test information management method according to claim 1, wherein before the saving of the interaction information, the method further comprises: determining whether the interaction information already exists locally, and when the determination result is no, saving the interaction information; Otherwise, the interaction information is not saved.
  3. 如权利要求1或2所述的测试信息管理方法,其中,将所述交互信息保存包括:将所述交互信息的格式转换成目标格式,保存所述目标格式的交互信息;所述目标格式与所述虚拟被测设备完成针对所述测试用例的测试时,测试信息所需要格式相匹配。The test information management method according to claim 1 or 2, wherein the saving the interaction information comprises: converting the format of the interaction information into a target format, and saving interaction information of the target format; When the virtual device under test completes the test for the test case, the format required for the test information matches.
  4. 如权利要求1或2所述的测试信息管理方法,其中,在采集所述测试用例执行系统和真实被测设备之间的交互信息之前还包括:监控所述测试用例执行系统和真实被测设备之间的通信协议通道来对测试用例执行系统和真实被测设备之间的信息交互进行监控。The test information management method according to claim 1 or 2, further comprising: monitoring the test case execution system and the real device under test before collecting the interaction information between the test case execution system and the real device under test The communication protocol channel between the two is used to monitor the information interaction between the test case execution system and the real device under test.
  5. 一种测试信息管理装置,其中,包括:A test information management device, comprising:
    处理模块,设置为采集测试用例执行系统和真实被测设备之间的交互信息,并将所述交互信息保存;所述交互信息包括测试用例执行系统根据测试用例发送给所述真实被测设备的控制指令,和所述真实被测设备根据所述控制指令执行测试得到的执行结果;The processing module is configured to collect interaction information between the test case execution system and the real device under test, and save the interaction information, where the interaction information includes a test case execution system that is sent to the real device under test according to the test case. a control instruction, and an execution result obtained by the real device under test according to the control instruction;
    导入模块,设置为将所述交互信息导入到与所述真实被测设备对应的虚拟被测设备。The import module is configured to import the interaction information into a virtual device under test corresponding to the real device under test.
  6. 如权利要求5所述的测试信息管理装置,其中,还包括判断模块,设置为判断所述交互信息在本地是否已经存在,当判断结果为否时,所述处理模块将所述交互信息保存;否则,所述处理模块不保存所述交互信息。The test information management apparatus according to claim 5, further comprising a determination module configured to determine whether the interaction information is already present locally, and when the determination result is no, the processing module saves the interaction information; Otherwise, the processing module does not save the interaction information.
  7. 如权利要求5或6所述的测试信息管理装置,其中,所述处理模块包括格式转换子模块,设置为将所述交互信息的格式转换成目标格式,保存所述目标格式的交互信息;所述目标格式与所述虚拟被测设备完成针对所述测试用例的测试时,测试信息所需要格式相匹配。The test information management apparatus according to claim 5 or 6, wherein the processing module comprises a format conversion sub-module, configured to convert the format of the interaction information into a target format, and to save interaction information of the target format; When the target format and the virtual device under test complete the test for the test case, the format required for the test information matches.
  8. 如权利要求5或6所述的测试信息管理装置,其中,还包括监控模块,设置为在采集所述测试用例执行系统和真实被测设备之间的交互信息之前,监控所述测试用例执行 系统和真实被测设备之间的通信协议通道来对测试用例执行系统和真实被测设备之间的信息交互进行监控。The test information management apparatus according to claim 5 or 6, further comprising a monitoring module configured to monitor the execution of the test case before collecting the interaction information between the test case execution system and the real device under test The communication protocol channel between the system and the real device under test monitors the information interaction between the test case execution system and the real device under test.
  9. 一种测试用例执行系统,其中,包括权利要求5-8任意一项所述的测试用例管理装置,设置为利用控制指令控制真实被测设备执行测试用例,并接收所述真实被测设备执行所述测试用例的执行结果。A test case execution system, comprising the test case management device according to any one of claims 5-8, configured to control a real device under test to execute a test case by using a control command, and receive the real device under test to execute the test case The execution result of the test case.
  10. 一种设备,其中,包括权利要求5-8任意一项所述的测试用例管理装置,设置为根据测试用例执行系统的控制指令执行测试用例,并向所述测试用例执行系统发送执行所述测试用例的执行结果,或用于根据交互信息完成对相应测试用例的测试。 An apparatus, comprising the test case management apparatus according to any one of claims 5-8, configured to execute a test case according to a control instruction of a test case execution system, and transmit the test to the test case execution system The execution result of the use case, or used to complete the test of the corresponding test case based on the interaction information.
PCT/CN2016/101781 2016-05-19 2016-10-11 Test information management method and apparatus, and test case execution system and device WO2017197829A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610340345.0A CN107402854A (en) 2016-05-19 2016-05-19 Test information management method, apparatus, test case execution system and equipment
CN201610340345.0 2016-05-19

Publications (1)

Publication Number Publication Date
WO2017197829A1 true WO2017197829A1 (en) 2017-11-23

Family

ID=60325641

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101781 WO2017197829A1 (en) 2016-05-19 2016-10-11 Test information management method and apparatus, and test case execution system and device

Country Status (2)

Country Link
CN (1) CN107402854A (en)
WO (1) WO2017197829A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550980A (en) * 2022-09-09 2022-12-30 中科南京移动通信与计算创新研究院 Virtual-real cooperative communication test system, virtual-real cooperative communication test method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590394A (en) * 2021-07-09 2021-11-02 深圳Tcl新技术有限公司 Joint debugging test method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098207A (en) * 2006-06-26 2008-01-02 中兴通讯股份有限公司 Information based automatized test system and method
CN101778016A (en) * 2010-01-01 2010-07-14 江苏华丽网络工程有限公司 Design method of virtual testing system of network device
CN102968377A (en) * 2012-12-13 2013-03-13 中国航空无线电电子研究所 Virtual machine technique based airborne software system testing general platform
CN103412817A (en) * 2013-08-14 2013-11-27 迈普通信技术股份有限公司 Automation testing script offline debugging method and system
US20140177459A1 (en) * 2012-12-21 2014-06-26 Apple Inc. Methods and apparatus for rapid and cost effective testing of wireless systems
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
CN105515883A (en) * 2014-09-22 2016-04-20 阿里巴巴集团控股有限公司 Test method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179456A (en) * 2007-12-11 2008-05-14 福建星网锐捷网络有限公司 Network appliance testing approach and device
CN102855178B (en) * 2011-06-30 2015-03-04 阿里巴巴集团控股有限公司 Method and device for generating Mock base during unit test
CN102981947B (en) * 2011-09-07 2015-07-08 阿里巴巴集团控股有限公司 Data preparation method in test and system provided with the same
CN102591780B (en) * 2012-01-13 2015-04-15 广州广电运通金融电子股份有限公司 Device driver software test method and test system
CN103064299B (en) * 2012-12-28 2016-06-01 东方电气风电有限公司 A kind of wind power generating set assemblage on-orbit TT&C system and testing method thereof
CN103336710B (en) * 2013-06-26 2017-02-22 安科智慧城市技术(中国)有限公司 Method and system for constructing virtual equipment widget
US10929280B2 (en) * 2014-03-11 2021-02-23 Verizon Patent And Licensing Inc. Scheduling tests of software for a cloud computing environment
CN103926843B (en) * 2014-04-03 2016-10-12 卡斯柯信号有限公司 Realize rail traffic signal system general purpose simulation and analogue system
CN103970663A (en) * 2014-05-22 2014-08-06 浪潮电子信息产业股份有限公司 Method for simulating physical devices
CN105335281B (en) * 2014-07-30 2018-03-20 阿里巴巴集团控股有限公司 A kind of method and device relied on outside automatic mock

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098207A (en) * 2006-06-26 2008-01-02 中兴通讯股份有限公司 Information based automatized test system and method
CN101778016A (en) * 2010-01-01 2010-07-14 江苏华丽网络工程有限公司 Design method of virtual testing system of network device
CN102968377A (en) * 2012-12-13 2013-03-13 中国航空无线电电子研究所 Virtual machine technique based airborne software system testing general platform
US20140177459A1 (en) * 2012-12-21 2014-06-26 Apple Inc. Methods and apparatus for rapid and cost effective testing of wireless systems
CN103412817A (en) * 2013-08-14 2013-11-27 迈普通信技术股份有限公司 Automation testing script offline debugging method and system
CN105515883A (en) * 2014-09-22 2016-04-20 阿里巴巴集团控股有限公司 Test method and system
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550980A (en) * 2022-09-09 2022-12-30 中科南京移动通信与计算创新研究院 Virtual-real cooperative communication test system, virtual-real cooperative communication test method and electronic equipment

Also Published As

Publication number Publication date
CN107402854A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN105052076B (en) Network element management system and network element management method based on cloud computing
CN108683636B (en) Charging pile communication method and system
CN104765678A (en) Method and device for testing applications on mobile terminal
CN107819611B (en) Client test method based on IEC61850 multi-server simulation
CN107947968B (en) Method and device for processing network quality complaint information
CN105260082B (en) A kind of test data methods of exhibiting and exploitation terminal
WO2016082476A1 (en) Service testing method and apparatus
US10320650B2 (en) Testing a network using a communication device
WO2017113848A1 (en) Testing method, testing platform and simulated testing device for test case
CN107094086A (en) A kind of information acquisition method and device
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN102595461B (en) Performance of mobile communication system testing apparatus, system and method for testing
CN111088998B (en) Coal mine central station monitoring system testing method and device and substation simulation system
WO2017197829A1 (en) Test information management method and apparatus, and test case execution system and device
CN110750453B (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN114430366A (en) Information acquisition application issuing method, related device and computer program product
CN114095343A (en) Disaster recovery method, device, equipment and storage medium based on double-active system
CN104679653A (en) Method and system for debugging software of distribution automation terminal
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
CN105243015B (en) Method and system for automatically testing software
KR20220074972A (en) System performance parameter transmission method, apparatus, management equipment and storage medium
CN112671814B (en) Cross-platform equipment development method, device and system
CN113031569A (en) Monitoring method, system, terminal and medium of nuclear fusion control system

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16902209

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16902209

Country of ref document: EP

Kind code of ref document: A1