CN111984526A - Android hand-trip test method and system - Google Patents

Android hand-trip test method and system Download PDF

Info

Publication number
CN111984526A
CN111984526A CN202010640426.9A CN202010640426A CN111984526A CN 111984526 A CN111984526 A CN 111984526A CN 202010640426 A CN202010640426 A CN 202010640426A CN 111984526 A CN111984526 A CN 111984526A
Authority
CN
China
Prior art keywords
test
event stream
event
android
game
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010640426.9A
Other languages
Chinese (zh)
Inventor
李爱华
李星
赖炳新
张经生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
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 Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN202010640426.9A priority Critical patent/CN111984526A/en
Publication of CN111984526A publication Critical patent/CN111984526A/en
Pending legal-status Critical Current

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
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

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

The invention discloses an Android hand trip test method and an Android hand trip test device using the Android hand trip test method, wherein the Android hand trip test method comprises the following steps: s100, recording an event stream generated in a test case in first test equipment; and S200, playing back the event stream in a plurality of other test devices. The embodiment of the invention has at least the following beneficial effects: the event stream of the test case is recorded and then played back without compiling scripts, the degree of coupling with the game code to be tested is low, the later maintenance amount is small, the test period is shortened, and the test cost is saved.

Description

Android hand-trip test method and system
Technical Field
The invention relates to a mobile game testing method, in particular to an Android mobile game testing method and system.
Background
During the hand-trip test period, there are typically a large number of test cases that need to be executed. And for each test case, may need to run on a different configured mobile device to ensure that the game is running properly on the various differently configured mobile devices. The mobile devices in the current market are configured in a large number, and even if only the mobile devices with typical configurations are selected for testing, manpower and material resources are wasted.
The existing automatic test usually needs to compile scripts, and has certain requirements on the technical level of testers; generally, a single test case corresponds to a single script and often depends on game code logic, and with continuous improvement and content expansion of mobile game functions, the maintenance amount is large and the maintenance complexity is high.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the Android hand-trip testing method provided by the invention has the advantages that scripts do not need to be written, the maintenance is simple, and manpower and material resources can be saved.
The invention further provides an Android hand-trip test system with the Android hand-trip test method.
According to the embodiment of the first aspect of the invention, the Android hand-trip testing method comprises the following steps: s100, recording an event stream generated in a test case in first test equipment; and S200, playing back the event stream in a plurality of other test devices.
The Android hand-trip testing method provided by the embodiment of the invention at least has the following beneficial effects: the event stream of the test case is recorded and then played back without compiling scripts, the degree of coupling with the game code to be tested is low, the later maintenance amount is small, the test period is shortened, and the test cost is saved.
According to some embodiments of the invention, said step S100 comprises: s110, starting a recording program in the first testing equipment, and running a game to be tested; s120, executing corresponding operation of the test case in the game to be tested; s130, the recording program records the event stream generated in the operation of the test case.
According to some embodiments of the invention, said step S200 comprises: s210, connecting a plurality of other test devices to a test computer; s220, starting a playback program on other testing equipment through the testing computer at the same time, and running the game to be tested; s230, the playback program plays the recorded event streams in sequence.
According to some embodiments of the invention, the test computer simultaneously initiates a playback procedure on the other test devices via an adb shell command.
According to some embodiments of the invention, the event stream is recorded and played back by reading and writing an input event stream file "/dev/input/event 1" of the Android device.
According to some embodiments of the invention, the recorded content of the event stream comprises: event time, event type, event category, and event related value.
According to some embodiments of the invention, the operation of the test case comprises: and clicking, sliding or long-pressing the game screen to be tested or the game related component to be tested.
According to some embodiments of the invention, test result data generated by the test case is collected for statistical analysis.
The Android hand-trip test system according to the embodiment of the second aspect of the invention comprises: the recording module is used for recording an event stream generated in a test case of the first test equipment; a playback module to playback the event stream in a number of other test devices.
The Android hand-trip test system provided by the embodiment of the invention at least has the following beneficial effects: the event stream of the test case is recorded and then played back without compiling scripts, the degree of coupling with the game code to be tested is low, the later maintenance amount is small, the test period is shortened, and the test cost is saved.
According to some embodiments of the invention, further comprising: the control module is used for controlling the playback module in the other testing equipment and the game to be tested to be started simultaneously, and sending the event stream recorded by the recording module to the playback module; and the statistical module is used for collecting the test result data generated by the test case and carrying out statistical analysis.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic diagram of the main steps of a method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a connection relationship between a test apparatus and a test computer according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a system according to an embodiment of the present invention.
Reference numerals:
recording module 100, playback module 200, control module 300, statistics module 400.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Referring to fig. 1, a method in an embodiment of the invention, comprises the steps of: s100, recording an event stream generated in a test case in first test equipment; s200, playing back the event stream in a plurality of other test devices.
Specifically, first, recording programs recordevents and playback programs replaydevents are written. Referring to fig. 2, assume that there are N mobile devices (denoted as device1, device2, device3, …) that are all connected to the test computer and randomly select a device for recording use, such as device 1. The recording process of the event stream comprises the following steps: 1. starting a recording program recordevents on device1 to record an event stream; 2. the tester executes a series of operations on the game to be tested on the device1 to complete a test case; 3. and saving the event stream and closing the recording program. The operation actions comprise clicking, long-pressing or sliding a game screen to be tested or a game related component to be tested, and the generated event stream is written into an input event stream file "/dev/input/event 1" of the Android device. The recording program can extract the event stream information generated by the game to be tested in the test case from the file and copy the event stream information into the corresponding file.
The Android event stream is structurally composed as follows: event time, event type, event code and event correlation value.
Figure BDA0002570862820000041
The following is an example of a segment of an Android event stream:
Figure BDA0002570862820000042
the process of playing back an event is as follows: 1. through the adb shell command, simultaneously enabling playback program replays on device2, device3, …; the repayevents program plays back the recorded event stream on device2, device3, …; 3. and waiting for the completion of the playback of the event stream, namely finishing the execution of the test case. The playback program writes the relevant content of the event stream file recorded by the recording program into an input event stream file "/dev/input/event 1" of the Android device in the mobile device, and the game to be tested reads the content thereof and executes corresponding operation through the event stream. Txt in fig. 2 stores a file for an event stream of a certain test case; executing "/records daoxingcun.txt" records the operation on the test game into the file "daoxingcun.txt"; executing "/replays daoxingcun. txt" will play back the event stream in this file.
In some embodiments of the invention, further comprising: after the playback event stream is finished, collecting all test data generated in the test equipment, including but not limited to test logs, screen shots and the like, and performing statistical analysis.
Referring to fig. 3, a system in an embodiment of the invention includes: a recording module 100, a playback module 200, a control module 300, and a statistics module 400. The recording module 100 is configured to record an event stream generated in a test case of a first testing device. A playback module 200 for playing back the recorded event stream in a number of other test devices. The control module 300 is configured to control the playback module and the game to be tested in other testing devices to start simultaneously, and send the event stream recorded by the recording module 100 to the playback module 200; the statistical module 400 is configured to collect test result data generated by the test case, and perform statistical analysis. It is understood that in some embodiments of the present invention, the statistics module 400 may or may not be included. The flexibility of control is increased by the control module 300 enabling all playback modules to operate simultaneously.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. An Android hand tour test method is characterized by comprising the following steps:
s100, recording an event stream generated in a test case in first test equipment;
and S200, playing back the event stream in a plurality of other test devices.
2. The Android mobile test method of claim 1, wherein the step S100 comprises:
s110, starting a recording program in the first testing equipment, and running a game to be tested;
s120, executing corresponding operation of the test case in the game to be tested;
s130, the recording program records the event stream generated in the operation of the test case.
3. The Android mobile test method of claim 1, wherein the step S200 comprises:
s210, connecting a plurality of other test devices to a test computer;
s220, starting a playback program on other testing equipment through the testing computer at the same time, and running the game to be tested;
s230, the playback program plays the recorded event streams in sequence.
4. The Android hand-trip testing method of claim 3, wherein the testing computer starts a playback program on the other testing devices simultaneously through an adb shell command.
5. The Android hand-game testing method of claim 1, wherein the event stream is recorded and played back by reading and writing an input event stream file "/dev/input/event 1" of the Android device.
6. The Android mobile testing method of claim 1, wherein the recorded content of the event stream comprises: event time, event type, event code, and event related value.
7. The Android mobile test method of claim 1, wherein the operation of the test case comprises: and clicking, sliding or long-pressing the game screen to be tested or the game related component to be tested.
8. The Android hand-tour test method of claim 1, further comprising:
and S300, collecting test result data generated by the test case, and performing statistical analysis.
9. An Android hand tour test system using the method of any one of claims 1 to 8, comprising:
the recording module is used for recording an event stream generated in a test case of the first test equipment;
a playback module to playback the event stream in a number of other test devices.
10. The Android mobile testing system of claim 9, further comprising:
the control module is used for controlling the playback module in the other testing equipment and the game to be tested to be started simultaneously, and sending the event stream recorded by the recording module to the playback module;
and the statistical module is used for collecting the test result data generated by the test case and carrying out statistical analysis.
CN202010640426.9A 2020-07-06 2020-07-06 Android hand-trip test method and system Pending CN111984526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010640426.9A CN111984526A (en) 2020-07-06 2020-07-06 Android hand-trip test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010640426.9A CN111984526A (en) 2020-07-06 2020-07-06 Android hand-trip test method and system

Publications (1)

Publication Number Publication Date
CN111984526A true CN111984526A (en) 2020-11-24

Family

ID=73439002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010640426.9A Pending CN111984526A (en) 2020-07-06 2020-07-06 Android hand-trip test method and system

Country Status (1)

Country Link
CN (1) CN111984526A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113440844A (en) * 2021-08-27 2021-09-28 网易(杭州)网络有限公司 Information processing method and device suitable for game and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885477A (en) * 2018-12-24 2019-06-14 苏州蜗牛数字科技股份有限公司 A kind of game automated testing method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885477A (en) * 2018-12-24 2019-06-14 苏州蜗牛数字科技股份有限公司 A kind of game automated testing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闫凯等: "Android 应用录制与回放工具设计", 计算机系统应用, vol. 27, no. 9, pages 249 - 255 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113440844A (en) * 2021-08-27 2021-09-28 网易(杭州)网络有限公司 Information processing method and device suitable for game and electronic equipment
CN113440844B (en) * 2021-08-27 2021-11-16 网易(杭州)网络有限公司 Information processing method and device suitable for game and electronic equipment

Similar Documents

Publication Publication Date Title
CN110221983B (en) Test method, test device, computer readable storage medium and computer equipment
CN108984389B (en) Application program testing method and terminal equipment
CN104063305B (en) The method for testing pressure of intelligent terminal software, device and system
US7353505B2 (en) Tracing the execution path of a computer program
CN107391333B (en) OSD disk fault testing method and system
WO2019035610A1 (en) Game test automation device and method
CN101738550B (en) Electronic device test device and test method
CN102147756B (en) Methods and systems for testing terminal
CN112882930B (en) Automatic test method and device, storage medium and electronic equipment
CN111984526A (en) Android hand-trip test method and system
CN109101414B (en) Massive UI test generation method and device based on buried point data
CN100462938C (en) System and method for simulating programe mounting and operating
CN112612697A (en) Software defect testing and positioning method and system based on byte code technology
CN113079061A (en) Internet of things performance testing method and system
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
CN102279797A (en) Method and system for detecting memory leakage
CN115328798A (en) Chip verification automatic regression testing method and computer readable storage medium
CN101714114A (en) Device and method for supporting processor silicon post debugging
CN111414194B (en) Interface information generation method, system, electronic equipment and storage medium
CN113934619A (en) Sound source testing method, system and storage medium based on Robot Framework testing Framework
CN111694727A (en) Network card firmware upgrading and downgrading test method, system, terminal and storage medium
CN111858194A (en) Method and device for generating and processing robot error, robot and background server
US11874764B2 (en) Method and system for guaranteeing game quality by using artificial intelligence agent
CN103377118A (en) Method and device for testing Flash engine
CN111651309B (en) Reliability test method and system for computer system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination