WO2018014778A1 - 自动化测试修复方法及其系统 - Google Patents

自动化测试修复方法及其系统 Download PDF

Info

Publication number
WO2018014778A1
WO2018014778A1 PCT/CN2017/092822 CN2017092822W WO2018014778A1 WO 2018014778 A1 WO2018014778 A1 WO 2018014778A1 CN 2017092822 W CN2017092822 W CN 2017092822W WO 2018014778 A1 WO2018014778 A1 WO 2018014778A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
code
error code
tested
database
Prior art date
Application number
PCT/CN2017/092822
Other languages
English (en)
French (fr)
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 WO2018014778A1 publication Critical patent/WO2018014778A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/04Diagnosis, testing or measuring for television systems or their details for receivers

Definitions

  • the present disclosure relates to the field of testing techniques, for example, to an automated test repair method and system thereof.
  • the tester tests the software
  • the problem is found and reported to the developer.
  • the developer re-submits the test according to the feedback problem, and the tester re-tests to confirm that the problem has been modified.
  • it may happen in different projects, and feedback should be given to developers to modify. Due to the different experience of testers and developers, there is currently no problem database system for query analysis, or the existing database is not smart enough; causing the same problem to be solved repeatedly, spending unnecessary time, and extremely wasting manpower and material resources. And lead to an extended production cycle.
  • the present disclosure proposes an automated test repair method and system thereof to solve the technical problems of existing tests for the same problem or similar problems, repeated solutions due to different processors, wasted time and manpower.
  • an automated test repair method comprising:
  • test end After the test end is communicatively connected to the tested end, the test end starts the test;
  • the tested end loads a software program, and the tested end returns a test error code to the Test terminal
  • test end queries in the test code database whether a test code matches the test error code
  • test code database feeds back the processing record of the test code to the test end; if no test code matches the test error code, the test end will The test error code and its processing record are uploaded to the test code database for storage;
  • the tested end loads the modified software program until the test is completed.
  • test end is in communication connection with the tested end, and includes:
  • test end initiates a connection request to the tested end through the serial port or the http protocol;
  • the tested terminal responds to the connection request and feeds back a response field
  • test end determines that the response field is an acknowledgment field, it establishes a connection with the tested terminal; when it is determined that the response field is a fault field, it prompts a connection failure and ends the test.
  • the tested end loads the software program
  • the step of the tested end returning the test error code to the test end includes:
  • the test terminal sends a test case to the tested end, and the tested end runs the test case to perform a test of the corresponding function;
  • the tested end returns a corresponding test result for each test case, and the test result includes a test pass and a test error code.
  • the processing record corresponding to the test code in the test code database corresponds to the content of the test error code.
  • test end queries, in the test code database, whether a test code matches the test error code including:
  • the test end queries whether the same test code is in the test code database according to the returned test error code, and indicates that there is a matching test code; and if there is no identical test code, the test error code is a new test code. .
  • test code database feeds back the processing record of the test code to the test end, including:
  • the test code database monitors the type of the test error code if a test code matches the test error code
  • test error code is a configuration problem test code
  • the test code database obtains a problem description of the configuration problem test code and a processing record thereof, and displays a corresponding configuration instruction request according to the input configuration parameter;
  • test error code is a software problem test code
  • the test code database feeds back a processing record corresponding to the software problem test code to the test end.
  • test end uploads the test error code and the processing record thereof to the test code database for storage, including:
  • the test terminal sends the content of the test error code described by the tester and the method for reproducing the test error code to the development terminal;
  • the development terminal transmits the processed test error code, the method for reproducing the test error code, and the processing record of the test error code to the test terminal, and the test terminal uploads to the test code database for storage;
  • an automated test repair system configured to perform the automated test repair method, including a test end, a test end, a test code database, and a development terminal;
  • the test end After the test end is communicably connected to the tested end, the test end starts a test; the tested end loads a software program, and the tested end returns a test error code to the test end; the test end is at Querying, in the test code database, whether a test code matches the test error code; if a test code matches the test error code, the test code database feeds back a processing record of the test code to the test end If no test code matches the test error code, the test end uploads the test error code and its processing record to the test code database for storage; and the tested end loads the modified software program until Finished test.
  • test end includes:
  • connection request module is configured to initiate a connection request to the tested terminal through the serial port or the http protocol;
  • connection processing module configured to establish a connection with the tested terminal when the judgment response field is an acknowledgement field, and to indicate that the response field is a fault field, prompting a connection failure, and ending the test;
  • the tested end includes:
  • the response module is configured to respond to the connection request and feed back a response field.
  • test end further includes:
  • the sending module is configured to send the test case to the tested end
  • the tested end further includes:
  • Running a module configured to run the test case to perform a test of the corresponding function
  • Each test case is returned to return a corresponding test result, which includes test pass and test error code.
  • the processing record corresponding to the test code in the test code database corresponds to the content of the test error code.
  • test end further includes:
  • the query module is configured to query, in the test code database, whether the test code matches the test error code, according to the returned test error code, query whether the test code has the same test code in the test code database, and if there is a match The test code; and the absence of the same test code indicates that the test error code is the new test code.
  • test code database includes:
  • a determining module configured to monitor a type of the test error code if a test code matches the test error code
  • a processing module configured to: when the test error code is a configuration problem test code, obtain a problem description of the configuration problem test code and a processing record thereof, and display, and generate a corresponding configuration instruction request according to the input configuration parameter;
  • the feedback module is configured to: when the test error code is a software problem test code, feed back a processing record corresponding to the software problem test code to the test end.
  • test end further includes:
  • the uploading module is configured to: when the test code is not matched with the test error code, send the content of the test error code described by the tester and the method for reproducing the test error code to the development terminal; and receive the test error code and the test error code. Reproducing method and processing error code processing record, and uploading to the test code database storage;
  • the development terminal includes:
  • a sorting module configured to transmit the processed test error code, the test error code reproduction method, and the test error code processing record to the test end;
  • the transmission module is configured to send the modified software program to the tested terminal.
  • the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the methods described above.
  • the present disclosure also provides an electronic device, including:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
  • the automatic test repair method includes the following steps: after the test end is in communication connection with the tested end, the test end starts a test; the tested end loads a software program, and the tested end Returning a test error code to the test end; the test end queries the test code database whether a test error code matches the test error code; if the test code matches the test error code, the test code The database feeds back the processing of the test code to the test end; if no test code matches the test error code, the test end uploads the test error code and its processing record to the test code database. Storage; the tested end loads the modified software program Order until the test is complete. For the test error code that appears in the test, it is automatically checked in the test code database whether the test error code has appeared before, and the previous processing method is given. Such different testers or developers can greatly reduce their resolution time for the same test error code.
  • Embodiment 1 is a flow chart of Embodiment 1 of an automated test repair method provided by the present disclosure
  • FIG. 4 is a flow chart showing a test code matching the test error code in the step 400 disclosed in the first embodiment
  • FIG. 5 is a flowchart of the case where there is no test code matching the test error code in the step 400 disclosed in the first embodiment
  • FIG. 6 is a structural block diagram of an automated test repair system provided by the present disclosure.
  • FIG. 7 is a schematic diagram showing the hardware structure of an electronic device according to the present disclosure.
  • the test code database is automatically queried whether the test error code has appeared before, and the previous processing method is given.
  • Such different testers or developers can greatly reduce their resolution time for the same test error code.
  • FIG. 1 is a flowchart of an automated test repair method provided by the present disclosure.
  • the automated test repair method includes:
  • Step 100 After the test end is communicatively connected to the tested end, the test end starts the test.
  • Step 200 The tested end loads a software program, and the tested end returns a test error code to the test end.
  • Step 300 The test end queries, in the test code database, whether a test code matches the test error code.
  • Step 400 If a test code matches the test error code, the test code database feeds back the processing record of the test code to the test end; if no test code matches the test error code, The test end uploads the test error code and its processing record to the test code database for storage.
  • Step 500 The tested end loads the modified software program until the test is completed.
  • the test end may adopt a PC (personal computer) test end, which is set to start various test cases, such as setting test steps, options, parameters, and the like.
  • the tested end can use a set-top box terminal, which is set to execute the test case and return the test result (including whether it is normal, which test problem, the test question is in the form of test error code feedback).
  • the test code database can be a cloud database, which is set to store problems and their solutions (ie, process records) that occur during the test.
  • the test end is communicatively connected to the tested end, and includes:
  • Step 101 The test end initiates a connection request to the tested end through a serial port or an http protocol.
  • connection test request is initiated by the automated test software program in the test terminal through the serial port or the http protocol (a communication protocol) to the test repair software program in the test terminal.
  • Step 102 The tested terminal responds to the connection request and feeds back a response field.
  • the test repair software program in the tested end responds to the connection request and feeds back a response field. If the connection is successful, the response field is the confirmation field; if there is a failure during the connection, the response field is the failure field.
  • Step 103 The test end determines that the response field is an acknowledgment field, establishes a connection with the tested terminal, and determines that the response field is a fault field, prompts a connection failure, and ends the test.
  • test end judges that the response field is the confirmation field
  • a connection is established between the internal automated test software program and the test repair software program of the tested end. If the test end judges that the response field is a fault field, the alarm prompts a connection failure (serial port failure or network failure) and ends the test.
  • test cases for each function of the tested end including:
  • Step 201 The test end sends a test case to the tested end, and the tested end runs the test case to perform a test of the corresponding function.
  • Step 202 The tested end returns a corresponding test result for each test case, and the test result includes a test pass and a test error code.
  • test result shows that the test passes, and if there is a problem, the test result is the corresponding test question.
  • the tested end returns the test question in the form of a test error code.
  • the test error code is a series of four-byte numbers set to indicate the content of the test question, that is, different numbers represent different test questions, such as 0X31 4157 indicating that the front panel is not responding.
  • the test terminal determines whether each test case is completed (including the test is completed and has no problem), and then initiates a test end instruction to the tested end to end the test. If there is a problem with the test case, it means that it has not been completed. For example, if some test cases have test error codes after testing, you need to solve the test problems indicated by these test error codes, and then continue to test according to the preset test cases. In this embodiment, after all the test cases are tested, the test error code is uniformly solved and then re-tested.
  • the method for solving these test error codes is first in the test code database. Check if there is a test code (that is, a test error code that has occurred before) that matches the test error code.
  • the query method is that the test end queries the test code database for the same test error code according to the returned test error code, and indicates that the test code matches the test error code; if there is no same test error code, the test indicates that the test The error code is the new test code.
  • the information of the test error code and the test code database is a one-to-one correspondence, that is, in the test code database, the processing record corresponding to the test code of the text description is called according to the content of the test error code (ie, the solution corresponding to the test code) This makes it easy to visualize the feedback test code.
  • the processing record may also include the name and contact information of the developer and the tester processed at that time; to facilitate the inquiry.
  • the test code includes a configuration problem test code and a software problem test code.
  • Configuration issues are issues with settings that are not related to the software program; for example, the correct hardware type is pt6964, the front panel of the 7-button type. If the hardware type is incorrectly configured as the pt650, 3 button type front panel when submitting the test, the configuration problem is: the front panel operation is not responding or the response is not normal; the configuration problem test code is 0X31 4157.
  • Software problems are problems with the software program itself. Different approaches are taken for different issues. As shown in FIG. 4, in the step 400, if the test code matches the test error code, the test code database feeds back the processing record of the test code to the test end, including:
  • Step 401 If a test code matches the test error code, the test code database monitors the type of the test error code.
  • test error code is a configuration problem test code
  • the test code database performs step 402; and the test error code is determined to be a software problem test code, and the test code database performs step 403. According to the value of the test error code, it can be judged whether it is a configuration problem test code or a software problem test code.
  • Step 402 If the test error code is a configuration problem test code, the test code database obtains a problem description of the configuration problem test code and a processing record thereof, and displays a corresponding configuration instruction request according to the input configuration parameter.
  • the tester can solve the problem by modifying the configuration option directly in the test phase according to the displayed processing record, including: the test end according to the test error code, obtaining the configuration problem test code problem description and corresponding processing from the test code database. Record and display; the tester modifies the configuration parameters on the test end according to the processing record, and the test end generates a corresponding configuration instruction request according to the configuration parameters.
  • the test repair software program of the tested end is started (that is, tested according to the new configuration parameters).
  • the tester can also record the details of the configuration and store it in the problem description or processing record of the configuration problem test code, and then upload it to the test code database storage to provide a more detailed reference for subsequent testers.
  • the configuration problem test code is directly modified by the tester. It is not necessary to feedback the test error code to the developer. The developer will follow up the test error code and re-run the software test to confirm whether the test error code is resolved. Time; saves developers time.
  • Step 403 If the test error code is a software problem test code, the test code database feeds back a processing record corresponding to the software problem test code to the test end.
  • the test code database stores the related description and the reproduction method of the test error code, and the method or the step for solving the test error code is found through the query.
  • the test end obtains the test code (problem description and reproduction method) and the processing record of the test code from the test code database, and the tester records the test code and the test code displayed on the test end (that is, the test error code is solved previously). The idea method) is forwarded to the developer.
  • step 500 is executed, and the modified program of the development terminal is loaded on the tested end, and the process returns to step 100 to reconnect the test.
  • step 500 is executed, and the modified program of the development terminal is loaded on the tested end, and the process returns to step 100 to reconnect the test.
  • step 400 if no test code matches the test error code, the test error code is a new problem, and the step 400 further includes:
  • Step 410 When no test code matches the test error code, the test terminal sends the content of the test error code described by the tester and the method for reproducing the test error code to the development terminal;
  • the tester can describe the content of the test error code (what is faulty) and its reproduction method (ie, under what conditions the test error code is generated) on the test side and send it to the developer.
  • Step 420 The development terminal transmits the processed test error code, the method for reproducing the test error code, and the processing record of the test error code to the test terminal, and the test terminal uploads to the test code database for storage;
  • the development terminal that is, the terminal used by the developer transmits the test error code, the test error code reproduction method, and the test error code processing record (the steps and methods for solving the test error code) to the test end, and then Uploaded by the test terminal to the test code database storage;
  • Step 430 Send the modified software program to the tested terminal.
  • the development terminal submits the modified software program to the tester for testing again, that is, returns to step 100.
  • you can quickly solve the problem by querying the test code database, which greatly reduces the difficulty and saves time.
  • test error code the error code replay method, and the test error code processing record are not directly uploaded to the test code database through the development terminal. Because the development terminal involves the development of all software programs (for the development of core, important encrypted content), if the development terminal is connected to the test code database, the software program may be leaked.
  • the present disclosure also provides an automated test repair system, as shown in FIG. 6, including a test end 10, a test end 20, a test code database 30, and a development terminal 40.
  • the test end 10 Start the test after communicating with the tested terminal 20.
  • the tested terminal 20 returns a test error code to the test end, and the test terminal 10 queries the test code database 30 whether the test code matches the test error code; when the test code matches the test error code, the test code
  • the database 30 feeds back the corresponding processing record to the test terminal 10; when no test code matches the test error code, the test terminal 10 uploads the test error code and its processing record to the test code database for storage.
  • the tested terminal 20 loads the modified software program of the development terminal 40, and the test terminal and the tested terminal continue to communicate and start the test until the test is completed.
  • test end includes:
  • connection request module is configured to initiate a connection request to the tested terminal through the serial port or the http protocol;
  • connection processing module configured to establish a connection with the tested terminal when the judgment response field is an acknowledgement field, and to indicate that the response field is a fault field, prompting a connection failure, and ending the test;
  • the tested end includes:
  • the response module is configured to respond to the connection request and feed back a response field.
  • test end further includes:
  • the sending module is configured to send the test case to the tested end
  • the tested end further includes:
  • Running a module configured to run the test case to perform a test of the corresponding function
  • Each test case is returned to return a corresponding test result, which includes test pass and test error code.
  • the processing record corresponding to the test code in the test code database corresponds to the content of the test error code.
  • test end further includes:
  • the query module is configured to query whether the test code matches the test error code in the test code database, according to the returned test error code, whether the test code database has the same test code, and the matching test code ; and no the same test The test code indicates that the test error code is a new test code.
  • test code database includes:
  • a determination mode configured to monitor a type of the test error code if a test code matches the test error code
  • a processing module configured to: when the test error code is a configuration problem test code, obtain a problem description of the configuration problem test code and a processing record thereof, and display, and generate a corresponding configuration instruction request according to the input configuration parameter;
  • the feedback module is configured to: when the test error code is a software problem test code, feed back a processing record corresponding to the software problem test code to the test end.
  • test end further includes:
  • the uploading module is configured to: when the test code is not matched with the test error code, send the content of the test error code described by the tester and the method for reproducing the test error code to the development terminal; and receive the test error code and the test error code. Reproducing method and processing error code processing record, and uploading to the test code database storage;
  • the development terminal includes:
  • a sorting module configured to transmit the processed test error code, the test error code reproduction method, and the test error code processing record to the test end;
  • the transmission module is configured to send the modified software program to the tested terminal.
  • the unit described as a separate component may or may not be physically divided
  • the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the methods of the above-described embodiments.
  • the present disclosure also provides a schematic diagram of a hardware structure of an electronic device, where the electronic device can perform corresponding method steps performed by the test terminal.
  • the electronic device test end
  • the electronic device includes:
  • At least one processor 11 is exemplified by a processor 11 in FIG. 8; a display screen 12; and a memory 13 may further include a communication interface 14 and a bus 15. Among them, the processor 11, the display screen 12, the memory 13, and the communication interface 14 can complete communication with each other through the bus 15.
  • the display screen 12 is set to display a preset user guidance interface in the initial setting mode.
  • Communication interface 14 can transmit information.
  • the processor 11 can call the logic instructions in the memory 13 to perform the methods in the above embodiments.
  • logic instructions in the memory 13 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 13 is a computer readable storage medium, and can be configured to store a software program, a computer executable program, a program instruction or a module corresponding to the method in the embodiment of the present disclosure.
  • the processor 11 executes the function application and the data processing by executing a software program, an instruction or a module stored in the memory 13, that is, the method in the above embodiment is implemented.
  • the memory 13 may include a storage program area and a storage data area, wherein the program area is stored
  • the operating system, an application required for at least one function may be stored; the storage data area may store data created according to the use of the terminal device, and the like.
  • the memory 13 may include a high speed random access memory, and may also include a nonvolatile memory. For example, a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • the automatic test repairing method and system thereof provided by the embodiments of the present disclosure automatically determine whether the returned test error code is a problem that has been encountered, and if yes, gives a previous processing method, including information about the relevant personnel at the time to solve the problem, This can greatly help the tester or developer to solve the test error code, greatly shortening the time to solve the test error code; for the configuration problem, directly adjust the relevant configuration options and corresponding fields in the test phase to start the test repair software program. To test and confirm the status after configuration, to prevent such configuration problems from being transferred to the developer, which greatly saves the developer's time for troubleshooting configuration problems; for the test error codes that have not appeared in the past, the error code is recorded in detail.
  • test error code is also solved by the developer. After the developer solves the test error code, the detailed method for solving the test error code is recorded under the corresponding test error code, and the next test is encountered for the next test. Error code provides help, shortening the solution test Error of time. This will avoid the same test error code, different processors, still need to spend a lot of time and effort to solve the test error code that has appeared in the past, which greatly saves the company's labor costs and shortens the product development cycle.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

一种自动化测试修复方法及其系统,所述自动化测试修复方法包括步骤:测试端与被测试端通信连接后启动测试;被测试端返回测试错误码给测试端,测试端在测试码数据库中查询是否有测试代码与所述测试错误码匹配;有测试代码与所述测试错误码匹配时,所述测试码数据库反馈对应的处理记录给测试端;没有测试代码与所述测试错误码匹配时,测试端将测试错误码及其处理记录上传至测试码数据库中存储;以及被测试端加载开发终端修改后的软件程序,返回测试端与被测试端通信连接后启动测试骤、直至测试完成。

Description

自动化测试修复方法及其系统 技术领域
本公开涉及测试技术领域,例如涉及一种自动化测试修复方法及其系统。
背景技术
在现在信息技术日新月异的时代,产品更新换代十分频繁。功能需求的频繁变动,无论是硬件上的变动还是软件的变动都会导致软件的重复测试,大量的重复测试严重花费了大量的测试人力资源。如何降低人工的测试成本,使自动化测试变得尤为迫切。
目前测试人员测试软件时,发现问题并把问题报给开发人员,开发人员根据反馈的问题,修改软件后重新提交进行测试,测试人员重新测试确认问题已修改。对于一些同样的问题,可能会发生在不同的项目中,都要反馈给开发人员来修改。由于各测试人员、开发人员的经验不同,目前也没有一个问题数据库系统可供查询分析,或现有的数据库不够智能;导致同一个问题需要重复解决、花费不必要的时间,极其浪费人力物力,并导致生产周期延长。
因此,现有技术还有待于改进和发展。
发明内容
本公开提出一种自动化测试修复方法及其系统,以解决现有测试对于相同问题或相似问题、由于处理人不同导致重复解决、浪费时间和人力的技术问题。
第一方面,提供一种自动化测试修复方法,包括:
测试端与被测试端通信连接后,所述测试端启动测试;
所述被测试端加载软件程序,所述被测试端返回测试错误码给所 述测试端;
所述测试端在测试码数据库中查询是否有测试代码与所述测试错误码匹配;
若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录至所述测试端;若没有测试代码与所述测试错误码匹配时,所述测试端将所述测试错误码及其处理记录上传至所述测试码数据库中存储;以及
所述被测试端加载修改后的软件程序,直至测试完成。
可选的,所述测试端与被测试端通信连接,包括:
测试端通过串口或者http协议向被测试端发起连接请求;
所述被测试端响应所述连接请求并反馈响应字段;以及
所述测试端判断所述响应字段为确认字段时,与所述被测试端建立连接;判断所述响应字段为故障字段时,提示连接故障,结束测试。
可选的,所述被测试端加载软件程序,所述被测试端返回测试错误码给所述测试端的步骤包括:
所述测试端发送测试用例至被测试端,所述被测试端运行所述测试用例进行相应功能的测试;以及
所述被测试端每完成一个测试用例返回对应的测试结果,所述测试结果包括测试通过和测试错误码。
可选的,所述测试码数据库中的所述测试代码对应的处理记录与所述测试错误码的内容相对应。
可选的,所述测试端在测试码数据库中查询是否有测试代码与所述测试错误码匹配,包括:
所述测试端根据返回的测试错误码,在测试码数据库中查询是否有相同的测试代码,有则表示有匹配的测试代码;以及没有相同的测试代码则表示该测试错误码为新的测试代码。
可选的,所述若有测试代码与所述测试错误码匹配时,所述测试 码数据库反馈所述测试代码的处理记录至所述测试端,包括:
若有测试代码与所述测试错误码匹配时,所述测试码数据库监测所述测试错误码的类型;
若所述测试错误码为配置问题测试代码,则所述测试码数据库获取配置问题测试代码的问题描述及其处理记录并显示,根据输入的配置参数生成对应的配置指令请求;以及
若所述测试错误码为软件问题测试代码,则所述测试码数据库将软件问题测试代码对应的处理记录反馈给所述测试端。
可选的,所述没有测试代码与所述测试错误码匹配时,所述测试端将测试错误码及其处理记录上传至所述测试码数据库中存储,包括:
没有测试代码与所述测试错误码匹配时,所述测试端将测试人员描述的测试错误码的内容及测试错误码的重现方法发送给开发终端;
所述开发终端将整理后的测试错误码、测试错误码的重现方法及测试错误码的处理记录传输给所述测试端,通过所述测试端上传至所述测试码数据库存储;以及
将修改后的软件程序发送给所述被测试端。
第二方面,提供一种设置为执行所述的自动化测试修复方法的自动化测试修复系统,包括测试端、被测试端、测试码数据库和开发终端;
所述测试端与所述被测试端通信连接后,所述测试端启动测试;所述被测试端加载软件程序,所述被测试端返回测试错误码给所述测试端;所述测试端在所述测试码数据库中查询是否有测试代码与所述测试错误码匹配;若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录至所述测试端;若没有测试代码与所述测试错误码匹配时,所述测试端将测试错误码及其处理记录上传至所述测试码数据库中存储;以及所述被测试端加载修改后的软件程序,直至测试完成。
可选的,所述测试端包括:
连接请求模块,设置于通过串口或者http协议向被测试端发起连接请求;
连接处理模块,设置于判断响应字段为确认字段时,与所述被测试端建立连接;以及判断所述响应字段为故障字段时,提示连接故障,结束测试;
所述被测试端包括:
响应模块,设置于响应所述连接请求并反馈响应字段。
可选的,所述测试端还包括:
发送模块,设置于发送测试用例至被测试端;
所述被测试端还包括:
运行模块,设置于运行所述测试用例进行相应功能的测试;以及
每完成一个测试用例返回对应的测试结果,所述测试结果包括测试通过和测试错误码。
可选的,所述测试码数据库中的所述测试代码对应的处理记录与所述测试错误码的内容相对应。
可选的,所述测试端还包括:
查询模块,设置于在测试码数据库中查询是否有测试代码与所述测试错误码匹配时,根据返回的测试错误码,在测试码数据库中查询是否有相同的测试代码,有则表示有匹配的测试代码;以及没有相同的测试代码则表示该测试错误码为新的测试代码。
可选的,所述测试码数据库包括:
判断模块,设置于若有测试代码与所述测试错误码匹配时,监测所述测试错误码的类型;
处理模块,设置于若所述测试错误码为配置问题测试代码时,获取配置问题测试代码的问题描述及其处理记录并显示,根据输入的配置参数生成对应的配置指令请求;
反馈模块,设置于若所述测试错误码为软件问题测试代码时,将软件问题测试代码对应的处理记录反馈给所述测试端。
可选的,所述测试端还包括:
上传模块,设置于没有测试代码与所述测试错误码匹配时,将测试人员描述的测试错误码的内容及测试错误码的重现方法发送给开发终端;以及接收测试错误码、测试错误码的重现方法及测试错误码的处理记录,并上传至所述测试码数据库存储;
所述开发终端包括:
整理模块,设置于将整理后的测试错误码、测试错误码的重现方法及测试错误码的处理记录传输给所述测试端;
传输模块,设置于将修改后的软件程序发送给所述被测试端。
本公开还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述的方法。
本公开还提供了一种电子设备,包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述的方法。
一种自动化测试修复方法及其系统,所述自动化测试修复方法包括步骤:测试端与被测试端通信连接后,所述测试端启动测试;所述被测试端加载软件程序,所述被测试端返回测试错误码给所述测试端;所述测试端在测试码数据库中查询是否有测试错误码与所述测试错误码匹配;若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录至至所述测试端;若没有测试代码与所述测试错误码匹配时,所述测试端将所述测试错误码及其处理记录上传至所述测试码数据库中存储;所述被测试端加载修改后的软件程 序,直至测试完成。针对测试出现的测试错误码,自动在测试码数据库查询该测试错误码是否曾经出现过,是则给出之前的处理方法。这样不同的测试人员或开发人员针对相同的测试错误码就能大大缩短其解决时间。
附图说明
为了清楚地说明本公开实施例中的技术方案,下面将对本公开实施例描述中使用的附图进行介绍。
图1是本公开提供的自动化测试修复方法实施例一的流程图;
图2是实施例一公开的步骤100的流程图;
图3是实施例一公开的步骤200的流程图;
图4是实施例一公开的步骤400中有测试代码与测试错误码匹配时的流程图;
图5是实施例一公开的步骤400中没有测试代码与所述测试错误码匹配时的流程图;
图6是本公开提供的自动化测试修复系统的结构框图;
以及
图7为本公开的电子设备的硬件结构示意图。
具体实施方式
为使本公开的采用的技术方案更加清楚,下面将结合附图对本公开实施例的技术方案作详细描述,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。在不冲突的情况下,以下实施例以及实施例中的技术特征可以相互任意组合。
实施例一
本公开实施例中,针对测试出现的测试错误码,自动在测试码数据库查询该测试错误码是否曾经出现过,是则给出之前的处理方法。 这样不同的测试人员或开发人员针对相同的测试错误码就能大大缩短其解决时间。
请参阅图1,图1是本公开提供的自动化测试修复方法流程图。所述自动化测试修复方法包括:
步骤100、测试端与被测试端通信连接后,所述测试端启动测试。
步骤200、所述被测试端加载软件程序,所述被测试端返回测试错误码给所述测试端。
步骤300、所述测试端在测试码数据库中查询是否有测试代码与所述测试错误码匹配。
步骤400、若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录至所述测试端;若没有测试代码与所述测试错误码匹配时,所述测试端将所述测试错误码及其处理记录上传至所述测试码数据库中存储。
步骤500、所述被测试端加载修改后的软件程序,直至测试完成。
本实施例中,所述测试端可采用PC(personal computer,个人电脑)测试端,其设置为启动各种测试用例、如设置测试的步骤、选项、参数等内容。被测试端可采用机顶盒终端,其设置为执行测试用例并返回测试结果(包括是否正常、有哪些测试问题,测试问题以测试错误码的形式反馈)。测试码数据库可采用云端数据库,其设置为存储测试过程中出现的问题及其解决方案(即处理记录)。
所述步骤100中,如图2所示,所述测试端与被测试端通信连接,包括:
步骤101、测试端通过串口或者http协议向被测试端发起连接请求。
由测试端内的自动化测试软件程序通过串口或者http协议(一种通讯协议)向被测试端内的测试修复软件程序发起连接请求。
步骤102、所述被测试端响应所述连接请求并反馈响应字段。
所述被测试端内的测试修复软件程序响应所述连接请求并反馈响应字段。若成功连接,则响应字段为确认字段;若连接时出现故障,则响应字段为故障字段。
步骤103、所述测试端判断所述响应字段为确认字段时,与所述被测试端建立连接;判断所述响应字段为故障字段时,提示连接故障,结束测试。
测试端判断响应字段为确认字段时,其内部的自动化测试软件程序与被测试端的测试修复软件程序之间建立连接。若测试端判断响应字段为故障字段,则报警提示连接故障(串口故障或网络故障),结束测试。
在所述步骤200中,如图3所示,针对被测试端的各项功能有对应的各个测试用例,包括;
步骤201、所述测试端发送测试用例至被测试端,所述被测试端运行所述测试用例进行相应功能的测试。
步骤202、所述被测试端每完成一个测试用例返回对应的测试结果,所述测试结果包括测试通过和测试错误码。
若无问题则测试结果显示测试通过,若有问题则测试结果为对应的测试问题。被测试端以测试错误码的形式返回测试问题。测试错误码是一串四个字节的数字,设置为表示测试问题的内容,即不同的数字代表了不同的测试问题,如0X31 4157表示前面板无响应。
所述测试端判断各测试用例是否全部完成(包括测试完成且无问题),是则发起测试结束指令给被测试端结束测试。若测试用例有问题则表示没全部完成,例如某些测试用例测试后出现测试错误码,则需解决这些测试错误码所表示的测试问题后、再重新按照预先设置测试用例继续测试。本实施例是所有测试用例测试完成后,有测试错误码则统一解决后再重新测试。
本实施例中,解决这些测试错误码的方法是先在测试码数据库中 查询是否有测试代码(即之前出现过的测试错误码)与测试错误码匹配。查询方法是测试端根据返回的测试错误码,在测试码数据库中查询是否有相同的测试错误码,有则表示有测试代码与所述测试错误码匹配;没有相同的测试错误码则表示该测试错误码为新的测试代码。测试错误码和测试码数据库的信息为一一对应关系,即在测试码数据库中,根据测试错误码的内容就调出文字描述的测试代码对应的处理记录(即该测试代码对应的解决方案),这样便于反馈测试代码的直观化。优选的,处理记录还可包括当时处理的开发人和测试人的姓名、联系方式;以方便寻问。
本实施例中,所述测试代码包括配置问题测试代码和软件问题测试代码。配置问题是一些与软件程序无关的设置的问题;例如正确的硬件类型为pt6964,7按键类型的前面板。若提交测试时将硬件类型错误配置成了pt650,3按键类型的前面板,则配置问题为:前面板操作无响应或响应不正常;配置问题测试代码为0X31 4157。软件问题是软件程序自身的问题。针对不同的问题,采取不同的处理方式。则如图4所示,在所述步骤400中,若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录给测试端,包括:
步骤401、若有测试代码与所述测试错误码匹配时,所述测试码数据库监测所述测试错误码的类型。
判断所述测试错误码为配置问题测试代码,则测试码数据库执行步骤402;判断所述测试错误码为软件问题测试代码,则测试码数据库执行步骤403。根据测试错误码的数值即可判断是配置问题测试代码还是软件问题测试代码。
步骤402、若所述测试错误码为配置问题测试代码,则所述测试码数据库获取配置问题测试代码的问题描述及其处理记录并显示,根据输入的配置参数生成对应的配置指令请求。
对于配置问题,测试人员根据显示的处理记录直接在测试阶段通过修改配置选项即可解决,包括:测试端根据测试错误码、从测试码数据库中获取该配置问题测试代码的问题描述和对应的处理记录并显示;测试人员根据处理记录在测试端上修改配置参数,测试端根据配置参数生成对应的配置指令请求。在下次测试时根据该配置指令请求启动被测试端的测试修复软件程序(即根据新的配置参数进行测试)。
测试人员还可以将本次配置的细节记录下来并存储在该配置问题测试代码的问题描述或处理记录中,再上传至测试码数据库存储,为后续测试人员提供更加详细的参考。配置问题测试代码由测试人员直接修改,无需如现有测试方法(将测试错误码反馈给开发人员,由开发人员跟踪排查这个测试错误码,重新进行软件测试来确认测试错误码是否解决)花费大量的时间;节省了开发人员的时间。
步骤403、若所述测试错误码为软件问题测试代码,则所述测试码数据库将软件问题测试代码对应的处理记录反馈给所述测试端。
基于这个测试错误码在以前的测试中出现过,但由于测试人员不同,该测试人员并不知道这个测试错误码是以前项目上遇到的问题,也不知道这个测试错误码有重现方法和解决方案。该测试人员为了重现这个测试错误码会花费较长的时间,重现后才能想出解决方案。而本实施例在测试码数据库存储了该测试错误码的相关描述和重现方法,通过查询找到解决该测试错误码的方法或步骤。测试端从测试码数据库中获取测试代码(问题描述及重现方法)及测试代码的处理记录,测试人员把测试端上显示的测试代码及测试代码的处理记录(即以前解决该测试错误码的思路方法)转发给开发人员。
开发人员按照处理记录修改软件程序后通过开发终端重新提交给测试人员再次测试,即执行步骤500,在被测试端加载开发终端修改后的程序,返回步骤100重新连接测试。这样对于相同的测试错误 码,花费很少的时间就能解决,大大缩短了测试时间。
如图5所示,在所述步骤400中,若没有测试代码与所述测试错误码匹配,则说明该测试错误码为新问题,步骤400还包括:
步骤410、没有测试代码与所述测试错误码匹配时,所述测试端将测试人员描述的测试错误码的内容及测试错误码的重现方法发送给开发终端;
所述测试人员可在测试端上描述测试错误码的内容(哪里出现什么故障)及其重现方法(即什么条件下产生该测试错误码)并发送给开发人员。
步骤420、所述开发终端将整理后的测试错误码、测试错误码的重现方法及测试错误码的处理记录传输给所述测试端,通过所述测试端上传至所述测试码数据库存储;
开发人员处理后,开发终端(即开发人员使用的终端)将测试错误码、测试错误码的重现方法及测试错误码的处理记录(解决测试错误码的步骤和方法)传输给测试端,再由测试端上传至测试码数据库存储;
步骤430、将修改后的软件程序发送给所述被测试端。
开发终端提交修改后的软件程序给测试人员再次测试,即返回步骤100。以后遇到此类问题,通过查询测试码数据库即可快速解决,大大减轻了难度,节约了时间。
基于安全性能的考虑,不通过开发终端直接上传测试错误码、测试错误码的重现方法及测试错误码的处理记录至测试码数据库。因为开发终端涉及所有软件程序的开发(为研发核心、重要加密的内容),若开发终端与测试码数据库连接,软件程序可能会泄密。
实施二
本公开还提供一种自动化测试修复系统,如图6所示,包括测试端10、被测试端20、测试码数据库30和开发终端40。所述测试端 10与被测试端20通信连接后启动测试。测试过程中,被测试端20返回测试错误码给测试端,测试端10在测试码数据库30中查询是否有测试代码与测试错误码匹配;有测试代码与所述测试错误码匹配时,测试码数据库30反馈对应的处理记录给测试端10;没有测试代码与所述测试错误码匹配时,测试端10将测试错误码及其处理记录上传至测试码数据库中存储。被测试端20加载开发终端40修改后的软件程序,测试端与被测试端继续通信连接后启动测试、直至测试完成。
可选的,所述测试端包括:
连接请求模块,设置于通过串口或者http协议向被测试端发起连接请求;
连接处理模块,设置于判断响应字段为确认字段时,与所述被测试端建立连接;以及判断所述响应字段为故障字段时,提示连接故障,结束测试;
所述被测试端包括:
响应模块,设置于响应所述连接请求并反馈响应字段。
可选的,所述测试端还包括:
发送模块,设置于发送测试用例至被测试端;
所述被测试端还包括:
运行模块,设置于运行所述测试用例进行相应功能的测试;以及
每完成一个测试用例返回对应的测试结果,所述测试结果包括测试通过和测试错误码。
可选的,所述测试码数据库中的所述测试代码对应的处理记录与所述测试错误码的内容相对应。
可选的,所述测试端还包括:
查询模块,设置于在测试码数据库中查询是否有测试代码与测试错误码匹配时,根据返回的测试错误码,在测试码数据库中查询是否有相同的测试代码,有则表示有匹配的测试代码;以及没有相同的测 试代码则表示该测试错误码为新的测试代码。
可选的,所述测试码数据库包括:
判断模式,设置于若有测试代码与所述测试错误码匹配时,监测所述测试错误码的类型;
处理模块,设置于若所述测试错误码为配置问题测试代码时,获取配置问题测试代码的问题描述及其处理记录并显示,根据输入的配置参数生成对应的配置指令请求;
反馈模块,设置于若所述测试错误码为软件问题测试代码时,将软件问题测试代码对应的处理记录反馈给所述测试端。
可选的,所述测试端还包括:
上传模块,设置于没有测试代码与所述测试错误码匹配时,将测试人员描述的测试错误码的内容及测试错误码的重现方法发送给开发终端;以及接收测试错误码、测试错误码的重现方法及测试错误码的处理记录,并上传至所述测试码数据库存储;
所述开发终端包括:
整理模块,设置于将整理后的测试错误码、测试错误码的重现方法及测试错误码的处理记录传输给所述测试端;
传输模块,设置于将修改后的软件程序发送给所述被测试端。
应该理解到,在本实施例所揭露的系统的具体操作过程在上述方法实施例中已经详细说明。并且,以上所描述的系统实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分 开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本公开还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述实施例的方法。
本公开还提供了一种电子设备的硬件结构示意图,所述电子设备可以执行测试端执行的相应的方法步骤,如图7所示,所述电子设备(测试端)包括:
至少一个处理器(processor)11,图8中以一个处理器11为例;显示屏12;以及存储器(memory)13,还可以包括通信接口(Communications Interface)14和总线15。其中,处理器11、显示屏12、存储器13和通信接口14可以通过总线15完成相互间的通信。显示屏12设置为显示初始设置模式中预设的用户引导界面。通信接口14可以传输信息。处理器11可以调用存储器13中的逻辑指令,以执行上述实施例中的方法。
此外,上述的存储器13中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器13作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器11通过运行存储在存储器13中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。
存储器13可包括存储程序区和存储数据区,其中,存储程序区 可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器13可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
工业实用性
本公开实施例提供的自动化测试修复方法及其系统,通过自动判断返回的测试错误码是否为曾经遇到的问题,如果是则给出以前的处理方法,包括解决此问题的当时相关人员信息,这样就可为测试人员或开发人员解决测试错误码提供很大的帮助,大大缩短了解决测试错误码的时间;对于配置问题直接在测试阶段调整修改相关配置选项、对应字段后启动测试修复软件程序来测试确认配置后的状态,防止此类配置问题转到开发人员处理,大大节省了开发人员排查配置问题的时间;对于以往没有出现的测试错误码,将测试错误码的现象详细的记录到可供查询的测试码数据库中,同时把测试错误码给开发人员解决,开发人员解决测试错误码后,把解决测试错误码的详细方法记录到对应的测试错误码下,为下次遇到同类测试错误码提供了帮助,缩短解决测试错误码的时间。这样将避免对于同一个测试错误码,不同的处理人员,仍需要花费大量的时间和精力解决以往出现的测试错误码,从而大大节约了公司的人力成本和缩短产品开发周期。
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。

Claims (16)

  1. 一种自动化测试修复方法,包括:
    测试端与被测试端通信连接后,所述测试端启动测试;
    所述被测试端加载软件程序,所述被测试端返回测试错误码给所述测试端;
    所述测试端在测试码数据库中查询是否有测试代码与所述测试错误码匹配;
    若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录至所述测试端;若没有测试代码与所述测试错误码匹配时,所述测试端将所述测试错误码及其处理记录上传至所述测试码数据库中存储;以及
    所述被测试端加载修改后的软件程序,直至测试完成。
  2. 根据权利要求1所述的自动化测试修复方法,其中,所述测试端与被测试端通信连接,包括:
    测试端通过串口或者http协议向被测试端发起连接请求;
    所述被测试端响应所述连接请求并反馈响应字段;以及
    所述测试端判断所述响应字段为确认字段时,与所述被测试端建立连接;判断所述响应字段为故障字段时,提示连接故障,结束测试。
  3. 根据权利要求1所述的自动化测试修复方法,其中,所述被测试端加载软件程序,所述被测试端返回测试错误码给所述测试端的步骤包括:
    所述测试端发送测试用例至被测试端,所述被测试端运行所述测试用例进行相应功能的测试;以及
    所述被测试端每完成一个测试用例返回对应的测试结果,所述测试结果包括测试通过和测试错误码。
  4. 根据权利要求1所述的自动化测试修复方法,其中,所述测试码数据库中的所述测试代码对应的处理记录与所述测试错误码的 内容相对应。
  5. 根据权利要求4所述的自动化测试修复方法,其中,所述测试端在测试码数据库中查询是否有测试代码与所述测试错误码匹配,包括:
    所述测试端根据返回的测试错误码,在测试码数据库中查询是否有相同的测试代码,有则表示有匹配的测试代码;以及没有相同的测试代码则表示该测试错误码为新的测试代码。
  6. 根据权利要求4所述的自动化测试修复方法,其中,所述若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录至所述测试端,包括:
    若有测试代码与所述测试错误码匹配时,所述测试码数据库监测所述测试错误码的类型;
    若所述测试错误码为配置问题测试代码,则所述测试码数据库获取配置问题测试代码的问题描述及其处理记录并显示,根据输入的配置参数生成对应的配置指令请求;以及
    若所述测试错误码为软件问题测试代码,则所述测试码数据库将软件问题测试代码对应的处理记录反馈给所述测试端。
  7. 根据权利要求1所述的自动化测试修复方法,其中,所述没有测试代码与所述测试错误码匹配时,所述测试端将测试错误码及其处理记录上传至所述测试码数据库中存储,包括:
    没有测试代码与所述测试错误码匹配时,所述测试端将测试人员描述的测试错误码的内容及测试错误码的重现方法发送给开发终端;
    所述开发终端将整理后的测试错误码、测试错误码的重现方法及测试错误码的处理记录传输给所述测试端,通过所述测试端上传至所述测试码数据库存储;以及
    将修改后的软件程序发送给所述被测试端。
  8. 一种设置为执行权利要求1所述的自动化测试修复方法的自 动化测试修复系统,其中,包括测试端、被测试端、测试码数据库和开发终端;
    所述测试端与所述被测试端通信连接后,所述测试端启动测试;所述被测试端加载软件程序,所述被测试端返回测试错误码给所述测试端;所述测试端在所述测试码数据库中查询是否有测试代码与所述测试错误码匹配;若有测试代码与所述测试错误码匹配时,所述测试码数据库反馈所述测试代码的处理记录至所述测试端;若没有测试代码与所述测试错误码匹配时,所述测试端将测试错误码及其处理记录上传至所述测试码数据库中存储;以及所述被测试端加载修改后的软件程序,直至测试完成。
  9. 根据权利要求8所述的自动化测试修复系统,其中,所述测试端包括:
    连接请求模块,设置于通过串口或者http协议向被测试端发起连接请求;
    连接处理模块,设置于判断响应字段为确认字段时,与所述被测试端建立连接;以及判断所述响应字段为故障字段时,提示连接故障,结束测试;
    所述被测试端包括:
    响应模块,设置于响应所述连接请求并反馈响应字段。
  10. 根据权利要求8所述的自动化测试修复系统,其中,所述测试端还包括:
    发送模块,设置于发送测试用例至被测试端;
    所述被测试端还包括:
    运行模块,设置于运行所述测试用例进行相应功能的测试;以及每完成一个测试用例返回对应的测试结果,所述测试结果包括测试通过和测试错误码。
  11. 根据权利要求8所述的自动化测试修复系统,其中,所述测 试码数据库中的所述测试代码对应的处理记录与所述测试错误码的内容相对应。
  12. 根据权利要求11所述的自动化测试修复系统,其中,所述测试端还包括:
    查询模块,设置于在测试码数据库中查询是否有测试代码与所述测试错误码匹配时,根据返回的测试错误码,在测试码数据库中查询是否有相同的测试代码,有则表示有匹配的测试代码;以及没有相同的测试代码则表示该测试错误码为新的测试代码。
  13. 根据权利要求11所述的自动化测试修复系统,其中,所述测试码数据库包括:
    判断模块,设置于若有测试代码与所述测试错误码匹配时,监测所述测试错误码的类型;
    处理模块,设置于若所述测试错误码为配置问题测试代码时,获取配置问题测试代码的问题描述及其处理记录并显示,根据输入的配置参数生成对应的配置指令请求;
    反馈模块,设置于若所述测试错误码为软件问题测试代码时,将软件问题测试代码对应的处理记录反馈给所述测试端。
  14. 根据权利要求8所述的自动化测试修复系统,其中,所述测试端还包括:
    上传模块,设置于没有测试代码与所述测试错误码匹配时,将测试人员描述的测试错误码的内容及测试错误码的重现方法发送给开发终端;以及接收测试错误码、测试错误码的重现方法及测试错误码的处理记录,并上传至所述测试码数据库存储;
    所述开发终端包括:
    整理模块,设置于将整理后的测试错误码、测试错误码的重现方法及测试错误码的处理记录传输给所述测试端;
    传输模块,设置于将修改后的软件程序发送给所述被测试端。
  15. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-7中任一项所述的方法。
  16. 一种电子设备,包括:
    至少一个处理器;以及
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行权利要求1-7中任一项所述的方法。
PCT/CN2017/092822 2016-07-18 2017-07-13 自动化测试修复方法及其系统 WO2018014778A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610566870.4 2016-07-18
CN201610566870.4A CN106254093B (zh) 2016-07-18 2016-07-18 一种自动化测试修复方法及其系统

Publications (1)

Publication Number Publication Date
WO2018014778A1 true WO2018014778A1 (zh) 2018-01-25

Family

ID=57613292

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092822 WO2018014778A1 (zh) 2016-07-18 2017-07-13 自动化测试修复方法及其系统

Country Status (2)

Country Link
CN (1) CN106254093B (zh)
WO (1) WO2018014778A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367555A (zh) * 2020-03-23 2020-07-03 北京字节跳动网络技术有限公司 断言的方法、装置、电子设备及计算机可读介质
CN112492301A (zh) * 2020-12-02 2021-03-12 湖南快乐阳光互动娱乐传媒有限公司 一种iptv机顶盒的性能测试方法及系统
CN113064618A (zh) * 2021-03-31 2021-07-02 重庆长安新能源汽车科技有限公司 一种模拟新能源车辆符合性检测的系统及方法
CN113655316A (zh) * 2021-08-17 2021-11-16 南京智睿能源互联网研究院有限公司 一种基于串口通讯技术的低压svg设备测试系统
CN113866530A (zh) * 2021-08-17 2021-12-31 广西电网有限责任公司防城港供电局 一种识别测试仪自动测试生成测试报告系统

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254093B (zh) * 2016-07-18 2019-06-11 深圳创维数字技术有限公司 一种自动化测试修复方法及其系统
CN109358827B (zh) * 2018-12-05 2021-11-16 深圳市创维软件有限公司 控制应用串口打印的方法、系统、设备及存储介质
CN111385613B (zh) * 2018-12-29 2022-07-08 深圳Tcl数字技术有限公司 一种电视系统修复方法、存储介质及应用服务器
CN111930091B (zh) * 2019-05-13 2024-05-17 北京新能源汽车股份有限公司 一种电动车电子控制单元的网络测试方法及装置
CN111866576B (zh) * 2020-06-28 2022-11-04 泰康保险集团股份有限公司 线上问题处理系统及方法
CN114138660A (zh) * 2021-12-07 2022-03-04 中国建设银行股份有限公司 缺陷处理方法、装置、设备、计算机可读存储介质及产品

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079000A (zh) * 2007-05-29 2007-11-28 华为技术有限公司 一种快速定位问题的自动化测试的方法及其设备
WO2008114452A1 (ja) * 2007-03-20 2008-09-25 Fujitsu Limited 模擬処理装置、模擬処理システム及びコンピュータプログラム
CN101556550A (zh) * 2009-05-22 2009-10-14 北京星网锐捷网络技术有限公司 一种自动化测试日志分析方法和装置
CN104978262A (zh) * 2014-04-08 2015-10-14 中国移动通信集团公司 一种终端测试方法和装置
CN105245873A (zh) * 2015-10-23 2016-01-13 四川长虹电器股份有限公司 数字电视测试系统
CN105677567A (zh) * 2016-01-10 2016-06-15 上海与德通讯技术有限公司 一种自动化测试方法及系统
CN106254093A (zh) * 2016-07-18 2016-12-21 深圳创维数字技术有限公司 一种自动化测试修复方法及其系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753886A (zh) * 2008-12-15 2010-06-23 康佳集团股份有限公司 一种控制机顶盒的方法、系统及机顶盒

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008114452A1 (ja) * 2007-03-20 2008-09-25 Fujitsu Limited 模擬処理装置、模擬処理システム及びコンピュータプログラム
CN101079000A (zh) * 2007-05-29 2007-11-28 华为技术有限公司 一种快速定位问题的自动化测试的方法及其设备
CN101556550A (zh) * 2009-05-22 2009-10-14 北京星网锐捷网络技术有限公司 一种自动化测试日志分析方法和装置
CN104978262A (zh) * 2014-04-08 2015-10-14 中国移动通信集团公司 一种终端测试方法和装置
CN105245873A (zh) * 2015-10-23 2016-01-13 四川长虹电器股份有限公司 数字电视测试系统
CN105677567A (zh) * 2016-01-10 2016-06-15 上海与德通讯技术有限公司 一种自动化测试方法及系统
CN106254093A (zh) * 2016-07-18 2016-12-21 深圳创维数字技术有限公司 一种自动化测试修复方法及其系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367555A (zh) * 2020-03-23 2020-07-03 北京字节跳动网络技术有限公司 断言的方法、装置、电子设备及计算机可读介质
CN111367555B (zh) * 2020-03-23 2023-08-08 抖音视界有限公司 断言的方法、装置、电子设备及计算机可读介质
CN112492301A (zh) * 2020-12-02 2021-03-12 湖南快乐阳光互动娱乐传媒有限公司 一种iptv机顶盒的性能测试方法及系统
CN113064618A (zh) * 2021-03-31 2021-07-02 重庆长安新能源汽车科技有限公司 一种模拟新能源车辆符合性检测的系统及方法
CN113655316A (zh) * 2021-08-17 2021-11-16 南京智睿能源互联网研究院有限公司 一种基于串口通讯技术的低压svg设备测试系统
CN113866530A (zh) * 2021-08-17 2021-12-31 广西电网有限责任公司防城港供电局 一种识别测试仪自动测试生成测试报告系统

Also Published As

Publication number Publication date
CN106254093B (zh) 2019-06-11
CN106254093A (zh) 2016-12-21

Similar Documents

Publication Publication Date Title
WO2018014778A1 (zh) 自动化测试修复方法及其系统
WO2020140820A1 (zh) 软件测试方法、系统、装置、设备、介质及计算机程序产品
US9910764B2 (en) Automated software testing
US9984244B2 (en) Controller, information processing apparatus, and recording medium
CN110032507B (zh) 应用程序测试方法、装置、系统、电子设备及存储介质
CN104123219A (zh) 测试软件的方法和设备
WO2017067441A1 (zh) 一种应用的测试方法、装置、系统以及非暂时性机器可读存储介质
US20140236914A1 (en) Controller, information processing apparatus, and recording medium
WO2021129551A1 (zh) 一种测试pcba板的方法、系统、测试设备及微控制单元
CN109165170B (zh) 一种自动化请求测试的方法及系统
WO2019227708A1 (zh) 测试案例的在线调试装置、方法及计算机可读存储介质
CN110119350B (zh) 软件开发工具包测试方法、装置和设备及计算机存储介质
CN110659202A (zh) 客户端自动化测试方法及装置
CN107102949B (zh) 应用程序离线测试方法及工具
CN110347085A (zh) 自动化测试系统、方法、车辆以及计算机可读介质
CN112256505A (zh) 一种服务器稳定性测试方法、装置及相关组件
CN105074683A (zh) 使用消息传送和存在协议远程测试电子设备
CN114138587B (zh) 服务器电源固件升级的可靠性验证方法、装置和设备
KR20150025106A (ko) 애플리케이션 검증결과 모니터링 서비스를 위한 검증장치, 단말장치, 시스템, 방법 및 컴퓨터로 판독 가능한 기록 매체
CN106294097B (zh) 一种应用程序测试方法及设备
CN112052179B (zh) 软件系统的模拟方法、模拟系统及计算机可读介质
CN107203471B (zh) 联调方法、服务平台及计算机存储介质
JP5327019B2 (ja) ソフトウェア自動試験方式
CN113538725A (zh) 一种硬件产品的测试方法及相关设备
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support

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

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

Country of ref document: EP

Kind code of ref document: A1