WO2019000551A1 - Vr integrated machine testing tool and method therefor - Google Patents

Vr integrated machine testing tool and method therefor Download PDF

Info

Publication number
WO2019000551A1
WO2019000551A1 PCT/CN2017/095389 CN2017095389W WO2019000551A1 WO 2019000551 A1 WO2019000551 A1 WO 2019000551A1 CN 2017095389 W CN2017095389 W CN 2017095389W WO 2019000551 A1 WO2019000551 A1 WO 2019000551A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
script
user
test script
integrated machine
Prior art date
Application number
PCT/CN2017/095389
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 WO2019000551A1 publication Critical patent/WO2019000551A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Definitions

  • the present application relates to the field of virtual reality technologies, and in particular, to a VR integrated machine testing tool and method thereof.
  • VR Virtual Reality
  • a computer simulation system that can create and experience a virtual world. It uses a computer to generate a simulation environment, which is a multi-source information fusion, interactive 3D dynamic view and System simulation of entity behavior immerses users in the environment.
  • some embodiments of the present application provide a VR integrated machine testing tool, including:
  • test script database for storing a test script corresponding to a plurality of test items set in advance
  • An initialization module configured to: after the test tool is turned on, read a list of test items in the test script database and display the same;
  • connection module configured to acquire and detect a connection state of each device in the VR integrated machine after the test tool is in communication connection with the VR integrated machine, and generate an alarm prompt if the connection has a fault
  • a selection module configured to receive a selection command input by the user, select a test script to be tested, and sequentially generate a corresponding processing file
  • the test module is configured to test the VR integrated machine by running the processing file in a specific order according to a test command input by the user, and obtain a test result and output a display.
  • the method further includes:
  • An editing module configured to allow a user to edit a test script corresponding to the newly added test item, and add the test script to the test script database; the user can modify the test script stored in the test script database; and the user deletes the test script database storage Test script.
  • test script specifically includes:
  • Test name test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
  • the testing module specifically includes:
  • a single test unit configured to run a test file corresponding to the single test command according to a single test command input by the user
  • a batch test unit configured to sequentially run all the processing files generated by the selection module according to a batch test command input by the user
  • a result display unit configured to display a test result of the processing file after each of the processing file tests is completed, where the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
  • test module further includes:
  • a report generating unit configured to generate a test report of all the processed files and display the test after all the processing files are completed; or generate a test report of the test file after each of the processed file tests is completed And displaying; the test report includes the test item and its corresponding test time, test result and/or cause of failure.
  • the method further includes:
  • a history database for storing the test report for storing the test report.
  • the method further includes:
  • An encryption module for entering the set test script before it is stored in the test script database The line is encrypted and the encrypted test script is stored in the test script database.
  • the test tool connects the VR all-in-one via USB.
  • the present application also provides a VR integrated machine testing method, including:
  • the processing file is sequentially executed in a specific order to test the VR integrated machine, and the test result is obtained and outputted.
  • the method further includes:
  • test script specifically includes:
  • Test name test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
  • the step of running the processing file in a specific order according to a test command input by the user to test the VR integrated machine, and obtaining a test result and outputting the display specifically includes:
  • the processing file corresponding to the single test command is run for testing
  • test result of the processing file is displayed, and the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
  • the method further includes:
  • test report of the test file is generated and displayed; the test report includes the test item and its corresponding test time, test result, and/or failure reason.
  • the method further includes:
  • the set test script is encrypted before being stored in the test script database, and the encrypted test script is stored in the test script database.
  • some embodiments of the present application further provide a computer, including a display screen, a memory, and a processor connected to the memory through a bus, the processor being interfaced with the display screen;
  • the memory is configured to store a set of program codes
  • the processor is configured to invoke program code stored in the memory, and perform the following operations:
  • the processor is further configured to invoke program code stored in the memory to perform the following operations:
  • the processor tests the VR integrated machine by running the processing file in a specific order according to a test command input by the user, and obtains the test result and outputs the display specifically for calling the storage in the memory.
  • the program code does the following:
  • the processing file corresponding to the single test command is run for testing; if the user inputs a batch test command, all the generated processing files are sequentially run in a specific order for testing; After the processing of the processing file is completed, the test result of the processing file is displayed on the display screen, and the testing result includes a successful test, a test failure, Get any of the corresponding parameter values.
  • the processor is further configured to invoke program code stored in the memory to perform the following operations:
  • test report After all the processing file tests are completed, a test report of all the processing files is generated and output to the display screen for display; or after each of the processing file tests is completed, a test report of the test file is generated. And outputting to the display screen for display; the test report includes a test item and its corresponding test time, test result, and/or cause of failure.
  • the processor is further configured to invoke program code stored in the memory to perform the following operations:
  • the set test script is encrypted before being stored in the memory, and the encrypted test script is stored in the memory.
  • Some embodiments of the present application provide a VR integrated machine testing tool and a method thereof.
  • a test script corresponding to a plurality of test items is preset, and when the user uses, only the corresponding test script of the input command is required to be input.
  • the test script will generate a processing file. After the user inputs the test command, the corresponding test operation will be performed on the VR machine according to the processing file, and the obtained test result will be displayed.
  • the testing tools provided by some embodiments of the present application greatly improve the automation of the test, simplify the testing process, reduce the workload of the staff, and improve the testing efficiency of the VR all-in-one.
  • FIG. 1 is a schematic structural diagram of a VR integrated machine testing tool according to some embodiments of the present application.
  • FIG. 2 is a flowchart of a process of a VR integrated machine testing method according to some embodiments of the present disclosure.
  • FIG. 1 is a schematic structural diagram of a VR integrated testing tool according to some embodiments of the present application.
  • the test tool includes:
  • test script database 5 configured to store a test script corresponding to a plurality of test items set in advance
  • the initialization module 1 is configured to read and display a list of test items in the test script database 5 after the test tool is turned on;
  • connection module 2 is configured to acquire and detect a connection state of each device in the VR integrated machine after the test tool is in communication connection with the VR integrated machine, and generate an alarm prompt if the connection has a fault;
  • the connection module 2 obtains the device name, the product serial number, and the software version number through the result returned by the adb command, and periodically polls the connection status of each device in the VR integrated machine through a timer.
  • the adb command is to view the device command. This command is to view the currently connected device.
  • the android device or emulator connected to the computer will list the display.
  • the selecting module 3 is configured to receive a selection command input by the user, select a test script to be tested, and sequentially generate a corresponding processing file;
  • the test module 4 is configured to test the VR machine according to the test command input by the user, and sequentially run the processing file in a specific order to obtain the test result and output the display.
  • the test tool can be set in the computer, and only needs to run the test tool when it is turned on, that is, the test item list in the test script database 5 is automatically read and displayed.
  • test scripts herein are sorted in a specific order, such as a write order, etc., and the sorting conditions are not specifically limited in this application.
  • content of the test item has a corresponding difference according to different devices of the VR integrated machine.
  • the wifi conductivity test may be included, and the specific content may be set according to actual needs.
  • the user can click on the test item in the displayed test item list. Select or tick the selection operation, and the system generates a selection instruction accordingly.
  • the user's selection record can be saved, and the next time the test tool is turned on, it can be automatically added to the list to be tested according to the last selection record.
  • the test tool After selecting the test script to be tested, the test tool will generate the corresponding processing file in the background. When the user clicks the test item on the desktop, the corresponding test command is generated, and the processing file corresponding to the test item clicked by the user is triggered for testing.
  • the testing tool further includes:
  • the editing module 7 is configured to allow the user to edit the test script corresponding to the newly added test item, and add to the test script database 5; the user can modify the test script stored in the test script database 5; and the user deletes the test stored in the test script database 5 script.
  • the editing operation can be performed. At this time, whether the VR integrated machine can be connected.
  • test script database 5 when the user clicks the add button set on the display interface of the test tool, the user jumps to the edit page, and the user can input the corresponding content edit test script, and save it after the edit is completed, the test script is automatically added to the test script database. 5, and return to the previous list page; the same as when modifying and deleting; and after the modification and deletion operations, the test script database 5 will save the user operation synchronously.
  • test script specifically includes:
  • Test name test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
  • the script execution time threshold may be selected as a specific setting threshold, and may be 0 or other values. If it is not 0, the timer is automatically triggered when the test script is executed. Once the script execution time threshold is exceeded, The test result is a failure.
  • the setting method for setting the parameters of the test result manually during the script test process can be set by checking the corresponding part on the display interface, for example, the check indicates that the script needs to be manually determined during the test, and the test is completed every time. After that, a display box will pop up for the user to select the test success or failure. If not selected, it means no manual confirmation is required; or the user can select 0 or 1 by inputting. Which method is specifically adopted is not specifically limited in this application.
  • test module 4 specifically includes:
  • a single test unit for running a test file corresponding to a single test command according to a single test command input by the user
  • Batch test unit for sequentially pressing batch test commands entered by the user in a specific order Run all the processing files generated by the selection module 3 for testing;
  • the result display unit is configured to display a test result of the processed file after the completion of the test of each processed file, and the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
  • test module 4 may also include only any of a single test unit or a batch test unit.
  • the result display unit displays the test result of the test item after the test item is completed.
  • the result display unit may After the test of each processing file is completed, the test result corresponding to the processing file is displayed, or the test result of all the processed files is uniformly displayed after the processing of all the processed files is completed.
  • the manner in which the test results are specifically used is not limited in this application.
  • test module 4 further includes:
  • a report generating unit configured to generate a test report of all processed files and display them after all the processed files are completed; or after each test file is completed, generate a test report of the test file and display the test report; the test report includes the test Item and its corresponding test time, test results, and/or cause of failure.
  • the test report may also include test device information and the like, and may of course include other information, which is not limited in this application.
  • test report can also display the test report corresponding to the processing file after the completion of the test of each processing file or the test report that uniformly displays all the processed files after the processing of all the processed files is completed, and the specific display method of which test report is used.
  • the application is not limited.
  • the testing tool further includes:
  • Historical database 8 for storing test reports.
  • test report records the test content more comprehensively, by storing the test report, it is convenient for the staff to follow and analyze.
  • the testing tool further includes:
  • the encryption module 6 is configured to encrypt the set test script before it is stored in the test script database 5, and store the encrypted test script in the test script database 5.
  • the encryption algorithm herein may be the MD5 algorithm, and of course, other encryption algorithms may also be used, which is not specifically limited in this application. It can be understood that the test scripts in the present application are all generated according to the test commands corresponding to the respective test items. By performing encryption, the test commands can be prevented from leaking, resulting in technical loss.
  • the test tool connects to the VR all-in-one via USB.
  • the connection here refers to the connection between the device where the test tool is located and the VR all-in-one.
  • other interfaces can also be used.
  • Some embodiments of the present application provide a VR integrated machine testing tool.
  • a test script corresponding to a plurality of test items is preset in advance.
  • the test script is A processing file is generated, and after the user inputs a test command, the corresponding test operation is performed on the VR integrated machine according to the processing file, and the obtained test result is displayed.
  • FIG. 2 is a flowchart of a process of a VR integrated machine testing method provided by the present application. The method includes:
  • Step s1 reading a test item list of the test script corresponding to the plurality of test items stored in the test script database and sending the list of test items to the display device for display;
  • Step s2 After communicating with the VR integrated machine, acquiring and detecting the connection status of each device in the VR integrated machine, if the connection has a fault, generating an alarm prompt;
  • Step s3 After receiving the selection command input by the user, selecting a test script to be tested and sequentially generating a corresponding processing file;
  • Step s4 According to the test command input by the user, the processing file is sequentially run in a specific order to test the VR integrated machine, and the test result is obtained and outputted.
  • the method further includes:
  • test script specifically includes:
  • Test name test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
  • the processing file is sequentially run in a specific order to test the VR integrated machine, and the process of obtaining the test result and outputting the display specifically includes:
  • test file corresponding to the single test command is run for testing
  • test result of the processing file is displayed, and the test result includes any one of the test parameter success, the test failure, and the corresponding parameter value obtained.
  • the method further includes:
  • test report of all processed files is generated and displayed;
  • test report of the test file is generated and displayed; the test report includes the test item and its corresponding test time, test result and/or failure reason.
  • the method further includes:
  • the set test script is encrypted before being stored in the test script database, and the encrypted test script is stored in the test script database.
  • Some embodiments of the present application provide a VR integrated machine test method.
  • a test script corresponding to a plurality of test items is preset, and when the user uses, only the corresponding test script of the input command is required, and the test script is A processing file is generated, and after the user inputs a test command, the corresponding test operation is performed on the VR integrated machine according to the processing file, and the obtained test result is displayed.
  • the testing tools provided by some embodiments of the present application greatly improve the automation of the test, simplify the testing process, reduce the workload of the staff, and improve the testing efficiency of the VR integrated machine.
  • Some embodiments of the present application further provide a computer, including a display screen, a memory, and a processor connected to the memory through a bus, where the processor is connected to the display screen;
  • a memory for storing computer readable program code
  • the processor is used to call the program code stored in the memory, and performs the following operations:
  • processor is further configured to call program code stored in the memory to perform the following operations:
  • the processor tests the VR machine in a specific order according to the test command input by the user, and obtains the test result and outputs the display program to specifically call the program code stored in the memory. Do the following:
  • test file corresponding to the single test command is run for testing; if the user inputs the batch test command, all the generated processing files are sequentially run in a specific order for testing; in each processed file test After completion, the test result of the processed file is displayed on the display screen, and the test result includes any one of the test parameter success, the test failure, and the corresponding parameter value obtained.
  • the processor is further configured to call program code stored in the memory to perform the following operations:
  • test report After all the processing files are tested, a test report of all processed files is generated and output to the display screen for display; or after each processing file test is completed, a test report of the test file is generated and output to the display screen for display; the test report Includes test items and their corresponding test times, test results, and/or cause of failure.
  • the processor is further configured to call program code stored in the memory to perform the following operations:
  • the set test script is encrypted before being stored in the memory, and the encrypted test script is stored in the memory.

Landscapes

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

Abstract

Provided are a VR integrated machine testing tool and a method therefor. The VR integrated machine testing tool comprises: a test script database for storing test scripts corresponding to a plurality of pre-set test items; an initialization module for reading and displaying a list of test items in the test script database after the test tool is started; a connection module for acquiring and detecting the connection status of each device in the VR integrated machine after the test tool is connected to the VR integrated machine, and generating an alarm prompt if a fault occurs in the connection; a selection module for receiving a selection command input by a user, and selecting a test script to be tested and sequentially generating corresponding processing files; and a test module for running the processing files in a specific order according to the test command input by the user to obtain a test result and display same.

Description

一种VR一体机测试工具及其方法VR integrated machine testing tool and method thereof
交叉引用cross reference
本申请引用于2017年06月28日递交的名称为“一种VR一体机测试工具及其方法”的第201710507152.4号中国专利申请,其通过引用被全部并入本申请。The present application is hereby incorporated by reference in its entirety in its entirety in its entirety in the the the the the the the the the the the the
技术领域Technical field
本申请涉及虚拟现实技术领域,尤其涉及一种VR一体机测试工具及其方法。The present application relates to the field of virtual reality technologies, and in particular, to a VR integrated machine testing tool and method thereof.
背景技术Background technique
VR(Virtual Reality,虚拟现实)技术,是一种可以创建和体验虚拟世界的计算机仿真系统,它利用计算机生成一种模拟环境,是一种多源信息融合的、交互式的三维动态视景和实体行为的系统仿真使用户沉浸到该环境中。VR (Virtual Reality) technology is a computer simulation system that can create and experience a virtual world. It uses a computer to generate a simulation environment, which is a multi-source information fusion, interactive 3D dynamic view and System simulation of entity behavior immerses users in the environment.
VR一体机设备在研发过程中,尤其在量产过程中,我们需要检测设备的完整性,即WIFI、蓝牙、Audio等硬件设备是否可用,不可用的及时更换,目前的方法是由测试人员,手动根据测试命令来一步一步进行测试,测试效率低,工作量大。In the development process of VR all-in-one equipment, especially in the mass production process, we need to check the integrity of the equipment, that is, whether WIFI, Bluetooth, Audio and other hardware devices are available, and the replacement is not available in time. The current method is by testers. Manually test according to the test command step by step, the test efficiency is low, and the workload is large.
发明内容Summary of the invention
一方面,本申请一些实施例提供了一种VR一体机测试工具,包括:In one aspect, some embodiments of the present application provide a VR integrated machine testing tool, including:
测试脚本数据库,用于存储预先设置的若干个测试项对应的测试脚本;a test script database for storing a test script corresponding to a plurality of test items set in advance;
初始化模块,用于在所述测试工具开启后,读取所述测试脚本数据库内的测试项列表并显示; An initialization module, configured to: after the test tool is turned on, read a list of test items in the test script database and display the same;
连接模块,用于在所述测试工具与所述VR一体机进行通信连接后,获取并检测所述VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;a connection module, configured to acquire and detect a connection state of each device in the VR integrated machine after the test tool is in communication connection with the VR integrated machine, and generate an alarm prompt if the connection has a fault;
选择模块,用于接收用户输入的选择命令,选择待测试的测试脚本并依次生成对应的处理文件;a selection module, configured to receive a selection command input by the user, select a test script to be tested, and sequentially generate a corresponding processing file;
测试模块,用于依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出显示。The test module is configured to test the VR integrated machine by running the processing file in a specific order according to a test command input by the user, and obtain a test result and output a display.
一些实施例中,还包括:In some embodiments, the method further includes:
编辑模块,用于供用户编辑新增测试项对应的测试脚本,并添加至所述测试脚本数据库;供用户修改所述测试脚本数据库内存储的测试脚本;供用户删除所述测试脚本数据库内存储的测试脚本。An editing module, configured to allow a user to edit a test script corresponding to the newly added test item, and add the test script to the test script database; the user can modify the test script stored in the test script database; and the user deletes the test script database storage Test script.
一些实施例中,所述测试脚本具体包括:In some embodiments, the test script specifically includes:
测试名称、测试功能描述、测试脚本程序内容、脚本执行时间阈值以及用于设置脚本测试过程中是否人工确定测试结果的参量。Test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
一些实施例中,所述测试模块具体包括:In some embodiments, the testing module specifically includes:
单一测试单元,用于依据用户输入的单一测试命令,运行所述单一测试命令对应的处理文件进行测试;a single test unit, configured to run a test file corresponding to the single test command according to a single test command input by the user;
批量测试单元,用于依据用户输入的批量测试命令,按照特定顺序依次运行所述选择模块生成的全部处理文件进行测试;a batch test unit, configured to sequentially run all the processing files generated by the selection module according to a batch test command input by the user;
结果显示单元,用于在每个所述处理文件测试完成后,显示所述处理文件的测试结果,所述测试结果包括测试成功、测试失败、获取的相应参数值中的任一种。a result display unit, configured to display a test result of the processing file after each of the processing file tests is completed, where the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
一些实施例中,所述测试模块还包括:In some embodiments, the test module further includes:
报告生成单元,用于在全部所述处理文件测试完成后,生成全部所述处理文件的测试报告并进行显示;或在每个所述处理文件测试完成后,即生成所述测试文件的测试报告并进行显示;所述测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。a report generating unit, configured to generate a test report of all the processed files and display the test after all the processing files are completed; or generate a test report of the test file after each of the processed file tests is completed And displaying; the test report includes the test item and its corresponding test time, test result and/or cause of failure.
一些实施例中,还包括:In some embodiments, the method further includes:
历史数据库,用于存储所述测试报告。A history database for storing the test report.
一些实施例中,还包括:In some embodiments, the method further includes:
加密模块,用于在设置的测试脚本存入所述测试脚本数据库之前对其进 行加密,并将加密后的测试脚本存入所述测试脚本数据库。An encryption module for entering the set test script before it is stored in the test script database The line is encrypted and the encrypted test script is stored in the test script database.
一些实施例中,所述测试工具通过USB连接所述VR一体机。In some embodiments, the test tool connects the VR all-in-one via USB.
为解决上述技术问题,本申请还提供了一种VR一体机测试方法,包括:To solve the above technical problem, the present application also provides a VR integrated machine testing method, including:
读取测试脚本数据库内存储的若干个测试项对应的测试脚本的测试项列表并发送至显示装置进行显示;Reading a test item list of the test script corresponding to the plurality of test items stored in the test script database and sending the list of test items to the display device for display;
在与所述VR一体机进行通信连接后,获取并检测所述VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;After being connected to the VR integrated machine, acquiring and detecting the connection status of each device in the VR integrated machine, and generating an alarm prompt if there is a fault in the connection;
接收用户输入的选择命令后,选择待测试的测试脚本并依次生成对应的处理文件;After receiving the selection command input by the user, selecting a test script to be tested and sequentially generating a corresponding processing file;
依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出显示。According to the test command input by the user, the processing file is sequentially executed in a specific order to test the VR integrated machine, and the test result is obtained and outputted.
一些实施例中,还包括:In some embodiments, the method further includes:
依据用户输入的编辑指令编辑新增测试项对应的测试脚本,并添加至所述测试脚本数据库;依据用户输入的修改指令修改所述测试脚本数据库内存储的测试脚本;依据用户输入的删除指令删除所述测试脚本数据库内存储的测试脚本。Editing a test script corresponding to the newly added test item according to an edit instruction input by the user, and adding the test script to the test script database; modifying the test script stored in the test script database according to the modification instruction input by the user; deleting according to the deletion instruction input by the user The test script stored in the test script database.
一些实施例中,所述测试脚本具体包括:In some embodiments, the test script specifically includes:
测试名称、测试功能描述、测试脚本程序内容、脚本执行时间阈值以及用于设置脚本测试过程中是否人工确定测试结果的参量。Test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
一些实施例中,所述依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出显示的过程具体包括:In some embodiments, the step of running the processing file in a specific order according to a test command input by the user to test the VR integrated machine, and obtaining a test result and outputting the display specifically includes:
若用户输入的为单一测试命令,则运行所述单一测试命令对应的处理文件进行测试;If the user inputs a single test command, the processing file corresponding to the single test command is run for testing;
若用户输入的为批量测试命令,则按照特定顺序依次运行生成的全部处理文件进行测试;If the user inputs a batch test command, all the generated processing files are sequentially run in a specific order for testing;
在每个所述处理文件测试完成后,显示所述处理文件的测试结果,所述测试结果包括测试成功、测试失败、获取的相应参数值中的任一种。After each of the processing file tests is completed, a test result of the processing file is displayed, and the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
一些实施例中,还包括:In some embodiments, the method further includes:
在全部所述处理文件测试完成后,生成全部所述处理文件的测试报告并进行显示; After all the processing file tests are completed, a test report of all the processing files is generated and displayed;
或在每个所述处理文件测试完成后,即生成所述测试文件的测试报告并进行显示;所述测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。Or after each of the processing file tests is completed, a test report of the test file is generated and displayed; the test report includes the test item and its corresponding test time, test result, and/or failure reason.
一些实施例中,还包括:In some embodiments, the method further includes:
在设置的测试脚本存入所述测试脚本数据库之前对其进行加密,并将加密后的测试脚本存入所述测试脚本数据库。The set test script is encrypted before being stored in the test script database, and the encrypted test script is stored in the test script database.
另一方面,本申请一些实施例还提供了一种计算机,包括显示屏幕、存储器以及通过总线与所述存储器连接的处理器,所述处理器与所述显示屏幕通过接口连接;In another aspect, some embodiments of the present application further provide a computer, including a display screen, a memory, and a processor connected to the memory through a bus, the processor being interfaced with the display screen;
所述存储器,用于存储一组程序代码;The memory is configured to store a set of program codes;
所述处理器,用于调用所述存储器中存储的程序代码,执行以下操作:The processor is configured to invoke program code stored in the memory, and perform the following operations:
读取存储器内存储的若干个测试项对应的测试脚本的测试项列表并发送至所述显示屏幕进行显示;在所述计算机与所述VR一体机进行通信连接后,获取并检测所述VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;接收用户输入的选择命令后,选择待测试的测试脚本并依次生成对应的处理文件;依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出至所述显示屏幕进行显示。Reading a test item list of the test script corresponding to the plurality of test items stored in the memory and sending the test item list to the display screen for display; after the computer is in communication connection with the VR integrated machine, acquiring and detecting the VR integration The connection status of each device in the machine generates an alarm prompt if there is a fault in the connection; after receiving the selection command input by the user, the test script to be tested is selected and the corresponding processing file is generated in sequence; according to the test command input by the user, in a specific order The processing file is sequentially run to test the VR integrated machine, and the test result is obtained and output to the display screen for display.
优选地,所述处理器还用于调用所述存储器中存储的程序代码执行以下操作:Preferably, the processor is further configured to invoke program code stored in the memory to perform the following operations:
依据用户输入的编辑指令编辑新增测试项对应的测试脚本,并添加至所述测试脚本数据库;依据用户输入的修改指令修改所述测试脚本数据库内存储的测试脚本;依据用户输入的删除指令删除所述测试脚本数据库内存储的测试脚本。Editing a test script corresponding to the newly added test item according to an edit instruction input by the user, and adding the test script to the test script database; modifying the test script stored in the test script database according to the modification instruction input by the user; deleting according to the deletion instruction input by the user The test script stored in the test script database.
优选地,所述处理器在依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出显示的过程中具体用于调用存储器中存储的程序代码执行以下操作:Preferably, the processor tests the VR integrated machine by running the processing file in a specific order according to a test command input by the user, and obtains the test result and outputs the display specifically for calling the storage in the memory. The program code does the following:
若用户输入的为单一测试命令,则运行所述单一测试命令对应的处理文件进行测试;若用户输入的为批量测试命令,则按照特定顺序依次运行生成的全部处理文件进行测试;在每个所述处理文件测试完成后,在所述显示屏幕上显示所述处理文件的测试结果,所述测试结果包括测试成功、测试失败、 获取的相应参数值中的任一种。If the user inputs a single test command, the processing file corresponding to the single test command is run for testing; if the user inputs a batch test command, all the generated processing files are sequentially run in a specific order for testing; After the processing of the processing file is completed, the test result of the processing file is displayed on the display screen, and the testing result includes a successful test, a test failure, Get any of the corresponding parameter values.
优选地,所述处理器还用于调用所述存储器中存储的程序代码执行以下操作:Preferably, the processor is further configured to invoke program code stored in the memory to perform the following operations:
在全部所述处理文件测试完成后,生成全部所述处理文件的测试报告并输出至所述显示屏幕进行显示;或在每个所述处理文件测试完成后,即生成所述测试文件的测试报告并输出至所述显示屏幕进行显示;所述测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。After all the processing file tests are completed, a test report of all the processing files is generated and output to the display screen for display; or after each of the processing file tests is completed, a test report of the test file is generated. And outputting to the display screen for display; the test report includes a test item and its corresponding test time, test result, and/or cause of failure.
优选地,所述处理器还用于调用所述存储器中存储的程序代码执行以下操作:Preferably, the processor is further configured to invoke program code stored in the memory to perform the following operations:
在设置的测试脚本存入所述存储器之前对其进行加密,并将加密后的测试脚本存入所述存储器。The set test script is encrypted before being stored in the memory, and the encrypted test script is stored in the memory.
本申请一些实施例提供了一种VR一体机测试工具及其方法,在测试脚本数据库中预先设置了若干个测试项对应的测试脚本,用户使用时,只需要输入的选择命令相应的测试脚本,测试脚本即会生成处理文件,之后用户输入测试命令,即会依据该处理文件对VR一体机进行相应的测试操作,并显示得到的测试结果。本申请一些实施例提供的测试工具大大提高了测试的自动化程度,简化了测试过程,减少了工作人员的工作量,提高了VR一体机的测试效率。Some embodiments of the present application provide a VR integrated machine testing tool and a method thereof. In the test script database, a test script corresponding to a plurality of test items is preset, and when the user uses, only the corresponding test script of the input command is required to be input. The test script will generate a processing file. After the user inputs the test command, the corresponding test operation will be performed on the VR machine according to the processing file, and the obtained test result will be displayed. The testing tools provided by some embodiments of the present application greatly improve the automation of the test, simplify the testing process, reduce the workload of the staff, and improve the testing efficiency of the VR all-in-one.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the prior art and the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the present application. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本申请一些实施例提供的一种VR一体机测试工具的结构示意图;1 is a schematic structural diagram of a VR integrated machine testing tool according to some embodiments of the present application;
图2为本申请一些实施例提供的一种VR一体机测试方法的过程的流程图。 FIG. 2 is a flowchart of a process of a VR integrated machine testing method according to some embodiments of the present disclosure.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are described in the following with reference to the accompanying drawings in the embodiments of the present application. It is apparent that the described embodiments are part of the present application. Embodiments, but not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请一些实施例提供了一种VR一体机测试工具,参见图1所示,图1为本申请一些实施例提供的一种VR一体机测试工具的结构示意图。Some embodiments of the present application provide a VR integrated machine testing tool. Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a VR integrated testing tool according to some embodiments of the present application.
该测试工具包括:The test tool includes:
测试脚本数据库5,用于存储预先设置的若干个测试项对应的测试脚本;a test script database 5, configured to store a test script corresponding to a plurality of test items set in advance;
初始化模块1,用于在测试工具开启后,读取测试脚本数据库5内的测试项列表并显示;The initialization module 1 is configured to read and display a list of test items in the test script database 5 after the test tool is turned on;
连接模块2,用于在测试工具与VR一体机进行通信连接后,获取并检测VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;The connection module 2 is configured to acquire and detect a connection state of each device in the VR integrated machine after the test tool is in communication connection with the VR integrated machine, and generate an alarm prompt if the connection has a fault;
其中,连接模块2通过adb命令返回的结果获取设备名称、产品序列号、软件版本号,并通过计时器,周期性轮询VR一体机中各个设备的连接状态。其中,adb命令为查看设备命令,这个命令是查看当前连接的设备,连接到计算机的android设备或者模拟器将会列出显示。The connection module 2 obtains the device name, the product serial number, and the software version number through the result returned by the adb command, and periodically polls the connection status of each device in the VR integrated machine through a timer. Among them, the adb command is to view the device command. This command is to view the currently connected device. The android device or emulator connected to the computer will list the display.
选择模块3,用于接收用户输入的选择命令,选择待测试的测试脚本并依次生成对应的处理文件;The selecting module 3 is configured to receive a selection command input by the user, select a test script to be tested, and sequentially generate a corresponding processing file;
测试模块4,用于依据用户输入的测试命令,按照特定顺序依次运行处理文件对VR一体机进行测试,得到测试结果并输出显示。The test module 4 is configured to test the VR machine according to the test command input by the user, and sequentially run the processing file in a specific order to obtain the test result and output the display.
其中,该测试工具可以设置在电脑中,开启时只需要运行本测试工具,即会自动读取测试脚本数据库5内的测试项列表并进行显示。The test tool can be set in the computer, and only needs to run the test tool when it is turned on, that is, the test item list in the test script database 5 is automatically read and displayed.
这里的测试脚本以特定的顺序进行排序,例如写入顺序等,其排序条件本申请不作具体限定。另外,测试项的内容根据不同的VR一体机的设备不同具有相应的区别,例如,可以包含wifi传导性测试等,具体包含哪些内容可根据实际需要自行设定。The test scripts herein are sorted in a specific order, such as a write order, etc., and the sorting conditions are not specifically limited in this application. In addition, the content of the test item has a corresponding difference according to different devices of the VR integrated machine. For example, the wifi conductivity test may be included, and the specific content may be set according to actual needs.
另外,上述操作中,用户可以对显示的测试项列表中的测试项进行点击 选择或者勾选等选择操作,系统相应的生成选择指令。可以保存用户的选择记录,该测试工具下次开启时,可按照上一次的选择记录自动添加至待测试的列表中。In addition, in the above operation, the user can click on the test item in the displayed test item list. Select or tick the selection operation, and the system generates a selection instruction accordingly. The user's selection record can be saved, and the next time the test tool is turned on, it can be automatically added to the list to be tested according to the last selection record.
选择待测试的测试脚本后,测试工具会在后台生成相应的处理文件,用户通过点击桌面上的测试项即会生成相应的测试命令,触发用户点击的测试项对应的处理文件进行测试。After selecting the test script to be tested, the test tool will generate the corresponding processing file in the background. When the user clicks the test item on the desktop, the corresponding test command is generated, and the processing file corresponding to the test item clicked by the user is triggered for testing.
一些实施例中,该测试工具还包括:In some embodiments, the testing tool further includes:
编辑模块7,用于供用户编辑新增测试项对应的测试脚本,并添加至测试脚本数据库5;供用户修改测试脚本数据库5内存储的测试脚本;供用户删除测试脚本数据库5内存储的测试脚本。The editing module 7 is configured to allow the user to edit the test script corresponding to the newly added test item, and add to the test script database 5; the user can modify the test script stored in the test script database 5; and the user deletes the test stored in the test script database 5 script.
需要注意的是,只要测试工具初始化完成即可进行编辑操作,此时是否连接VR一体机均可。It should be noted that as long as the test tool is initialized, the editing operation can be performed. At this time, whether the VR integrated machine can be connected.
即当用户点击测试工具的显示界面上设置的增加按钮时,即会跳转至编辑页面,用户可以输入相应的内容编辑测试脚本,编辑完成后保存,该测试脚本即会自动添加至测试脚本数据库5,并返回之前的列表页面;修改和删除时同理;且修改和删除操作后,测试脚本数据库5会同步保存用户操作。That is, when the user clicks the add button set on the display interface of the test tool, the user jumps to the edit page, and the user can input the corresponding content edit test script, and save it after the edit is completed, the test script is automatically added to the test script database. 5, and return to the previous list page; the same as when modifying and deleting; and after the modification and deletion operations, the test script database 5 will save the user operation synchronously.
进一步的,测试脚本具体包括:Further, the test script specifically includes:
测试名称、测试功能描述、测试脚本程序内容、脚本执行时间阈值以及用于设置脚本测试过程中是否人工确定测试结果的参量。Test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
其中,脚本执行时间阈值可以选择其具体设置阈值,可以为0,也可以为其他值,若其不为0,则执行该测试脚本时会自动触发计时器计时,一旦超过该脚本执行时间阈值,则测试结果为失败。The script execution time threshold may be selected as a specific setting threshold, and may be 0 or other values. If it is not 0, the timer is automatically triggered when the test script is executed. Once the script execution time threshold is exceeded, The test result is a failure.
另外,用于设置脚本测试过程中是否人工确定测试结果的参量的设置方式可以通过勾选显示界面上的相应部位进行设置,例如勾选表示脚本测试过程中需要人工确定,此时每当测试完成后均会弹出显示框,供用户自行选择测试成功或失败,若不勾选,表示不需要人工确认;或者可以令用户通过输入0或1来进行选择。具体采用哪种方式本申请不作具体限定。In addition, the setting method for setting the parameters of the test result manually during the script test process can be set by checking the corresponding part on the display interface, for example, the check indicates that the script needs to be manually determined during the test, and the test is completed every time. After that, a display box will pop up for the user to select the test success or failure. If not selected, it means no manual confirmation is required; or the user can select 0 or 1 by inputting. Which method is specifically adopted is not specifically limited in this application.
在一些实施例中,测试模块4具体包括:In some embodiments, the test module 4 specifically includes:
单一测试单元,用于依据用户输入的单一测试命令,运行单一测试命令对应的处理文件进行测试;a single test unit for running a test file corresponding to a single test command according to a single test command input by the user;
批量测试单元,用于依据用户输入的批量测试命令,按照特定顺序依次 运行选择模块3生成的全部处理文件进行测试;Batch test unit for sequentially pressing batch test commands entered by the user in a specific order Run all the processing files generated by the selection module 3 for testing;
结果显示单元,用于在每个处理文件测试完成后,显示处理文件的测试结果,测试结果包括测试成功、测试失败、获取的相应参数值中的任一种。The result display unit is configured to display a test result of the processed file after the completion of the test of each processed file, and the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
在其他实施例中,测试模块4也可仅包含单一测试单元或批量测试单元中的任一个。In other embodiments, the test module 4 may also include only any of a single test unit or a batch test unit.
在其他实施例中,当用户输入的是单一测试命令时,结果显示单元在该测试项测试完成后,即显示该测试项的测试结果,当用户输入的是批量测试命令时,结果显示单元可以在每个处理文件测试完成后即显示该处理文件对应的测试结果,或者是在全部处理文件处理完成后统一显示全部处理文件的测试结果。具体采用哪种测试结果的显示方式本申请不作限定。In other embodiments, when the user inputs a single test command, the result display unit displays the test result of the test item after the test item is completed. When the user inputs the batch test command, the result display unit may After the test of each processing file is completed, the test result corresponding to the processing file is displayed, or the test result of all the processed files is uniformly displayed after the processing of all the processed files is completed. The manner in which the test results are specifically used is not limited in this application.
一些实施例,测试模块4还包括:In some embodiments, the test module 4 further includes:
报告生成单元,用于在全部处理文件测试完成后,生成全部处理文件的测试报告并进行显示;或在每个处理文件测试完成后,即生成测试文件的测试报告并进行显示;测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。a report generating unit, configured to generate a test report of all processed files and display them after all the processed files are completed; or after each test file is completed, generate a test report of the test file and display the test report; the test report includes the test Item and its corresponding test time, test results, and/or cause of failure.
其中,测试报告还可包括测试设备信息等,当然还可包含其他信息,本申请对此不作限定。The test report may also include test device information and the like, and may of course include other information, which is not limited in this application.
另外,测试报告也可以在每个处理文件测试完成后即显示该处理文件对应的测试报告或在全部处理文件处理完成后统一显示全部处理文件的测试报告,具体采用哪种测试报告的显示方式本申请不作限定。In addition, the test report can also display the test report corresponding to the processing file after the completion of the test of each processing file or the test report that uniformly displays all the processed files after the processing of all the processed files is completed, and the specific display method of which test report is used. The application is not limited.
一些实施例中,该测试工具还包括:In some embodiments, the testing tool further includes:
历史数据库8,用于存储测试报告。 Historical database 8, for storing test reports.
可以理解的是,由于测试报告记录的测试内容较为全面,通过存储该测试报告,便于工作人员后续查看和分析。It can be understood that since the test report records the test content more comprehensively, by storing the test report, it is convenient for the staff to follow and analyze.
一些实施例中,该测试工具还包括:In some embodiments, the testing tool further includes:
加密模块6,用于在设置的测试脚本存入测试脚本数据库5之前对其进行加密,并将加密后的测试脚本存入测试脚本数据库5。The encryption module 6 is configured to encrypt the set test script before it is stored in the test script database 5, and store the encrypted test script in the test script database 5.
其中,这里的加密算法可以为MD5算法,当然还可采用其他加密算法,本申请不作具体限定。可以理解的是,本申请中的测试脚本均是根据各个测试项对应的测试命令生成的,通过进行加密,能够避免测试命令外泄,造成技术损失。 The encryption algorithm herein may be the MD5 algorithm, and of course, other encryption algorithms may also be used, which is not specifically limited in this application. It can be understood that the test scripts in the present application are all generated according to the test commands corresponding to the respective test items. By performing encryption, the test commands can be prevented from leaking, resulting in technical loss.
其中,测试工具通过USB连接VR一体机。这里的连接指的是测试工具所在的装置与VR一体机连接,当然,也可采用其他接口连接。Among them, the test tool connects to the VR all-in-one via USB. The connection here refers to the connection between the device where the test tool is located and the VR all-in-one. Of course, other interfaces can also be used.
另外,在依据测试命令生成测试脚本的过程中,需要写出测试过程中所有的逻辑判断,最后只返回成功、失败或需要获取的相应参数;测试脚本中添加必要的log信息,用于显示和判断失败原因。当然,本申请不限定具体的测试脚本内容。In addition, in the process of generating a test script according to the test command, it is necessary to write all the logical judgments in the test process, and finally only return the corresponding parameters of success, failure or need to be acquired; add necessary log information in the test script for display and Determine the reason for the failure. Of course, this application does not limit the specific test script content.
本申请一些实施例提供了一种VR一体机测试工具,在测试脚本数据库中预先设置了若干个测试项对应的测试脚本,用户使用时,只需要输入的选择命令相应的测试脚本,测试脚本即会生成处理文件,之后用户输入测试命令,即会依据该处理文件对VR一体机进行相应的测试操作,并显示得到的测试结果。可见,本申请一些实施例提供的测试工具大大提高了测试的自动化程度,简化了测试过程,减少了工作人员的工作量,提高了VR一体机的测试效率。Some embodiments of the present application provide a VR integrated machine testing tool. In the test script database, a test script corresponding to a plurality of test items is preset in advance. When the user uses the test script, only the corresponding test script is input, and the test script is A processing file is generated, and after the user inputs a test command, the corresponding test operation is performed on the VR integrated machine according to the processing file, and the obtained test result is displayed. It can be seen that the testing tools provided by some embodiments of the present application greatly improve the automation of the test, simplify the testing process, reduce the workload of the staff, and improve the testing efficiency of the VR integrated machine.
本申请一些实施例还提供了一种VR一体机测试方法,参见图2所示,图2为本申请提供的一种VR一体机测试方法的过程的流程图。该方法包括:Some embodiments of the present application further provide a VR integrated machine testing method. Referring to FIG. 2, FIG. 2 is a flowchart of a process of a VR integrated machine testing method provided by the present application. The method includes:
步骤s1:读取测试脚本数据库内存储的若干个测试项对应的测试脚本的测试项列表并发送至显示装置进行显示;Step s1: reading a test item list of the test script corresponding to the plurality of test items stored in the test script database and sending the list of test items to the display device for display;
步骤s2:在与VR一体机进行通信连接后,获取并检测VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;Step s2: After communicating with the VR integrated machine, acquiring and detecting the connection status of each device in the VR integrated machine, if the connection has a fault, generating an alarm prompt;
步骤s3:接收用户输入的选择命令后,选择待测试的测试脚本并依次生成对应的处理文件;Step s3: After receiving the selection command input by the user, selecting a test script to be tested and sequentially generating a corresponding processing file;
步骤s4:依据用户输入的测试命令,按照特定顺序依次运行处理文件对VR一体机进行测试,得到测试结果并输出显示。Step s4: According to the test command input by the user, the processing file is sequentially run in a specific order to test the VR integrated machine, and the test result is obtained and outputted.
一些实施例中,该方法还包括:In some embodiments, the method further includes:
依据用户输入的编辑指令编辑新增测试项对应的测试脚本,并添加至测试脚本数据库;依据用户输入的修改指令修改测试脚本数据库内存储的测试脚本;依据用户输入的删除指令删除测试脚本数据库内存储的测试脚本。Editing the test script corresponding to the newly added test item according to the editing instruction input by the user, and adding to the test script database; modifying the test script stored in the test script database according to the modification instruction input by the user; deleting the test script database according to the deletion instruction input by the user Stored test scripts.
其中,测试脚本具体包括:Among them, the test script specifically includes:
测试名称、测试功能描述、测试脚本程序内容、脚本执行时间阈值以及用于设置脚本测试过程中是否人工确定测试结果的参量。 Test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
一些实施例中,依据用户输入的测试命令,按照特定顺序依次运行处理文件对VR一体机进行测试,得到测试结果并输出显示的过程具体包括:In some embodiments, according to the test command input by the user, the processing file is sequentially run in a specific order to test the VR integrated machine, and the process of obtaining the test result and outputting the display specifically includes:
若用户输入的为单一测试命令,则运行单一测试命令对应的处理文件进行测试;If the user inputs a single test command, the test file corresponding to the single test command is run for testing;
若用户输入的为批量测试命令,则按照特定顺序依次运行生成的全部处理文件进行测试;If the user inputs a batch test command, all the generated processing files are sequentially run in a specific order for testing;
在每个处理文件测试完成后,显示处理文件的测试结果,测试结果包括测试成功、测试失败、获取的相应参数值中的任一种。After each processing file test is completed, the test result of the processing file is displayed, and the test result includes any one of the test parameter success, the test failure, and the corresponding parameter value obtained.
一些实施例中,该方法还包括:In some embodiments, the method further includes:
在全部处理文件测试完成后,生成全部处理文件的测试报告并进行显示;After the test of all processed files is completed, a test report of all processed files is generated and displayed;
或在每个处理文件测试完成后,即生成测试文件的测试报告并进行显示;测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。Or after each processing file test is completed, a test report of the test file is generated and displayed; the test report includes the test item and its corresponding test time, test result and/or failure reason.
一些实施例中,该方法还包括:In some embodiments, the method further includes:
在设置的测试脚本存入测试脚本数据库之前对其进行加密,并将加密后的测试脚本存入测试脚本数据库。The set test script is encrypted before being stored in the test script database, and the encrypted test script is stored in the test script database.
本申请一些实施例提供了一种VR一体机测试方法,在测试脚本数据库中预先设置了若干个测试项对应的测试脚本,用户使用时,只需要输入的选择命令相应的测试脚本,测试脚本即会生成处理文件,之后用户输入测试命令,即会依据该处理文件对VR一体机进行相应的测试操作,并显示得到的测试结果。可见,本申请一些实施例提供的测试工具大大提高了测试的自动化程度,简化了测试过程,减少了工作人员的工作量,提高了VR一体机的测试效率。Some embodiments of the present application provide a VR integrated machine test method. In the test script database, a test script corresponding to a plurality of test items is preset, and when the user uses, only the corresponding test script of the input command is required, and the test script is A processing file is generated, and after the user inputs a test command, the corresponding test operation is performed on the VR integrated machine according to the processing file, and the obtained test result is displayed. It can be seen that the testing tools provided by some embodiments of the present application greatly improve the automation of the test, simplify the testing process, reduce the workload of the staff, and improve the testing efficiency of the VR integrated machine.
本申请一些实施例还提供了一种计算机,包括显示屏幕、存储器以及通过总线与存储器连接的处理器,处理器与显示屏幕通过接口连接;Some embodiments of the present application further provide a computer, including a display screen, a memory, and a processor connected to the memory through a bus, where the processor is connected to the display screen;
存储器,用于存储计算机可读程序代码;a memory for storing computer readable program code;
处理器,用于调用存储器中存储的程序代码,执行以下操作:The processor is used to call the program code stored in the memory, and performs the following operations:
读取存储器内存储的若干个测试项对应的测试脚本的测试项列表并发送至显示屏幕进行显示;在计算机与VR一体机进行通信连接后,获取并检测VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;接收 用户输入的选择命令后,选择待测试的测试脚本并依次生成对应的处理文件;依据用户输入的测试命令,按照特定顺序依次运行处理文件对VR一体机进行测试,得到测试结果并输出至显示屏幕进行显示。Reading a test item list of test scripts corresponding to a plurality of test items stored in the memory and sending them to the display screen for display; after the computer and the VR integrated machine are communicatively connected, acquiring and detecting the connection status of each device in the VR integrated machine, If there is a fault in the connection, an alarm prompt is generated; receiving After the user selects the selection command, the test script to be tested is selected and the corresponding processing file is generated in sequence; according to the test command input by the user, the processing file is sequentially executed in a specific order to test the VR integrated machine, and the test result is obtained and output to the display screen. Display.
在另一写些实施例中,处理器还用于调用存储器中存储的程序代码执行以下操作:In another embodiment, the processor is further configured to call program code stored in the memory to perform the following operations:
依据用户输入的编辑指令编辑新增测试项对应的测试脚本,并添加至测试脚本数据库;依据用户输入的修改指令修改测试脚本数据库内存储的测试脚本;依据用户输入的删除指令删除测试脚本数据库内存储的测试脚本。Editing the test script corresponding to the newly added test item according to the editing instruction input by the user, and adding to the test script database; modifying the test script stored in the test script database according to the modification instruction input by the user; deleting the test script database according to the deletion instruction input by the user Stored test scripts.
在另一些实施例中,处理器在依据用户输入的测试命令,按照特定顺序依次运行处理文件对VR一体机进行测试,得到测试结果并输出显示的过程中具体用于调用存储器中存储的程序代码执行以下操作:In other embodiments, the processor tests the VR machine in a specific order according to the test command input by the user, and obtains the test result and outputs the display program to specifically call the program code stored in the memory. Do the following:
若用户输入的为单一测试命令,则运行单一测试命令对应的处理文件进行测试;若用户输入的为批量测试命令,则按照特定顺序依次运行生成的全部处理文件进行测试;在每个处理文件测试完成后,在显示屏幕上显示处理文件的测试结果,测试结果包括测试成功、测试失败、获取的相应参数值中的任一种。If the user inputs a single test command, the test file corresponding to the single test command is run for testing; if the user inputs the batch test command, all the generated processing files are sequentially run in a specific order for testing; in each processed file test After completion, the test result of the processed file is displayed on the display screen, and the test result includes any one of the test parameter success, the test failure, and the corresponding parameter value obtained.
在另一些实施例中,处理器还用于调用存储器中存储的程序代码执行以下操作:In other embodiments, the processor is further configured to call program code stored in the memory to perform the following operations:
在全部处理文件测试完成后,生成全部处理文件的测试报告并输出至显示屏幕进行显示;或在每个处理文件测试完成后,即生成测试文件的测试报告并输出至显示屏幕进行显示;测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。After all the processing files are tested, a test report of all processed files is generated and output to the display screen for display; or after each processing file test is completed, a test report of the test file is generated and output to the display screen for display; the test report Includes test items and their corresponding test times, test results, and/or cause of failure.
在另一些实施例中,处理器还用于调用存储器中存储的程序代码执行以下操作:In other embodiments, the processor is further configured to call program code stored in the memory to perform the following operations:
在设置的测试脚本存入存储器之前对其进行加密,并将加密后的测试脚本存入存储器。The set test script is encrypted before being stored in the memory, and the encrypted test script is stored in the memory.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括 一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in the present specification, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or There is any such actual relationship or order between operations. Moreover, the terms "including", "comprising" or "comprising" or any other variations thereof are intended to encompass a non-exclusive inclusion so as to include A process, method, article, or device of a series of elements includes not only those elements, but also other elements not specifically listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其他实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables those skilled in the art to make or use the application. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application is not limited to the embodiments shown herein, but is to be accorded the broadest scope of the principles and novel features disclosed herein.

Claims (11)

  1. 一种VR一体机测试工具,其特征在于,包括:A VR integrated machine testing tool, comprising:
    测试脚本数据库,用于存储预先设置的若干个测试项对应的测试脚本;a test script database for storing a test script corresponding to a plurality of test items set in advance;
    初始化模块,用于在所述测试工具开启后,读取所述测试脚本数据库内的测试项列表并显示;An initialization module, configured to: after the test tool is turned on, read a list of test items in the test script database and display the same;
    连接模块,用于在所述测试工具与所述VR一体机进行通信连接后,获取并检测所述VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;a connection module, configured to acquire and detect a connection state of each device in the VR integrated machine after the test tool is in communication connection with the VR integrated machine, and generate an alarm prompt if the connection has a fault;
    选择模块,用于接收用户输入的选择命令,选择待测试的测试脚本并依次生成对应的处理文件;a selection module, configured to receive a selection command input by the user, select a test script to be tested, and sequentially generate a corresponding processing file;
    测试模块,用于依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出显示。The test module is configured to test the VR integrated machine by running the processing file in a specific order according to a test command input by the user, and obtain a test result and output a display.
  2. 根据权利要求1所述的测试工具,其特征在于,还包括:The testing tool according to claim 1, further comprising:
    编辑模块,用于供用户编辑新增测试项对应的测试脚本,并添加至所述测试脚本数据库;供用户修改所述测试脚本数据库内存储的测试脚本;供用户删除所述测试脚本数据库内存储的测试脚本。An editing module, configured to allow a user to edit a test script corresponding to the newly added test item, and add the test script to the test script database; the user can modify the test script stored in the test script database; and the user deletes the test script database storage Test script.
  3. 根据权利要求1或2所述的测试工具,其特征在于,所述测试模块具体包括:The testing tool according to claim 1 or 2, wherein the testing module specifically comprises:
    单一测试单元,用于依据用户输入的单一测试命令,运行所述单一测试命令对应的处理文件进行测试;a single test unit, configured to run a test file corresponding to the single test command according to a single test command input by the user;
    批量测试单元,用于依据用户输入的批量测试命令,按照特定顺序依次运行所述选择模块生成的全部处理文件进行测试;a batch test unit, configured to sequentially run all the processing files generated by the selection module according to a batch test command input by the user;
    结果显示单元,用于在每个所述处理文件测试完成后,显示所述处理文件的测试结果,所述测试结果包括测试成功、测试失败、获取的相应参数值中的任一种。a result display unit, configured to display a test result of the processing file after each of the processing file tests is completed, where the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
  4. 根据权利要求1-3任一项所述的测试工具,其特征在于,所述测试模块还包括:The test tool according to any one of claims 1 to 3, wherein the test module further comprises:
    报告生成单元,用于在全部所述处理文件测试完成后,生成全部所述处理文件的测试报告并进行显示;或在每个所述处理文件测试完成后,即生成所述测试文件的测试报告并进行显示;所述测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。 a report generating unit, configured to generate a test report of all the processed files and display the test after all the processing files are completed; or generate a test report of the test file after each of the processed file tests is completed And displaying; the test report includes the test item and its corresponding test time, test result and/or cause of failure.
  5. 根据权利要求2-4任一项所述的测试工具,其特征在于,还包括:The testing tool according to any one of claims 2 to 4, further comprising:
    加密模块,用于在设置的测试脚本存入所述测试脚本数据库之前对其进行加密,并将加密后的测试脚本存入所述测试脚本数据库。And an encryption module, configured to encrypt the set test script before storing the test script in the test script database, and store the encrypted test script in the test script database.
  6. 一种VR一体机测试方法,其特征在于,包括:A VR integrated machine testing method, characterized in that it comprises:
    读取测试脚本数据库内存储的若干个测试项对应的测试脚本的测试项列表并发送至显示装置进行显示;Reading a test item list of the test script corresponding to the plurality of test items stored in the test script database and sending the list of test items to the display device for display;
    在与所述VR一体机进行通信连接后,获取并检测所述VR一体机中各个设备的连接状态,若连接存在故障,则生成报警提示;After being connected to the VR integrated machine, acquiring and detecting the connection status of each device in the VR integrated machine, and generating an alarm prompt if there is a fault in the connection;
    接收用户输入的选择命令后,选择待测试的测试脚本并依次生成对应的处理文件;After receiving the selection command input by the user, selecting a test script to be tested and sequentially generating a corresponding processing file;
    依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出显示。According to the test command input by the user, the processing file is sequentially executed in a specific order to test the VR integrated machine, and the test result is obtained and outputted.
  7. 根据权利要求6所述的方法,其特征在于,还包括:The method of claim 6 further comprising:
    依据用户输入的编辑指令编辑新增测试项对应的测试脚本,并添加至所述测试脚本数据库;依据用户输入的修改指令修改所述测试脚本数据库内存储的测试脚本;依据用户输入的删除指令删除所述测试脚本数据库内存储的测试脚本。Editing a test script corresponding to the newly added test item according to an edit instruction input by the user, and adding the test script to the test script database; modifying the test script stored in the test script database according to the modification instruction input by the user; deleting according to the deletion instruction input by the user The test script stored in the test script database.
  8. 根据权利要求6或7所述的方法,其特征在于,所述测试脚本具体包括:The method according to claim 6 or 7, wherein the test script specifically comprises:
    测试名称、测试功能描述、测试脚本程序内容、脚本执行时间阈值以及用于设置脚本测试过程中是否人工确定测试结果的参量。Test name, test function description, test script program content, script execution time threshold, and parameters used to set whether the test result is manually determined during the script test.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述依据用户输入的测试命令,按照特定顺序依次运行所述处理文件对所述VR一体机进行测试,得到测试结果并输出显示的过程具体包括:The method according to any one of claims 1-8, wherein the test is performed according to a test command input by a user, and the processing file is sequentially executed in a specific order to test the VR integrated machine, and the test result is obtained and output. The process of display specifically includes:
    若用户输入的为单一测试命令,则运行所述单一测试命令对应的处理文件进行测试;If the user inputs a single test command, the processing file corresponding to the single test command is run for testing;
    若用户输入的为批量测试命令,则按照特定顺序依次运行生成的全部处理文件进行测试;If the user inputs a batch test command, all the generated processing files are sequentially run in a specific order for testing;
    在每个所述处理文件测试完成后,显示所述处理文件的测试结果,所述测试结果包括测试成功、测试失败、获取的相应参数值中的任一种。After each of the processing file tests is completed, a test result of the processing file is displayed, and the test result includes any one of a test success, a test failure, and a corresponding parameter value obtained.
  10. 根据权利要求6-9任一项所述的方法,其特征在于,还包括: The method of any of claims 6-9, further comprising:
    在全部所述处理文件测试完成后,生成全部所述处理文件的测试报告并进行显示;After all the processing file tests are completed, a test report of all the processing files is generated and displayed;
    或在每个所述处理文件测试完成后,即生成所述测试文件的测试报告并进行显示;所述测试报告包括测试项及其对应的测试时间、测试结果和/或失败原因。Or after each of the processing file tests is completed, a test report of the test file is generated and displayed; the test report includes the test item and its corresponding test time, test result, and/or failure reason.
  11. 根据权利要求7-10任一项所述的方法,其特征在于,还包括:The method according to any one of claims 7 to 10, further comprising:
    在设置的测试脚本存入所述测试脚本数据库之前对其进行加密,并将加密后的测试脚本存入所述测试脚本数据库。 The set test script is encrypted before being stored in the test script database, and the encrypted test script is stored in the test script database.
PCT/CN2017/095389 2017-06-28 2017-08-01 Vr integrated machine testing tool and method therefor WO2019000551A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710507152.4A CN107301130A (en) 2017-06-28 2017-06-28 A kind of VR all-in-ones testing tool and its method
CN201710507152.4 2017-06-28

Publications (1)

Publication Number Publication Date
WO2019000551A1 true WO2019000551A1 (en) 2019-01-03

Family

ID=60135997

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095389 WO2019000551A1 (en) 2017-06-28 2017-08-01 Vr integrated machine testing tool and method therefor

Country Status (2)

Country Link
CN (1) CN107301130A (en)
WO (1) WO2019000551A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326207A (en) * 2021-06-30 2021-08-31 福建天泉教育科技有限公司 Automatic testing system and method for Steam VR program

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108490336B (en) * 2018-03-14 2021-07-16 广州视源电子科技股份有限公司 Board card testing method and system, readable storage medium and computer equipment
CN110633203A (en) * 2018-06-21 2019-12-31 深圳市鸿合创新信息技术有限责任公司 Automatic test method for touch screen all-in-one machine software
CN109459635B (en) * 2018-11-09 2021-11-30 杭州妙娱科技有限公司 Virtual reality game equipment fault monitoring method and device
CN109840198A (en) * 2018-12-13 2019-06-04 平安普惠企业管理有限公司 The method, apparatus and computer equipment of test software based on automatic testing instrument
CN109683038A (en) * 2018-12-20 2019-04-26 深圳市亿境虚拟现实技术有限公司 A kind of virtual reality products connective stability Auto-Test System and test method
CN109976988A (en) * 2019-03-15 2019-07-05 山东云缦智能科技有限公司 A kind of method and device of dynamic configuration graphical interface
CN110362439A (en) * 2019-06-05 2019-10-22 黄疆 A kind of automatic delivery detection method of storage device
CN111552698B (en) * 2020-04-21 2023-06-06 重庆富民银行股份有限公司 SQL version control system and method for solving environmental difference
CN112965907A (en) * 2021-03-11 2021-06-15 南京爱奇艺智能科技有限公司 VR APP automatic test method and device
CN115858404B (en) * 2023-03-01 2023-05-12 上海合见工业软件集团有限公司 EDA-based graphical user interface testing system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331363A (en) * 2014-10-17 2015-02-04 上海斐讯数据通信技术有限公司 Automatic testing method for Android device
CN105988904A (en) * 2015-02-06 2016-10-05 展讯通信(天津)有限公司 Self-adaptive testing method and system
CN106501633A (en) * 2016-09-27 2017-03-15 捷开通讯科技(上海)有限公司 The test system and method for Wearable electronic equipment
CN106776320A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 Android intelligent terminal automatization test system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8347147B2 (en) * 2009-03-09 2013-01-01 Wipro Limited Lifecycle management of automated testing
CN102103540A (en) * 2011-03-23 2011-06-22 镇江睿泰信息科技有限公司 Cloud test device and method for general software system
CN103500139B (en) * 2013-09-25 2016-01-13 刘爱琴 A kind of communication software integrated test system and method for testing
CN103684581B (en) * 2013-12-20 2019-07-05 上海斐讯数据通信技术有限公司 A kind of automated testing method of optical network unit vlan function
CN105045699B (en) * 2015-08-06 2018-12-07 惠州Tcl移动通信有限公司 Mobile terminal and smart card uniformity test connect the method and system of race automatically

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331363A (en) * 2014-10-17 2015-02-04 上海斐讯数据通信技术有限公司 Automatic testing method for Android device
CN105988904A (en) * 2015-02-06 2016-10-05 展讯通信(天津)有限公司 Self-adaptive testing method and system
CN106501633A (en) * 2016-09-27 2017-03-15 捷开通讯科技(上海)有限公司 The test system and method for Wearable electronic equipment
CN106776320A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 Android intelligent terminal automatization test system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326207A (en) * 2021-06-30 2021-08-31 福建天泉教育科技有限公司 Automatic testing system and method for Steam VR program
CN113326207B (en) * 2021-06-30 2023-09-22 福建天泉教育科技有限公司 Automatic testing system and method for stem VR program

Also Published As

Publication number Publication date
CN107301130A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
WO2019000551A1 (en) Vr integrated machine testing tool and method therefor
US8645912B2 (en) System and method for use in replaying software application events
CN104331373A (en) Monkey test system and method
US8893035B2 (en) Method, system and graphical user interface for configuring a simulator to simulate a plurality of devices
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
US20160283353A1 (en) Automated software testing
US9471453B2 (en) Management of test artifacts using cascading snapshot mechanism
CN107659455B (en) Method, storage medium, device and system for Mock data of iOS (internet operating system) end
CN103365643A (en) Method and device for automatically generating testing script of graphical user interface
CN105224458A (en) A kind of database method of testing and system
CN110888818A (en) Test case configuration system and method, automatic test system and method
US10713070B2 (en) Systems and methods for capturing and visualizing user interactions across devices
CN108830383B (en) Method and system for displaying machine learning modeling process
CN107463391B (en) Task processing method, device and equipment
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
CN115935035A (en) RPA flow visualization management method, device, equipment and readable storage medium
US8397114B2 (en) Automated regression testing intermediary
JP6198529B2 (en) Test execution system, test execution device, test execution method, and test execution program
US10719261B2 (en) User selectable erasure and diagnostic method and system
US6983454B2 (en) Extended “run to” function
KR101664761B1 (en) Project data creation device
US10114362B2 (en) Method and system for controlling the production process of a product
TWI393897B (en) Integrated test method and system using the same
US10162849B1 (en) System, method, and computer program for automatic database validation associated with a software test
JP7294609B2 (en) Program, Method, and Device for Supporting Software Operation Scenario Generation

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

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

Country of ref document: EP

Kind code of ref document: A1