WO2016095554A1 - 应用程序的测试方法、设备及系统 - Google Patents

应用程序的测试方法、设备及系统 Download PDF

Info

Publication number
WO2016095554A1
WO2016095554A1 PCT/CN2015/087744 CN2015087744W WO2016095554A1 WO 2016095554 A1 WO2016095554 A1 WO 2016095554A1 CN 2015087744 W CN2015087744 W CN 2015087744W WO 2016095554 A1 WO2016095554 A1 WO 2016095554A1
Authority
WO
WIPO (PCT)
Prior art keywords
tested
display interface
application
picture
control
Prior art date
Application number
PCT/CN2015/087744
Other languages
English (en)
French (fr)
Inventor
翟煦
Original Assignee
广州博冠信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州博冠信息科技有限公司 filed Critical 广州博冠信息科技有限公司
Publication of WO2016095554A1 publication Critical patent/WO2016095554A1/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 mobile communications technologies, and in particular, to a test method, device, and system for an application.
  • the test application uses the Monkey tool.
  • the Monkey tool is a command line tool in Android that can be run in an emulator or on an actual device.
  • the Monkey tool's test method is to send a pseudo-random user event stream (such as key input, touch screen input, gesture input, etc.) to the mobile phone system to achieve stress testing of the application.
  • a pseudo-random user event stream such as key input, touch screen input, gesture input, etc.
  • the user event stream data used in the Monkey tool test is random and cannot be customized. And because of the randomness of its user event flow, it may cause the test to aggregate on the single display interface of the application, making its testing inefficient.
  • the MonkeyRunner tool provides an API that can be used to control test devices and simulators outside of Android code.
  • the MonkeyRunner tool can also execute test scripts written by testers to install, run, send simulated keystrokes, and capture images of the display interface.
  • the tester is required to write a test script, and the test process is cumbersome.
  • the execution process of the test script is fixed.
  • the test script often cannot adapt to the new test environment, so different test scripts need to be customized for different test devices, so that the test Scripts are less reusable.
  • the multi-device support provided by the MonkeyRunner tool performs poorly on test devices with different resolutions, and does not support multiple devices in the true sense.
  • the embodiment of the invention provides a test method, device and system for an application program, which can improve the test Test the efficiency of the application on the device.
  • An embodiment of the present invention provides a testing method for an application, including:
  • the identifying the display interface picture, and obtaining the operation instruction corresponding to the display interface picture specifically includes:
  • the hierarchical structure view is a control view of each display interface having a jump relationship
  • control view is similar to the display interface image
  • operation instruction corresponding to the display interface image is obtained according to the control in the control view
  • the pop-up window library is stored a database of individual popup feature maps and their processing logic
  • control view includes a position, a picture and a type of the control
  • control view is similar to the display interface picture
  • operation instruction corresponding to the display interface picture is obtained according to the control in the control view, which specifically includes:
  • control in the display interface picture is identified according to the position and the picture of the control in the control view;
  • the method further includes:
  • the picture material includes a display interface picture material and a control picture material
  • control picture material the position, picture and type of the control on each picture interface picture material are identified;
  • control view having the jump relationship is a hierarchical structure Figure.
  • the method further includes:
  • testing method of the application further includes:
  • the invention also provides another test device, comprising:
  • a first startup module configured to send a startup instruction to the device to be tested, so that the device to be tested runs the application to be tested;
  • a display interface image obtaining module configured to cyclically acquire a picture of a display interface of the application to be tested
  • Displaying an interface picture identification module configured to identify the display interface picture, and obtain an operation instruction corresponding to the display interface picture
  • An operation instruction sending module configured to send the operation instruction to the device to be tested, so that the Test the display interface of the application.
  • the display interface picture identification module specifically includes:
  • a determining unit configured to determine, according to the picture recognition algorithm, whether there is a control view similar to the display interface picture in the pre-generated hierarchical structure graph; the hierarchical structure view is a control view of each display interface having a jump relationship;
  • a first operation instruction acquiring unit configured to: when the determining unit determines that a control view similar to the display interface picture exists in the hierarchical structure view, obtain a corresponding picture of the display interface according to a control in the control view Operation instruction
  • a pop-up feature map acquiring unit configured to query a pre-established pop-up window library when the control view similar to the display interface image does not exist in the hierarchical structure graph, and obtain a pop-up window feature similar to the display interface image
  • the pop-up window library is a database for storing each pop-up window feature map and its processing logic
  • a second operation instruction acquiring unit configured to obtain an operation instruction corresponding to the display interface picture according to the processing logic of the popup feature map.
  • control view includes a position, a picture and a type of the control
  • the first operation instruction acquiring unit specifically includes:
  • control identifier subunit configured to identify the display interface according to a position and a picture of the control in the control view when the determining unit determines that there is a control view similar to the display interface picture in the hierarchy view The controls in the image;
  • the operation instruction acquisition subunit is configured to obtain an operation instruction for triggering a control in the display interface picture according to the type of the control in the control view.
  • testing device further includes:
  • a first receiving module configured to receive a picture material of the to-be-tested application sent by the client;
  • the picture material includes a display interface picture material and a control picture material;
  • control identification module configured to identify a position, a picture, and a type of the control on each display interface picture material according to the control picture material
  • a conversion module for converting each display interface picture material into a control view of each display interface
  • a second startup module configured to send a startup instruction to the running device, to enable the running device to run the application to be tested
  • a hierarchy diagram acquiring module configured to establish, according to the jump relationship of the display interface of the application to be tested, a jump relationship of the control view of each display interface, and obtain a control view having a jump relationship;
  • the control view of a relationship is a hierarchy diagram.
  • testing device further includes:
  • a second receiving module configured to receive an installation package of the application to be tested sent by the client, and a list of devices to be tested;
  • the installation package sending module is configured to send the installation package to the device to be tested in the device to be tested, so that the device to be tested installs the application to be tested.
  • testing device further includes:
  • a performance data obtaining module configured to acquire performance data of the device to be tested in real time
  • test report generating module configured to generate a test report according to the obtained display interface picture and the performance data when the application to be tested is finished running
  • a test report sending module is configured to send the test report to the client.
  • the invention also provides a test system for an application, comprising a client, a test device and a device to be tested;
  • the test device is the above test device.
  • the testing method, device and system of the application program provided by the embodiment of the invention can obtain a picture of the display interface of the application to be tested, identify the corresponding operation instruction, and automatically display the display interface of the application to be tested, which is applicable to each Testing of various types of applications, at the same time, improving the testing efficiency of the application; automatically generating a hierarchical structure diagram according to the control view and the jump relationship of the application display interface to be tested, and using the hierarchical structure diagram to make various types of applications
  • the test of the program is unified, and the test efficiency is effectively improved.
  • the pop-up window library is set up, the pop-up window feature map and its processing logic are set to handle the pop-up event in the application, and the success rate of the test is improved; the client only needs to provide the test to be tested.
  • the picture material of the application can be fully automated without the need for testers to write test scripts, saving human resources. Reduce learning costs; support multi-device concurrent testing, effectively improve test efficiency and save test time.
  • FIG. 1 is a schematic flow chart of a first embodiment of a testing method of an application provided by the present invention
  • FIG. 2 is a schematic structural diagram of an embodiment of a display interface provided by the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of a display interface with a pop-up event provided by the present invention
  • FIG. 4 is a partial flow chart of a second embodiment of a testing method of an application provided by the present invention.
  • FIG. 5 is a schematic structural diagram of an embodiment of a picture material provided by the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of a hierarchical structure diagram provided by the present invention.
  • FIG. 7 is a schematic structural diagram of an embodiment of a task schedule provided by the present invention.
  • FIG. 8 is a schematic structural diagram of a first embodiment of a testing device of an application provided by the present invention.
  • FIG. 9 is a partial structural diagram of a second embodiment of a test device for an application provided by the present invention.
  • FIG. 10 is a schematic structural diagram of a first embodiment of a test system of an application provided by the present invention.
  • FIG. 11 is a schematic structural diagram of a second embodiment of a test system of an application provided by the present invention.
  • FIG. 1 it is a schematic flowchart of a first embodiment of a testing method of an application provided by the present invention.
  • the testing method of the application program provided by the embodiment of the present invention includes steps S101 to S104, as follows:
  • the device to be tested is started by the ADB command by using an ADB command.
  • the display interface is screenshotd to obtain a display interface image.
  • the identifying the display interface picture, and obtaining the operation instruction corresponding to the display interface picture specifically includes:
  • the hierarchical structure view is a control view of each display interface having a jump relationship
  • control view is similar to the display interface image
  • operation instruction corresponding to the display interface image is obtained according to the control in the control view
  • the pop-up window library is stored a database of individual popup feature maps and their processing logic
  • control view includes a location, a picture, and a type of the control.
  • the operation instruction corresponding to the display interface picture is obtained according to the control in the control view, which specifically includes:
  • control in the display interface picture is identified according to the position and the picture of the control in the control view;
  • the types of controls include an Image control, a Textarea control, and a Button control.
  • an operation instruction required to trigger the button control such as a click instruction, a slide instruction, or the like.
  • the operation instruction is sent according to the jump relationship of the control view in the hierarchy diagram, so that the display interface of the application to be tested jumps according to the jump relationship of the control view in the hierarchy diagram.
  • buttons control in the display interface picture when the button control in the display interface picture is recognized, a click instruction is sent to the button control 22 in the display interface 21 according to the hierarchical structure diagram, and a finger shape icon 23 appears at the button control 22 in the display interface 21, The finger shape icon 23 is clicked on the button control 22, and the display interface 21 jumps, thereby achieving fully automated testing.
  • the access status of all the jumping nodes and the path information being accessed are recorded, and when the test traverses to an accessed jump node, the backtracking operation is performed to make the test finally Iterate through all the reachable jump nodes to improve the execution efficiency of the test.
  • pop-up window feature map is a special display interface picture
  • the processing logic is a custom processing process for the client, such as input, click, wait, and the like.
  • test equipment query in the pop-up library Pop-up window feature map, find the pop-up window feature map similar to the display interface, thereby obtaining the processing logic of the pop-up window feature map, so that the application to be tested executes the processing logic, and the display interface jumps to the target display interface, and continues Conduct a normal test.
  • a pop-up event 32 appears in the display interface 31, and when the test device obtains the picture of the display interface 31, the control view similar to the picture is not found from the hierarchical structure diagram,
  • the pop-up window library is called, and a pop-up window feature diagram similar to the picture is found from the pop-up window library, and a click command is sent to the display interface 31 according to the processing logic of the pop-up window feature map, so that the display interface 31 jumps to the target display interface.
  • testing method of the application in this embodiment is implemented by a testing device, which is deployed on a computer, and is connected to the device to be tested to implement testing of the application on the device to be tested.
  • the device to be tested is a mobile terminal.
  • FIG. 4 it is a schematic flowchart of a second embodiment of a testing method of an application provided by the present invention.
  • test method of the application provided by the second embodiment is different in that:
  • the method further includes the steps S401 to S405, as follows:
  • S401 Receive a picture material of the to-be-tested application sent by a client, where the picture material includes a display interface picture material and a control picture material.
  • the application package to be tested sent by the client is also received, and the installation package is sent to the running device, and the running device is enabled by the ADB (Android Debug Bridge) command. Install the application to be tested.
  • the running device is any mobile terminal used to generate a hierarchical structure diagram.
  • the interface picture material is displayed as a screenshot of each display interface of the application to be tested.
  • the control picture material is button picture material, image picture material and text picture material in each display interface.
  • the SIFT Scale-invariant feature transform
  • Image controls and text controls and record the position, image, and type of each control on each display interface image. Where the position of the control is the coordinates of the control.
  • test device cyclically recognizes the controls in each of the display interface picture materials, thereby converting each display interface picture material into its corresponding control view.
  • the button image 55, the image control 56, and the text control 57 on the display interface picture material 54 are respectively recognized according to the button picture material 51, the image picture material 52, and the text picture material 53 in the control picture material, thereby
  • the display interface picture material 54 is converted into a control view.
  • the test device continually loops through until all of the display interface image material is converted to a control view.
  • the running device that is installed with the application to be tested is started by the ADB command to start the application to be tested.
  • the test device takes a screenshot of the current display interface, identifies a control view of the current display interface, and sends an operation instruction to the running device according to the control view, such as clicking or sliding, so as to run
  • the application under test in the device performs the operation.
  • the test device performs screenshots, recognition, and transmission operation instructions on the display interface after the operation device performs the operation, and continuously loops to obtain a complete jump relationship between the display interfaces of the application to be tested.
  • the jump relationship a jump relationship of the control view of each display interface is established, and a control view having a jump relationship is output, thereby obtaining a hierarchical structure diagram.
  • the hierarchy diagram is the test case of the application to be tested.
  • the display interface of the application to be tested has a first control view 61, a second control view 62, and a third control view 63.
  • the test device continues to take a screenshot of the display interface after the jump, and recognizes that the control view of the display interface after the jump is similar to the second control view 62, and then according to the third button control 621 in the second control view 62 to the application to be tested.
  • the program sends an operation instruction to cause the display interface of the application to be tested to continue to jump.
  • the display interface of the application to be tested completes all jumps, and the complete jump relationship of each control view is obtained: the first button control 611 on the first control view 61 is triggered, and the first control view 61 jumps to the second Control view 62; triggering third button control 621 on second control view 62, second control view 62 jumping to third control view 63; triggering fifth button control 631 of third control view 63, third control view 63 Jumping to the second control view 62; triggering the fourth button control 622 on the second control view 62, the second control view 62 jumping to the first control view 61; triggering the second button control 612 on the first control view 61
  • the first control view 61 jumps to the third control view 63.
  • the hierarchical diagram of the application to be tested needs to be generated only once, and the test device distributes the generated hierarchical structure diagram to different test devices, so that different test devices can directly test the application on the device to be tested, thereby reducing The amount of network data transferred, and can avoid double counting.
  • the existing test device can obtain the position and type of the control directly from the display interface of the application, but for the use of third-party engines (such as Cocos2dx, Unity3D, etc.)
  • the application's display interface is rendered as a complete image, and existing test devices cannot get controls directly from the display interface. Therefore, the embodiment provided by the present invention performs testing by using a method for generating a hierarchy diagram of an application to be tested in advance, and is suitable for testing various types of applications, thereby effectively improving test efficiency.
  • the present invention also provides a third embodiment of a test method for an application.
  • the method further includes:
  • the client can also send a test request to the test device through the server.
  • the test request includes an installation package of the application to be tested and a list of devices to be tested.
  • the client sends a test request to the server, and the server distributes the test task to different test devices according to the device to be tested in the device list to be tested. If the device to be tested is in the local area network, the server identifies the test task as a local task and sends it to the local test device connected to the device to be tested; if the device to be tested is not in the local area network, the server tests the task. Identifies as a remote task and sends it to a remote test device connected to the device under test. Among them, the server communicates with the remote test device through the Socket.
  • the test list may include multiple devices to be tested, and the test device may perform multiple test tasks in multiple threads concurrently. Preferably, at most one test device has the same number of test tasks as its CPU core. If the test device has more test tasks, the test task is placed in the task queue, and the status table of the device to be tested is generated, and the status information of the device to be tested is recorded, and the test is performed when the device to be tested is idle.
  • a task schedule 71 is generated to test the test task B1.
  • the test tasks B2... and the test tasks Bn are placed in the task queue 72 in the task schedule 71.
  • the test device may be a local test device or a remote test device, and the application to be tested may be the application to be tested C1, the application to be tested C2, ... and the application to be tested Cn.
  • the test task B1 contains the information of the device A1 to be tested and the application C1 to be tested;
  • the test task B2 contains the information of the device A2 to be tested and the application C1 to be tested;
  • the test task Bn contains the device to be tested An and Test the information of the application Cn.
  • Simultaneous task schedule 71 also has a device status table to be tested 73 for recording status information of the device under test A1, the device to be tested A2, and the device to be tested, and testing the device to be tested when it is idle.
  • the present invention also provides a fourth embodiment of a test method for an application.
  • the testing method of the application provided by the fourth embodiment is different in that:
  • the testing method of the application further includes:
  • the performance data of the device to be tested such as CPU and memory occupancy information
  • each test interface picture is generated corresponding to the performance data of the device to be tested when each picture is displayed, so that the tester can view the problems occurring during the test. And easy to find the performance bottleneck of the application.
  • the test process is monitored in real time, so that the tester can query the test progress in real time, and the test process can be reproduced.
  • the test method of the application program can obtain a picture of the display interface of the application to be tested, identify the corresponding operation instruction, and automatically jump the display interface of the application to be tested, and is applicable to various types of applications.
  • the test of the program improve the test efficiency of the application; automatically generate a hierarchical structure diagram according to the control view and the jump relationship of the application display interface to be tested, and use the hierarchical structure diagram to unify the testing of various types of applications Improve the efficiency of the test; establish a pop-up library, set the pop-up feature map and its processing logic, to handle pop-up events in the application, improve the success rate of the test; the client only needs to provide the image of the application to be tested
  • the material can be fully automated without the need for testers to write test scripts, saving human resources and reducing learning costs; supporting multi-device concurrent testing, effectively improving test efficiency and saving test time.
  • the present invention also provides an application testing device and a testing system, which can be implemented All the flow of the test method of the application in the embodiment.
  • FIG. 8 is a schematic structural diagram of a first embodiment of a testing device of an application provided by the present invention, including:
  • the first startup module 81 is configured to send a startup instruction to the device to be tested, so that the device to be tested runs the application to be tested;
  • the display interface image obtaining module 82 is configured to cyclically acquire a picture of the display interface of the application to be tested;
  • the display interface picture identification module 83 is configured to identify the display interface picture, and obtain an operation instruction corresponding to the display interface picture;
  • the operation instruction sending module 84 is configured to send the operation instruction to the device to be tested, so that the display interface of the application to be tested jumps.
  • the display interface picture identification module 83 specifically includes:
  • a determining unit configured to determine, according to the picture recognition algorithm, whether there is a control view similar to the display interface picture in the pre-generated hierarchical structure graph; the hierarchical structure view is a control view of each display interface having a jump relationship;
  • a first operation instruction acquiring unit configured to: when the determining unit determines that a control view similar to the display interface picture exists in the hierarchical structure view, obtain a corresponding picture of the display interface according to a control in the control view Operation instruction
  • a pop-up feature map acquiring unit configured to query a pre-established pop-up window library when the control view similar to the display interface image does not exist in the hierarchical structure graph, and obtain a pop-up window feature similar to the display interface image
  • the pop-up window library is a database for storing each pop-up window feature map and its processing logic
  • a second operation instruction acquiring unit configured to obtain an operation instruction corresponding to the display interface picture according to the processing logic of the popup feature map.
  • control view includes a location, a picture, and a type of the control.
  • the first operation instruction acquiring unit specifically includes:
  • control identification subunit configured to determine, in the hierarchy unit, that the presence and the When displaying the control view with similar interface pictures, identifying the control in the display interface picture according to the position and picture of the control in the control view;
  • the operation instruction acquisition subunit is configured to obtain an operation instruction for triggering a control in the display interface picture according to the type of the control in the control view.
  • FIG. 9 there is shown a second embodiment of a test apparatus for an application provided by the present invention.
  • test device of the application provided by the second embodiment is different in that:
  • test device of the application further includes:
  • the first receiving module 91 is configured to receive a picture material of the to-be-tested application sent by the client, where the picture material includes a display interface picture material and a control picture material;
  • the control identification module 92 is configured to identify, according to the picture material of the control, a position, a picture, and a type of a control on each picture interface picture material;
  • a conversion module 93 configured to convert each display interface picture material into a control view of each display interface
  • a second startup module 94 configured to send a startup instruction to the running device, to enable the running device to run the application to be tested;
  • the hierarchy diagram obtaining module 95 is configured to establish a jump relationship of the control view of each display interface according to the jump relationship of the display interface of the application to be tested, and obtain a control view having a jump relationship;
  • the control view of the transition relationship is the hierarchy diagram.
  • the present invention also provides a third embodiment of a test device for an application.
  • test device of the application provided by the third embodiment is different in that:
  • test device of the application further includes:
  • a second receiving module configured to receive an installation package of the application to be tested sent by the client, and a list of devices to be tested;
  • the installation package sending module is configured to send the installation package to the device to be tested in the device to be tested, so that the device to be tested installs the application to be tested.
  • the present invention also provides a fourth embodiment of a test device for an application.
  • the testing device of the application provided by the fourth embodiment is different in that:
  • test device of the application further includes:
  • a performance data obtaining module configured to acquire performance data of the device to be tested in real time
  • test report generating module configured to generate a test report according to the obtained display interface picture and the performance data when the application to be tested is finished running
  • a test report sending module is configured to send the test report to the client.
  • the test device of the application program provided by the embodiment of the present invention can obtain a picture of the display interface of the application to be tested, identify the corresponding operation instruction, and automatically jump the display interface of the application to be tested, and is applicable to various types of applications.
  • the test of the program improve the test efficiency of the application; automatically generate a hierarchical structure diagram according to the control view and the jump relationship of the application display interface to be tested, and use the hierarchical structure diagram to unify the testing of various types of applications Improve the efficiency of the test; establish a pop-up library, set the pop-up feature map and its processing logic, to handle pop-up events in the application, improve the success rate of the test; the client only needs to provide the image of the application to be tested
  • the material can be fully automated without the need for testers to write test scripts, saving human resources and reducing learning costs; supporting multi-device concurrent testing, effectively improving test efficiency and saving test time.
  • FIG. 10 is a schematic structural diagram of a first embodiment of a test system for an application provided by the present invention, including a client 101, a test device 102, and a device to be tested 103;
  • the test device 102 is a test device of the above application, and will not be described in detail herein.
  • FIG. 11 there is shown a block diagram of a second embodiment of a test system for an application provided by the present invention.
  • the test system of the application includes a client 111, a server 112, a first test device 113, a second test device 114, a third test device 115, and a plurality of devices to be tested.
  • the test device is configured on a computer, and the device to be tested is a mobile terminal.
  • the client 111 accesses the server 112 and sends a test request to the server 112; the first test device 113 and the second test device 114 are locally tested.
  • the device accesses the server 112 and receives the local test task sent by the server 112.
  • the third test device 115 is a remote test device, communicates with the server 112 through the Socket, and receives the remote task sent by the server 112. Each test device is accessed.
  • the test equipment A1, the equipment to be tested A2, ... and the equipment to be tested An implement testing of the application to be tested on the equipment to be tested A1, the equipment to be tested A2, ... and the equipment to be tested An.
  • the embodiment of the invention distributes tasks through a server, and improves the usage rate of the test device.
  • the server is connected to the local test device and the remote test device respectively, and the local test task can be distributed to the local test device, and the remote test task can be distributed to the remote test device for testing, thereby improving the use rate of the test device and reducing the purchase cost of the test device.
  • Each test device is connected to the device to be tested A1, the device to be tested A2, and the device to be tested, and supports concurrent testing of multiple devices to be tested, saving test time. At the same time, the test device can adapt to different resolutions. Testing of test equipment.
  • test system includes a server, and the server is respectively connected to two local test devices and one remote test device, but in specific implementations, the test device may include one or Multiple servers, each of which can be connected to one or more local test devices, or to one or more remote test devices.
  • the number of servers and test devices can be configured according to the actual application.
  • the test system of the application program can obtain a picture of the display interface of the application to be tested, identify the corresponding operation instruction, and automatically jump the display interface of the application to be tested, and is applicable to various types of applications.
  • the test of the program improve the test efficiency of the application; automatically generate a hierarchical structure diagram according to the control view and the jump relationship of the application display interface to be tested, and use the hierarchical structure diagram to unify the testing of various types of applications Improve the efficiency of the test; establish a pop-up library, set the pop-up feature map and its processing logic, to handle pop-up events in the application, improve the success rate of the test; the client only needs to provide the image of the application to be tested
  • the material can be fully automated without the need for testers to write test scripts, saving human resources and reducing learning costs; supporting multi-device concurrent testing, effectively improving test efficiency and saving test time.
  • the disclosed systems and methods can be implemented in other ways.
  • the system embodiment described above is merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

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

一种应用程序的测试方法、设备及系统,所述应用程序的测试方法包括:向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序(S101);循环获取所述待测试应用程序的显示界面的图片(S102);识别所述显示界面图片,获得所述显示界面图片相应的操作指令(S103);向所述待测试设备发送所述操作指令,使所述待测试应用程序的显示界面跳转(S104)。采用所述方法,能够提高待测试设备上应用程序的测试效率。

Description

应用程序的测试方法、设备及系统 技术领域
本发明涉及移动通信技术领域,尤其涉及一种应用程序的测试方法、设备及系统。
背景技术
在现有技术中,测试应用程序采用的是Monkey工具。Monkey工具是Android中的一个命令行工具,可以运行在模拟器或实际设备中。Monkey工具的测试方法是向手机系统发送伪随机的用户事件流(如按键输入、触摸屏输入、手势输入等),实现对应用程序的压力测试。但是,Monkey工具测试时使用的用户事件流数据流是随机的,不能进行自定义。而由于其用户事件流的随机性,可能导致测试聚集在应用程序的单个显示界面上,使其测试效率不高。
还有一些应用程序的测试采用的是MonkeyRunner工具。MonkeyRunner工具提供一个API,使用该API写出的程序可以在Android代码之外控制测试设备和模拟器。MonkeyRunner工具还可以执行测试人员编写的测试脚本,从而达到对应用程序进行安装、运行、发送模拟击键、截取显示界面图片的操作。但是,MonkeyRunner工具测试时,需要测试人员编写测试脚本,测试过程较为繁琐。同时,测试脚本的执行过程是固定的,当应用程序的结构发生变化或测试设备发生变化时,测试脚本往往不能适应新的测试环境,从而需要针对不同的测试设备定制不同的测试脚本,使得测试脚本的可重用性较低。而且,MonkeyRunner工具提供的多设备支持功能在具有不同分辨率的测试设备中,表现差强人意,没有从真正意义上支持多设备。
发明内容
本发明实施例提出一种应用程序的测试方法、设备及系统,能够提高待测 试设备上应用程序的测试效率。
本发明实施例提供一种应用程序的测试方法,包括:
向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序;
循环获取所述待测试应用程序的显示界面的图片;
识别所述显示界面图片,获得所述显示界面图片相应的操作指令;
向所述待测试设备发送所述操作指令,使所述待测试应用程序的显示界面跳转。
进一步地,所述识别所述显示界面图片,获得所述显示界面图片相应的操作指令,具体包括:
根据图片识别算法,判断预先生成的层次结构图中是否存在与所述显示界面图片相似的控件视图;所述层次结构图为具有跳转关系的各个显示界面的控件视图;
若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令;
若所述层次结构图中不存在与所述显示界面图片相似的控件视图,则查询预先建立的弹窗库,获得与所述显示界面图片相似的弹窗特征图;所述弹窗库为存储各个弹窗特征图及其处理逻辑的数据库;
根据所述弹窗特征图的处理逻辑,获得所述显示界面图片相应的操作指令。
优选地,所述控件视图包括控件的位置、图片和类型;
所述若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令,具体包括:
若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中控件的位置和图片,识别出所述显示界面图片中的控件;
根据所述控件视图中控件的类型,获得触发所述显示界面图片中的控件的操作指令。
进一步地,在所述向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序之前,还包括:
接收客户端发送的所述待测试应用程序的图片素材;所述图片素材包括显示界面图片素材和控件图片素材;
根据控件图片素材,识别出每个显示界面图片素材上控件的位置、图片和类型;
将每个显示界面图片素材转换为每个显示界面的控件视图;
向运行设备发送启动指令,使所述运行设备运行所述待测试应用程序;
根据所述待测试应用程序运行时显示界面的跳转关系,建立各个显示界面的控件视图的跳转关系,获得具有跳转关系的控件视图;所述具有跳转关系的控件视图即为层次结构图。
进一步地,在所述向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序之前,还包括:
接收客户端发送的待测试应用程序的安装包,以及待测试设备列表;
向所述待测试设备列表中的待测试设备发送所述安装包,使所述待测试设备安装所述待测试应用程序。
进一步地,所述应用程序的测试方法还包括:
实时获取所述待测试设备的性能数据;
在所述待测试应用程序运行结束时,根据获取的所述显示界面图片和所述性能数据,生成测试报告;
将所述测试报告发送给客户端。
本发明还提供了另外一种测试设备,包括:
第一启动模块,用于向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序;
显示界面图片获取模块,用于循环获取所述待测试应用程序的显示界面的图片;
显示界面图片识别模块,用于识别所述显示界面图片,获得所述显示界面图片相应的操作指令;以及,
操作指令发送模块,用于向所述待测试设备发送所述操作指令,使所述待 测试应用程序的显示界面跳转。
进一步地,所述显示界面图片识别模块具体包括:
判断单元,用于根据图片识别算法,判断预先生成的层次结构图中是否存在与所述显示界面图片相似的控件视图;所述层次结构图为具有跳转关系的各个显示界面的控件视图;
第一操作指令获取单元,用于在所述判断单元判定所述层次结构图中存在与所述显示界面图片相似的控件视图时,根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令;
弹窗特征图获取单元,用于在所述层次结构图中不存在与所述显示界面图片相似的控件视图时,查询预先建立的弹窗库,获得与所述显示界面图片相似的弹窗特征图;所述弹窗库为存储各个弹窗特征图及其处理逻辑的数据库;以及,
第二操作指令获取单元,用于根据所述弹窗特征图的处理逻辑,获得所述显示界面图片相应的操作指令。
优选地,所述控件视图包括控件的位置、图片和类型;
所述第一操作指令获取单元具体包括:
控件识别子单元,用于在所述判断单元判定所述层次结构图中存在与所述显示界面图片相似的控件视图时,根据所述控件视图中控件的位置和图片,识别出所述显示界面图片中的控件;以及,
操作指令获取子单元,用于根据所述控件视图中控件的类型,获得触发所述显示界面图片中的控件的操作指令。
进一步地,所述测试设备还包括:
第一接收模块,用于接收客户端发送的所述待测试应用程序的图片素材;所述图片素材包括显示界面图片素材和控件图片素材;
控件识别模块,用于根据所述控件图片素材,识别出每个显示界面图片素材上控件的位置、图片和类型;
转换模块,用于将每个显示界面图片素材转换为每个显示界面的控件视图;
第二启动模块,用于向运行设备发送启动指令,使所述运行设备运行所述待测试应用程序;以及,
层次结构图获取模块,用于根据所述待测试应用程序运行时显示界面的跳转关系,建立各个显示界面的控件视图的跳转关系,获得具有跳转关系的控件视图;所述具有跳转关系的控件视图即为层次结构图。
进一步地,所述测试设备还包括:
第二接收模块,用于接收客户端发送的待测试应用程序的安装包,以及待测试设备列表;以及,
安装包发送模块,用于向所述待测试设备列表中的待测试设备发送所述安装包,使所述待测试设备安装所述待测试应用程序。
进一步地,所述测试设备还包括:
性能数据获取模块,用于实时获取所述待测试设备的性能数据;
测试报告生成模块,用于在所述待测试应用程序运行结束时,根据获取的所述显示界面图片和所述性能数据,生成测试报告;以及,
测试报告发送模块,用于将所述测试报告发送给客户端。
本发明还提供了一种应用程序的测试系统,包括客户端、测试设备和待测试设备;
所述测试设备是上述测试设备。
实施本发明实施例,具有如下有益效果:
本发明实施例提供的应用程序的测试方法、设备及系统,能够获取待测试应用程序的显示界面的图片,识别其相应的操作指令,使待测试应用程序的显示界面自动跳转,适用于各种类型的应用程序的测试,同时,提高应用程序的测试效率;根据待测试应用程序显示界面的控件视图和跳转关系,自动生成层次结构图,并利用该层次结构图使各种类型的应用程序的测试统一化,有效提高测试效率;建立弹窗库,设置弹窗特征图及其处理逻辑,用于处理应用程序中的弹窗事件,提高测试的成功率;客户端只需提供待测试应用程序的图片素材,无需测试人员编写测试脚本,即可进行全自动化的测试,节约人力资源, 降低学习成本;支持多设备并发测试,有效提高测试效率,节省测试时间。
附图说明
图1是本发明提供的应用程序的测试方法的第一个实施例的流程示意图;
图2是本发明提供的显示界面的一个实施例的结构示意图;
图3是本发明提供的具有弹窗事件的显示界面的一个实施例的结构示意图;
图4是本发明提供的应用程序的测试方法的第二个实施例的部分流程示意图;
图5是本发明提供的图片素材的一个实施例的结构示意图;
图6是本发明提供的层次结构图的一个实施例的结构示意图;
图7是本发明提供的任务调度表的一个实施例的结构示意图;
图8是本发明提供的应用程序的测试设备的第一个实施例的结构示意图;
图9是本发明提供的应用程序的测试设备的第二个实施例的部分结构示意图;
图10是本发明提供的应用程序的测试系统的第一个实施例的结构示意图;
图11是本发明提供的应用程序的测试系统的第二个实施例的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,是本发明提供的应用程序的测试方法的第一个实施例的流程示意图。
本发明实施例提供的应用程序的测试方法包括步骤S101至S104,具体如下:
S101、向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序。
具体的,通过ADB命令使待测试设备启动所述待测试应用程序。
S102、循环获取所述待测试应用程序的显示界面的图片。
具体的,待测试应用程序的显示界面每跳转一次,都会对显示界面进行截图,获取显示界面图片。
S103、识别所述显示界面图片,获得所述显示界面图片相应的操作指令。
S104、向所述待测试设备发送所述操作指令,使所述待测试应用程序的显示界面跳转。
其中,在步骤S103中,所述识别所述显示界面图片,获得所述显示界面图片相应的操作指令,具体包括:
根据图片识别算法,判断预先生成的层次结构图中是否存在与所述显示界面图片相似的控件视图;所述层次结构图为具有跳转关系的各个显示界面的控件视图;
若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令;
若所述层次结构图中不存在与所述显示界面图片相似的控件视图,则查询预先建立的弹窗库,获得与所述显示界面图片相似的弹窗特征图;所述弹窗库为存储各个弹窗特征图及其处理逻辑的数据库;
根据所述弹窗特征图的处理逻辑,获得所述显示界面图片相应的操作指令。
优选地,所述控件视图包括控件的位置、图片和类型。
具体的,所述若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令,具体包括:
若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中控件的位置和图片,识别出所述显示界面图片中的控件;
根据所述控件视图中控件的类型,获得触发所述显示界面图片中的控件的操作指令。
需要说明的是,在识别显示界面中的控件时,先根据控件视图中控件的坐 标来进行识别,若坐标错位,则采用图片识别技术,根据控件的图片来进行识别,使测试具有较高的执行效率和兼容性。
具体的,控件的类型包括图像(Image)控件、文本(Textarea)控件和按钮(Button)控件。在识别出显示界面中的按钮控件时,根据该按钮控件,获得触发该按钮控件所需的操作指令,如点击指令、滑动指令等。其中,操作指令是根据层次结构图中控件视图的跳转关系进行发送的,使待测试应用程序的显示界面按照层次结构图中控件视图的跳转关系进行跳转。若显示界面图片上具有多个按钮控件,查询该显示界面图片在层次结构图中的状态信息,根据该状态信息,获取触发相应按钮控件所需的操作指令,从而使测试过程更具规划性和可控性,避免盲目地向显示界面图片中不同的按钮控件发送操作指令,使测试的效率更高。
如图2所示,在识别出显示界面图片中的按钮控件时,根据层次结构图,向显示界面21中的按钮控件22发送点击指令,显示界面21中按钮控件22处出现手指形状图标23,使手指形状图标23点击按钮控件22,显示界面21跳转,从而实现全自动化的测试。
另外,在根据层次结构图进行显示界面跳转的同时,记录所有跳转节点的访问状态和正在访问的路径信息,在测试遍历到一个已访问的跳转节点时,执行回溯操作,使测试最终遍历所有可以到达的跳转节点,提高测试的执行效率。
在测试过程中,还会出现一些特殊的弹窗事件,而弹窗事件是难以预测的,如在游戏应用程序的测试过程中,会出现临时活动的推送界面,消息提示界面等。当出现这些弹窗事件时,如果不对其进行处理,则会对测试造成阻碍,甚至导致测试的失败。因此,可预先建立弹窗库,用来存储各个弹窗特征图及其处理逻辑,同时还存储有各个弹窗特征图处理后的目标显示界面图片。其中,弹窗特征图为特殊的显示界面图片,处理逻辑为客户端自定义处理过程,如输入、点击、等待等。
若测试中获得未知的显示界面图片,即层次结构图中不存在与显示界面图片相似的控件视图,则说明测试中出现了弹窗事件。测试设备查询弹窗库中的 弹窗特征图,找到与显示界面相近似的弹窗特征图,从而获得该弹窗特征图的处理逻辑,使待测试应用程序执行该处理逻辑,将显示界面跳转到目标显示界面,并继续进行正常测试。
如图3所示,在测试过程中,显示界面31中出现弹窗事件32,测试设备在获得该显示界面31的图片时,未从层次结构图中找出与该图片相似的控件视图,则调用弹窗库,从弹窗库中找到与该图片相似的弹窗特征图,并根据弹窗特征图的处理逻辑,向显示界面31发送点击指令,使显示界面31跳转到目标显示界面。
需要说明的是,本实施例的应用程序的测试方法由测试设备实现,所述测试设备部署在计算机上,通过与待测试设备连接,实现对待测试设备上应用程序的测试。所述待测试设备为移动终端。
参见图4,是本发明提供的应用程序的测试方法的第二个实施例的流程示意图。
与上述第一实施例相比,第二实施例提供的应用程序的测试方法的不同点在于:
在所述向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序之前,还包括步骤S401至步骤S405,具体如下:
S401、接收客户端发送的所述待测试应用程序的图片素材;所述图片素材包括显示界面图片素材和控件图片素材。
需要说明的是,在接收待测试应用程序的图片素材的同时,还接收客户端发送的待测试应用程序安装包,并向运行设备发送安装包,通过ADB(Android Debug Bridge)命令使该运行设备安装所述待测试应用程序。其中,运行设备是用于生成层次结构图的任意一个移动终端。
在接收到的图片素材中,显示界面图片素材为待测试应用程序各个显示界面的截图。控件图片素材为各个显示界面中的按钮图片素材、图像图片素材和文本图片素材。
S402、根据所述控件图片素材,识别出每个显示界面图片素材上控件的位 置、图片和类型。
具体的,采用SIFT(Scale-invariant feature transform,尺度不变特征变换匹配算法)图片识别技术,根据按钮图片素材、图像图片素材和文本图片素材分别识别出每个显示界面图片素材上的按钮控件、图像控件和文本控件,并记录每个显示界面图片素材上的每个控件的位置、图片和类型。其中,控件的位置为控件的坐标。
S403、将每个显示界面图片素材转换为每个显示界面的控件视图。
具体的,测试设备循环识别每个显示界面图片素材中的控件,从而将每个显示界面图片素材转换为其对应的控件视图。
如图5所示,根据控件图片素材中的按钮图片素材51、图像图片素材52和文本图片素材53分别识别出显示界面图片素材54上的按钮控件55、图像控件56和文本控件57,从而将显示界面图片素材54转换为控件视图。测试设备不断循环转换,直到将所有显示界面图片素材转换为控件视图为止。
S404、向运行设备发送启动指令,使所述运行设备运行所述待测试应用程序。
具体的,通过ADB命令使安装有待测试应用程序的运行设备启动所述待测试应用程序。
S405、根据所述待测试应用程序运行时显示界面的跳转关系,建立各个显示界面的控件视图的跳转关系,获得具有跳转关系的控件视图;所述具有跳转关系的控件视图即为层次结构图。
具体的,在待测试应用程序运行时,测试设备对当前显示界面进行截图,识别出当前显示界面的控件视图,并根据该控件视图,向运行设备发送操作指令,如点击或滑动等,使运行设备中的待测试应用程序执行操作。测试设备对运行设备执行操作后的显示界面再进行截图、识别和发送操作指令,不断循环获得待测试应用程序各个显示界面之间完整的跳转关系。根据该跳转关系,建立各个显示界面的控件视图的跳转关系,输出具有跳转关系的控件视图,从而获得层次结构图。其中,层次结构图为待测试应用程序的测试用例。
如图6所示,待测试应用程序的显示界面具有第一控件视图61、第二控件视图62和第三控件视图63。对待测试应用程序的当前显示界面进行截图,并识别出该截图相似的控件视图为第一控件视图61,根据第一控件视图61中的第一按钮控件611向待测试应用程序发送操作指令,使待测试应用程序的显示界面跳转。测试设备继续对跳转后的显示界面截图,识别出跳转后的显示界面截图相似的控件视图为第二控件视图62,再根据第二控件视图62中的第三按钮控件621向待测试应用程序发送操作指令,使待测试应用程序的显示界面继续跳转。如此循环,使待测试应用程序的显示界面完成全部跳转,获得各个控件视图的完整跳转关系:触发第一控件视图61上的第一按钮控件611,第一控件视图61跳转到第二控件视图62;触发第二控件视图62上的第三按钮控件621,第二控件视图62跳转到第三控件视图63;触发第三控件视图63的第五按钮控件631,第三控件视图63跳转到第二控件视图62;触发第二控件视图62上的第四按钮控件622,第二控件视图62跳转到第一控件视图61;触发第一控件视图61上的第二按钮控件612,第一控件视图61跳转到第三控件视图63。输出具有跳转关系的控件视图,即可获得层次结构图。其中,层次结构图以文件的形式保存,例如可保存为xml文件。
另外,待测试应用程序的层次结构图只需生成一次,测试设备将生成的层次结构图分发到不同的测试设备上,使不同的测试设备能够直接测试待测试设备上的该应用程序,从而减少网络数据传输量,且可避免重复计算。
需要说明的是,在IOS和Android系统的原生应用中,现有的测试设备可以直接从应用程序的显示界面中获取控件的位置和类型,但是对于使用了第三方引擎(如Cocos2dx、Unity3D等)的应用程序,其显示界面被渲染成了一张完整的图片,现有的测试设备不能直接从显示界面中获取控件。因此,本发明提供的实施例采用预先生成待测试应用程序的层次结构图的方法来进行测试,适用于各种类型的应用程序的测试,有效提高测试效率。
本发明还提供应用程序的测试方法的第三个实施例。
与上述第一实施例和第二实施例相比,第三实施例提供的应用程序的测试 方法的不同点在于:
在所述向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序之前,还包括:
接收客户端发送的待测试应用程序的安装包,以及待测试设备列表;
向所述待测试设备列表中的待测试设备发送所述安装包,使所述待测试设备安装所述待测试应用程序。
需要说明的是,客户端还可以通过服务器向测试设备发送测试请求。其中,测试请求包括待测试应用程序的安装包和待测试设备列表。具体的,客户端将测试请求发送给服务器,服务器根据待测试设备列表中的待测试设备,向不同测试设备分发测试任务。若待测试设备处于本地局域网中,则服务器将测试任务标识为本地任务,并将其发送给连接该待测试设备的本地测试设备上;若待测试设备不在本地局域网中,则服务器将该测试任务标识为远程任务,并将其发送到连接该待测试设备的远程测试设备上。其中,服务器与远程测试设备通过Socket进行通讯。
其中,待测试列表中可包含多个待测试设备,测试设备可多线程并发执行多个测试任务。优选地,一个测试设备上最多启动与其CPU核心数相同的测试任务。如果测试设备当前的测试任务较多,则将测试任务放入任务队列中,并生成待测试设备的状态表,记录待测试设备的状态信息,在待测试设备空闲时进行测试。
如图7所示,测试设备同时在待测试设备A1、待测试设备A2……和待测试设备An上对待测试应用程序进行测试时,生成任务调度表71,将测试设备具有的测试任务B1、测试任务B2……和测试任务Bn放入任务调度表71中的任务队列72中。其中,测试设备可以为本地测试设备或远程测试设备,待测试应用程序可以为待测试应用程序C1、待测试应用程序C2……和待测试应用程序Cn。在任务队列72中,测试任务B1包含待测试设备A1和待测试应用程序C1的信息;测试任务B2包含待测试设备A2和待测试应用程序C1的信息;测试任务Bn包含待测试设备An和待测试应用程序Cn的信息。同时,任务调度表 71中还具有待测试设备状态表73,用于记录待测试设备A1、待测试设备A2……和待测试设备An的状态信息,在待测试设备空闲时对其进行测试。
本发明还提供应用程序的测试方法的第四个实施例。
与上述第一实施例、第二实施例和第三实施例相比,第四实施例提供的应用程序的测试方法的不同点在于:
所述应用程序的测试方法还包括:
实时获取所述待测试设备的性能数据;
在所述待测试应用程序运行结束时,根据获取的所述显示界面图片和所述性能数据,生成测试报告;
将所述测试报告发送给客户端。
具体的,在待测试应用程序运行过程中,实时获取待测试设备的性能数据,如CPU、内存的占用信息等。在所述待测试应用程序运行结束时,将每张显示界面图片与获取每张显示界面图片时的待测试设备性能数据相对应的生成测试报告,使测试人员能够查看测试过程中出现的问题,且方便发现应用程序的性能瓶颈。同时,实时监控测试过程,使测试人员可实时查询测试进度,也使测试过程可以重现。
本发明实施例提供的应用程序的测试方法,能够获取待测试应用程序的显示界面的图片,识别其相应的操作指令,使待测试应用程序的显示界面自动跳转,适用于各种类型的应用程序的测试,同时,提高应用程序的测试效率;根据待测试应用程序显示界面的控件视图和跳转关系,自动生成层次结构图,并利用该层次结构图使各种类型的应用程序的测试统一化,有效提高测试效率;建立弹窗库,设置弹窗特征图及其处理逻辑,用于处理应用程序中的弹窗事件,提高测试的成功率;客户端只需提供待测试应用程序的图片素材,无需测试人员编写测试脚本,即可进行全自动化的测试,节约人力资源,降低学习成本;支持多设备并发测试,有效提高测试效率,节省测试时间。
相应地,本发明还提供一种应用程序的测试设备和测试系统,能够实现上 述实施例中的应用程序的测试方法的所有流程。
参见图8,是本发明提供的应用程序的测试设备的第一个实施例的结构示意图,包括:
第一启动模块81,用于向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序;
显示界面图片获取模块82,用于循环获取所述待测试应用程序的显示界面的图片;
显示界面图片识别模块83,用于识别所述显示界面图片,获得所述显示界面图片相应的操作指令;以及,
操作指令发送模块84,用于向所述待测试设备发送所述操作指令,使所述待测试应用程序的显示界面跳转。
其中,所述显示界面图片识别模块83具体包括:
判断单元,用于根据图片识别算法,判断预先生成的层次结构图中是否存在与所述显示界面图片相似的控件视图;所述层次结构图为具有跳转关系的各个显示界面的控件视图;
第一操作指令获取单元,用于在所述判断单元判定所述层次结构图中存在与所述显示界面图片相似的控件视图时,根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令;
弹窗特征图获取单元,用于在所述层次结构图中不存在与所述显示界面图片相似的控件视图时,查询预先建立的弹窗库,获得与所述显示界面图片相似的弹窗特征图;所述弹窗库为存储各个弹窗特征图及其处理逻辑的数据库;以及,
第二操作指令获取单元,用于根据所述弹窗特征图的处理逻辑,获得所述显示界面图片相应的操作指令。
优选地,所述控件视图包括控件的位置、图片和类型。
具体的,所述第一操作指令获取单元具体包括:
控件识别子单元,用于在所述判断单元判定所述层次结构图中存在与所述 显示界面图片相似的控件视图时,根据所述控件视图中控件的位置和图片,识别出所述显示界面图片中的控件;以及,
操作指令获取子单元,用于根据所述控件视图中控件的类型,获得触发所述显示界面图片中的控件的操作指令。
参见图9,是本发明提供的应用程序的测试设备的第二个实施例。
与上述第一实施例相比,第二实施例提供的应用程序的测试设备的不同点在于:
所述应用程序的测试设备还包括:
第一接收模块91,用于接收客户端发送的所述待测试应用程序的图片素材;所述图片素材包括显示界面图片素材和控件图片素材;
控件识别模块92,用于根据所述控件图片素材,识别出每个显示界面图片素材上控件的位置、图片和类型;
转换模块93,用于将每个显示界面图片素材转换为每个显示界面的控件视图;
第二启动模块94,用于向运行设备发送启动指令,使所述运行设备运行所述待测试应用程序;以及,
层次结构图获取模块95,用于根据所述待测试应用程序运行时显示界面的跳转关系,建立各个显示界面的控件视图的跳转关系,获得具有跳转关系的控件视图;所述具有跳转关系的控件视图即为层次结构图。
本发明还提供应用程序的测试设备的第三个实施例。
与上述第一实施例和第二实施例相比,第三实施例提供的应用程序的测试设备的不同点在于:
所述应用程序的测试设备还包括:
第二接收模块,用于接收客户端发送的待测试应用程序的安装包,以及待测试设备列表;以及,
安装包发送模块,用于向所述待测试设备列表中的待测试设备发送所述安装包,使所述待测试设备安装所述待测试应用程序。
本发明还提供应用程序的测试设备的第四个实施例。
与上述第一实施例、第二实施例和第三实施例相比,第四实施例提供的应用程序的测试设备的不同点在于:
所述应用程序的测试设备还包括:
性能数据获取模块,用于实时获取所述待测试设备的性能数据;
测试报告生成模块,用于在所述待测试应用程序运行结束时,根据获取的所述显示界面图片和所述性能数据,生成测试报告;以及,
测试报告发送模块,用于将所述测试报告发送给客户端。
本发明实施例提供的应用程序的测试设备,能够获取待测试应用程序的显示界面的图片,识别其相应的操作指令,使待测试应用程序的显示界面自动跳转,适用于各种类型的应用程序的测试,同时,提高应用程序的测试效率;根据待测试应用程序显示界面的控件视图和跳转关系,自动生成层次结构图,并利用该层次结构图使各种类型的应用程序的测试统一化,有效提高测试效率;建立弹窗库,设置弹窗特征图及其处理逻辑,用于处理应用程序中的弹窗事件,提高测试的成功率;客户端只需提供待测试应用程序的图片素材,无需测试人员编写测试脚本,即可进行全自动化的测试,节约人力资源,降低学习成本;支持多设备并发测试,有效提高测试效率,节省测试时间。
参见图10,是本发明提供的应用程序的测试系统的第一个实施例的结构示意图,包括客户端101、测试设备102和待测试设备103;
所述测试设备102是上述应用程序的测试设备,在此不再详细描述。
参见图11,是本发明提供的应用程序的测试系统的第二个实施例的结构示意图。
本实施例提供的应用程序的测试系统包括客户端111、服务器112、第一测试设备113、第二测试设备114、第三测试设备115和多个待测试设备。其中,测试设备配置在计算机上,待测试设备为移动终端。客户端111接入服务器112,向服务器112发送测试请求;第一测试设备113和第二测试设备114为本地测试 设备,分别接入服务器112,接收服务器112发送的本地测试任务;第三测试设备115为远程测试设备,通过Socket与服务器112进行通讯,接收服务器112发送的远程任务;每个测试设备接入待测试设备A1、待测试设备A2……和待测试设备An,实现在待测试设备A1、待测试设备A2……和待测试设备An上对待测试应用程序的测试。本发明实施例通过服务器来分发任务,提高测试设备的使用率。
服务器分别与本地测试设备和远程测试设备连接,可以将本地测试任务分发给本地测试设备,将远程测试任务分发给远程测试设备进行测试,提高测试设备的使用率,同时降低测试设备的购置成本。每个测试设备分别与待测试设备A1、待测试设备A2……和待测试设备An连接,支持多个待测试设备的并发测试,节约测试时间,同时,测试设备可适应对不同分辨率的待测试设备的测试。
需要说明的是,本发明实施例仅以测试系统包括一个服务器,且该服务器分别与两个本地测试设备和一个远程测试设备连接为例进行描述,但在具体实施当中,测试设备可以包括一个或多个服务器,每个服务器可与一个或多个本地测试设备连接,也可与一个或多个远程测试设备连接,其服务器和测试设备的数量可以根据实际应用来配置。
本发明实施例提供的应用程序的测试系统,能够获取待测试应用程序的显示界面的图片,识别其相应的操作指令,使待测试应用程序的显示界面自动跳转,适用于各种类型的应用程序的测试,同时,提高应用程序的测试效率;根据待测试应用程序显示界面的控件视图和跳转关系,自动生成层次结构图,并利用该层次结构图使各种类型的应用程序的测试统一化,有效提高测试效率;建立弹窗库,设置弹窗特征图及其处理逻辑,用于处理应用程序中的弹窗事件,提高测试的成功率;客户端只需提供待测试应用程序的图片素材,无需测试人员编写测试脚本,即可进行全自动化的测试,节约人力资源,降低学习成本;支持多设备并发测试,有效提高测试效率,节省测试时间。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统和方法可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的, 本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (13)

  1. 一种应用程序的测试方法,其特征在于,包括:
    向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序;
    循环获取所述待测试应用程序的显示界面的图片;
    识别所述显示界面图片,获得所述显示界面图片相应的操作指令;
    向所述待测试设备发送所述操作指令,使所述待测试应用程序的显示界面跳转。
  2. 如权利要求1所述的应用程序的测试方法,其特征在于,所述识别所述显示界面图片,获得所述显示界面图片相应的操作指令,具体包括:
    根据图片识别算法,判断预先生成的层次结构图中是否存在与所述显示界面图片相似的控件视图;所述层次结构图为具有跳转关系的各个显示界面的控件视图;
    若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令;
    若所述层次结构图中不存在与所述显示界面图片相似的控件视图,则查询预先建立的弹窗库,获得与所述显示界面图片相似的弹窗特征图;所述弹窗库为存储各个弹窗特征图及其处理逻辑的数据库;
    根据所述弹窗特征图的处理逻辑,获得所述显示界面图片相应的操作指令。
  3. 如权利要求2所述的应用程序的测试方法,其特征在于,所述控件视图包括控件的位置、图片和类型;
    所述若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令,具体包括:
    若所述层次结构图中存在与所述显示界面图片相似的控件视图,则根据所述控件视图中控件的位置和图片,识别出所述显示界面图片中的控件;
    根据所述控件视图中控件的类型,获得触发所述显示界面图片中的控件的 操作指令。
  4. 如权利要求2或3所述的应用程序的测试方法,其特征在于,在所述向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序之前,还包括:
    接收客户端发送的所述待测试应用程序的图片素材;所述图片素材包括显示界面图片素材和控件图片素材;
    根据所述控件图片素材,识别出每个显示界面图片素材上控件的位置、图片和类型;
    将每个显示界面图片素材转换为每个显示界面的控件视图;
    向运行设备发送启动指令,使所述运行设备运行所述待测试应用程序;
    根据所述待测试应用程序运行时显示界面的跳转关系,建立各个显示界面的控件视图的跳转关系,获得具有跳转关系的控件视图;所述具有跳转关系的控件视图即为层次结构图。
  5. 如权利要求1所述的应用程序的测试方法,其特征在于,在所述向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序之前,还包括:
    接收客户端发送的待测试应用程序的安装包,以及待测试设备列表;
    向所述待测试设备列表中的待测试设备发送所述安装包,使所述待测试设备安装所述待测试应用程序。
  6. 如权利要求1所述的应用程序的测试方法,其特征在于,所述应用程序的测试方法还包括:
    实时获取所述待测试设备的性能数据;
    在所述待测试应用程序运行结束时,根据获取的所述显示界面图片和所述性能数据,生成测试报告;
    将所述测试报告发送给客户端。
  7. 一种应用程序的测试设备,其特征在于,包括:
    第一启动模块,用于向待测试设备发送启动指令,使所述待测试设备运行待测试应用程序;
    显示界面图片获取模块,用于循环获取所述待测试应用程序的显示界面的图片;
    显示界面图片识别模块,用于识别所述显示界面图片,获得所述显示界面图片相应的操作指令;以及,
    操作指令发送模块,用于向所述待测试设备发送所述操作指令,使所述待测试应用程序的显示界面跳转。
  8. 如权利要求7所述的应用程序的测试设备,其特征在于,所述显示界面图片识别模块具体包括:
    判断单元,用于根据图片识别算法,判断预先生成的层次结构图中是否存在与所述显示界面图片相似的控件视图;所述层次结构图为具有跳转关系的各个显示界面的控件视图;
    第一操作指令获取单元,用于在所述判断单元判定所述层次结构图中存在与所述显示界面图片相似的控件视图时,根据所述控件视图中的控件,获得所述显示界面图片相应的操作指令;
    弹窗特征图获取单元,用于在所述层次结构图中不存在与所述显示界面图片相似的控件视图时,查询预先建立的弹窗库,获得与所述显示界面图片相似的弹窗特征图;所述弹窗库为存储各个弹窗特征图及其处理逻辑的数据库;以及,
    第二操作指令获取单元,用于根据所述弹窗特征图的处理逻辑,获得所述显示界面图片相应的操作指令。
  9. 如权利要求8所述的应用程序的测试设备,其特征在于,所述控件视图 包括控件的位置、图片和类型;
    所述第一操作指令获取单元具体包括:
    控件识别子单元,用于在所述判断单元判定所述层次结构图中存在与所述显示界面图片相似的控件视图时,根据所述控件视图中控件的位置和图片,识别出所述显示界面图片中的控件;以及,
    操作指令获取子单元,用于根据所述控件视图中控件的类型,获得触发所述显示界面图片中的控件的操作指令。
  10. 如权利要求8或9所述的应用程序的测试设备,其特征在于,所述应用程序的测试设备还包括:
    第一接收模块,用于接收客户端发送的所述待测试应用程序的图片素材;所述图片素材包括显示界面图片素材和控件图片素材;
    控件识别模块,用于根据所述控件图片素材,识别出每个显示界面图片素材上控件的位置、图片和类型;
    转换模块,用于将每个显示界面图片素材转换为每个显示界面的控件视图;
    第二启动模块,用于向运行设备发送启动指令,使所述运行设备运行所述待测试应用程序;以及,
    层次结构图获取模块,用于根据所述待测试应用程序运行时显示界面的跳转关系,建立各个显示界面的控件视图的跳转关系,获得具有跳转关系的控件视图;所述具有跳转关系的控件视图即为层次结构图。
  11. 如权利要求7所述的应用程序的测试设备,其特征在于,所述应用程序的测试设备还包括:
    第二接收模块,用于接收客户端发送的待测试应用程序的安装包,以及待测试设备列表;以及,
    安装包发送模块,用于向所述待测试设备列表中的待测试设备发送所述安装包,使所述待测试设备安装所述待测试应用程序。
  12. 如权利要求7所述的应用程序的测试设备,其特征在于,所述应用程序的测试设备还包括:
    性能数据获取模块,用于实时获取所述待测试设备的性能数据;
    测试报告生成模块,用于在所述待测试应用程序运行结束时,根据获取的所述显示界面图片和所述性能数据,生成测试报告;以及,
    测试报告发送模块,用于将所述测试报告发送给客户端。
  13. 一种应用程序的测试系统,其特征在于,包括客户端、测试设备和待测试设备;
    所述测试设备是如权利要求7至12中任一项所述的应用程序的测试设备。
PCT/CN2015/087744 2014-12-19 2015-08-21 应用程序的测试方法、设备及系统 WO2016095554A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410805289.4A CN104484273B (zh) 2014-12-19 2014-12-19 应用程序的测试方法、设备及系统
CN201410805289.4 2014-12-19

Publications (1)

Publication Number Publication Date
WO2016095554A1 true WO2016095554A1 (zh) 2016-06-23

Family

ID=52758817

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087744 WO2016095554A1 (zh) 2014-12-19 2015-08-21 应用程序的测试方法、设备及系统

Country Status (2)

Country Link
CN (1) CN104484273B (zh)
WO (1) WO2016095554A1 (zh)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845930A (zh) * 2018-05-23 2018-11-20 深圳市腾讯网络信息技术有限公司 界面操作测试方法和装置、存储介质及电子装置
CN109446061A (zh) * 2018-09-17 2019-03-08 平安科技(深圳)有限公司 一种页面检测方法、计算机可读存储介质及终端设备
CN109634839A (zh) * 2018-10-25 2019-04-16 深圳壹账通智能科技有限公司 页面测试方法及装置、存储介质、电子终端
CN110032510A (zh) * 2019-03-07 2019-07-19 深圳市腾讯信息技术有限公司 应用的测试方法及装置
CN110515834A (zh) * 2019-07-26 2019-11-29 Oppo广东移动通信有限公司 接口测试方法、装置、移动终端及存储介质
CN111078579A (zh) * 2019-12-31 2020-04-28 河北省科学院应用数学研究所 一种Monkey测试方法、装置及终端设备
CN111104308A (zh) * 2019-11-12 2020-05-05 贝壳技术有限公司 显示页面的测试方法和装置、存储介质、电子设备
CN111309622A (zh) * 2020-02-27 2020-06-19 中国平安人寿保险股份有限公司 应用程序测试方法、装置、终端设备以及存储介质
CN112394921A (zh) * 2020-12-03 2021-02-23 江苏通付盾科技有限公司 应用程序的界面获取方法、装置、计算机设备和存储介质
CN112765041A (zh) * 2021-02-04 2021-05-07 上海硬通网络科技有限公司 游戏自动化测试方法、装置及电子设备
CN112835786A (zh) * 2021-01-08 2021-05-25 展讯通信(上海)有限公司 应用程序界面跳转的最优路径计算方法及装置、存储介质、终端
CN113032268A (zh) * 2021-03-30 2021-06-25 深圳市腾讯信息技术有限公司 软件测试方法、装置及存储介质
CN113656311A (zh) * 2021-08-19 2021-11-16 中国银行股份有限公司 测试方法、装置、服务器、介质及产品
CN113701811A (zh) * 2021-08-23 2021-11-26 立讯电子科技(昆山)有限公司 一种设计自动测试方法、平台、存储介质和电子设备
CN113721582A (zh) * 2021-08-03 2021-11-30 安徽江淮汽车集团股份有限公司 座舱系统响应效率测试方法、设备、存储介质及装置
CN113835591A (zh) * 2021-09-29 2021-12-24 上海哔哩哔哩科技有限公司 弹窗处理方法及装置
US11803456B2 (en) * 2021-09-01 2023-10-31 National Instruments Corporation Distributed event-based test execution

Families Citing this family (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484273B (zh) * 2014-12-19 2017-06-16 广州博冠信息科技有限公司 应用程序的测试方法、设备及系统
CN106294099A (zh) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 一种测试方法及设备
CN106330595B (zh) * 2015-07-02 2020-01-21 阿里巴巴集团控股有限公司 分布式平台的心跳检测方法和装置
CN104978270A (zh) * 2015-07-03 2015-10-14 上海触乐信息科技有限公司 一种自动化地软件测试方法和装置
CN106487847B (zh) * 2015-08-28 2020-03-17 腾讯科技(深圳)有限公司 一种信息处理方法及中转服务器
CN105243016B (zh) * 2015-09-30 2018-04-17 北京奇虎科技有限公司 对测试平台上的终端设备进行监控的方法、装置和系统
WO2017107173A1 (en) * 2015-12-25 2017-06-29 Intel Corporation Technologies for automated application testing coverage and results evaluation
CN105653452A (zh) * 2015-12-30 2016-06-08 北京金山安全软件有限公司 一种测试应用程序的方法及装置
CN106997291B (zh) * 2016-01-26 2020-12-22 中移(杭州)信息技术有限公司 一种控制方法及主节点、从节点
CN107229560A (zh) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 一种界面显示效果测试方法、图像样张获取方法及装置
CN106066826A (zh) * 2016-05-24 2016-11-02 北京金山安全软件有限公司 埋点的自动测试方法、装置以及终端
CN106126423B (zh) * 2016-06-27 2018-10-19 华为技术有限公司 游戏应用程序的测试方法、装置及系统
CN106445816B (zh) * 2016-09-07 2019-01-25 美的智慧家居科技有限公司 控件执行方法和装置
CN108664364B (zh) * 2017-03-31 2023-05-09 腾讯科技(深圳)有限公司 一种终端测试方法及装置
CN107168705B (zh) * 2017-05-11 2021-08-06 电子科技大学 图形界面语义描述系统及其建立方法和操作路径生成方法
CN109101412B (zh) * 2017-06-21 2021-05-11 腾讯科技(深圳)有限公司 测试文件生成、测试方法、装置、存储介质和计算机设备
CN107357727A (zh) * 2017-07-04 2017-11-17 广州君海网络科技有限公司 App运行测试方法、装置、可读存储介质和计算机设备
CN107688533B (zh) * 2017-07-25 2020-12-29 深圳壹账通智能科技有限公司 应用程序测试方法、装置、计算机设备和存储介质
CN107608877B (zh) * 2017-08-11 2021-04-09 上海巍擎信息技术有限责任公司 一种基于机器学习的自动化应用程序界面测试方法和测试系统
CN107491377B (zh) * 2017-08-24 2020-11-20 Oppo广东移动通信有限公司 弹出框处理方法、装置、终端及计算机可读存储介质
CN107678940A (zh) * 2017-08-30 2018-02-09 苏州朗动网络科技有限公司 基于安卓app的自动化探索测试方法及系统
CN108763056A (zh) * 2018-04-19 2018-11-06 福建天晴数码有限公司 一种自动化测试弹框处理方法及终端
CN110502419A (zh) * 2018-05-17 2019-11-26 阿里巴巴集团控股有限公司 一种图形用户界面的测试方法、装置及设备
CN108984363B (zh) * 2018-05-23 2022-08-30 福建天泉教育科技有限公司 一种并行测试的方法及系统
CN109324967A (zh) * 2018-09-26 2019-02-12 深圳壹账通智能科技有限公司 应用程序弹窗控件测试的方法、装置及终端设备
CN109542562A (zh) * 2018-11-09 2019-03-29 浙江口碑网络技术有限公司 界面图片的识别方法及装置
CN109558322B (zh) * 2018-11-30 2022-02-15 网易(杭州)网络有限公司 游戏测试方法及装置
CN109977027A (zh) * 2019-04-04 2019-07-05 广州市百果园信息技术有限公司 一种性能测试的方法、装置、系统、设备和存储介质
CN110928766A (zh) * 2019-10-12 2020-03-27 平安银行股份有限公司 应用软件的测试方法、装置、设备及计算机可读存储介质
CN111209215B (zh) * 2020-02-24 2021-08-24 腾讯科技(深圳)有限公司 应用程序的测试方法、装置、计算机设备及存储介质
CN111694744B (zh) * 2020-06-11 2023-03-21 安然 一种基于monkey源码的测试开发方法
CN112214397B (zh) * 2020-09-09 2022-05-20 腾讯科技(深圳)有限公司 用户界面测试方法、装置、计算机设备和存储介质
CN112019839A (zh) * 2020-09-18 2020-12-01 四川长虹电器股份有限公司 一种安卓智能电视应用自动化测试方法
CN112130870A (zh) * 2020-09-22 2020-12-25 湖南快乐阳光互动娱乐传媒有限公司 一种测试包的安装方法、装置及系统
CN113094257B (zh) * 2021-03-08 2024-04-05 上海硬通网络科技有限公司 应用测试方法、装置及电子设备
WO2023230798A1 (zh) * 2022-05-30 2023-12-07 北京小米移动软件有限公司 一种跨系统的按键测试方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484790A (zh) * 2001-01-04 2004-03-24 �Ҵ���˾ 测试带有图形用户界面的未知程序的方法和装置
US20090265689A1 (en) * 2008-04-16 2009-10-22 Microsoft Corporation Generic validation test famework for graphical user interfaces
US20140165040A1 (en) * 2012-12-07 2014-06-12 Sugarcrm Inc. Test script generation for application image validation
US20140325483A1 (en) * 2013-04-26 2014-10-30 International Business Machines Corporation Generating test scripts through application integration
CN104484273A (zh) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 应用程序的测试方法、设备及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100395724C (zh) * 2006-02-15 2008-06-18 华为技术有限公司 一种图形用户界面的测试方法和系统
CN1976526A (zh) * 2006-11-15 2007-06-06 华为技术有限公司 一种手机自动化测试系统和测试方法
CN103544106A (zh) * 2013-10-31 2014-01-29 广东欧珀移动通信有限公司 一种基于控件生成脚本的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484790A (zh) * 2001-01-04 2004-03-24 �Ҵ���˾ 测试带有图形用户界面的未知程序的方法和装置
US20090265689A1 (en) * 2008-04-16 2009-10-22 Microsoft Corporation Generic validation test famework for graphical user interfaces
US20140165040A1 (en) * 2012-12-07 2014-06-12 Sugarcrm Inc. Test script generation for application image validation
US20140325483A1 (en) * 2013-04-26 2014-10-30 International Business Machines Corporation Generating test scripts through application integration
CN104484273A (zh) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 应用程序的测试方法、设备及系统

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845930B (zh) * 2018-05-23 2022-12-30 深圳市腾讯网络信息技术有限公司 界面操作测试方法和装置、存储介质及电子装置
CN108845930A (zh) * 2018-05-23 2018-11-20 深圳市腾讯网络信息技术有限公司 界面操作测试方法和装置、存储介质及电子装置
CN109446061A (zh) * 2018-09-17 2019-03-08 平安科技(深圳)有限公司 一种页面检测方法、计算机可读存储介质及终端设备
CN109634839A (zh) * 2018-10-25 2019-04-16 深圳壹账通智能科技有限公司 页面测试方法及装置、存储介质、电子终端
CN110032510B (zh) * 2019-03-07 2022-05-20 深圳市腾讯信息技术有限公司 应用的测试方法及装置
CN110032510A (zh) * 2019-03-07 2019-07-19 深圳市腾讯信息技术有限公司 应用的测试方法及装置
CN110515834A (zh) * 2019-07-26 2019-11-29 Oppo广东移动通信有限公司 接口测试方法、装置、移动终端及存储介质
CN110515834B (zh) * 2019-07-26 2023-11-10 Oppo广东移动通信有限公司 接口测试方法、装置、移动终端及存储介质
CN111104308A (zh) * 2019-11-12 2020-05-05 贝壳技术有限公司 显示页面的测试方法和装置、存储介质、电子设备
CN111078579A (zh) * 2019-12-31 2020-04-28 河北省科学院应用数学研究所 一种Monkey测试方法、装置及终端设备
CN111309622A (zh) * 2020-02-27 2020-06-19 中国平安人寿保险股份有限公司 应用程序测试方法、装置、终端设备以及存储介质
CN112394921A (zh) * 2020-12-03 2021-02-23 江苏通付盾科技有限公司 应用程序的界面获取方法、装置、计算机设备和存储介质
CN112835786B (zh) * 2021-01-08 2022-06-24 展讯通信(上海)有限公司 应用程序界面跳转的最优路径计算方法及装置、存储介质、终端
CN112835786A (zh) * 2021-01-08 2021-05-25 展讯通信(上海)有限公司 应用程序界面跳转的最优路径计算方法及装置、存储介质、终端
CN112765041A (zh) * 2021-02-04 2021-05-07 上海硬通网络科技有限公司 游戏自动化测试方法、装置及电子设备
CN112765041B (zh) * 2021-02-04 2024-04-05 上海硬通网络科技有限公司 游戏自动化测试方法、装置及电子设备
CN113032268B (zh) * 2021-03-30 2022-02-22 深圳市腾讯信息技术有限公司 软件测试方法、装置及存储介质
CN113032268A (zh) * 2021-03-30 2021-06-25 深圳市腾讯信息技术有限公司 软件测试方法、装置及存储介质
CN113721582A (zh) * 2021-08-03 2021-11-30 安徽江淮汽车集团股份有限公司 座舱系统响应效率测试方法、设备、存储介质及装置
CN113656311A (zh) * 2021-08-19 2021-11-16 中国银行股份有限公司 测试方法、装置、服务器、介质及产品
CN113656311B (zh) * 2021-08-19 2024-02-09 中国银行股份有限公司 测试方法、装置、服务器、介质及产品
CN113701811A (zh) * 2021-08-23 2021-11-26 立讯电子科技(昆山)有限公司 一种设计自动测试方法、平台、存储介质和电子设备
CN113701811B (zh) * 2021-08-23 2024-03-15 立讯电子科技(昆山)有限公司 一种设计自动测试方法、平台、存储介质和电子设备
US11803456B2 (en) * 2021-09-01 2023-10-31 National Instruments Corporation Distributed event-based test execution
CN113835591A (zh) * 2021-09-29 2021-12-24 上海哔哩哔哩科技有限公司 弹窗处理方法及装置

Also Published As

Publication number Publication date
CN104484273A (zh) 2015-04-01
CN104484273B (zh) 2017-06-16

Similar Documents

Publication Publication Date Title
WO2016095554A1 (zh) 应用程序的测试方法、设备及系统
JP7209034B2 (ja) エッジコンピューティングテスト方法、装置、機器及び読み取り可能な記憶媒体
CN109302522B (zh) 测试方法、装置以及计算机系统和介质
US10853232B2 (en) Adaptive system for mobile device testing
JP2019520649A (ja) プロセス視覚化プラットフォーム
US8677324B2 (en) Evaluating performance of an application using event-driven transactions
US9679090B1 (en) Systematically exploring programs during testing
US20140331209A1 (en) Program Testing Service
CN108845954A (zh) 压力测试方法、系统及存储介质
US11436133B2 (en) Comparable user interface object identifications
CN107003931B (zh) 将测试验证从测试执行分离
US10528456B2 (en) Determining idle testing periods
CN108809755B (zh) 兼容命令行和web界面的家庭网关自动测试方法及系统
US20190079854A1 (en) Systems and methods for executing tests
US11551328B2 (en) Graphics energy profiling system and method
US20240189724A1 (en) Videogame telemetry data and game asset tracker for session recordings
US20140331205A1 (en) Program Testing Service
CN111414309A (zh) 应用程序的自动化测试方法、计算机设备和存储介质
US7984335B2 (en) Test amplification for datacenter applications via model checking
Tirodkar et al. EarlGrey: iOS UI automation testing framework
US10936475B2 (en) Automated scripting and testing system
CN113127369A (zh) 一种执行脚本的处理方法以及装置
WO2024066622A1 (zh) 云系统的测试方法及装置
CN110647458A (zh) 基于分布式测试平台的测试方法、装置及电子设备
CN115982018B (zh) 一种基于ocr的ui测试方法、系统、计算机设备和存储介质

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

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

Country of ref document: EP

Kind code of ref document: A1