WO2019023987A1 - 一种基于智能终端的测试方法及测试系统 - Google Patents

一种基于智能终端的测试方法及测试系统 Download PDF

Info

Publication number
WO2019023987A1
WO2019023987A1 PCT/CN2017/095631 CN2017095631W WO2019023987A1 WO 2019023987 A1 WO2019023987 A1 WO 2019023987A1 CN 2017095631 W CN2017095631 W CN 2017095631W WO 2019023987 A1 WO2019023987 A1 WO 2019023987A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
operating system
smart terminal
module
tested
Prior art date
Application number
PCT/CN2017/095631
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 深圳传音通讯有限公司
Priority to PCT/CN2017/095631 priority Critical patent/WO2019023987A1/zh
Publication of WO2019023987A1 publication Critical patent/WO2019023987A1/zh

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

Definitions

  • the present invention relates to the field of intelligent terminals, and in particular, to a test method and a test system based on an intelligent terminal.
  • smart terminal devices with operating systems such as smart phones, tablet computers, multimedia players, and smart TVs have become an indispensable part of people's daily lives, facilitating users to implement various functions, such as communicating with external communications and playing multimedia. File, data storage and other functions.
  • the smart terminal is actually an application type of a computer.
  • the operating system is a computer program that manages and controls computer hardware and software resources. It is the most basic system software that runs directly on the "bare metal". Any other software must be supported by the operating system. Can run.
  • the operating system is the interface between the user and the computer, and is also the interface between the computer hardware and other software.
  • the functions of the operating system include managing the hardware, software and data resources of the computer system, controlling the running of the program, improving the human-machine interface, providing support for other application software, maximizing the resources of the computer system, and providing various forms of user interfaces.
  • the operating system manages the computer hardware resources, and allocates resources according to the resource request of the application, such as: dividing the CPU time, opening the memory space, calling the printer, and the like.
  • the original computer did not have an operating system. People used various operating buttons to control the computer. Later, assembly language appeared. The operator used the holed paper tape to input the program into the computer for compilation. These computers with built-in language can only be run by the operators themselves, which is not conducive to the sharing of devices and programs. In order to solve this problem, an operating system has emerged, which makes it easy to share programs and manage computer hardware resources.
  • the current mainstream operating systems include Android (Android) operating system and IOS operating system, of which Android (Android) operating system developed by Google, is a Linux-based free and open source operating system, mainly Used on mobile devices such as smartphones and tablets; iOS operating system is opened by Apple Hair, not open source code, applied to the series of products designed by Apple.
  • the Chinese invention patent publication discloses a deployment method, device and system based on continuous integration, and is applied to a smart television of an android system.
  • the main contents include: the continuous integration device interacts with the smart TV through the serial port, and sends a stop command when the smart TV running boot program is detected, the smart TV stops running the boot program, and according to the received configuration information Configuring its own IP address; the continuous integration device sends a flash command to the smart TV, and the smart TV acquires the generated upgrade file and performs a flash operation according to the IP address information of the continuous integrated device that matches its own IP address information.
  • the android system's smart TV can not make up for the defects of automatic brushing, and at the same time, avoid the active intervention of testers and improve the efficiency of brushing.
  • the prior art discloses a method and apparatus for automatically brushing a smart TV
  • the invention does not provide a method for functional testing of a smart TV after successful brushing, and requires an additional method or device to test the operating system for developers. It is inconvenient for the tester.
  • a new intelligent terminal-based test method is needed, which enables the operator to quickly and easily complete the installation and testing process of the operating system, save operating steps, and improve work efficiency.
  • the object of the present invention is to provide a test method and a test system based on an intelligent terminal, and to implement a process of installing and testing an operating system to be tested by running a test module in the smart terminal.
  • the invention discloses a testing method based on an intelligent terminal, comprising the following steps:
  • the test module installs an operating system to be tested in the smart terminal
  • the test module configures an environmental parameter of the smart terminal
  • the test module performs a compatibility test on the operating system to be tested, and records the test result;
  • the smart terminal feeds back the test result.
  • the test method further includes the following steps:
  • the test module installs an operating system to be tested in the smart terminal
  • the operating system to be tested is an Android operating system.
  • the step of installing, by the test module, an operating system to be tested in the smart terminal comprises:
  • the compatibility test includes data reading and writing, screen display, and sound playback.
  • the invention also discloses a smart terminal based test system, the test system comprising:
  • test module located in the smart terminal, running on the smart terminal
  • An operating system installation module is disposed in the test module, and installs an operating system to be tested in the smart terminal;
  • a configuration module configured in the test module, configured to configure an environment parameter of the smart terminal
  • a compatibility test module configured in the test module, performing a compatibility test on the operating system to be tested, and recording the test result
  • the result feedback module is disposed in the smart terminal and connected to the compatibility test module to feed back the test result.
  • the test system further includes a connection confirmation module, which is disposed in the smart terminal, and confirms that at least one smart terminal is connected to a server.
  • a connection confirmation module which is disposed in the smart terminal, and confirms that at least one smart terminal is connected to a server.
  • the operating system to be tested installed in the smart terminal by the operating system installation module is an Android operating system.
  • the operating system installation module further includes:
  • a rights management unit acquiring an administrator authority of the smart terminal
  • a file transfer unit configured to send the installation file of the operating system to be tested to the smart terminal
  • the compatibility test module when the compatibility test module performs a compatibility test on the operating system to be tested, the compatibility test includes data reading and writing, screen display, and sound playback.
  • FIG. 1 is a schematic flow chart of a test method based on a smart terminal in accordance with a preferred embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a smart terminal-based test method according to another preferred embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a test method based on a smart terminal in accordance with still another preferred embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a test system based on a smart terminal in accordance with a preferred embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a test system based on an intelligent terminal in accordance with another preferred embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a test system based on a smart terminal in accordance with still another preferred embodiment of the present invention.
  • test is a schematic flowchart of a smart terminal-based test method according to a preferred embodiment of the present invention. To install an operating system to be tested in an intelligent terminal and test the operating system to be tested, the following steps are performed. test:
  • the smart terminal may be a smart device with an operating system, such as a smart phone, a tablet computer, or a multimedia player.
  • the test module 11 can be run in the form of a script that executes the test process based on the test code in the script.
  • the script is an extension of a batch file, and is a program stored in plain text.
  • a computer script program is a combination of a series of operations that control a computer to perform an operation operation, in which a certain logic can be realized. Branches, etc.
  • the scripting language is quite a lot, and the execution of a general scripting language is only explained with specific explanation. Actuator related, so as long as there is a corresponding language interpreter on the system, you can cross-platform.
  • the script run by the test module 11 is written according to the language or development environment compatible with the operating system of the smart terminal.
  • the Android system various scripts developed on the Linux environment are often run. Because the Android system is originally a Linux operating system, when you test the script, you can enter the shell environment of the device or emulator, and run the Linux operation commands to perform various operations.
  • the script can be run directly under the existing operating system environment, without any auxiliary program opening, and the operation is simple.
  • the subsequent steps of the testing method are all controlled by the testing module 11, and no other modules are involved, which reduces the complexity of the testing process, and the user only needs to run the test in the smart terminal. Module 11, the subsequent only need to wait for the test module to automatically run, and save other operations.
  • test module installs an operating system to be tested in the smart terminal.
  • the operating system to be tested is first installed on the smart terminal, which is commonly known as "brushing machine" in the industry.
  • the operating system to be tested refers to an operating system that needs to be tested and performance in a subsequent step, and is generally a version in the development process or a version before being officially launched. Whether it is Windows operating system, Android system or IOS operating system, this installation test process must be experienced in the process of developing a new version to ensure the reliability and stability of the new version of the operating system.
  • the installation file of the operating system to be tested needs to be prepared in the smart terminal, that is, the installation file of the operating system to be tested needs to be copied in advance to the smart terminal.
  • the operating system is installed in a slightly different way.
  • the target storage area is generally formatted by the basic input/output system (BIOS system) of the smart terminal, and then the test operating system is booted and installed; the installation process includes installation and driving of various components of the operating system. Steps such as program installation, account setting, etc. Finally, the newly installed operating system restarts the smart terminal to complete all configurations.
  • the smart terminal is first controlled to enter a specific working mode, such as a recovery mode; then the specific key combination is manually pressed according to the brand model of the smart terminal to enter the installation interface, or the test module obtains the administrator authority. Run the installation command directly, run the installation file of the operating system to be tested, overwrite the original operating system, and finally restart the device to complete the installation process.
  • the test module configures an environment parameter of the smart terminal.
  • the environment parameters need to be configured for any operating system.
  • the environment parameter generally refers to some parameters used in the operating system to specify the operating environment of the operating system, such as: temporary folder location and system folder location; it contains information used by one or more applications. .
  • the path environment variable in Windows and DOS operating systems when the system is required to run a program without telling the full path of the program, the system In addition to looking for this program in the current directory, you should also go to the path specified in the path. Users can run processes better by setting environment variables. For smart terminals, multiple third-party applications are often installed and installed, and the installation location and operating parameters of these applications need to be set. In addition, network parameters need to be set so that the smart terminal can connect to the Internet.
  • the account of the operating system it is also possible to set the account of the operating system, because there are often more than one user using the smart terminal, so an administrator account can be set up, which has the highest operation authority; a general user account is set, which has normal operation authority; Less operational privileges.
  • the environment parameter is configured on the smart terminal according to the parameter information recorded in the test module 11.
  • test module performs a compatibility test on the operating system to be tested, and records the test result.
  • This step performs a compatibility test, and the test module 11 executes a test command to test the function that needs to be tested.
  • CTS compatibility test
  • CDD compatibility definition document
  • Self-management program The CTS test suite contains approximately 24,000 test cases running on Android devices for phone, graphics, camera, GPS, touch screen, wireless network and more.
  • Google publishes a CDD document for each major Android release, which specifies the specific requirements for each type of test in the CTS.
  • CTS has a compatibility test package.
  • CTS is an automated test tool that includes two main software components: CTS test tools can run on your desktop and manage test execution. Perform individual test cases on connected mobile devices or emulators.
  • the smart terminal device needs to pass the Android Compatibility Test (CTS) to ensure that the program developed on android can run on the mobile device.
  • CTS Android Compatibility Test
  • the device only meets the CDD regulations and can obtain the Android trademark and enjoy Android through CTS. Market permissions.
  • the test module 11 integrates some test cases of the CTS, and selects relevant compatibility test cases or test cases that are prone to problems during operation according to the needs of the developer.
  • the test module 11 sequentially executes the code of the test case, detects the function, and records the test process and the test result.
  • the smart terminal feeds back the test result obtained in step S4.
  • the feedback of the test results is very important for the test process. Only when the test results are fed back, can the developers or testers know if there is a problem with the new version of the operating system, what problems exist, and improve them.
  • the test result should include the test content and verification result of each test object; if an abnormality or error occurs, the abnormality or error needs to be recorded. Mistakes and background.
  • the feedback may be performed by displaying a test result on the screen of the smart terminal, or generating a test report, which is to be viewed after the user exports.
  • the test result obtained in step S4 is generally a universally readable file, such as a txt file or a log file, and the smart terminal acquires the test result from the test module 11 and displays it on the screen.
  • the operating system to be tested is an Android operating system.
  • the test target is the Android operating system, that is, the Android operating system.
  • the Android operating system has a market share of 37.93% in all Internet devices, while Microsoft Windows has a share of 37.91%.
  • the Android operating system has become the most widely used operating system in the world.
  • the Android operating system also has the characteristics of openness, which is convenient for third-party application development and even modification of the operating system itself, which is favored by equipment manufacturers. Based on this, the operating environment of the test module 11 in this embodiment should be compatible with the Android operating system and tested according to the compatibility test (CTS) standard of the Android operating system.
  • CTS compatibility test
  • the compatibility testing includes data reading and writing, screen display, and sound playback.
  • the improvement optimizes the content of the compatibility test.
  • the most important function is to implement data read and write operations, display content on the screen, and perform sound playback through the speaker for human-computer interaction.
  • the user uses the smart terminal to communicate with the outside, it is necessary to store contact information, communication content, and even file transmission, which involves reading and writing data.
  • mainstream smart terminals are large-screen designs, and screens occupy a considerable proportion of the device. It is very important for the use of smart terminals.
  • the sound playback function is a common basic function in the field of smart terminals. It can play music, video sounds or other prompt sounds, providing users with vocal enjoyment or prompting users with various information.
  • test method before the step S1, the test method further includes:
  • step S0 at least one smart terminal is guaranteed to be connected to one server.
  • the server is a computer device that sends the test module to the smart terminal, and may be a desktop computer, a notebook computer, or a rack server.
  • the server and the smart terminal are physically connected, and the physical connection manner is different according to different models of the smart terminal, and may be a USB serial cable, an HDMI cable, an RJ45 network cable, or the like, or may be wireless. Connection method.
  • the server has a plurality of interfaces, so that a plurality of smart terminals can be connected. The purpose of confirming that the smart terminal is connected to the server is to transmit the test module 11 stored in the server to the smart terminal.
  • test module 11 needs to be different according to the version of the operating system to be tested and the test function item, the developer or the tester needs to edit the test module 11 on the server, so that the test module 11 can satisfy the test. Need. And the smart terminal does not contain the test module 11 at the beginning, and needs to input a test module 11 from the outside to perform subsequent test steps. After the server and the smart terminal are physically connected, a software level connection is established, the smart terminal is identified on the server, and the test module 11 is sent to the smart terminal.
  • step S2 includes:
  • S2-2 sending, to the smart terminal, an installation file of the operating system to be tested
  • step S2 in the testing method is further subdivided and split into 4 steps.
  • step S2-1 the administrator authority of the smart terminal is first acquired, because any operation involving the operating system itself requires administrator authority, and the operating system is very important for the stable operation of the smart terminal, so the required The highest operating authority.
  • step S2-2 the installation file of the operating system to be tested is sent to the smart terminal.
  • This step is divided into two cases. One is that the server is connected to the smart terminal, and the smart device is connected to the smart device. The terminal sends the system installation file; the other is that the installation file is originally stored in a non-critical storage area of the smart terminal, such as an SD card or an internal memory, and the installation file needs to be sent to the smart terminal.
  • the critical storage area for subsequent steps to read the installation file for installation is the installation source file of the operating system to be tested, and the installation can be started after running.
  • step S2-3 the installation file of the operating system to be tested is booted for installation, that is, a guiding step. In this step, the installation file needs to be booted, booted to the target installation location, and then the content of the operating system main body is installed.
  • the booting step is also a general step of installing the operating system.
  • step S2-4 after the installation is completed, the smart terminal is restarted, that is, the smart terminal is shut down and restarted. Any operating system installation is accompanied by a reboot process to configure the device.
  • test system 10 which includes:
  • the test module 11 is disposed in the smart terminal and runs on the smart terminal.
  • the test module 11 can
  • the boot program is included to guide the operation of the test module 11; a shortcut of the executable file may also be included, and the operator may click to link to the storage location of the test module 11 and open the run.
  • the test module 11 is a script composed of multiple sets of codes, which are pre-stored in the smart terminal.
  • the test module 11 includes an executable file or a shortcut, and can be stored on a desktop of the smart terminal or in another display area.
  • the operating system installation module 12 is disposed in the test module 11 and installs an operating system to be tested in the smart terminal.
  • the operating system installation module 12 executes the installation of the operating system to be tested, preferably reads the installation location of the operating system installation file to be tested, and then opens and runs the installation file, and boots the installation file to be installed on the smart terminal. Target storage area. After the test module 11 starts running, the operating system installation module 12 runs.
  • the operating system installation module 12 can identify the installation location of the original operating system in the smart terminal, and guide the operating system installation file to be tested to overwrite the original operating system for installation. After the installation file starts running, each component of the operating system to be tested is installed by itself without intervention.
  • the configuration module 13 is disposed in the test module 11 and configures environment parameters of the smart terminal. After the installation of the operating system to be tested is completed, the configuration module 13 configures environment parameters of the newly installed operating system to be tested, including account information, file path, security settings, network configuration, and the like. To complete the test operation with the test system 10, the configuration module 13 also needs to configure the function items that need to be tested, such as configuring screen resolution parameters, adjusting the volume level, calculating the available storage capacity, and the like. When the configuration module 13 configures an environment parameter, the external interface (API) of the operating system to be tested is invoked, and each parameter is rewritten.
  • API external interface
  • the compatibility test module 14 is disposed in the test module 11 and performs a compatibility test.
  • the compatibility test module 14 tests the installed operating system to be tested, especially the compatibility test.
  • the compatibility test module 14 is composed of a plurality of test case codes, and respectively tests related functions.
  • CTS standard compatibility test
  • the compatibility test module 14 may continuously execute commands for the package or case.
  • the result feedback module 15 is disposed in the smart terminal and connected to the compatibility test module 14 to feed back the test result. Only when the test results are fed back to the operator, the test process is completed, and the purpose of the test can be reflected, that is, the problem of the operating system to be tested is found.
  • the result feedback module 15 displays or generates a test report on the smart terminal.
  • the smart terminal opens an interface of the display module to allow a third party to control the display screen to display related content; the result feedback module 15 displays the test result through the interface.
  • the compatibility test module 14 executes the test process, all test results and abnormal events are recorded, and are distributed to the result feedback module 15 for storage and display feedback. Still taking the Android operating system as an example, a log file is generated during the test.
  • the log file is a log, which is usually a record of some processing that the system or some software has completed, so as to be used as a reference in the future, it is not fixed.
  • the format usually a text file, can be opened with Notepad to view the content. Of course, it is likely to be other formats. Direct opening is garbled; it is usually used to record some error messages in the running of the software.
  • the result feedback module 15 reads the log file generated by the compatibility test module 14 and opens the display.
  • the compatibility test module 14 also generates test reports, which are generally named after the test time.
  • the operating system to be tested installed in the smart terminal by the operating system installation module 12 is an Android operating system.
  • the operating system to be tested installed by the operating system installation module 12 is an Android operating system, that is, an Android operating system. Since the Android operating system has the highest occupancy rate in the smart terminal market and the application is most popular, it is preferred to install the operating system.
  • the operating system installation module 12 installs the Android operating system, the smart terminal needs to be in the recovery mode, and then the installation file is run for installation.
  • the compatibility test module 14 when the compatibility test module 14 performs a compatibility test, includes primary data reading and writing, screen display, and sound playback.
  • the compatibility test module 14 can integrate multiple sets of test codes according to test requirements, and respectively test the corresponding functions.
  • the improved embodiment optimizes the compatibility test, including data reading and writing, screen display, and sound playback.
  • the compatibility test module 14 tests the data read/write function, the data is written or read in the target storage area, and compared with the original data to verify whether the data read/write function is normal.
  • the compatibility test module 14 tests the screen display function
  • the pre-stored display content (which may be a picture or a text) is displayed on the screen through data interaction with the interface of the display module in the smart terminal, and the display is displayed. result.
  • the compatibility test module 14 tests the sound playing function data interaction is performed by using an interface with the volume control module in the smart terminal, and the pre-stored sound content is played, and the playback result is recorded.
  • FIG. 5 is a schematic diagram showing the structure of a smart terminal-based test system 10 in accordance with another preferred embodiment of the present invention.
  • the test system 10 further includes:
  • the connection confirmation module 16 is disposed in the smart terminal and confirms that at least one smart terminal is connected to a server.
  • the test module in the smart terminal is imported by the server, so it is preferred to confirm the connection between the smart terminal and the server.
  • a wired connection or a wireless connection may be adopted between the server and the smart terminal; a wired connection mode is a serial port connection; a wireless connection is a wireless local area network connection; and a final connection confirmation module 16 may identify a connection status between the smart terminal and the server, and Support both for information interaction.
  • the server has a plurality of interfaces, so that a plurality of smart terminals can be connected.
  • the connection confirmation module 16 periodically checks the status of each connection interface, and discovers a new connection.
  • connection confirmation module 16 interacts with the interface management module in the intelligent terminal to obtain the connected connection.
  • Device information for the wireless connection, the connection confirmation module 16 interacts with the wireless local area network management module in the smart terminal to obtain the network connection status.
  • the connection confirmation module 16 also sends identification information to the server through the connection interface and receives reply information to confirm whether the server is connected.
  • the operating system installation module 12 further includes:
  • the authority management unit 121 acquires the administrator authority of the smart terminal. Administrator rights are required for the operation of the operating system, so the administrator authority of the smart terminal is first obtained. In the Android operating system, this privilege is called ROOT privilege, which can be obtained by changing the settings in the original operating system.
  • the rights management unit 121 changes the permission settings through the interface opened by the original operating system. When the permission settings are changed, the administrator rights are only open to the test module and its internal modules.
  • the file transfer unit 122 sends the installation file of the operating system to be tested to the smart terminal.
  • the file transfer unit 122 works in two cases. One is that when the server is connected to the smart terminal, the system installation file in the server is sent to the smart terminal; the other is to pre-store The system installation file of a certain storage area in the smart terminal is moved to the storage area to be installed in the smart terminal, so as to obtain the system installation file when the installation step is subsequently performed.
  • the file transfer unit 122 identifies the smart terminal, and respectively acquires a source location and a target location of the system installation file, and then starts the transfer process until the file transfer is completed.
  • the file transfer unit 122 respectively confirms a source storage location and a target storage location of the system installation file, and copies the system installation file. To the target storage location.
  • the boot unit 123 is installed to boot the installation file of the operating system to be tested for installation.
  • the installation of the operating system has a guiding link, which is completed by the installation guiding unit 123 in this embodiment.
  • the installation guiding unit 123 finds the location of the system installation file, and confirms that the target area of the operating system to be tested is installed, and then runs the system installation file for installation.
  • the location of the system installation file may be obtained by the file transmission unit 122; the target area of the operating system to be tested may be the installation area of the original operating system, or may be another installation area.
  • the restarting unit 124 restarts the smart terminal after the installation of the operating system to be tested is completed.
  • the restart operation is a common operation of the operating system installation. The purpose is to configure related parameters so that the intelligent terminal can completely enter the environment where the operating system is newly installed.
  • the restarting unit 124 reads the version number of the operating system, and can know whether the current operating system version is the operating system version to be tested.
  • the restarting unit 124 restarts the smart terminal.
  • the operation may be implemented by using an interface that is open to the operating system, and a restart command may be written to the operating system.

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)
  • Stored Programmes (AREA)

Abstract

一种基于智能终端的测试方法及测试系统,所述测试方法包括以下步骤:于所述智能终端上运行一测试模块(S1);所述测试模块于所述智能终端内安装一待测试操作系统(S2);所述测试模块配置所述智能终端的环境参数(S3);所述测试模块对所述待测试操作系统执行兼容性测试,记录测试结果(S4);于所述智能终端上反馈所述测试结果(S5)。采用上述技术方案后,能够方便快捷地完成操作系统的安装及测试过程,节约操作步骤,提升工作效率。

Description

一种基于智能终端的测试方法及测试系统 技术领域
本发明涉及智能终端领域,尤其涉及一种基于智能终端的测试方法及测试系统。
背景技术
目前,智能手机、平板电脑、多媒体播放器、智能电视等具备操作系统的智能终端设备已经成为了人们日常生活不可或缺的一部分,方便使用者实现各种功能,例如与外部通信联系、播放多媒体文件、数据存储等功能。所述智能终端实际上是计算机的一种应用类型,随着智能终端技术的发展,绝大部分智能终端都具备操作系统,以实现对设备软硬件资源的管理。所述操作系统(Operating System,简称OS)是管理和控制计算机硬件与软件资源的计算机程序,是直接运行在“裸机”上的最基本的系统软件,任何其他软件都必须在操作系统的支持下才能运行。操作系统是用户和计算机的接口,同时也是计算机硬件和其他软件的接口。操作系统的功能包括管理计算机系统的硬件、软件及数据资源,控制程序运行,改善人机界面,为其它应用软件提供支持,让计算机系统所有资源最大限度地发挥作用,提供各种形式的用户界面,使用户有一个好的工作环境,为其它软件的开发提供必要的服务和相应的接口等。实际上,用户是不用接触操作系统的,操作系统管理着计算机硬件资源,同时按照应用程序的资源请求,分配资源,如:划分CPU时间,内存空间的开辟,调用打印机等。
最初的电脑并没有操作系统,人们通过各种操作按钮来控制计算机,后来出现了汇编语言,操作人员通过有孔的纸带将程序输入电脑进行编译。这些将语言内置的电脑只能由操作人员自己编写程序来运行,不利于设备、程序的共用。为了解决这种问题,就出现了操作系统,这样就很好实现了程序的共用,以及对计算机硬件资源的管理。在智能终端领域,目前主流的操作系统包括安卓(Android)操作系统和IOS操作系统,其中安卓(Android)操作系统由Google公司开发,是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑;IOS操作系统由苹果公司开 发,不开放源代码,应用于苹果公司设计的系列产品。
随着智能终端技术的发展,用户的需求越来越多样化,支持的功能也越来越多,操作系统作为最基本的软件,也在不断升级优化,例如安卓(Android)操作系统从早期的2.0到如今的7.0版本,经历了多次版本升级。由于操作系统的版本升级会对内部的代码作修改甚至是大改,在正式发布之前需要进行测试以验证稳定性,否则会存在问题隐患,影响智能终端的正常运行。因此,如何能够快速、方便地安装并测试新版本操作系统的性能,提高开发人员或测试人员的工作效率,是一个需要解决的技术问题。
目前的现有技术已经在解决上述问题上做出了努力,如中国发明专利公开说明书(公开号:CN104125504B)公开了一种基于持续集成的部署方法、装置及系统,应用于android系统的智能电视的测试过程中,主要内容包括:持续集成设备通过串口与智能电视进行指令的交互,并在监测到智能电视运行引导程序时发送停止命令,智能电视停止运行引导程序,并根据接收到的配置信息配置自身的IP地址;持续集成设备向智能电视发送刷机命令,智能电视根据与自身IP地址信息相匹配的持续集成设备的IP地址信息获取已生成的升级文件并执行刷机操作。从而,弥补了android系统的智能电视无法实现自动刷机的缺陷,同时,避免测试人员的主动干预,提高刷机效率。
现有技术虽然公开了使智能电视自动刷机的方法和装置,但是该发明并未提供刷机成功后对智能电视进行功能测试的方法,还需要额外的方法或装置对操作系统进行测试,对于开发人员或测试人员而言不方便。
因此,需要一种新型的基于智能终端的测试方法,使得操作人员方便快捷地完成操作系统的安装及测试过程,节约操作步骤,提升工作效率。
发明内容
为了克服上述技术缺陷,本发明的目的在于提供一种基于智能终端的测试方法及测试系统,通过在智能终端内运行一测试模块,实现对待测试操作系统的安装、测试过程。
本发明公开了一种基于智能终端的测试方法,包括以下步骤:
于所述智能终端上运行一测试模块;
所述测试模块于所述智能终端内安装一待测试操作系统;
所述测试模块配置所述智能终端的环境参数;
所述测试模块对所述待测试操作系统执行兼容性测试,记录测试结果;
所述智能终端反馈所述测试结果。
优选地,于所述智能终端上运行一测试模块步骤之前,所述测试方法还包括以下步骤:
确认至少一个智能终端与一服务器连接。
优选地,所述测试模块于所述智能终端内安装一待测试操作系统时,所述待测试操作系统为安卓操作系统。
优选地,所述测试模块于所述智能终端内安装一待测试操作系统的步骤包括:
获取所述智能终端的管理员权限;
向所述智能终端发送所述待测试操作系统的安装文件;
引导所述待测试操作系统的安装文件进行安装;
所述待测试操作系统安装完成后,重启所述智能终端。
优选地,所述测试模块对所述待测试操作系统执行兼容性测试时,所述兼容性测试包括数据读写、屏幕显示和声音播放。
本发明还公开了一种基于智能终端的测试系统,所述测试系统包括:
测试模块,设于所述智能终端内,于所述智能终端上运行;
操作系统安装模块,设于所述测试模块内,于所述智能终端内安装一待测试操作系统;
配置模块,设于所述测试模块内,配置所述智能终端的环境参数;
兼容性测试模块,设于所述测试模块内,对所述待测试操作系统执行兼容性测试,记录测试结果;
结果反馈模块,设于所述智能终端内,与所述兼容性测试模块连接,反馈所述测试结果。
优选地,所述测试系统还包括连接确认模块,设于所述智能终端内,确认至少一个智能终端与一服务器连接。
优选地,所述操作系统安装模块于所述智能终端内安装的待测试操作系统为安卓操作系统。
优选地,所述操作系统安装模块还包括:
权限管理单元,获取所述智能终端的管理员权限;
文件传输单元,向所述智能终端发送所述待测试操作系统的安装文件;
安装引导单元,引导所述待测试操作系统的安装文件进行安装;
重启单元,所述待测试操作系统安装完成后,重启所述智能终端。
优选地,所述兼容性测试模块对所述待测试操作系统执行兼容性测试时,所述兼容性测试包括数据读写、屏幕显示和声音播放。
采用了上述技术方案后,与现有技术相比,具有以下有益效果:
1.方便快捷地完成操作系统的安装及测试过程,节约操作步骤,提升工作效率;
2.测试过程开始后不需要连接其他设备即可完成所有的操作步骤;
3.测试过程自动完成,不需要操作人员进行过程干预。
附图说明
图1为符合本发明一优选实施例中基于智能终端的测试方法的流程示意图;
图2为符合本发明另一优选实施例中基于智能终端的测试方法的流程示意图;
图3为符合本发明再一优选实施例中基于智能终端的测试方法的流程示意图;
图4为符合本发明一优选实施例中基于智能终端的测试系统的结构示意图;
图5为符合本发明另一优选实施例中基于智能终端的测试系统的结构示意图;
图6为符合本发明再一优选实施例中基于智能终端的测试系统的结构示意图。
附图标记:
10-测试系统、11-测试模块、12-操作系统安装模块、121-权限管理单元、122-文件传输单元、123-安装引导单元、124-重启单元、13-配置模块、14-兼容性测试模块、15-结果反馈模块、16-连接确认模块。
具体实施方式
以下结合附图与具体实施例进一步阐述本发明的优点。
参阅图1,为符合本发明一优选实施例中基于智能终端的测试方法的流程示意图,为了实现在智能终端安装待测试的操作系统并对所述待测试的操作系统进行测试,通过以下步骤进行测试:
S1:于所述智能终端上运行一测试模块。
本实施例中,所述智能终端可以是智能手机、平板电脑、多媒体播放器等具备操作系统的智能设备。所述测试模块11可以以脚本的形式运行,根据脚本中的测试代码执行测试过程。所述脚本(Script)是批处理文件的延伸,是一种纯文本保存的程序,一般来说的计算机脚本程序是确定的一系列控制计算机进行运算操作动作的组合,在其中可以实现一定的逻辑分支等。脚本语言是比较多的,一般的脚本语言的执行只同具体的解释 执行器有关,所以只要系统上有相应语言的解释程序就可以做到跨平台。本实施例中,所述测试模块11运行的脚本按照所述智能终端的操作系统兼容的语言或开发环境编写,例如Android系统中,常常运行各种在Linux环境上开发的脚本。因为Android系统本来就是一个Linux操作系统,进行脚本测试时,可以进入设备或模拟器的shell环境中,运行Linux的操作命令执行各种操作。所述脚本可以在既有的操作系统环境下直接运行,不需要任何辅助程序打开,操作简便。作为本发明的发明要点,所述测试方法的后续步骤均由所述测试模块11控制完成,无需其他模块参与,减少了测试过程的复杂度,用户只需在所述智能终端内运行所述测试模块11,后续只需等待测试模块自动运行完毕即可,省去其他的操作过程。
S2:所述测试模块于所述智能终端内安装一待测试操作系统。
所述测试模块11开始运行后,首先在所述智能终端上安装待测试操作系统,也就是行业中俗称的“刷机”。所述待测试操作系统是指在后续步骤中需要被测试功能和性能的操作系统,一般都是开发过程中的版本或者是正式上线前的版本。无论是Windows操作系统、Android系统还是IOS操作系统,在开发新版本的过程中都要经历这一安装测试过程,以保证新版本操作系统的可靠性、稳定性。安装待测试操作系统时,所述智能终端内需要准备好待测试操作系统的安装文件,也就是说需要预先拷贝待测试的操作系统的安装文件至所述智能终端内。然后根据操作系统和智能终端设备类型的不同,操作系统的安装方式略有不同。对于Windows操作系统,一般通过所述智能终端的基本输入输出系统(BIOS系统)对目标存储区域进行格式化,而后对待测试操作系统进行引导并安装;安装过程包括对操作系统各组件的安装、驱动程序安装、账户设置等步骤内容,最后新安装的操作系统重启所述智能终端以完成所有的配置。对于Android操作系统,首先控制所述智能终端进入特定的工作模式,例如recovery模式;而后根据所述智能终端的品牌型号手动按下特定按键组合进入安装界面,或者是所述测试模块获取管理员权限后直接运行安装指令,运行待测试操作系统的安装文件,覆盖原有的操作系统进行安装,最终重启设备以完成安装过程。
S3:所述测试模块配置所述智能终端的环境参数。
任何操作系统的运行都需要对环境参数进行配置。所述环境参数一般是指在操作系统中用来指定操作系统运行环境的一些参数,如:临时文件夹位置和系统文件夹位置等;它包含了一个或者多个应用程序所将使用到的信息。例如Windows和DOS操作系统中的path环境变量,当要求系统运行一个程序而没有告诉它程序所在的完整路径时,系统 除了在当前目录下面寻找此程序外,还应到path中指定的路径去找。用户通过设置环境变量,来更好的运行进程。对于智能终端而言,往往会安装运行多个第三方应用程序,需要对这些应用程序的安装位置、运行参数进行设置。此外还需要对网络参数进行设置,以便所述智能终端能够连接互联网。还可以对操作系统的账户进行设置,因为使用所述智能终端的用户往往不止一个,因而可以设置管理员账户,拥有最高的操作权限;设置一般用户账户,具有普通操作权限;设置过客账户,具有较少的操作权限。为满足本发明中相关测试功能的需求,还需要对测试项进行设置,例如若想测试铃音功能,需要设置铃音大小;若想设置数据存储功能,需要设置待存储的文件和存放路径。本实施例中,所述测试模块11完成待测试操作系统安装后,按照测试模块11内部记录的参数信息对所述智能终端进行环境参数配置。
S4:所述测试模块对所述待测试操作系统执行兼容性测试,记录测试结果。
本步骤执行兼容性测试,所述测试模块11执行测试命令,对需要测试的功能进行测试。例如在Android操作系统中,存在谷歌公司发布的兼容性测试(CTS)和连带的兼容性定义文档(CDD),是一个确保终端设备与特定版本Android(比如Android2.2,2.3,3.0)兼容的自管理程序。CTS测试集包含大约24,000个在Android设备上运行的测试用例,这些用例分别针对电话、图形、相机、GPS、触摸屏、无线网等功能。Google针对每个主要Android版本公布了CDD文档,其中指出了对CTS中每类测试的具体要求。CTS拥有兼容性测试包。CTS是一个自动化的测试工具,其中包括两个主要的软件组件:CTS测试工具可以运行在您的台式机和管理测试执行。连接的移动设备或模拟器上执行个别测试案例。智能终端设备需要通过Android的兼容性测试(CTS),以确保在android上开发的程序在手机设备上都能运行,设备只有满足CDD的规定并且通过CTS,才有可能获得Android的商标和享受Android Market的权限。本实施例中,所述测试模块11内集成了CTS的部分测试用例,根据开发者的需要选择相关的兼容性测试用例或者在运行时容易出问题的测试用例。所述测试模块11依次执行测试用例的代码,对功能进行检测,并记录测试过程和测试结果。
S5:所述智能终端反馈所述测试结果。
本步骤中,所述智能终端反馈步骤S4中得到的测试结果。测试结果的反馈对于测试过程非常重要,只有将测试结果反馈回来,才能使开发人员或者测试人员得知新版本操作系统是否存在问题,存在哪些问题,并针对这些问题进行改进。所述测试结果应当包括每一测试对象的测试内容和验证结果;若有异常或错误发生,还需记录所述异常或错 误的情况及发生背景。反馈的方式可以是在所述智能终端屏幕上显示测试结果,也可以生成测试报告,待使用者导出后查看。步骤S4得到的测试结果一般都是通用可读的文件,例如txt文件或者log文件,所述智能终端从所述测试模块11获取所述测试结果并将其显示在屏幕上。
作为所述测试方法的进一步改进,所述测试模块11于所述智能终端内安装一待测试操作系统时,所述待测试操作系统为安卓操作系统。本改进对待测试操作系统进行了优选,测试目标为安卓操作系统,即Android操作系统。随着智能终端的应用普及,Android操作系统在全部上网设备中的市场份额为37.93%,而微软Windows的份额为37.91%,Android操作系统已成为全球应用最广泛的操作系统。此外,Android操作系统还具备开放性的特点,方便第三方进行应用程序开发甚至是对操作系统本身进行修改,受到了设备厂商的青睐。基于此,本实施例中的测试模块11的运行环境应当兼容Android操作系统,并根据Android操作系统的兼容性测试(CTS)标准进行测试。
作为所述测试方法的进一步改进,所述测试模块11对所述待测试操作系统执行兼容性测试时,所述兼容性测试包括数据读写、屏幕显示和声音播放。本改进对所述兼容性测试的内容进行优选,对于一个智能终端而言,最重要的功能就是实现数据的读写操作,能够在屏幕上显示内容以及通过扬声器进行声音播放以便进行人机交互。例如,用户使用所述智能终端与外部联系时,需要存储联系人信息、通信内容甚至是文件的传输,这都涉及了数据的读写。再例如主流的智能终端均为大屏幕设计,屏幕占了设备相当多的体积比例,对于智能终端的使用非常重要,大部分功能或应用程序都需要在屏幕上显示以便用户能够了解状态信息或阅读相关资料。声音播放功能则是智能终端领域中常见的基本功能,可以播放音乐、视频声音或者是其他提示音,为用户提供声乐享受或者提示用户各类信息。
参阅图2,为符合本发明另一优选实施例中基于智能终端的测试方法的流程示意图,本实施例中,步骤S1之前,所述测试方法还包括:
S0:确认至少一个智能终端与一服务器连接。
步骤S0中,保证至少一个智能终端与一个服务器连接。所述服务器,是指向所述智能终端发送所述测试模块的计算机设备,可以是台式计算机、笔记本计算机或者机架式服务器。所述服务器与所述智能终端通过物理方式进行连接,根据所述智能终端的型号不同,物理连接的方式也不同,可以是USB串口连接线、HDMI线、RJ45网线等有线方式,也可以是无线连接方式。所述服务器具备多个接口,因而可以连接多个智能终端。 确认所述智能终端与所述服务器连接的目的是将所述服务器内存储的测试模块11传送给所述智能终端。因为所述测试模块11需要根据待测试操作系统的版本不同、测试功能项不同而不同,开发人员或者测试人员需要在服务器上对所述测试模块11进行编辑,使所述测试模块11能够满足测试的需要。且所述智能终端一开始是不含有测试模块11的,需要从外部输入一个测试模块11才能执行后续测试步骤。所述服务器与所述智能终端通过物理方式连接后,进而建立软件层面的连接,在所述服务器上识别所述智能终端,并发送所述测试模块11至所述智能终端。
参阅图3,为符合本发明再一优选实施例中基于智能终端的测试方法的流程示意图,测试方法中,步骤S2包括:
S2-1:获取所述智能终端的管理员权限;
S2-2:向所述智能终端发送所述待测试操作系统的安装文件;
S2-3:引导所述待测试操作系统的安装文件进行安装;
S2-4:所述待测试操作系统安装完成后,重启所述智能终端。
本实施例对测试方法中步骤S2作了更进一步地细分,拆分为4个步骤。步骤S2-1中,首先获取所述智能终端的管理员权限,因为任何涉及操作系统本身的操作都需要管理员权限才能进行,操作系统对于所述智能终端的稳定运行非常重要,所以所需的操作权限最高。步骤S2-2中,向所述智能终端发送所述待测试操作系统的安装文件,本步骤分两种情况,一种是所述服务器与所述智能终端连接,从所述服务器向所述智能终端发送系统安装文件;另一种是所述安装文件原本存放在所述智能终端的非关键存储区内,例如SD卡或内部的存储器中,需要将所述安装文件发送至所述智能终端内的关键存储区域,以便后续步骤读取该安装文件进行安装。所述系统安装文件即待测试的操作系统的安装源文件,运行后即可启动安装。步骤S2-3中,引导所述待测试操作系统的安装文件进行安装,即引导步骤。本步骤需要先对所述安装文件进行引导,引导至目标安装位置,而后进行操作系统主体内容的安装,引导步骤也是安装操作系统的通用步骤。步骤S2-4中,安装完成后重启所述智能终端,即将所述智能终端关机并重新启动。任何操作系统的安装都会伴随重启过程,以便对设备进行配置。
参阅图4,为符合本发明一优选实施例中基于智能终端的测试系统的结构示意图。本发明涉及的测试方法可通过一测试系统10实现,所述测试系统10包括:
-测试模块11
测试模块11,设于所述智能终端内,于所述智能终端上运行。所述测试模块11可以 包括引导程序,引导所述测试模块11的运行;也可以包括可执行文件的快捷方式,操作人员点击后即可链接至所述测试模块11的存储位置并打开运行。
本实施例中,所述测试模块11为多组代码组成的脚本,预先存储在所述智能终端内。所述测试模块11包括可执行文件或快捷方式,可存放于所述智能终端的桌面上或其他显示区域内。
-操作系统安装模块12
操作系统安装模块12,设于所述测试模块11内,于所述智能终端内安装一待测试操作系统。所述操作系统安装模块12执行待测试操作系统的安装,首选读取所述待测试操作系统安装文件的安装位置,然后打开并运行所述安装文件,引导所述安装文件安装在所述智能终端的目标存储区域。所述测试模块11启动运行后,所述操作系统安装模块12即运行。所述操作系统安装模块12可识别所述智能终端内原有操作系统的安装位置,并引导待测试的操作系统安装文件覆盖原有操作系统进行安装。所述安装文件开始运行后,会自行安装待测试操作系统的各组件,无需干预。
-配置模块13
配置模块13,设于所述测试模块11内,配置所述智能终端的环境参数。所述待测试操作系统安装完成后,所述配置模块13对新安装的待测试操作系统的环境参数进行配置,包括账户信息、文件路径、安全设置、网络配置等。为配合所述测试系统10完成测试操作,所述配置模块13还需对需要测试的功能项进行配置,例如配置屏幕分辨率参数、调节音量大小、计算可用存储容量等。所述配置模块13配置环境参数时,调用所述待测试操作系统对外的接口(API),对各参数进行改写。
-兼容性测试模块14
兼容性测试模块14,设于所述测试模块11内,执行兼容性测试。所述兼容性测试模块14对安装好的待测试操作系统进行测试,尤其是兼容性测试。所述兼容性测试模块14由多个测试用例代码组成,分别对相关功能进行测试。例如待测试系统为Android操作系统时,所述兼容性测试模块14采用标准的兼容性测试(CTS)指令。CTS内的测试方案有两万多条测试项目,本实施例针对重点项目进行测试。可执行命令“start--plan CTS”来执行CTS测试方案;若对单独一个包进行测试时,执行命令“start--plan CTS-p包名”;也可以针对单独一个case进行测试,执行命令“start-plan CTS-test类名#方法名”。执行对多个测试项目的测试时,所述兼容性测试模块14连续执行对包或者case的命令即可。
-结果反馈模块15
结果反馈模块15,设于所述智能终端内,与所述兼容性测试模块14连接,反馈所述测试结果。只有将测试结果反馈给操作人员,测试过程才算完成,测试的目的才能够体现出来,即发现待测试操作系统存在的问题。所述结果反馈模块15将测试结果在所述智能终端上显示或生成测试报告。所述智能终端对外开放显示模块的接口,允许第三方控制显示屏显示相关内容;所述结果反馈模块15通过所述接口显示测试结果。所述兼容性测试模块14执行测试过程时,会记录所有的测试结果和异常事件,并交由所述结果反馈模块15汇总存储并进行显示反馈。仍以Android操作系统为例,测试时会生成log文件,所述log文件即日志,通常是系统或者某些软件对已完成的某种处理的记录,以便将来做为参考,它并没有固定的格式,通常是文本文件,可以用记事本打开以查看内容,当然很可能是其它格式,直接打开就是乱码;通常是用来记录一些软件运行中的错误信息等等。所述结果反馈模块15读取所述兼容性测试模块14生成的log文件并打开显示。所述兼容性测试模块14同样会生成测试报告,一般以测试时间命名。
作为所述测试系统10的进一步改进,所述操作系统安装模块12于所述智能终端内安装的待测试操作系统为安卓操作系统。本改进中,所述操作系统安装模块12安装的所述待测试操作系统为安卓操作系统,即Android操作系统。由于Android操作系统在智能终端市场中的占有率最高,应用最普及,故优选该操作系统进行安装。所述操作系统安装模块12安装Android操作系统时,需要使所述智能终端处于recovery模式,而后运行安装文件进行安装即可。
作为所述测试系统10的进一步改进,所述兼容性测试模块14执行兼容性测试时,所述兼容性测试包括主要数据读写、屏幕显示和声音播放。所述兼容性测试模块14内可按照测试需求集成多组测试代码,分别对相应的功能进行测试。本改进实施例对所述兼容性测试进行优选,包括数据读写、屏幕显示和声音播放。所述兼容性测试模块14测试数据读写功能时,在目标存储区域写入或读出数据,并与原始数据进行对比,验证数据读写功能是否正常。所述兼容性测试模块14测试屏幕显示功能时,通过与所述智能终端内的显示模块的接口进行数据交互,将预先存放的显示内容(可以是图片或文字)显示在屏幕上,并记录显示结果。所述兼容性测试模块14测试声音播放功能时,通过与所述智能终端内的音量控制模块的接口进行数据交互,将预先存放的声音内容进行播放,并记录播放结果。
参阅图5,为符合本发明另一优选实施例中基于智能终端的测试系统10的结构示意 图,所述测试系统10还包括:
-连接确认模块16
连接确认模块16,设于所述智能终端内,确认至少一个智能终端与一服务器连接。本实施例中,所述智能终端内的测试模块由所述服务器导入,因此首选要对所述智能终端与所述服务器的连接进行确认。所述服务器与所述智能终端之间可采用有线连接或无线连接;有线连接方式为串口连接;无线连接为无线局域网连接;最终连接确认模块16可识别智能终端与所述服务器的连接状况,并支持二者进行信息交互。所述服务器具备多个接口,因而可连接多个智能终端。所述连接确认模块16周期性地检查各连接接口的情况,以及时发现新的连接,对于串口连接,所述连接确认模块16与所述智能终端内的接口管理模块进行交互,获取已连接的设备信息;对于无线连接,所述连接确认模块16与所述智能终端内的无线局域网管理模块交互,获取网络连接状况。所述连接确认模块16还会通过上述连接接口向所述服务器发送识别信息并接收回复信息,以确认是否是服务器在连接。
参阅图6,为符合本发明再一优选实施例中基于智能终端的测试系统的结构示意图,所述操作系统安装模块12还包括:
-权限管理单元121
权限管理单元121,获取所述智能终端的管理员权限。对操作系统的操作需要管理员权限,因此首先要获取所述智能终端的管理员权限。在Android操作系统中,该权限被称为ROOT权限,该权限可通过在原有操作系统中更改设置获取。所述权限管理单元121通过原操作系统开放的接口更改权限设置,更改权限设置时,管理员权限仅对所述测试模块及其内部各模块开放。
-文件传输单元122
文件传输单元122,向所述智能终端发送所述待测试操作系统的安装文件。所述文件传输单元122的工作分两种情况,一种是所述服务器与所述智能终端连接时,将所述服务器内的系统安装文件发送至所述智能终端;另一种是将预存储在所述智能终端内某个存储区域的系统安装文件移动至所述智能终端内的待安装存储区域,以便后续执行安装步骤时获取该系统安装文件。当所述服务器与所述智能终端连接时,所述文件传输单元122识别所述智能终端,并分别获取系统安装文件的源位置和目标位置,而后开启传送过程直至文件传送完毕。当所述智能终端内进行系统安装文件传送时,所述文件传输单元122分别确认所述系统安装文件的源存储位置和目标存储位置,将所述系统安装文件复制 至目标存储位置。
-安装引导单元123
安装引导单元123,引导所述待测试操作系统的安装文件进行安装。操作系统的安装都会有引导环节,在本实施例中由所述安装引导单元123完成。所述安装引导单元123找到系统安装文件的位置,并确认安装所述待测试操作系统的目标区域,然后运行所述系统安装文件进行安装。系统安装文件的位置可由所述文件传输单元122获取;所述待测试安装操作系统的目标区域可以是原操作系统的安装区域,也可以是另一安装区域。
-重启单元124
重启单元124,所述待测试操作系统安装完成后,重启所述智能终端。重启操作是操作系统安装的常见操作,目的是为了配置相关参数,使智能终端完全进入新安装操作系统的环境下。所述系统安装文件运行时会执行一安装进程,所述重启单元124只需检测所述安装进程是否结束即可得知安装过程是否完成。还有一种方式是所述重启单元124读取操作系统的版本号,即可得知当前操作系统的版本是否是待测试操作系统版本。确认系统安装完成后,所述重启单元124重启所述智能终端,该操作可通过所述操作系统对外开放的接口实现,向所述操作系统写入重启指令即可。
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。

Claims (10)

  1. 一种基于智能终端的测试方法,其特征在于,包括以下步骤:
    于所述智能终端上运行一测试模块;
    所述测试模块于所述智能终端内安装一待测试操作系统;
    所述测试模块配置所述智能终端的环境参数;
    所述测试模块对所述待测试操作系统执行兼容性测试,记录测试结果;
    所述智能终端反馈所述测试结果。
  2. 如权利要求1所述的测试方法,其特征在于,
    于所述智能终端上运行一测试模块步骤之前,所述测试方法还包括以下步骤:
    确认至少一个智能终端与一服务器连接。
  3. 如权利要求1或2所述的测试方法,其特征在于,
    所述测试模块于所述智能终端内安装一待测试操作系统时,所述待测试操作系统为安卓操作系统。
  4. 如权利要求3所述的测试方法,其特征在于,
    所述测试模块于所述智能终端内安装一待测试操作系统的步骤包括:
    获取所述智能终端的管理员权限;
    向所述智能终端发送所述待测试操作系统的安装文件;
    引导所述待测试操作系统的安装文件进行安装;
    所述待测试操作系统安装完成后,重启所述智能终端。
  5. 如权利要求1或2所述的测试方法,其特征在于,
    所述测试模块对所述待测试操作系统执行兼容性测试时,所述兼容性测试包括数据读写、屏幕显示和声音播放。
  6. 一种基于智能终端的测试系统,其特征在于,所述测试系统包括:
    测试模块,设于所述智能终端内,于所述智能终端上运行;
    操作系统安装模块,设于所述测试模块内,于所述智能终端内安装一待测试操作系统;
    配置模块,设于所述测试模块内,配置所述智能终端的环境参数;
    兼容性测试模块,设于所述测试模块内,对所述待测试操作系统执行兼容性测试, 记录测试结果;
    结果反馈模块,设于所述智能终端内,与所述兼容性测试模块连接,反馈所述测试结果。
  7. 如权利要求6所述的测试系统,其特征在于,
    所述测试系统还包括:
    连接确认模块,设于所述智能终端内,确认至少一个智能终端与一服务器连接。
  8. 如权利要求6或7所述的测试系统,其特征在于,
    所述操作系统安装模块于所述智能终端内安装的待测试操作系统为安卓操作系统。
  9. 如权利要求8所述的测试系统,其特征在于,
    所述操作系统安装模块还包括:
    权限管理单元,获取所述智能终端的管理员权限;
    文件传输单元,向所述智能终端发送所述待测试操作系统的安装文件;
    安装引导单元,引导所述待测试操作系统的安装文件进行安装;
    重启单元,所述待测试操作系统安装完成后,重启所述智能终端。
  10. 如权利要求6或7所述的测试系统,其特征在于,
    所述兼容性测试模块对所述待测试操作系统执行兼容性测试时,所述兼容性测试包括数据读写、屏幕显示和声音播放。
PCT/CN2017/095631 2017-08-02 2017-08-02 一种基于智能终端的测试方法及测试系统 WO2019023987A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/095631 WO2019023987A1 (zh) 2017-08-02 2017-08-02 一种基于智能终端的测试方法及测试系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/095631 WO2019023987A1 (zh) 2017-08-02 2017-08-02 一种基于智能终端的测试方法及测试系统

Publications (1)

Publication Number Publication Date
WO2019023987A1 true WO2019023987A1 (zh) 2019-02-07

Family

ID=65232843

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095631 WO2019023987A1 (zh) 2017-08-02 2017-08-02 一种基于智能终端的测试方法及测试系统

Country Status (1)

Country Link
WO (1) WO2019023987A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130067281A1 (en) * 2011-09-09 2013-03-14 Askey Computer Corp. Testing system and method for handheld electronic device
US20130145217A1 (en) * 2011-12-01 2013-06-06 Mstar Semiconductor, Inc. Testing method and testing apparatus for testing function of electronic apparatus
CN103364659A (zh) * 2013-06-28 2013-10-23 珠海全志科技股份有限公司 基于Android系统的电子设备测试系统及方法
CN104536891A (zh) * 2014-12-26 2015-04-22 小米科技有限责任公司 系统测试方法及装置
CN105468504A (zh) * 2014-08-06 2016-04-06 腾讯科技(深圳)有限公司 程序测试方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130067281A1 (en) * 2011-09-09 2013-03-14 Askey Computer Corp. Testing system and method for handheld electronic device
US20130145217A1 (en) * 2011-12-01 2013-06-06 Mstar Semiconductor, Inc. Testing method and testing apparatus for testing function of electronic apparatus
CN103364659A (zh) * 2013-06-28 2013-10-23 珠海全志科技股份有限公司 基于Android系统的电子设备测试系统及方法
CN105468504A (zh) * 2014-08-06 2016-04-06 腾讯科技(深圳)有限公司 程序测试方法及装置
CN104536891A (zh) * 2014-12-26 2015-04-22 小米科技有限责任公司 系统测试方法及装置

Similar Documents

Publication Publication Date Title
US11467816B1 (en) Method and system of running an application
CA2796433C (en) Cross-platform application framework
US8601470B2 (en) Symbiotic smart peripherals
CN110442366B (zh) 一种传屏处理方法、装置、设备和存储介质
US8863113B1 (en) Method and system for unattended installation of guest operating system
TW201518933A (zh) 測試裝置及其測試方法
CN103577210B (zh) 移动终端之间挂载的系统和方法
US9940224B2 (en) Automatic remote execution of an application
CN103777999A (zh) 安卓软件模拟方法及装置
CN110780930A (zh) 启动Android系统的方法、装置、电子设备及存储介质
WO2023213263A1 (zh) 程序编译和启动方法、设备及存储介质
WO2009059473A1 (fr) Système de terminal basé sur java
CN112241373A (zh) 自动化测试方法、测试装置、处理器和测试系统
WO2021097683A1 (zh) 安卓系统启动的方法、装置、设备及存储介质
CN109522174B (zh) 控制adb使能的方法、装置、终端及存储介质
WO2014067368A1 (zh) 资源预览图的获取方法、装置以及设备
WO2019023987A1 (zh) 一种基于智能终端的测试方法及测试系统
CN112596751B (zh) 应用程序安装包的编译方法、终端、服务器及存储介质
WO2017096889A1 (zh) 系统升降级的方法和装置
CN114564214A (zh) 显示设备、应用安装方法及存储介质
CN113220569A (zh) 一种基于多进程的iOS兼容性自动化测试方法与装置
US7958207B2 (en) Method of installing software for enabling a connection of a phone to an interconnected network
CN112540777A (zh) 一种支持动态读写nv参数的方法和终端
AFREEN Mobile Applications Development
CN111966368A (zh) 应用程序静默安装方法、系统、安卓终端和可读介质

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

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

Country of ref document: EP

Kind code of ref document: A1