WO2015139428A1 - Method, terminal, and system for transmitting/receiving result of automated test - Google Patents

Method, terminal, and system for transmitting/receiving result of automated test Download PDF

Info

Publication number
WO2015139428A1
WO2015139428A1 PCT/CN2014/085787 CN2014085787W WO2015139428A1 WO 2015139428 A1 WO2015139428 A1 WO 2015139428A1 CN 2014085787 W CN2014085787 W CN 2014085787W WO 2015139428 A1 WO2015139428 A1 WO 2015139428A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
connection
terminal
test result
display terminal
Prior art date
Application number
PCT/CN2014/085787
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 WO2015139428A1 publication Critical patent/WO2015139428A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present invention relates to the field of automated testing technologies, and in particular, to a method for transmitting/receiving automated test results, a test terminal, a display terminal, and a system. Background technique
  • Automated testing is now widely used in testing work. Automated testing software is used to automatically configure the equipment and instruments to be tested, and then start testing at a set time. After the automated testing is completed, the test results are communicated to the testers. Significant savings in testers' time and effort.
  • embodiments of the present invention are expected to provide a method for transmitting/receiving automated test results, a test terminal, a display terminal, and a system, which can remotely transmit the results of the automated test in real time, thereby reducing labor costs.
  • the technical solution of the embodiment of the present invention is implemented as follows:
  • An embodiment of the present invention provides a method for transmitting an automated test result, where the method includes: testing a terminal to monitor an automatic test process in real time; and when the test terminal determines a test result with the selected test item, obtaining a test result reporting policy, according to the The test result reporting strategy obtains an application and a connection mode in which the test terminal establishes a connection with the display terminal; the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection manner, and sends the test result.
  • the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection manner, and after sending the test result, sends a test result reminding message; or, the test terminal according to the application and/or The connection mode establishes a connection between the test terminal and the display terminal.
  • the test result reminder message is sent while the test result is sent.
  • the test terminal when the application that establishes the connection between the test terminal and the display terminal is obtained according to the test result reporting policy, the local end account, the local password, and the opposite account corresponding to the application are obtained according to the test result reporting policy.
  • the test terminal establishes a connection between the test terminal and the display terminal according to the application, and the sending the test result includes: establishing the connection according to the local account, the local password, and the peer account Sending the test result to the display terminal through the connection.
  • the test terminal when the connection mode of the connection between the test terminal and the display terminal is obtained according to the test result reporting policy, the address corresponding to the connection mode, the local account number, and the local password are obtained according to the test result reporting policy.
  • the test terminal establishes a connection between the test terminal and the display terminal according to the connection mode, and the sending the test result includes: according to the port corresponding to the address, the local account, the book
  • the terminal password establishes the connection with the peer account, and the test result is sent to the display terminal through the connection.
  • An embodiment of the present invention further provides a method for receiving an automated test result, where the method includes: displaying, by a display terminal, a test result and displaying the result; the test result is: based on the test terminal according to the application And establishing a test result obtained by connecting the test terminal to the display terminal; and the application and the connection manner are obtained by the test result reporting strategy.
  • the embodiment of the present invention further provides a test terminal, where the test terminal is used as a user terminal for transmitting an automated test result, and includes: a monitoring module, a policy acquisition module, and a sending module; wherein the monitoring module is configured to monitor in real time The operation of the automatic test process is performed.
  • the policy acquisition module is configured to: when the test result of the selected test item is determined, obtain a test result reporting policy, and obtain an application and a connection mode for establishing a connection with the display terminal according to the test result reporting policy;
  • the sending module is configured to establish a connection with the display terminal according to the application and/or the connection manner, and send the test result.
  • the test terminal further includes: a reminding module, configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result; or, according to When the application and/or the connection manner establishes a connection with the display terminal, the test result reminder message is sent while the test result is sent.
  • a reminding module configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result; or, according to When the application and/or the connection manner establishes a connection with the display terminal, the test result reminder message is sent while the test result is sent.
  • the policy obtaining module is further configured to: when the application that is connected to the display terminal is obtained according to the test result reporting policy, obtain the local account corresponding to the application according to the test result reporting policy, The local password and the peer account; correspondingly, the sending module is configured to establish the connection according to the local account, the local password, and the peer account, and the test result is obtained by using the connection Send to the display terminal.
  • the policy obtaining module is further configured to: when the connection manner is established according to the test result reporting policy to establish a connection with the display terminal, obtain the address corresponding to the connection mode according to the test result reporting policy, The local end account, the local end password, and the opposite end account; correspondingly, the sending module is configured to establish, according to the port corresponding to the address, the local end account, the local end password, and the peer account Connecting, the test junction is made through the connection It is sent to the display terminal.
  • the monitoring module, the policy obtaining module, the sending module, and the reminding module may use a central processing unit (CPU), a digital signal processor (DSP, Digital Singnal Processor) when performing processing. Or programmable logic array (FPGA, Field - Programmable Gate Array) implementation.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field - Programmable Gate Array
  • the embodiment of the present invention further provides a display terminal, where the display terminal is used as a user terminal for receiving an automated test result, and includes: a display module configured to receive a test result and displayed; the test result is: based on the test terminal according to the application And/or a connection manner to establish a test result obtained by connecting to the display terminal; the application and the connection manner are obtained by the test result reporting strategy.
  • the display module is further configured to: after receiving the test result, receive a test result reminder message; or receive the test result reminder message while receiving the test result.
  • the display module can implement a processing by using a central processing unit (CPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA). .
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA field-programmable gate array
  • the embodiment of the invention further provides a test system, the system comprising: the test terminal and the display terminal as described in the above solution.
  • the embodiment of the invention provides a method for transmitting/receiving an automated test result, a test terminal, a display terminal and a system, and the test terminal monitors the operation of the automatic test process in real time; when determining the test result with the selected test item, obtaining the test result report a policy, according to the test result reporting policy, obtaining an application and a connection mode for establishing a connection between the test terminal and the display terminal; establishing a connection between the test terminal and the display terminal according to the application and/or the connection mode, and transmitting the test result;
  • the terminal receives and displays the test result; thereby, the result of the automated test can be obtained in real time and anytime, so that the tester can know the automatic test in time without the test site. As a result, the tester's work is greatly facilitated, and the labor cost of the enterprise is greatly reduced.
  • FIG. 1 is a schematic flowchart of a method for transmitting an automated test result according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for remotely transmitting an automated test result by using a QQ according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for remotely transmitting an automated test result by using a mailbox according to an embodiment of the present invention
  • FIG. 4 is a schematic flow chart of receiving/transmitting automated test results according to a specific application example of the present invention.
  • FIG. 5 is a schematic structural diagram of a test terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another test terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a display terminal according to an embodiment of the present invention. detailed description
  • the test terminal monitors the operation of the automatic test process in real time; when the test result with the selected test item is determined, the test result reporting policy is obtained, and the test terminal establishes a connection with the display terminal according to the test result reporting policy.
  • Application and connection mode establishing a connection between the test terminal and the display terminal according to the application and/or the connection mode, and transmitting the test result; the display terminal receiving the test result and displaying.
  • FIG. 1 is a schematic diagram of a method for transmitting an automated test result according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step 101 The test terminal monitors the operation of the automatic test process in real time
  • the test terminal when the automatic test process runs, the test terminal will automatically test the test generated by the process.
  • the result is saved in a specific path, and the test terminal monitors the operation of the automatic test process by monitoring whether a new test result is generated under a specific path in real time.
  • the test terminal When the automated test process runs, the test terminal automatically executes each test item according to the order in which the test items are executed during the automated test process; when a test item is executed, the corresponding test result is automatically generated, and the test terminal generates the test.
  • the result is stored in a specific path; when the execution of a test item ends, the test result under the specific path increases correspondingly, and the test terminal detects the test result in a specific path in real time to determine whether the newly generated test result is added.
  • Step 102 When the test terminal determines the test result of the selected test item, obtains the test result reporting policy, and obtains the application and connection mode of the connection between the test terminal and the display terminal according to the test result reporting policy;
  • the test terminal determines, according to the identifier of the test result, whether the test result updated in step 101 is the test result of the selected test item; when determining the test result with the selected item, obtaining the test result reporting policy, and reporting according to the test result
  • the strategy is to obtain an application and a connection mode in which the test terminal establishes a connection with the display terminal; wherein, when it is first determined that the identifier of the newly added test result in the specific path corresponds to one of the selected test items, the selected test is executed for the first time.
  • the test item in the item obtains the test result reporting strategy, and the test result reporting policy includes the application and the connection mode in which the test terminal establishes a connection with the display terminal;
  • the display terminal is a terminal that the tester receives the test result of the selected test item;
  • Applications for establishing connections with display terminals include applications such as Tencent QQ, Sina Weibo, and WeChat.
  • the connection method for establishing a connection with the display terminal includes 136 mailboxes, 126 mailboxes, QQ mailboxes, and the like for communication.
  • the parameters of the test result reporting policy further include: a local account, a local password, and a peer account, where the local account and the local end are The password is used to connect the test terminal to the test terminal to establish a connection with the display terminal.
  • the connection between the test terminal and the display terminal is obtained.
  • the parameter of the test result reporting policy further includes: an address corresponding to the connection mode, a local account, a local password, and a peer account; where the local account and the local password are used for testing in the test terminal.
  • the connection mode between the terminal and the display terminal is obtained.
  • the local account and the peer account correspond to the application when the connection between the test terminal and the display terminal is determined according to the test result reporting policy; and the application established by the display terminal according to the test result reporting policy is obtained.
  • the connection established by QQ or the display terminal is the connection mode
  • the local account and the peer account may be the same or different.
  • the test terminal may consistently match the identifier of the test result with the serial number of the test item during the process of generating the test result, and determine the test with the selected test item when detecting that the identifier of the newly added test result belongs to the selected test item. result.
  • the test result reporting policy of the test terminal can be preset according to the test requirements of the tester.
  • the test terminal receives the command of the tester to preset the test result reporting policy, the test terminal triggers a signal for displaying the user interface, and displays a user interface for setting the test result reporting policy parameter to update the test result reporting policy.
  • Step 103 The test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection manner, and sends the test result.
  • the test terminal establishes a connection with the display terminal according to the application and/or the connection manner of the test result reporting policy obtained in step 102; wherein, when the connection established between the test terminal and the display terminal in the test result reporting policy is an application, The test terminal establishes a connection with the peer account according to the local account and the local password, and sends the test result to the display terminal through the connection; when the connection established between the test result reporting policy and the display terminal is the connection mode, according to the The port corresponding to the address, the local account, and the local password are connected with the peer account, and the test result is sent to the display terminal through the connection.
  • the test results are different in the application of the policy.
  • the test terminal is different from the specific connection established by the display terminal.
  • the application is Tencent QQ
  • the test terminal passes the local account, the local password and the pair.
  • the terminal establishes a QQ connection.
  • the application is Sina Weibo
  • the test terminal establishes a microblog connection with the local account through the local account and the local password.
  • the application is WeChat
  • the test terminal passes the local account, the local password, and the pair.
  • the end account establishes a WeChat connection; when the connection between the test terminal and the display terminal of the test result reporting policy is the connection mode, the test terminal logs in the port corresponding to the address of the connection mode according to the local account and the local password, and passes the local email account. Establish a connection between the test terminal and the display terminal with the mailbox account of the opposite end.
  • the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection mode, and sends a test result reminder message after sending the test result; or, the test terminal establishes a test according to the application and/or the connection manner.
  • the test result reminder message is sent at the same time as the test result is sent; wherein the application and the connection manner of sending the test result reminder message are consistent with the application and/or connection mode of sending the test result, Can not be consistent.
  • the test terminal sends a test result and a test result reminder message at the same time; the test terminal sends a test result reminder message by sending a test result; the test terminal sends the test result by mail, and sends a test result reminder message.
  • the terminal determines whether the test terminal sends the test result of all the selected test items, and disconnects the test terminal and the display terminal when it is determined that the test result of all the selected test items is sent. Otherwise; continue to monitor the operation of the automated test process, determine whether the new test result of the automated test process belongs to the test result of the selected test item, and send the test result belonging to the selected test item to the display terminal.
  • the test terminal presets the selected test items before the automatic test process runs; when the automatic test process runs, all test items are executed in turn according to the test sequence of the automated test process, and some test results are testers not Required, therefore, before the automatic test process is run, the test terminal presets the test item according to the test requirements of the tester, wherein the selected test item may include a specific test item, and/or a test item with a successful test result, And/or test items whose test results failed.
  • the selected test items preset by the test terminal can be changed according to the test requirements. Update, when the test requirements are the same as the test requirements of the previous automated test process, the previously selected selected test items can be used directly.
  • test result is sent by the test item; when it is determined that all the test results of the selected test item are sent to the display terminal, the test terminal is disconnected from the display terminal.
  • An embodiment of the present invention provides a method for receiving an automated test result, the method comprising: displaying, by a display terminal, a test result and displaying the method; wherein, the test result is that the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection mode.
  • the test result; the application and the connection mode are obtained by the test result reporting strategy.
  • the account of the application and/or the connection mode of the terminal connected to the test terminal is the peer account saved in the test result reporting policy of the test terminal.
  • the test result received by the display terminal is the test result of the selected test item run by the test terminal's automated test process.
  • the display terminal After receiving the test result, the display terminal receives the test result reminder message; or, while receiving the test result, receives the test result reminder message.
  • the test result reminder message reminds the tester to receive the test result and view the test result.
  • FIG. 2 is a schematic flowchart of a method for remotely transmitting an automated test result by using the QQ according to the embodiment. As shown in FIG. 2, the method includes the following steps:
  • Step 201 The test terminal executes the test item according to the sequence of the test items, and monitors the test result.
  • the test terminal runs the automated test process according to the settings of the automated test process, and automatically The test results generated by the test process are monitored to determine whether the test result generated each time is the test result of the selected test item; wherein, the test items executed during the automated test process are all test items, and all test items are set in advance.
  • the test item execution ends, and the test terminal continues to execute the next test item.
  • Step 202 When the test terminal determines the test result with the selected test item, obtain the test result reporting policy
  • the test terminal When determining the test result of the selected test item in the specific path, the test terminal obtains the test result reporting policy, and obtains the application that establishes the connection with the display terminal according to the reporting policy; when the obtained application is QQ, the test terminal acquires the test result strategy The local account, the local password and the peer account.
  • Step 203 The test terminal establishes a QQ connection with the display terminal.
  • the test terminal logs in to the test terminal according to the local account and the local password in the test result reporting policy, and triggers a QQ window for displaying the local account and the peer account transmission information according to the peer account in the test result reporting policy.
  • the test terminal establishes a QQ connection with the display terminal.
  • Step 204 The test terminal sends the test result to the display terminal through the connection, and the display terminal receives the test result.
  • the determined test result of the selected test item is sent to the display terminal through the established QQ connection.
  • the display terminal receives the test result through the peer account according to the established connection, and saves the received test result.
  • the QQ account that the terminal and the test terminal perform QQ connection is the peer account.
  • Step 205 The test terminal continues to execute the next test item, and detects whether the test result of the next test item is the test result of the selected test item; The test terminal executes the execution of the next test item according to the execution order of the test item, and when the next test item finishes generating the test result, it is judged whether the test result is the test result of the selected test item, and if the test result is the selected item test As a result, step 206 is performed, otherwise, execution 205 is continued.
  • Step 206 The test terminal sends the test result to the display terminal, and determines whether the test result of all the selected test items is sent to the display terminal.
  • test terminal sends the test result to the display terminal through the connection established in step 203, and all the test results of all the selected test items have been sent to the display terminal, if it is determined that the test results of all the selected test items are sent to If the terminal is displayed, step 207 is performed, and the test terminal disconnects the QQ connection from the display terminal; otherwise, step 205 is performed.
  • FIG. 3 is a schematic flowchart of a method for remotely transmitting an automated test result by using a mailbox according to the embodiment. As shown in FIG. 3, the method includes the following steps:
  • Step 301 The test terminal executes the test item according to the sequence of the test item, and monitors the test result; the specific same step 201.
  • Step 302 When the test terminal determines the test result with the selected test item, obtain a test result reporting policy
  • the test terminal When determining the test result of the selected test item in the specific path, the test terminal obtains the test result reporting policy, and obtains a connection mode for establishing a connection with the display terminal according to the reporting policy; when the obtained connection mode is 136 mailbox, the test terminal acquires the test. As a result, the address corresponding to the connection mode in the reporting policy, the local account, the local password, and the peer account.
  • Step 303 The test terminal establishes a mailbox connection with the display terminal.
  • the test terminal triggers the instruction to open the port corresponding to the address according to the address corresponding to the connection mode in the test result reporting policy, and enters the webpage corresponding to the address through the port, and logs in to the test terminal through the local account and the local password.
  • the mailbox corresponding to the mode and establishes a mailbox connection with the display terminal according to the peer account in the report result reporting policy.
  • Step 304 The test terminal sends the test result to the display terminal through the mailbox connection, and the display terminal receives the test result.
  • test result of the determined selected test item is sent to the peer account through the established mailbox connection.
  • the display terminal receives the test result through the peer account according to the established mailbox connection, and saves the received test result.
  • the account that displays the webpage connection between the terminal and the test terminal is the peer account.
  • Step 305 - Step 306 the test terminal continues to execute the next test item, and detects the test result of the next test item; the same step 205-206;
  • step 306 when it is determined that the test results of all the selected test items are sent to the display terminal, step 307 is performed, and the test terminal disconnects the mailbox from the display terminal.
  • FIG. 4 illustrates an embodiment of the present invention by taking a real application scenario as an example:
  • the communication software includes: IM tools such as QQ, Weibo, MSN, WeChat, etc., including the mailbox, including the following steps:
  • Step 401 the tester selects a communication software for obtaining the automated test result; here, the tester selects a communication software such as QQ, Weibo, MSN, WeChat, etc. as a medium for obtaining the result of the automated test, according to the requirements of the communication software itself and Features, enter the user name, password, receiver and other information.
  • a communication software such as QQ, Weibo, MSN, WeChat, etc.
  • Step 402 the tester sets the selected test item
  • the tester selects the test item of his or her own interest as the selected test item according to the test requirement, and the test item can be a test item of a certain item, a certain number of items, a test result failure, and/or a test item whose test result is successful, to An automated test result of one, several, failed or successful is informed to the tester.
  • Step 403 The test terminal runs an automated test process. Specifically, the test terminal runs an automated process according to the tester's setting of the automated test process, starting with the first test item, and executing all the test items in turn.
  • Step 404 The test terminal performs an automated test of the next test item according to the sequence of the test items;
  • the next test item is automatically tested in the order of the test item.
  • Step 405 the test terminal checks whether the current test result is the test result of the selected test item; when the automatic test of one test item is finished, generates a corresponding test result, and the test terminal checks whether the test item is the selected test selected by the tester. Item, or check whether the test result performed by the test item is the test result of the selected test item. If yes, go to step 406; otherwise, go to step 405.
  • Step 406 The test terminal establishes a connection with the display terminal, and automatically reports the test result to the tester through the communication software.
  • test terminal and the display terminal establish a connection by selecting the communication software in step 101, and automatically send the test result determined to be the selected test item to the display terminal through the communication software, and notify the tester to select the test result of the test item.
  • Step 407 The test terminal checks whether the test result of all the selected test items is sent. Specifically, the test terminal checks whether the selected test items selected by the tester all generate test results. If yes, go to step 408; otherwise, go to step 405.
  • Step 408 The test terminal is disconnected from the display terminal.
  • the test terminal sends the test result to the end, exits the login, closes the communication software, and disconnects from the display terminal.
  • an embodiment of the present invention provides a test terminal 50, which is a user terminal for transmitting an automated test result.
  • the method includes: a monitoring module 51, a policy obtaining module 52, and a sending Module 53; wherein The monitoring module 51 is configured to monitor the operation of the automatic testing process in real time.
  • the policy obtaining module 52 is configured to: when determining the test result of the selected test item, obtain a test result reporting policy, and obtain an application and a connection mode for establishing a connection with the display terminal according to the test result reporting policy.
  • the sending module 53 is configured to establish a connection with the display terminal according to the application and/or the connection manner, and send the test result.
  • the policy obtaining module 52 is further configured to: when the application that establishes a connection with the display terminal is obtained according to the test result reporting policy, obtain the local account, the local password, and the opposite account corresponding to the application according to the test result reporting policy.
  • the sending module 53 is specifically configured to establish the connection with the peer account according to the local account, the local password, and send the test result to the display terminal by using the connection.
  • the policy obtaining module 52 is further configured to obtain, according to the test result reporting policy, the address corresponding to the connection mode, the local account, and the local password when the connection mode is established according to the test result reporting policy.
  • the sending module 53 is configured to establish a connection with the peer account according to the port corresponding to the address, the local account, and the local password, and the connection is The test result is sent to the display terminal.
  • the test terminal 50 further includes: a reminding module 54 configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result; or And establishing a connection with the display terminal according to the application and/or the connection manner, and sending a test result reminding message while transmitting the test result.
  • a reminding module 54 configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result
  • a reminding module 54 configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result
  • a reminding module 54 configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result
  • the embodiment of the present invention provides a display terminal 70.
  • the display terminal 70 is used as a user terminal for receiving an automated test result.
  • the display terminal 71 includes: a display module 71 configured to receive test results and display The test result is: based on the test terminal establishing a test result obtained by connecting with the display terminal according to the application and/or the connection manner; the application and the connection manner are obtained by the test result reporting strategy.
  • the display module 71 is further configured to: after receiving the test result, receive a test result reminder message; or, while receiving the test result, receive the test result reminder message.
  • the embodiment of the present invention provides a system configured to receive/send automated test results, where the system includes a test terminal and a display terminal.
  • the test terminal is the test terminal 50 shown in FIG. 5 or FIG. Display terminal 70 shown in 7.
  • the monitoring module 51, the policy acquisition module 52, the sending module 53, the reminding module 54, and the display module 71 can be implemented by a central processing unit (CPU) located in the PC, and a digital signal processor ( DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA) implementation.
  • CPU central processing unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

Provided in the present invention are a method, testing terminal, display terminal, and system for receiving/transmitting the result of an automated test. The method for transmitting the result of an automated test comprises: the operation of an automated testing process is monitored in real-time by a testing terminal; when the presence of a test result of a selected test item is determined, a test result reporting policy is acquired, an application and connection scheme for establishing a connection to a display terminal are acquired on the basis of the test result reporting policy; a connection to the display terminal is established on the basis of the application and/or the connection scheme, and the test result is transmitted.

Description

一种发送 /接收自动化测试结果的方法、 终端及系统 技术领域  Method, terminal and system for transmitting/receiving automated test results
本发明涉及自动化测试技术领域, 尤其涉及一种发送 /接收自动化测试 结果的方法、 测试终端、 显示终端及系统。 背景技术  The present invention relates to the field of automated testing technologies, and in particular, to a method for transmitting/receiving automated test results, a test terminal, a display terminal, and a system. Background technique
本申请发明人在实现本申请实施例技术方案的过程中, 至少发现相关 技术中存在如下技术问题:  In the process of implementing the technical solutions of the embodiments of the present application, the inventors of the present application found at least the following technical problems in the related technologies:
自动化测试现在已经被广泛应用于测试工作中, 使用自动化测试软件 自动配置好需要测试的设备、 仪表, 然后在设定好的时间开始进行测试, 自动化测试完成后, 将测试的结果告知测试人员, 大大节省了测试人员的 时间和精力。  Automated testing is now widely used in testing work. Automated testing software is used to automatically configure the equipment and instruments to be tested, and then start testing at a set time. After the automated testing is completed, the test results are communicated to the testers. Significant savings in testers' time and effort.
由于自动化测试的测试过程是自动的, 因此, 为了更好的提高效率, 自动化测试经常是在测试人员不在办公室时进行的, 比如下班后。 但是有 些时候, 自动化测试的结果很重要, 测试人员需要实时获知, 在第一时间 能够对测试结果做出部署。 由于自动化测试所需的时间不是人为决定的, 因此, 测试人员必须一直在办公室观察自动化测试的运行, 等待自动化测 试的结果。 在这种情况下, 自动测试软件并没有太大的节省人力, 违背了 自动 测试的初衷。 发明内容  Since the testing process for automated testing is automated, automated testing is often performed when testers are out of the office, such as after work, in order to improve efficiency. However, in some cases, the results of automated testing are important, and testers need to be informed in real time to be able to deploy test results in the first place. Since the time required for automated testing is not artificially determined, the tester must always observe the automated test run in the office and wait for the results of the automated test. In this case, the automatic test software does not save much manpower, contrary to the original intention of automatic testing. Summary of the invention
有鉴于此, 本发明实施例期望提供一种发送 /接收自动化测试结果的方 法、 测试终端、 显示终端及系统, 能够将自动化测试的结果实时远程发送, 减少人力成本。 本发明实施例的技术方案是这样实现的: In view of this, embodiments of the present invention are expected to provide a method for transmitting/receiving automated test results, a test terminal, a display terminal, and a system, which can remotely transmit the results of the automated test in real time, thereby reducing labor costs. The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种发送自动化测试结果的方法, 所述方法包括: 测试终端实时监控自动测试过程的运行; 测试终端确定具有选定测试项的 测试结果时, 获取测试结果上报策略, 根据所述测试结果上报策略得到测 试终端与显示终端建立连接的应用及连接方式; 测试终端根据所述应用和 / 或所述连接方式建立测试终端与显示终端的连接, 发送所述测试结果。  An embodiment of the present invention provides a method for transmitting an automated test result, where the method includes: testing a terminal to monitor an automatic test process in real time; and when the test terminal determines a test result with the selected test item, obtaining a test result reporting policy, according to the The test result reporting strategy obtains an application and a connection mode in which the test terminal establishes a connection with the display terminal; the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection manner, and sends the test result.
上述方案中, 测试终端根据所述应用和 /或所述连接方式建立测试终端 与显示终端的连接, 发送所述测试结果之后, 发送测试结果提醒消息; 或 者, 测试终端根据所述应用和 /或所述连接方式建立测试终端与显示终端的 连接, 发送所述测试结果时, 在发送所述测试结果的同时发送测试结果提 醒消息。  In the above solution, the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection manner, and after sending the test result, sends a test result reminding message; or, the test terminal according to the application and/or The connection mode establishes a connection between the test terminal and the display terminal. When the test result is sent, the test result reminder message is sent while the test result is sent.
上述方案中, 当根据所述测试结果上报策略得到测试终端与显示终端 建立连接的所述应用时, 根据所述测试结果上报策略获取所述应用对应的 本端账号、 本端密码、 对端账号; 相应的, 所述测试终端根据所述应用建 立测试终端与显示终端的连接, 发送所述测试结果包括: 根据所述本端账 号、 所述本端密码和所述对端账号建立所述连接, 通过所述连接将所述测 试结果发送至所述显示终端。  In the above solution, when the application that establishes the connection between the test terminal and the display terminal is obtained according to the test result reporting policy, the local end account, the local password, and the opposite account corresponding to the application are obtained according to the test result reporting policy. Correspondingly, the test terminal establishes a connection between the test terminal and the display terminal according to the application, and the sending the test result includes: establishing the connection according to the local account, the local password, and the peer account Sending the test result to the display terminal through the connection.
上述方案中, 当根据所述测试结果上报策略得到测试终端与显示终端 建立连接的所述连接方式时, 根据所述测试结果上报策略获取所述连接方 式对应的地址、 本端账号、 本端密码、 对端账号; 相应的, 所述测试终端 根据所述连接方式建立测试终端与显示终端的连接, 发送所述测试结果包 括: 根据所述地址对应的端口、 所述本端账号、 所述本端密码和所述对端 账号建立所述连接, 通过所述连接将所述测试结果发送至所述显示终端。  In the above solution, when the connection mode of the connection between the test terminal and the display terminal is obtained according to the test result reporting policy, the address corresponding to the connection mode, the local account number, and the local password are obtained according to the test result reporting policy. Correspondingly, the test terminal establishes a connection between the test terminal and the display terminal according to the connection mode, and the sending the test result includes: according to the port corresponding to the address, the local account, the book The terminal password establishes the connection with the peer account, and the test result is sent to the display terminal through the connection.
本发明实施例还提供一种接收自动化测试结果的方法, 所述方法包括: 显示终端接收测试结果并显示; 所述测试结果为: 基于测试终端根据应用 和 /或连接方式建立测试终端与显示终端的连接得到的测试结果; 所述应用 及所述连接方式由所述测试结果上报策略得到。 An embodiment of the present invention further provides a method for receiving an automated test result, where the method includes: displaying, by a display terminal, a test result and displaying the result; the test result is: based on the test terminal according to the application And establishing a test result obtained by connecting the test terminal to the display terminal; and the application and the connection manner are obtained by the test result reporting strategy.
上述方案中, 接收所述测试结果之后, 接收测试结果提醒消息; 或者, 在接收所述测试结果的同时, 接收测试结果提醒消息。  In the above solution, after receiving the test result, receiving a test result reminder message; or receiving a test result reminder message while receiving the test result.
本发明实施例还提供一种测试终端, 所述测试终端作为用于发送自动 化测试结果的用户终端, 包括: 监控模块、 策略获取模块、 以及发送模块; 其中, 所述监控模块, 配置为实时监控自动测试过程的运行; 所述策略获 取模块, 配置为确定具有选定测试项的测试结果时, 获取测试结果上报策 略, 根据所述测试结果上报策略得到与显示终端建立连接的应用及连接方 式; 所述发送模块, 配置为根据所述应用和 /或所述连接方式建立与显示终 端的连接, 发送所述测试结果。  The embodiment of the present invention further provides a test terminal, where the test terminal is used as a user terminal for transmitting an automated test result, and includes: a monitoring module, a policy acquisition module, and a sending module; wherein the monitoring module is configured to monitor in real time The operation of the automatic test process is performed. The policy acquisition module is configured to: when the test result of the selected test item is determined, obtain a test result reporting policy, and obtain an application and a connection mode for establishing a connection with the display terminal according to the test result reporting policy; The sending module is configured to establish a connection with the display terminal according to the application and/or the connection manner, and send the test result.
上述方案中, 所述测试终端还包括: 提醒模块, 配置为根据所述应用 和 /或所述连接方式建立与显示终端的连接, 发送所述测试结果之后, 发送 测试结果提醒消息; 或者, 根据所述应用和 /或所述连接方式建立与显示终 端的连接时, 在发送所述测试结果的同时发送测试结果提醒消息。  In the above solution, the test terminal further includes: a reminding module, configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result; or, according to When the application and/or the connection manner establishes a connection with the display terminal, the test result reminder message is sent while the test result is sent.
上述方案中, 所述策略获取模块, 还配置为当根据所述测试结果上报 策略得到与显示终端建立连接的所述应用时, 根据所述测试结果上报策略 获取所述应用对应的本端账号、 本端密码、 对端账号; 相应的, 所述发送 模块, 配置为根据所述本端账号、 所述本端密码和所述对端账号建立所述 连接, 通过所述连接将所述测试结果发送至所述显示终端。  In the above solution, the policy obtaining module is further configured to: when the application that is connected to the display terminal is obtained according to the test result reporting policy, obtain the local account corresponding to the application according to the test result reporting policy, The local password and the peer account; correspondingly, the sending module is configured to establish the connection according to the local account, the local password, and the peer account, and the test result is obtained by using the connection Send to the display terminal.
上述方案中, 所述策略获取模块, 还配置为当根据所述测试结果上报 策略得到与显示终端建立连接的所述连接方式时, 根据所述测试结果上报 策略获取所述连接方式对应的地址、 本端账号、 本端密码、 对端账号; 相 应的, 所述发送模块, 配置为根据所述地址对应的端口、 所述本端账号、 所述本端密码和所述对端账号建立所述连接, 通过所述连接将所述测试结 果发送至所述显示终端。 In the above solution, the policy obtaining module is further configured to: when the connection manner is established according to the test result reporting policy to establish a connection with the display terminal, obtain the address corresponding to the connection mode according to the test result reporting policy, The local end account, the local end password, and the opposite end account; correspondingly, the sending module is configured to establish, according to the port corresponding to the address, the local end account, the local end password, and the peer account Connecting, the test junction is made through the connection It is sent to the display terminal.
所述监控模块、 所述策略获取模块、 所述发送模块、 所述提醒模块在 执行处理时, 可以釆用中央处理器(CPU, Central Processing Unit ), 数字 信号处理器(DSP, Digital Singnal Processor )或可编程逻辑阵列 (FPGA, Field - Programmable Gate Array ) 实现。  The monitoring module, the policy obtaining module, the sending module, and the reminding module may use a central processing unit (CPU), a digital signal processor (DSP, Digital Singnal Processor) when performing processing. Or programmable logic array (FPGA, Field - Programmable Gate Array) implementation.
本发明实施例还提供一种显示终端, 所述显示终端作为用于接收自动 化测试结果的用户终端, 包括: 显示模块, 配置为接收测试结果并显示; 所述测试结果为: 基于测试终端根据应用和 /或连接方式建立与显示终端的 连接得到的测试结果; 所述应用及所述连接方式由所述测试结果上报策略 得到。  The embodiment of the present invention further provides a display terminal, where the display terminal is used as a user terminal for receiving an automated test result, and includes: a display module configured to receive a test result and displayed; the test result is: based on the test terminal according to the application And/or a connection manner to establish a test result obtained by connecting to the display terminal; the application and the connection manner are obtained by the test result reporting strategy.
上述方案中, 所述显示模块, 还配置为在接收所述测试结果之后, 接 收测试结果提醒消息; 或者, 在接收所述测试结果的同时, 接收测试结果 提醒消息。  In the above solution, the display module is further configured to: after receiving the test result, receive a test result reminder message; or receive the test result reminder message while receiving the test result.
所述显示模块, 在执行处理时, 可以釆用中央处理器 (CPU, Central Processing Unit )、 数字信号处理器(DSP, Digital Singnal Processor )或可 编程逻辑阵列 (FPGA, Field - Programmable Gate Array ) 实现。  The display module can implement a processing by using a central processing unit (CPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA). .
本发明实施例还提供一种测试系统, 所述系统包括: 如上述方案中所 述的测试终端和所述的显示终端。  The embodiment of the invention further provides a test system, the system comprising: the test terminal and the display terminal as described in the above solution.
本发明实施例提供了一种发送 /接收自动化测试结果的方法、测试终端、 显示终端及系统, 测试终端实时监控自动测试过程的运行; 确定具有选定 测试项的测试结果时, 获取测试结果上报策略, 根据所述测试结果上报策 略得到测试终端与显示终端建立连接的应用及连接方式; 根据所述应用和 / 或所述连接方式建立测试终端与显示终端的连接, 发送所述测试结果; 显 示终端接收并显示所述测试结果; 由此, 能随时随地实时获知自动化测试 的结果, 使得测试人员在非测试现场的情况下, 能及时获知自动化测试的 结果, 为测试人员的工作带来极大的方便性, 并大大的减小了企业的人力 成本。 附图说明 The embodiment of the invention provides a method for transmitting/receiving an automated test result, a test terminal, a display terminal and a system, and the test terminal monitors the operation of the automatic test process in real time; when determining the test result with the selected test item, obtaining the test result report a policy, according to the test result reporting policy, obtaining an application and a connection mode for establishing a connection between the test terminal and the display terminal; establishing a connection between the test terminal and the display terminal according to the application and/or the connection mode, and transmitting the test result; The terminal receives and displays the test result; thereby, the result of the automated test can be obtained in real time and anytime, so that the tester can know the automatic test in time without the test site. As a result, the tester's work is greatly facilitated, and the labor cost of the enterprise is greatly reduced. DRAWINGS
图 1为本发明实施例提供的发送自动化测试结果的方法的流程示意图; 图 2为本实施例提供的一种通过 QQ远程发送自动化测试结果的方法 的流程示意图;  1 is a schematic flowchart of a method for transmitting an automated test result according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of a method for remotely transmitting an automated test result by using a QQ according to an embodiment of the present invention;
图 3 为本实施例提供的一种通过邮箱远程发送自动化测试结果的方法 的流程示意图;  FIG. 3 is a schematic flowchart of a method for remotely transmitting an automated test result by using a mailbox according to an embodiment of the present invention;
图 4为本发明一具体应用实例的接收 /发送自动化测试结果的流程示意 图;  4 is a schematic flow chart of receiving/transmitting automated test results according to a specific application example of the present invention;
图 5为本发明实施例提供的一种测试终端的结构示意图;  FIG. 5 is a schematic structural diagram of a test terminal according to an embodiment of the present disclosure;
图 6为本发明实施例提供的另一种测试终端的结构示意图;  FIG. 6 is a schematic structural diagram of another test terminal according to an embodiment of the present disclosure;
图 7本发明实施例提供的一种显示终端的结构示意图。 具体实施方式  FIG. 7 is a schematic structural diagram of a display terminal according to an embodiment of the present invention. detailed description
在本发明实施例中, 测试终端实时监控自动测试过程的运行; 确定具 有选定测试项的测试结果时, 获取测试结果上报策略, 根据所述测试结果 上报策略得到测试终端与显示终端建立连接的应用及连接方式; 根据所述 应用和 /或所述连接方式建立测试终端与显示终端的连接, 发送所述测试结 果; 显示终端接收测试结果并显示。  In the embodiment of the present invention, the test terminal monitors the operation of the automatic test process in real time; when the test result with the selected test item is determined, the test result reporting policy is obtained, and the test terminal establishes a connection with the display terminal according to the test result reporting policy. Application and connection mode; establishing a connection between the test terminal and the display terminal according to the application and/or the connection mode, and transmitting the test result; the display terminal receiving the test result and displaying.
下面通过附图及具体实施例对本发明再#丈进一步的详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图 1 为本发明实施例提供的一种发送自动化测试结果的方法, 如图 1 所示, 该方法包括以下几个步骤:  FIG. 1 is a schematic diagram of a method for transmitting an automated test result according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤 101, 测试终端实时监控自动测试过程的运行;  Step 101: The test terminal monitors the operation of the automatic test process in real time;
具体的, 自动测试过程运行时, 测试终端将自动测试过程生成的测试 结果保存在特定路径下, 测试终端通过实时监控特定路径下是否有新的测 试结果的产生监控自动测试过程的运行。 Specifically, when the automatic test process runs, the test terminal will automatically test the test generated by the process. The result is saved in a specific path, and the test terminal monitors the operation of the automatic test process by monitoring whether a new test result is generated under a specific path in real time.
当自动化测试过程运行时, 测试终端根据自动化测试过程中的测试项 执行的顺序自动执行每一项测试项; 当一项测试项执行结束时, 自动生成 对应的测试结果, 测试终端将生成的测试结果存储在特定路径下; 当一项 测试项执行结束时, 特定路径下的测试结果相应的增加, 测试终端实时检 测特定路径下的测试结果, 确定是否有增加新生成的测试结果。  When the automated test process runs, the test terminal automatically executes each test item according to the order in which the test items are executed during the automated test process; when a test item is executed, the corresponding test result is automatically generated, and the test terminal generates the test. The result is stored in a specific path; when the execution of a test item ends, the test result under the specific path increases correspondingly, and the test terminal detects the test result in a specific path in real time to determine whether the newly generated test result is added.
步骤 102, 测试终端确定具有选定测试项的测试结果时, 获取测试结果 上报策略, 根据所述测试结果上报策略得到测试终端与显示终端建立连接 的应用及连接方式;  Step 102: When the test terminal determines the test result of the selected test item, obtains the test result reporting policy, and obtains the application and connection mode of the connection between the test terminal and the display terminal according to the test result reporting policy;
具体的, 测试终端根据测试结果的标识确定步骤 101 中更新的测试结 果是否为选定测试项的测试结果; 当确定具有选定项的测试结果时, 获取 测试结果上报策略, 并根据测试结果上报策略得到测试终端与显示终端建 立连接的应用及连接方式; 其中, 当首次确定特定路径下新增加的测试结 果的标识与选定测试项中的一项相对应时, 即首次执行完选定测试项中的 测试项, 则获取测试结果上报策略, 测试结果上报策略包含有测试终端与 显示终端建立连接的应用及连接方式; 这里, 显示终端为测试人员接收选 定测试项的测试结果的终端; 与显示终端建立连接的应用包括有腾讯 QQ、 新浪微博、 微信等应用, 与显示终端建立连接的连接方式包括 136邮箱、 126邮箱、 QQ邮箱等用于通信的电子邮箱。  Specifically, the test terminal determines, according to the identifier of the test result, whether the test result updated in step 101 is the test result of the selected test item; when determining the test result with the selected item, obtaining the test result reporting policy, and reporting according to the test result The strategy is to obtain an application and a connection mode in which the test terminal establishes a connection with the display terminal; wherein, when it is first determined that the identifier of the newly added test result in the specific path corresponds to one of the selected test items, the selected test is executed for the first time. The test item in the item obtains the test result reporting strategy, and the test result reporting policy includes the application and the connection mode in which the test terminal establishes a connection with the display terminal; here, the display terminal is a terminal that the tester receives the test result of the selected test item; Applications for establishing connections with display terminals include applications such as Tencent QQ, Sina Weibo, and WeChat. The connection method for establishing a connection with the display terminal includes 136 mailboxes, 126 mailboxes, QQ mailboxes, and the like for communication.
当根据测试结果上报策略得到测试终端与显示终端建立的连接的应用 时, 所述测试结果上报策略的参数还包括: 本端账号、 本端密码和对端账 号, 这里, 本端账号、 本端密码用于在测试终端登陆测试终端与显示终端 建立连接的应用。  When the application of the connection between the test terminal and the display terminal is obtained according to the test result reporting policy, the parameters of the test result reporting policy further include: a local account, a local password, and a peer account, where the local account and the local end are The password is used to connect the test terminal to the test terminal to establish a connection with the display terminal.
当根据测试结果上报策略得到测试终端与显示终端建立的连接的连接 方式时, 所述测试结果上报策略的参数还包括: 所述连接方式对应的地址、 本端账号、 本端密码、 对端账号; 这里, 本端账号、 本端密码用于在测试 终端登陆测试终端与显示终端建立连接的连接方式。 When the test result is reported according to the test result, the connection between the test terminal and the display terminal is obtained. In the mode, the parameter of the test result reporting policy further includes: an address corresponding to the connection mode, a local account, a local password, and a peer account; where the local account and the local password are used for testing in the test terminal. The connection mode between the terminal and the display terminal.
其中, 根据所述测试结果上报策略得到测试终端与显示终端建立的连 接为应用时, 本端账号、 对端账号与应用对应; 当根据所述测试结果上报 策略得到与显示终端建立的连接的应用为 QQ或与显示终端建立的连接为 连接方式时, 本端账号与对端账号可相同, 也可不同。  The local account and the peer account correspond to the application when the connection between the test terminal and the display terminal is determined according to the test result reporting policy; and the application established by the display terminal according to the test result reporting policy is obtained. When the connection established by QQ or the display terminal is the connection mode, the local account and the peer account may be the same or different.
这里, 测试终端可在生成测试结果的过程中, 将测试结果的标识与测 试项的序号保持一致, 当检测新增加的测试结果的标识属于选定测试项时, 确定具有选定测试项的测试结果。  Here, the test terminal may consistently match the identifier of the test result with the serial number of the test item during the process of generating the test result, and determine the test with the selected test item when detecting that the identifier of the newly added test result belongs to the selected test item. result.
在实际应用中, 测试终端的测试结果上报策略可根据测试人员的测试 需求进行预设置。 当测试终端接收到测试人员预设置测试结果上报策略的 指令时, 测试终端触发用于显示用户界面的信号, 显示用于设置测试结果 上报策略参数的用户界面, 以对测试结果上报策略进行更新。  In practical applications, the test result reporting policy of the test terminal can be preset according to the test requirements of the tester. When the test terminal receives the command of the tester to preset the test result reporting policy, the test terminal triggers a signal for displaying the user interface, and displays a user interface for setting the test result reporting policy parameter to update the test result reporting policy.
步骤 103, 测试终端根据所述应用和 /或所述连接方式建立测试终端与 显示终端的连接, 发送所述测试结果;  Step 103: The test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection manner, and sends the test result.
具体的, 测试终端根据在步骤 102获取的测试结果上报策略的应用和 / 或连接方式与显示终端建立连接; 其中, 当测试结果上报策略中测试终端 与显示终端之间建立的连接为应用时, 测试终端根据本端账号、 本端密码 与对端账号建立连接, 通过所述连接将测试结果发送至显示终端; 当测试 结果上报策略中与显示终端之间建立的连接为连接方式时, 根据所述地址 对应的端口、 本端账号、 本端密码与对端账号建立连接, 通过所述连接将 所述测试结果发送至显示终端。  Specifically, the test terminal establishes a connection with the display terminal according to the application and/or the connection manner of the test result reporting policy obtained in step 102; wherein, when the connection established between the test terminal and the display terminal in the test result reporting policy is an application, The test terminal establishes a connection with the peer account according to the local account and the local password, and sends the test result to the display terminal through the connection; when the connection established between the test result reporting policy and the display terminal is the connection mode, according to the The port corresponding to the address, the local account, and the local password are connected with the peer account, and the test result is sent to the display terminal through the connection.
测试结果上 策略中的应用不同, 测试终端与显示终端建立的具体的 连接不同; 当应用为腾讯 QQ 时, 测试终端通过本端账号、 本端密码与对 端账号建立 QQ连接; 当应用为新浪微博时, 测试终端通过本端账号、 本 端密码与对端的账号建立微博连接; 当应用为微信时, 测试终端通过本端 账号、 本端密码与对端账号建立微信连接; 当测试结果上报策略的测试终 端与显示终端建立的连接为连接方式时, 测试终端根据本端账号、 本端密 码登陆连接方式的地址对应的端口, 并通过本端的邮箱账号与对端的邮箱 账号建立测试终端与显示终端的连接。 The test results are different in the application of the policy. The test terminal is different from the specific connection established by the display terminal. When the application is Tencent QQ, the test terminal passes the local account, the local password and the pair. The terminal establishes a QQ connection. When the application is Sina Weibo, the test terminal establishes a microblog connection with the local account through the local account and the local password. When the application is WeChat, the test terminal passes the local account, the local password, and the pair. The end account establishes a WeChat connection; when the connection between the test terminal and the display terminal of the test result reporting policy is the connection mode, the test terminal logs in the port corresponding to the address of the connection mode according to the local account and the local password, and passes the local email account. Establish a connection between the test terminal and the display terminal with the mailbox account of the opposite end.
这里, 测试终端根据应用和 /或连接方式建立测试终端与显示终端的连 接, 发送所述测试结果之后, 发送测试结果提醒消息; 或者, 测试终端根 据所述应用和 /或所述连接方式建立测试终端与显示终端的连接时, 在发送 所述测试结果的同时发送测试结果提醒消息; 其中, 发送测试结果提醒消 息的应用、 连接方式可与发送测试结果的应用和 /或连接方式保持一致, 也 可不一致。 比如, 测试终端通过 同时发送测试结果与测试结果提醒消 息; 测试终端通过 发送测试结果, 通过短信发送测试结果提醒消息; 测试终端通过邮件发送测试结果, 通过 发送测试结果提醒消息。  Here, the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection mode, and sends a test result reminder message after sending the test result; or, the test terminal establishes a test according to the application and/or the connection manner. When the terminal is connected to the display terminal, the test result reminder message is sent at the same time as the test result is sent; wherein the application and the connection manner of sending the test result reminder message are consistent with the application and/or connection mode of sending the test result, Can not be consistent. For example, the test terminal sends a test result and a test result reminder message at the same time; the test terminal sends a test result reminder message by sending a test result; the test terminal sends the test result by mail, and sends a test result reminder message.
在发送测试结果与测试结果提醒消息之后, 测试中终端判断测试终端 是否将所有选定测试项的测试结果发送, 当确定将所有选定测试项的测试 结果发送时, 断开测试终端与显示终端的连接; 否则, 继续监控自动化测 试过程的运行, 判断自动化测试过程的新的测试结果是否属于选定测试项 的测试结果, 将属于选定测试项的测试结果发送至显示终端。  After sending the test result and the test result reminding message, the terminal determines whether the test terminal sends the test result of all the selected test items, and disconnects the test terminal and the display terminal when it is determined that the test result of all the selected test items is sent. Otherwise; continue to monitor the operation of the automated test process, determine whether the new test result of the automated test process belongs to the test result of the selected test item, and send the test result belonging to the selected test item to the display terminal.
在实际应用中, 测试终端在自动测试过程运行之前预设选定测试项; 自动测试过程在运行过程时, 根据自动化测试过程的测试顺序依次执行所 有的测试项, 而有些测试结果是测试人员不需要的, 因此, 在自动测试过 程运行前, 测试终端根据测试人员的测试需求预设选定测试项, 其中, 选 定测试项可包括特定的测试项、 和 /或测试结果成功的测试项、 和 /或测试结 果失败的测试项。 测试终端预设的选定测试项可根据测试需求的变化进行 更新, 当测试需求同前次运行自动化测试过程的测试需求相同时, 可直接 使用前次预设的选定测试项。 In practical applications, the test terminal presets the selected test items before the automatic test process runs; when the automatic test process runs, all test items are executed in turn according to the test sequence of the automated test process, and some test results are testers not Required, therefore, before the automatic test process is run, the test terminal presets the test item according to the test requirements of the tester, wherein the selected test item may include a specific test item, and/or a test item with a successful test result, And/or test items whose test results failed. The selected test items preset by the test terminal can be changed according to the test requirements. Update, when the test requirements are the same as the test requirements of the previous automated test process, the previously selected selected test items can be used directly.
在自动化测试过程的运行过程中, 选定测试项中为多项不同的测试项, 测试终端在首次确定具有选定项的测试结果时, 获取测试结果上报策略, 根据所述测试结果上报策略的应用和 /或连接方式与显示终端建立连接, 通 过该连接发送测试结果; 之后在再次确定有选定测试项的测试结果时, 不 需要再次获取测试结果上报策略, 通过之前建立的连接进行其他选定测试 项的测试结果的发送; 在确定所有的选定测试项的测试结果都发送至显示 终端时, 断开测试终端与显示终端的连接。  During the operation of the automated test process, a plurality of different test items are selected in the test item, and when the test terminal first determines the test result with the selected item, the test result is reported, and the test result is reported according to the test result. The application and/or connection mode establishes a connection with the display terminal, and the test result is sent through the connection; after determining the test result of the selected test item again, the test result reporting strategy does not need to be acquired again, and the other connection is selected through the previously established connection. The test result is sent by the test item; when it is determined that all the test results of the selected test item are sent to the display terminal, the test terminal is disconnected from the display terminal.
本发明实施例提供一种接收自动化测试结果的方法, 该方法包括: 显 示终端接收测试结果并显示; 其中, 测试结果为基于测试终端根据应用和 / 或连接方式建立测试终端与显示终端的连接得到的测试结果; 所述应用及 连接方式由所述测试结果上报策略得到。  An embodiment of the present invention provides a method for receiving an automated test result, the method comprising: displaying, by a display terminal, a test result and displaying the method; wherein, the test result is that the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection mode. The test result; the application and the connection mode are obtained by the test result reporting strategy.
显示终端的与测试终端进行连接的应用和 /或连接方式的账号为测试终 端的测试结果上报策略中保存的对端账号。  The account of the application and/or the connection mode of the terminal connected to the test terminal is the peer account saved in the test result reporting policy of the test terminal.
显示终端接收到的测试结果为测试终端的自动化测试过程运行的选定 测试项的测试结果。  The test result received by the display terminal is the test result of the selected test item run by the test terminal's automated test process.
显示终端在接收所述测试结果之后, 接收测试结果提醒消息; 或者, 在接收所述测试结果的同时, 接收测试结果提醒消息。 通过测试结果提醒 消息提醒测试人员接收到测试结果, 对测试结果进行查看。  After receiving the test result, the display terminal receives the test result reminder message; or, while receiving the test result, receives the test result reminder message. The test result reminder message reminds the tester to receive the test result and view the test result.
图 2为本实施例提供的一种通过 QQ远程发送自动化测试结果的方法 的流程示意图, 如图 2所示, 包括以下步骤:  FIG. 2 is a schematic flowchart of a method for remotely transmitting an automated test result by using the QQ according to the embodiment. As shown in FIG. 2, the method includes the following steps:
步骤 201, 测试终端按照测试项的顺序, 执行测试项, 并对测试结果进 行监控;  Step 201: The test terminal executes the test item according to the sequence of the test items, and monitors the test result.
测试终端根据自动化测试过程的设置运行自动化测试过程, 并对自动 化测试过程生成的测试结果进行监控, 判断每次生成的测试结果是否为选 定测试项的测试结果; 其中, 自动化测试过程中执行的测试项为全部的测 试项, 并且提前设定所有测试项执行的顺序; 当自动测试过程开始运行之 后, 测试终端不能对测试项的执行顺序以及每个测试项的执行过程进行更 改。 当一测试项生成测试结果时, 该测试项执行结束, 测试终端继续执行 下一测试项。 The test terminal runs the automated test process according to the settings of the automated test process, and automatically The test results generated by the test process are monitored to determine whether the test result generated each time is the test result of the selected test item; wherein, the test items executed during the automated test process are all test items, and all test items are set in advance. The order of execution; After the automatic test process starts running, the test terminal cannot change the execution order of the test items and the execution process of each test item. When a test item generates a test result, the test item execution ends, and the test terminal continues to execute the next test item.
步骤 202, 测试终端确定具有选定测试项的测试结果时, 获取测试结果 上报策略;  Step 202: When the test terminal determines the test result with the selected test item, obtain the test result reporting policy;
当确定特定路径下具有选定测试项的测试结果时, 测试终端获取测试 结果上报策略, 根据上报策略得到与显示终端建立连接的应用; 当得到的 应用为 QQ 时, 测试终端获取测试结果上 策略中的本端账号、 本端密码 与对端账号。  When determining the test result of the selected test item in the specific path, the test terminal obtains the test result reporting policy, and obtains the application that establishes the connection with the display terminal according to the reporting policy; when the obtained application is QQ, the test terminal acquires the test result strategy The local account, the local password and the peer account.
步骤 203, 测试终端与显示终端建立 QQ连接;  Step 203: The test terminal establishes a QQ connection with the display terminal.
测试终端根据测试结果上报策略中的本端账号、 本端密码在测试终端 登陆 QQ,并根据测试结果上报策略中的对端账号触发用于显示本端账号与 对端账号传输信息的 QQ窗口, 测试终端与显示终端建立 QQ连接。  The test terminal logs in to the test terminal according to the local account and the local password in the test result reporting policy, and triggers a QQ window for displaying the local account and the peer account transmission information according to the peer account in the test result reporting policy. The test terminal establishes a QQ connection with the display terminal.
步骤 204, 测试终端通过 连接将测试结果发送至显示终端, 显示终 端接收测试结果;  Step 204: The test terminal sends the test result to the display terminal through the connection, and the display terminal receives the test result.
在测试终端与显示终端建立连接后, 将确定的选定测试项的测试结果 通过建立的 QQ连接发送至显示终端。  After the test terminal establishes a connection with the display terminal, the determined test result of the selected test item is sent to the display terminal through the established QQ connection.
显示终端根据建立的连接通过对端账号接收测试结果, 并将接收到的 测试结果进行保存,此时,显示终端与测试终端进行 QQ连接的 QQ账号为 对端账号。  The display terminal receives the test result through the peer account according to the established connection, and saves the received test result. At this time, the QQ account that the terminal and the test terminal perform QQ connection is the peer account.
步骤 205, 测试终端继续执行下一项测试项, 并检测下一项测试项的测 试结果是否为选定测试项的测试结果; 测试终端执行根据测试项的执行顺序继续执行下一项测试项, 当下一 项测试项执行结束生成测试结果时, 判断测试结果是否为选定测试项的测 试结果, 如果测试结果是选定项测试结果, 执行步骤 206, 否则, 继续执行 205。 Step 205: The test terminal continues to execute the next test item, and detects whether the test result of the next test item is the test result of the selected test item; The test terminal executes the execution of the next test item according to the execution order of the test item, and when the next test item finishes generating the test result, it is judged whether the test result is the test result of the selected test item, and if the test result is the selected item test As a result, step 206 is performed, otherwise, execution 205 is continued.
步骤 206, 测试终端将测试结果发送至显示终端, 并确定是否将所有选 定测试项的测试结果发送至显示终端;  Step 206: The test terminal sends the test result to the display terminal, and determines whether the test result of all the selected test items is sent to the display terminal.
具体的, 测试终端通过步骤 203 建立的连接将测试结果发送至显示终 端, 并当前所有的选定测试项的测试结果已全部发送至显示终端, 如果确 定所有的选定测试项的测试结果发送至显示终端, 则执行步骤 207, 测试终 端与显示终端断开 QQ连接; 否则, 执行步骤 205。  Specifically, the test terminal sends the test result to the display terminal through the connection established in step 203, and all the test results of all the selected test items have been sent to the display terminal, if it is determined that the test results of all the selected test items are sent to If the terminal is displayed, step 207 is performed, and the test terminal disconnects the QQ connection from the display terminal; otherwise, step 205 is performed.
图 3 为本实施例提供的一种通过邮箱远程发送自动化测试结果的方法 的流程示意图, 如图 3所示, 包括以下步骤:  FIG. 3 is a schematic flowchart of a method for remotely transmitting an automated test result by using a mailbox according to the embodiment. As shown in FIG. 3, the method includes the following steps:
步骤 301, 测试终端按照测试项的顺序, 执行测试项, 并对测试结果进 行监控; 具体的同步骤 201。  Step 301: The test terminal executes the test item according to the sequence of the test item, and monitors the test result; the specific same step 201.
步骤 302, 测试终端确定具有选定测试项的测试结果时, 获取测试结果 上报策略;  Step 302: When the test terminal determines the test result with the selected test item, obtain a test result reporting policy;
当确定特定路径下具有选定测试项的测试结果时, 测试终端获取测试 结果上报策略, 根据上报策略得到与显示终端建立连接的连接方式; 当得 到的连接方式为 136邮箱时, 测试终端获取测试结果上报策略中的连接方 式对应的地址、 本端账号、 本端密码与对端账号。  When determining the test result of the selected test item in the specific path, the test terminal obtains the test result reporting policy, and obtains a connection mode for establishing a connection with the display terminal according to the reporting policy; when the obtained connection mode is 136 mailbox, the test terminal acquires the test. As a result, the address corresponding to the connection mode in the reporting policy, the local account, the local password, and the peer account.
步骤 303, 测试终端与显示终端建立邮箱连接;  Step 303: The test terminal establishes a mailbox connection with the display terminal.
测试终端根据测试结果上报策略中的连接方式对应的地址触发打开所 述地址对应的端口的指令, 通过该端口进入所述地址对应的网页, 并通过 本端账号、 本端密码在测试终端登陆连接方式对应的邮箱, 并根据测试结 果上报策略中的对端账号与显示终端建立邮箱连接。 步骤 304, 测试终端通过邮箱连接将测试结果发送至显示终端, 显示终 端接收测试结果。 The test terminal triggers the instruction to open the port corresponding to the address according to the address corresponding to the connection mode in the test result reporting policy, and enters the webpage corresponding to the address through the port, and logs in to the test terminal through the local account and the local password. The mailbox corresponding to the mode, and establishes a mailbox connection with the display terminal according to the peer account in the report result reporting policy. Step 304: The test terminal sends the test result to the display terminal through the mailbox connection, and the display terminal receives the test result.
在测试终端与显示终端建立邮箱连接后, 将确定的选定测试项的测试 结果通过建立的邮箱连接发送至对端账号。  After the test terminal establishes a mailbox connection with the display terminal, the test result of the determined selected test item is sent to the peer account through the established mailbox connection.
显示终端根据建立的邮箱连接通过对端账号接收测试结果, 并将接收 到的测试结果进行保存, 此时, 显示终端与测试终端进行网页连接的账号 为对端账号。  The display terminal receives the test result through the peer account according to the established mailbox connection, and saves the received test result. At this time, the account that displays the webpage connection between the terminal and the test terminal is the peer account.
步骤 305-步骤 306, 测试终端继续执行下一项测试项,并检测下一项测 试项的测试结果; 同步骤 205-206;  Step 305 - Step 306, the test terminal continues to execute the next test item, and detects the test result of the next test item; the same step 205-206;
其中, 在步骤 306 中, 当确定所有的选定测试项的测试结果发送至显 示终端时, 则执行步骤 307, 测试终端与显示终端断开邮箱连接。  In step 306, when it is determined that the test results of all the selected test items are sent to the display terminal, step 307 is performed, and the test terminal disconnects the mailbox from the display terminal.
图 4以一个现实应用场景为例对本发明实施例阐述如下:  FIG. 4 illustrates an embodiment of the present invention by taking a real application scenario as an example:
使用通讯软件, 并将自动化测试结果和通讯软件的通讯功能结合起来, 通讯软件包括: QQ、 微博、 MSN、 微信等 IM工具, 还包括邮箱, 包括以 下步骤:  Using communication software, and combining the automated test results with the communication functions of the communication software, the communication software includes: IM tools such as QQ, Weibo, MSN, WeChat, etc., including the mailbox, including the following steps:
步骤 401, 测试人员选择一种获取自动化测试结果的通讯软件; 这里, 测试人员选择一种通讯软件如 QQ、 微博、 MSN、 微信等作为获 知自动化测试结果的媒介, 根据通讯软件自身的要求和特点, 输入用户名、 密码、 接收端等信息。  Step 401, the tester selects a communication software for obtaining the automated test result; here, the tester selects a communication software such as QQ, Weibo, MSN, WeChat, etc. as a medium for obtaining the result of the automated test, according to the requirements of the communication software itself and Features, enter the user name, password, receiver and other information.
步骤 402, 测试人员设定选定测试项;  Step 402, the tester sets the selected test item;
这里, 测试人员根据测试需求选择自己关注的测试项作为选定测试项, 测试项可为某一项、 某几项、 测试结果失败的测试项和 /或测试结果成功的 测试项, 以将某一项、 某几项、 失败或成功的自动化测试结果告知测试人 贝。  Here, the tester selects the test item of his or her own interest as the selected test item according to the test requirement, and the test item can be a test item of a certain item, a certain number of items, a test result failure, and/or a test item whose test result is successful, to An automated test result of one, several, failed or successful is informed to the tester.
步骤 403, 测试终端运行自动化测试过程; 具体的, 测试终端根据测试人员对自动化测试过程的设定运行自动化 过程, 从第一个测试项开始, 依次执行所有的测试项。 Step 403: The test terminal runs an automated test process. Specifically, the test terminal runs an automated process according to the tester's setting of the automated test process, starting with the first test item, and executing all the test items in turn.
步骤 404, 测试终端按照测试项的顺序, 进行下一个测试项的自动化测 试;  Step 404: The test terminal performs an automated test of the next test item according to the sequence of the test items;
具体的, 当前一个测试项的自动化测试结束后, 按照测试项的顺序依 次进行下一个测试项的自动化测试。  Specifically, after the automatic test of one test item is finished, the next test item is automatically tested in the order of the test item.
步骤 405, 测试终端检查当前测试结果是否为选定测试项的测试结果; 当一个测试项的自动化测试结束后, 生成对应的测试结果, 测试终端 检查该测试项是否为测试人员选择的选定测试项, 或检查该测试项执行的 测试结果是否为选定测试项的测试结果。 如果是, 执行步骤 406; 否则, 执 行步骤 405。  Step 405, the test terminal checks whether the current test result is the test result of the selected test item; when the automatic test of one test item is finished, generates a corresponding test result, and the test terminal checks whether the test item is the selected test selected by the tester. Item, or check whether the test result performed by the test item is the test result of the selected test item. If yes, go to step 406; otherwise, go to step 405.
步骤 406, 测试终端与显示终端建立连接, 并自动将测试结果通过通讯 软件告知测试人员。  Step 406: The test terminal establishes a connection with the display terminal, and automatically reports the test result to the tester through the communication software.
这里, 测试终端与显示终端通过步骤 101 选择通讯软件建立连接, 并 自动将确定为选定测试项的测试结果通过该通讯软件发送至显示终端, 告 知测试人员选定测试项的测试结果。  Here, the test terminal and the display terminal establish a connection by selecting the communication software in step 101, and automatically send the test result determined to be the selected test item to the display terminal through the communication software, and notify the tester to select the test result of the test item.
步骤 407, 测试终端检查是否将所有选定测试项的测试结果发送; 具体的, 测试终端检查测试人员选择的选定测试项是否全部生成测试 结果。 如果是, 执行步骤 408; 否则, 执行步骤 405。  Step 407: The test terminal checks whether the test result of all the selected test items is sent. Specifically, the test terminal checks whether the selected test items selected by the tester all generate test results. If yes, go to step 408; otherwise, go to step 405.
步骤 408, 测试终端与显示终端断开连接;  Step 408: The test terminal is disconnected from the display terminal.
测试终端的测试结果发送结束, 退出登陆, 关闭通讯软件, 与显示终 端断开连接。  The test terminal sends the test result to the end, exits the login, closes the communication software, and disconnects from the display terminal.
为实现上述方法, 本发明实施例提供了一种测试终端 50, 测试终端 50 作为用于发送自动化测试结果的用户终端, 如图 5 所示, 包括: 监控模块 51、 策略获取模块 52、 以及发送模块 53 ; 其中, 监控模块 51, 配置为实时监控自动测试过程的运行。 To implement the above method, an embodiment of the present invention provides a test terminal 50, which is a user terminal for transmitting an automated test result. As shown in FIG. 5, the method includes: a monitoring module 51, a policy obtaining module 52, and a sending Module 53; wherein The monitoring module 51 is configured to monitor the operation of the automatic testing process in real time.
策略获取模块 52, 配置为确定具有选定测试项的测试结果时, 获取测 试结果上报策略, 根据所述测试结果上报策略得到与显示终端建立连接的 应用及连接方式。  The policy obtaining module 52 is configured to: when determining the test result of the selected test item, obtain a test result reporting policy, and obtain an application and a connection mode for establishing a connection with the display terminal according to the test result reporting policy.
发送模块 53, 配置为根据所述应用和 /或所述连接方式建立与显示终端 的连接, 发送所述测试结果。  The sending module 53 is configured to establish a connection with the display terminal according to the application and/or the connection manner, and send the test result.
策略获取模块 52, 还配置为当根据所述测试结果上报策略得到与显示 终端建立连接的应用时, 根据所述测试结果上报策略获取所述应用对应的 本端账号、 本端密码、 对端账号; 相应的, 发送模块 53, 具体配置为根据 所述本端账号、 所述本端密码与所述对端账号建立所述连接, 通过所述连 接将所述测试结果发送至所述显示终端。  The policy obtaining module 52 is further configured to: when the application that establishes a connection with the display terminal is obtained according to the test result reporting policy, obtain the local account, the local password, and the opposite account corresponding to the application according to the test result reporting policy. Correspondingly, the sending module 53 is specifically configured to establish the connection with the peer account according to the local account, the local password, and send the test result to the display terminal by using the connection.
策略获取模块 52, 还配置为当根据所述测试结果上报策略得到与显示 终端建立连接的连接方式时, 根据所述测试结果上报策略获取所述连接方 式对应的地址、 本端账号、 本端密码、 对端账号; 相应的, 发送模块 53, 具体配置为根据所述地址对应的端口、 所述本端账号、 所述本端密码与所 述对端账号建立连接, 通过所述连接将所述测试结果发送至所述显示终端。  The policy obtaining module 52 is further configured to obtain, according to the test result reporting policy, the address corresponding to the connection mode, the local account, and the local password when the connection mode is established according to the test result reporting policy. Correspondingly, the sending module 53 is configured to establish a connection with the peer account according to the port corresponding to the address, the local account, and the local password, and the connection is The test result is sent to the display terminal.
如图 6所示, 测试终端 50还包括: 提醒模块 54, 配置为根据所述应用 和 /或所述连接方式建立与显示终端的连接, 发送所述测试结果之后, 发送 测试结果提醒消息; 或者, 根据所述应用和 /或所述连接方式建立与显示终 端的连接时, 在发送所述测试结果的同时发送测试结果提醒消息。  As shown in FIG. 6, the test terminal 50 further includes: a reminding module 54 configured to establish a connection with the display terminal according to the application and/or the connection manner, and send a test result reminding message after sending the test result; or And establishing a connection with the display terminal according to the application and/or the connection manner, and sending a test result reminding message while transmitting the test result.
为实现上述方法, 本发明实施例提供了一种显示终端 70, 显示终端 70 作为用于接收自动化测试结果的用户终端, 如图 7 所示, 包括: 显示模块 71, 配置为接收测试结果并显示; 其中, 所述测试结果为: 基于测试终端 根据应用和 /或连接方式建立与显示终端的连接得到的测试结果; 所述应用 及所述连接方式由所述测试结果上报策略得到。 显示模块 71, 还配置为在接收所述测试结果之后, 接收测试结果提醒 消息; 或者, 在接收所述测试结果的同时, 接收测试结果提醒消息。 In order to implement the above method, the embodiment of the present invention provides a display terminal 70. The display terminal 70 is used as a user terminal for receiving an automated test result. As shown in FIG. 7, the display terminal 71 includes: a display module 71 configured to receive test results and display The test result is: based on the test terminal establishing a test result obtained by connecting with the display terminal according to the application and/or the connection manner; the application and the connection manner are obtained by the test result reporting strategy. The display module 71 is further configured to: after receiving the test result, receive a test result reminder message; or, while receiving the test result, receive the test result reminder message.
本发明实施例提供一种配置为接收 /发送自动化测试结果的系统, 该系 统包括测试终端、 显示终端; 其中, 所述测试终端为图 5或图 6所示的测 试终端 50, 显示终端为图 7所示的显示终端 70。  The embodiment of the present invention provides a system configured to receive/send automated test results, where the system includes a test terminal and a display terminal. The test terminal is the test terminal 50 shown in FIG. 5 or FIG. Display terminal 70 shown in 7.
在实际应用中, 本发明提供的装置或系统装置可作为一个单独的系统, 还可以是在现有的终端如个人计算机 ( PC, Personal Computer ) 中增加完 成不同功能的逻辑单元。  In practical applications, the device or system device provided by the present invention can be used as a separate system, or a logical unit that adds different functions to an existing terminal such as a personal computer (PC).
当在 PC中增加逻辑单元时, 监控模块 51、 策略获取模块 52、 发送模 块 53、 提醒模块 54以及显示模块 71可由位于 PC中的中央处理器(CPU, Central Processing Unit )、 数字信号处理器(DSP, Digital Signal Processor ), 或可编程门阵列 (FPGA, Field Programmable Gate Array ) 实现。  When a logic unit is added to the PC, the monitoring module 51, the policy acquisition module 52, the sending module 53, the reminding module 54, and the display module 71 can be implemented by a central processing unit (CPU) located in the PC, and a digital signal processor ( DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA) implementation.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Industrial applicability
本发明实施例提供了一种发送 /接收自动化测试结果的方法、测试终端、 显示终端及系统, 测试终端实时监控自动测试过程的运行; 确定具有选定 测试项的测试结果时, 获取测试结果上报策略, 根据所述测试结果上报策 略得到测试终端与显示终端建立连接的应用及连接方式; 根据所述应用和 / 或所述连接方式建立测试终端与显示终端的连接, 发送所述测试结果; 显 示终端接收并显示所述测试结果; 由此, 能随时随地实时获知自动化测试 的结果, 使得测试人员在非测试现场的情况下, 能及时获知自动化测试的 结果, 为测试人员的工作带来极大的方便性, 并大大的减小了企业的人力 成本。  The embodiment of the invention provides a method for transmitting/receiving an automated test result, a test terminal, a display terminal and a system, and the test terminal monitors the operation of the automatic test process in real time; when determining the test result with the selected test item, obtaining the test result report a policy, according to the test result reporting policy, obtaining an application and a connection mode for establishing a connection between the test terminal and the display terminal; establishing a connection between the test terminal and the display terminal according to the application and/or the connection mode, and transmitting the test result; The terminal receives and displays the test result; thereby, the result of the automated test can be obtained in real time and anytime, so that the tester can know the result of the automated test in time without the test site, and bring great work to the tester. The convenience and greatly reduced the labor cost of the enterprise.

Claims

权利要求书 claims
1、 一种发送自动化测试结果的方法, 所述方法包括: 1. A method for sending automated test results. The method includes:
测试终端实时监控自动测试过程的运行; The test terminal monitors the operation of the automatic test process in real time;
测试终端确定具有选定测试项的测试结果时, 获取测试结果上^艮策略, 根据所述测试结果上报策略得到测试终端与显示终端建立连接的应用及连 接方式; When the test terminal determines the test result with the selected test item, it obtains the test result reporting policy, and obtains the application and connection method for establishing a connection between the test terminal and the display terminal according to the test result reporting policy;
测试终端 4艮据所述应用和 /或所述连接方式建立测试终端与显示终端的 连接, 发送所述测试结果。 The test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection method, and sends the test result.
2、 根据权利要求 1所述的方法, 其中, 所述方法还包括: 测试终端根 据所述应用和 /或所述连接方式建立测试终端与显示终端的连接, 发送所述 测试结果之后, 发送测试结果提醒消息; 或者, 2. The method according to claim 1, wherein the method further includes: the test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection mode, and after sending the test result, sending the test Result reminder message; or,
测试终端 4艮据所述应用和 /或所述连接方式建立测试终端与显示终端的 连接, 发送所述测试结果时, 在发送所述测试结果的同时发送测试结果提 醒消息。 The test terminal establishes a connection between the test terminal and the display terminal according to the application and/or the connection method, and when sending the test result, sends a test result reminder message while sending the test result.
3、 根据权利要求 1所述的方法, 其中, 所述方法还包括: 当根据所述 测试结果上报策略得到测试终端与显示终端建立连接的所述应用时, 根据 所述测试结果上报策略获取所述应用对应的本端账号、 本端密码、 对端账 号; 3. The method according to claim 1, wherein the method further includes: when the application for establishing a connection between the test terminal and the display terminal is obtained according to the test result reporting policy, obtaining the application according to the test result reporting policy. The local account, local password, and peer account corresponding to the above application;
相应的, 所述测试终端 4艮据所述应用建立测试终端与显示终端的连接, 发送所述测试结果包括: Correspondingly, the test terminal establishes a connection between the test terminal and the display terminal according to the application, and sending the test result includes:
根据所述本端账号、 所述本端密码和所述对端账号建立所述连接, 通 过所述连接将所述测试结果发送至所述显示终端。 The connection is established based on the local account, the local password and the opposite account, and the test results are sent to the display terminal through the connection.
4、 根据权利要求 1所述的方法, 其中, 所述方法还包括: 当根据所述 测试结果上报策略得到测试终端与显示终端建立连接的所述连接方式时, 根据所述测试结果上报策略获取所述连接方式对应的地址、 本端账号、 本 端密码、 对端账号; 4. The method according to claim 1, wherein the method further includes: when the connection mode for establishing a connection between the test terminal and the display terminal is obtained according to the test result reporting strategy, obtaining the connection method according to the test result reporting strategy. The address corresponding to the connection method, local account, local Client password, peer account;
相应的, 所述测试终端根据所述连接方式建立测试终端与显示终端的 连接, 发送所述测试结果包括: Correspondingly, the test terminal establishes a connection between the test terminal and the display terminal according to the connection method, and sending the test result includes:
# ^据所述地址对应的端口、 所述本端账号、 所述本端密码和所述对端 账号建立所述连接, 通过所述连接将所述测试结果发送至所述显示终端。 # ^Establish the connection based on the port corresponding to the address, the local account number, the local password and the opposite end account number, and send the test result to the display terminal through the connection.
5、 一种接收自动化测试结果的方法, 所述方法包括: 5. A method for receiving automated test results, the method includes:
显示终端接收测试结果并显示; The display terminal receives the test results and displays them;
所述测试结果为: 基于测试终端根据应用和 /或连接方式建立测试终端 与显示终端的连接得到的测试结果; 所述应用及所述连接方式由所述测试 结果上报策略得到。 The test results are: test results obtained based on the test terminal establishing a connection between the test terminal and the display terminal according to the application and/or connection method; the application and the connection method are obtained by the test result reporting strategy.
6、 根据权利要求 5所述的方法, 其中, 所述方法还包括: 接收所述测 试结果之后, 接收测试结果提醒消息; 或者, 6. The method according to claim 5, wherein the method further includes: after receiving the test result, receiving a test result reminder message; or,
在接收所述测试结果的同时, 接收测试结果提醒消息。 While receiving the test results, a test result reminder message is received.
7、 一种测试终端, 所述测试终端作为用于发送自动化测试结果的用户 终端, 包括: 监控模块、 策略获取模块、 以及发送模块; 其中, 7. A test terminal, the test terminal serves as a user terminal for sending automated test results, including: a monitoring module, a policy acquisition module, and a sending module; wherein,
所述监控模块, 配置为实时监控自动测试过程的运行; The monitoring module is configured to monitor the operation of the automatic test process in real time;
所述策略获取模块, 配置为确定具有选定测试项的测试结果时, 获取 测试结果上报策略, 根据所述测试结果上报策略得到与显示终端建立连接 的应用及连接方式; The policy acquisition module is configured to obtain a test result reporting policy when determining a test result with a selected test item, and obtain an application and connection method for establishing a connection with the display terminal according to the test result reporting policy;
所述发送模块, 配置为根据所述应用和 /或所述连接方式建立与显示终 端的连接, 发送所述测试结果。 The sending module is configured to establish a connection with the display terminal according to the application and/or the connection mode, and send the test results.
8、 根据权利要求 7所述的测试终端, 其中, 所述测试终端还包括: 提醒模块, 配置为根据所述应用和 /或所述连接方式建立与显示终端的 连接, 发送所述测试结果之后, 发送测试结果提醒消息; 或者, 8. The test terminal according to claim 7, wherein the test terminal further includes: a reminder module configured to establish a connection with the display terminal according to the application and/or the connection mode, after sending the test result , send a test result reminder message; or,
根据所述应用和 /或所述连接方式建立与显示终端的连接时, 在发送所 述测试结果的同时发送测试结果提醒消息。 When establishing a connection with the display terminal according to the application and/or the connection method, when sending all Send a test result reminder message while describing the test results.
9、 根据权利要求 7所述的测试终端, 其中, 所述策略获取模块, 还配 置为当根据所述测试结果上报策略得到与显示终端建立连接的所述应用 时, 根据所述测试结果上报策略获取所述应用对应的本端账号、 本端密码、 对端账号; 9. The test terminal according to claim 7, wherein the policy acquisition module is further configured to report a policy according to the test result reporting policy when the application that establishes a connection with the display terminal is obtained according to the test result reporting policy. Obtain the local account, local password, and peer account corresponding to the application;
相应的, 所述发送模块, 配置为根据所述本端账号、 所述本端密码和 所述对端账号建立所述连接, 通过所述连接将所述测试结果发送至所述显 示终端。 Correspondingly, the sending module is configured to establish the connection based on the local account, the local password and the opposite account, and send the test results to the display terminal through the connection.
10、 根据权利要求 7 所述的测试终端, 其中, 所述策略获取模块, 还 配置为当根据所述测试结果上报策略得到与显示终端建立连接的所述连接 方式时, 根据所述测试结果上报策略获取所述连接方式对应的地址、 本端 账号、 本端密码、 对端账号; 10. The test terminal according to claim 7, wherein the policy acquisition module is further configured to: when the connection mode for establishing a connection with the display terminal is obtained according to the test result reporting policy, report according to the test result The policy obtains the address, local account, local password, and peer account corresponding to the connection method;
相应的, 所述发送模块, 配置为根据所述地址对应的端口、 所述本端 账号、 所述本端密码和所述对端账号建立所述连接, 通过所述连接将所述 测试结果发送至所述显示终端。 Correspondingly, the sending module is configured to establish the connection based on the port corresponding to the address, the local account, the local password and the opposite account, and send the test results through the connection. to the display terminal.
11、 一种显示终端, 所述显示终端作为用于接收自动化测试结果的用 户终端, 包括: 显示模块, 配置为接收测试结果并显示; 11. A display terminal, the display terminal serves as a user terminal for receiving automated test results, including: a display module configured to receive and display test results;
所述测试结果为: 基于测试终端根据应用和 /或连接方式建立与显示终 端的连接得到的测试结果; 所述应用及所述连接方式由所述测试结果上报 策略得到。 The test results are: test results based on the test terminal establishing a connection with the display terminal according to the application and/or connection mode; the application and the connection mode are obtained by the test result reporting policy.
12、 根据权利要求 11所述的显示终端, 其中, 所述显示模块, 还配置 为在接收所述测试结果之后, 接收测试结果提醒消息; 或者, 12. The display terminal according to claim 11, wherein the display module is further configured to receive a test result reminder message after receiving the test result; or,
在接收所述测试结果的同时, 接收测试结果提醒消息。 While receiving the test results, a test result reminder message is received.
13、 一种测试系统, 所述系统包括: 如权利要求 7至 10任一项所述的 测试终端和权利要求 11至 12任一项所述的显示终端。 13. A test system, the system comprising: a test terminal according to any one of claims 7 to 10 and a display terminal according to any one of claims 11 to 12.
PCT/CN2014/085787 2014-03-19 2014-09-02 Method, terminal, and system for transmitting/receiving result of automated test WO2015139428A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410103821.8A CN104935471A (en) 2014-03-19 2014-03-19 Method for sending/receiving automatic test result, terminals and system
CN201410103821.8 2014-03-19

Publications (1)

Publication Number Publication Date
WO2015139428A1 true WO2015139428A1 (en) 2015-09-24

Family

ID=54122447

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/085787 WO2015139428A1 (en) 2014-03-19 2014-09-02 Method, terminal, and system for transmitting/receiving result of automated test

Country Status (2)

Country Link
CN (1) CN104935471A (en)
WO (1) WO2015139428A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848372A (en) * 2010-03-24 2010-09-29 上海拍拍通网络科技有限公司 Remote monitoring system for network visual telephone and telephone
CN102184609A (en) * 2011-02-28 2011-09-14 三一重机有限公司 Remote anti-theft alarm system for engineering machinery
US20120065776A1 (en) * 2010-09-13 2012-03-15 Ipcomm Llc Method and Apparatus for Remote Monitoring of Daily Dispensing of Medication
CN103001840A (en) * 2012-11-07 2013-03-27 无锡津天阳激光电子有限公司 Method and device for internet of things of intelligent home
CN203414761U (en) * 2013-06-28 2014-01-29 上海宽岱电讯科技发展有限公司 Embedded engineering machinery monitoring system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087215A (en) * 2006-06-07 2007-12-12 英业达股份有限公司 Testing system and method for automatically receiving test results
CN201398196Y (en) * 2009-05-14 2010-02-03 复旦大学 Automatic monitoring system for communication network
CN102244592B (en) * 2010-05-11 2014-10-08 中国移动通信集团公司 Network service quality testing system, method, testing center and testing terminal
CN102316498B (en) * 2010-07-09 2014-12-10 中兴通讯股份有限公司 Automatic test method and system for wireless network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848372A (en) * 2010-03-24 2010-09-29 上海拍拍通网络科技有限公司 Remote monitoring system for network visual telephone and telephone
US20120065776A1 (en) * 2010-09-13 2012-03-15 Ipcomm Llc Method and Apparatus for Remote Monitoring of Daily Dispensing of Medication
CN102184609A (en) * 2011-02-28 2011-09-14 三一重机有限公司 Remote anti-theft alarm system for engineering machinery
CN103001840A (en) * 2012-11-07 2013-03-27 无锡津天阳激光电子有限公司 Method and device for internet of things of intelligent home
CN203414761U (en) * 2013-06-28 2014-01-29 上海宽岱电讯科技发展有限公司 Embedded engineering machinery monitoring system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XIA, XIAOJUN: "Automated monitoring and management system for multi-channel and load transformer", INFORMATION TECHNOLOGY, 30 September 2009 (2009-09-30), pages 111 - 113, XP055224918 *

Also Published As

Publication number Publication date
CN104935471A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
AU2016334120B2 (en) Cloud based system and method for managing messages regarding cable test device operation
US20080219173A1 (en) Network test apparatus, network test method and network test program
WO2016082543A1 (en) Device testing method and testing device
CN105915367B (en) online debugging method, terminal and server
CN103428046A (en) Interface protocol test method and terminal
CN105471678A (en) Method and system for detecting networking failure reason of household appliance and mobile terminal
CN105809948A (en) Automatic testing method and system for infrared control equipment
CN106533823B (en) Automatic test system and method and recyclable sending device thereof
JP6484270B2 (en) Measuring apparatus and measuring method
CN112822073B (en) Test method, device, system, electronic equipment and readable storage medium
CN109765833A (en) A method of monitoring Internet of Things equipment state of a control
CN106598793B (en) Test system and test method based on BIOS serial port log data
WO2012136050A1 (en) Method, system and device for service signaling tracking
CN103001822A (en) Network anomaly handling method and device
CN111200522B (en) Port detection method, device, equipment and storage medium
WO2015139428A1 (en) Method, terminal, and system for transmitting/receiving result of automated test
CN110166322B (en) Detection method and related device for metering automation terminal
CN103139036B (en) Electronic equipment and information processing method thereof
CN116132509A (en) Railway safety computer platform communication method, device, equipment and medium
CN112559289B (en) Monitoring system
CN111064794B (en) Fault detection method, device, equipment and storage medium of terminal equipment
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN105808418B (en) Test machine register method, apparatus and system
CN114258050A (en) Method and module for batch distribution of multiple devices and batch network unbinding
CN109343497A (en) Data monitoring method and production management system

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

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

Country of ref document: EP

Kind code of ref document: A1