WO2021159736A1 - 应用程序兼容性测试的方法、装置及计算机设备 - Google Patents

应用程序兼容性测试的方法、装置及计算机设备 Download PDF

Info

Publication number
WO2021159736A1
WO2021159736A1 PCT/CN2020/124387 CN2020124387W WO2021159736A1 WO 2021159736 A1 WO2021159736 A1 WO 2021159736A1 CN 2020124387 W CN2020124387 W CN 2020124387W WO 2021159736 A1 WO2021159736 A1 WO 2021159736A1
Authority
WO
WIPO (PCT)
Prior art keywords
target application
compatibility test
compatibility
test result
result
Prior art date
Application number
PCT/CN2020/124387
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 WO2021159736A1 publication Critical patent/WO2021159736A1/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
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Definitions

  • This application relates to the technical field of software testing, and in particular to a method, device and computer equipment for application compatibility testing.
  • Compatibility testing is indispensable in application (Application, APP) testing, and is used to test whether the APP can run normally in different terminal devices. For example, testing whether the APP can operate normally in terminal devices of different brands and models, and/or testing whether the APP can operate normally in terminal devices of different versions under the same brand and model, etc.
  • the coverage of APP automated testing is relatively low and the cost is high. Under limited time and manpower conditions, it is difficult to achieve rapid verification, and the coverage of verification is limited, which leads to test efficiency. Lower.
  • this application provides a method, device and computer equipment for application compatibility testing, which mainly solves the problem of limited testing coverage when performing compatibility testing on applications, resulting in low testing efficiency and low accuracy. The problem.
  • a method for application compatibility testing includes:
  • test data of the target application including script parameter data and resolution data
  • the final compatibility test result of the target application program is determined and output.
  • a device for application compatibility testing which includes:
  • An acquisition module for acquiring test data of the target application, the test data including script parameter data and resolution data;
  • the first test module is configured to use the script parameter data to perform a first compatibility test on the target application to obtain a first compatibility test result, and the first compatibility test refers to a test execution process;
  • the first determining module is configured to determine and output the final compatibility test result of the target application program according to the first compatibility test result; and/or,
  • the second test module is configured to perform a second compatibility test on the target application according to the resolution data to obtain a second compatibility test result, and the second compatibility test refers to a test for interface display ;
  • the second determining module is configured to determine and output the final compatibility test result of the target application program according to the second compatibility test result.
  • a readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following method is implemented:
  • test data of the target application including script parameter data and resolution data
  • the final compatibility test result of the target application program is determined and output.
  • a computer device including a readable storage medium, a processor, and a computer program stored on the readable storage medium and running on the processor, and the processor executes the program
  • a computer program stored on the readable storage medium and running on the processor, and the processor executes the program
  • test data of the target application including script parameter data and resolution data
  • the final compatibility test result of the target application program is determined and output.
  • FIG. 1 shows a schematic flowchart of a method for application compatibility testing provided by an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of another method for application compatibility testing provided by an embodiment of the present application
  • FIG. 3 shows a schematic structural diagram of a device for application compatibility testing provided by an embodiment of the present application
  • Fig. 4 shows a schematic structural diagram of another apparatus for application compatibility testing provided by an embodiment of the present application.
  • the technical solution of the present application can be applied to the fields of artificial intelligence, blockchain and/or big data technology to achieve compatibility testing, for example, through a data platform.
  • the data involved in this application such as test data and/or test results, can be stored in a database, or can be stored in a blockchain, which is not limited in this application.
  • an embodiment of the present application provides a method for application compatibility testing, as shown in FIG. 1 , The method includes:
  • test data of the target application including script parameter data and resolution data.
  • the script parameter data is the execution parameter that needs to be set correspondingly when the test script is executed.
  • the resolution data is the preset resolution UI design drawing of the target application for each mobile terminal to be tested, and the resolution screenshot of the target application when displayed on each mobile terminal to be tested.
  • the execution subject of this embodiment may be a test system for performing compatibility testing on applications. Before performing compatibility testing on the target application, it is necessary to obtain test data of the target application in advance, where the test data includes script parameters. Data and resolution data; afterwards, the script parameter data can be used to perform the first compatibility test of the execution process of the target application, and the second compatibility test of the target application's interface display based on the resolution data; finally according to the first compatibility The test result and/or the second compatibility test result determine and output the final compatibility test result of the target application.
  • the first compatibility test refers to a test execution process.
  • the first compatibility test before the first compatibility test is performed on the target application, it also specifically includes: building and packaging compatibility test tools based on technologies such as python+appium+behave (cucumber), and further use of management tools Call the compatibility test tool to realize the unified operation and management of the compatibility test of each application.
  • the management tool when using the script parameter data to perform the first compatibility test of the execution process of the target application, can be used to determine and save the compatibility test case steps of each mobile terminal to be tested, and then call the compatibility test The tool and the corresponding script parameter data automatically generate test scripts that match the compatibility test case steps, so that the first compatibility test of the target application can be realized by executing each test script.
  • the second compatibility test corresponding to the steps in the 104-105 embodiments may not be further performed, and the first compatibility test result may be directly determined It is the final compatibility test result of the target application.
  • the second compatibility test refers to a test for interface display.
  • the second compatibility with the target application can be achieved by comparing the resolution UI design drawing and resolution screenshots under the same mobile terminal to be tested test.
  • the second compatibility test is used as a parallel method with the first compatibility test.
  • the second compatibility test corresponding to steps 101, 104-105 of the embodiment can be executed separately to determine the final compatibility. Test Results.
  • the first compatibility test when the target application is tested for compatibility, can be used alone, or the second compatibility test can be used alone, and two options can also be selected.
  • the method of compatibility testing is not limited here. In order to make the test results more accurate and comprehensive, in this embodiment, a combination of two compatibility tests is preferred, that is, both the first compatibility test and the second compatibility test are performed on the target application.
  • the compatibility test result further determines the final compatibility test result of the target application.
  • the target application can be tested for compatibility from the two dimensions of the execution process and the interface display, that is, the first compatibility of the target application execution process is performed on the target application through the script parameter data. Test, further obtain the first compatibility test result; at the same time, perform the second compatibility test of the interface display of the target application based on the resolution data, and further obtain the second compatibility test result; finally pass the first compatibility test result and /Or the result of the second compatibility test, it can be determined whether the target application passes the compatibility verification.
  • the compatibility test scheme in this application it is possible to quickly and accurately identify the compatibility problem of the target application, improve the detection efficiency, reduce the cost of testing human resources, and reduce the quality risk of missing details.
  • the method includes :
  • test data of the target application includes script parameter data and resolution data.
  • test data of the target application program needs to be obtained in advance, so that the first compatibility test and the second compatibility test are performed on the target application program based on the test data, and the compatibility is obtained by integration. Test Results.
  • the mobile terminal to be tested may include multiple, which may specifically correspond to different terminal types. For example, mobile phones or computers of different manufacturers and models may be selected for testing.
  • test commands and script parameter data can be prepared in advance.
  • the test steps only need to select commands and script parameters.
  • the data is enough, and the system automatically generates the execution script, which makes the whole script generation process simple, fast and accurate, and the parameters and settings can be reused to facilitate subsequent writing.
  • the script parameter data obtained through appium and weditor can be associated with the compatibility test case, and corresponding test scripts are further generated for each mobile terminal to be tested.
  • RabbitMQ sends the execution command about the test script to the corresponding matching executor, the execution opportunity generates the test case file and the python or ruby automated execution script, and then further uses behave (python) or cucumber (ruby) command to execute the test script.
  • step 204 of the embodiment may specifically include: sending an execution command to an executor that matches the target application, and the execution command carries the terminal identification of each mobile terminal to be tested and the corresponding test.
  • Script executes the test script corresponding to each terminal identifier by the executor to perform the first verification of the target application; determine the first compatibility of the target application based on the first verification result of the compatibility of each mobile terminal to be tested to the target application Test Results.
  • the first verification is the verification of the execution process of the target application, such as whether the application can be successfully opened, whether the login can be successful, whether the operation process is accurate, and so on.
  • each point to be inspected in the execution process can be set as an independent inspection task. When performing specific inspections, the status of each inspection task will be judged and screenshots will be stored. If during the detection process, it is determined that there is any detection point with an abnormal state, it is determined that the target application program in the mobile terminal to be tested has not passed the first verification.
  • step 204 of the embodiment may specifically include: if it is determined that the target application is in each If all the mobile terminals to be tested pass the first verification, it is determined that the first compatibility test result of the target application program is passed; otherwise, it is determined that the first compatibility test result of the target application program is not passed.
  • the second compatibility test solution in steps 206-209 of the embodiment may be executed to perform another test on the target application.
  • a one-dimensional compatibility test through the integration of the two compatibility test results, finally determines whether the target application passes the compatibility test.
  • a screenshot of the screen resolution of each mobile terminal to be tested for the target application can be obtained first, and the screenshots of each screen resolution are named and stored according to the terminal identifier corresponding to the mobile terminal to be tested.
  • the first image and the second image may be matched pairwise based on the terminal identifier to determine the image group corresponding to each mobile terminal to be tested.
  • the second compatibility test result of the target application program under each mobile terminal to be tested can be obtained.
  • step 208 of the embodiment may specifically include: by extracting the difference characteristics of the first image and the second image under the same terminal identification, determining the second verification result of the compatibility of each mobile terminal to be tested with the target application; according to the second verification As a result, the second compatibility test result of the target application is determined; and/or the target mobile terminal that fails the second verification is extracted, and pixel information is performed on the first target image and the second target image under the target mobile terminal According to the third verification result of the third verification, the third verification result is obtained; the second compatibility test result of the target application is determined according to the third verification result.
  • the purpose of extracting the difference feature is to first determine whether there is a difference in general. If there is no difference, it is determined that the target application passes the compatibility verification; if there is a difference, You need to perform a detailed analysis.
  • difference feature extraction the goal can be achieved by reading the corresponding image, converting the image to base64 and then comparing it.
  • the two images can be scaled to equal proportions, and the same pixel points can be offset by stacking ablation technology to determine whether there are inconsistencies in the local level of detail (that is, whether there is an inconsistency that cannot be achieved.
  • Offset pixel points when it is determined that there are different pixels, it is determined that there is a difference between the first image and the second image, and vice versa, there is no difference. If it is determined that the two images are not differentiated, it is determined that the target application under the mobile terminal to be tested passes the second verification; if it is determined that there are partial differences between the two images, it is determined that the target application under the mobile terminal to be tested has not passed the second verification. verify.
  • step 208 of the embodiment may specifically include: if it is determined that the target application has passed the second verification in each mobile terminal to be tested, then It is determined that the second compatibility test result of the target application program is passed.
  • step 208 of the embodiment may specifically include: determining the first target image and The binary fingerprint of the second target image; the fingerprint similarity between the first target image and the binary fingerprint corresponding to the second target image is calculated; the third verification result of the compatibility of the target mobile terminal with the target application is determined based on the fingerprint similarity.
  • the first image and the second image may be respectively cropped into each image unit according to a preset cropping rule. And mark the first image unit and the second image unit according to the coordinate position.
  • the binary fingerprint corresponding to the first image can be obtained by calculating the binary fingerprint of each first image unit; the binary fingerprint corresponding to the second image can be obtained by calculating the binary fingerprint of each second image unit.
  • the UI elements included and the corresponding size proportions can be determined based on the UI design drawing, and the size proportions corresponding to each UI element
  • the first image and the second image are cut into image units corresponding to each UI element.
  • the first image unit and the second image unit need to be appropriately scaled, which can be specifically Set the preset zoom size, for example, the image can be zoomed into a 9*8 pixel map; by calculating the color intensity difference between adjacent pixels, the pixel difference corresponding to each first image unit and second image unit can be determined separately Value; Based on the pixel difference value, the binary fingerprints corresponding to the first image unit and the second image unit can be determined respectively.
  • the difference value when the difference value is obtained by calculating the color intensity difference between adjacent pixels, the color information can be skimmed out, and the pixel image can be grayed, which is convenient for comparison.
  • the difference value can be obtained by comparing the intensities of adjacent pixels in each row. For example, when the image has a resolution of 9*8, then there are 8 rows, each with 9 pixels. The difference value is calculated separately for each row, that is, the first pixel in the second row will not be compared with any pixel in the first row. Each line has 9 pixels, then 8 difference values will be generated, and finally 64 difference values can be obtained for each image unit.
  • each image unit can generate a 64-bit binary fingerprint.
  • the image units can be marked based on the location or name of each UI element , And then four first image units A, B, C, D and four second image units a, b, c, d can be obtained.
  • the first image unit and the second image unit are associated with each other based on the mark. For example, the first image unit A is associated with the second image unit a, the first image unit B is associated with the second image unit b, the first image unit C is associated with the second image unit c, and the first image unit D is associated with the second image unit.
  • each image unit corresponds to a binary fingerprint
  • the 4 binary fingerprints corresponding to the first image unit A, B, C, D constitute the binary fingerprint of the first image
  • the second image unit a, b, c constitute the binary fingerprint of the second image.
  • the similarity between the two fingerprints can be compared according to the Hamming distance, where the Hamming distance indicates that the character A is changed to the character B. How many steps, such as the strings "abc" and "ab3", the Hamming distance is 1, because you only need to modify the "c" to "3", that is, the smaller the Hamming distance, the higher the similarity.
  • Set a Hamming distance value If it is less than or equal to this value, the verification is determined to be passed, and if it is greater than this value, it is determined that there is a compatibility problem.
  • the first Hamming distances of the binary fingerprints corresponding to the first image unit and the second image unit corresponding to the same UI element can be calculated respectively; and finally passed Accumulate the first Hamming distance corresponding to each UI element to obtain the second Hamming distance between the first image and the second image.
  • the second Hamming distance can be used to obtain the target model under test. The third verification result.
  • the first Hamming distance between each associated image unit can be calculated, that is, the first Hamming distance between the first image unit A and the second image unit a, the first image The first Hamming distance between unit B and second image unit b, the first Hamming distance between first image unit C and second image unit c, and between first image unit D and second image unit d The first Hamming distance. Furthermore, by calculating the cumulative sum of the four first Hamming distances, the second Hamming distance between the first image and the second image corresponding to the target mobile terminal can be obtained.
  • the second Hamming distance may be compared with a preset threshold to determine the third verification result. Three verification results. Specifically, if it is determined that the second Hamming distance is greater than the preset threshold, it is determined that the target model to be tested passes the third verification, otherwise, it is determined that the target model to be tested fails the third verification.
  • step 208 of the embodiment may specifically include: if it is determined that the target application has passed the third verification in each target mobile terminal, then determining The second compatibility test result of the target application is passed.
  • the second compatibility test is used as a parallel test plan with the first compatibility test, and the second compatibility test may also be executed first. If the second compatibility test result is passed, as an optional manner, the first compatibility test in steps 202-205 of the embodiment may not be performed, and the second compatibility test result is directly determined as the final compatibility test result and output. As an optional way, in order to ensure the accuracy of the compatibility test, after the second compatibility test solution is executed, the first compatibility test solution in steps 202-205 of the embodiment may be executed to perform another test on the target application. A one-dimensional compatibility test, through the integration of the two compatibility test results, finally determines whether the target application passes the compatibility test.
  • the final compatibility test result when the final compatibility test result is synthetically determined by using the first compatibility test result and the second compatibility test result, it may specifically include: if it is determined that the target application passes the first compatibility test and the second compatibility test , The final compatibility test result is determined to be passed; if it is determined that the target application fails the first compatibility test and/or the second compatibility test, the final compatibility test result is determined to be failed; the final compatibility test is output result.
  • the first compatibility test when the target application is tested for compatibility, can be used alone, or the second compatibility test can be used alone, and two compatibility tests can also be selected.
  • the method of combination is not limited here.
  • a combination of two compatibility tests is preferred, that is, the first compatibility test and the second compatibility test are performed on the target application at the same time, and when the target application is determined When the first compatibility test and the second compatibility test are passed, it can be determined that the final compatibility test result is passed; when it is determined that the target application fails the first compatibility test and/or the second compatibility test, it can be determined The final compatibility test result is not passed.
  • the target application can be tested for compatibility from the two dimensions of the execution process and the interface display, that is, the first compatibility test of the target application execution process is performed on the target application through the script parameter data. Further obtain the first compatibility test result; meanwhile, perform the second compatibility test of the interface display of the target application based on the resolution data, and further obtain the second compatibility test result; finally pass the first compatibility test result and/or The result of the second compatibility test can determine whether the target application passes the compatibility verification.
  • the compatibility test scheme in this application it is possible to quickly and accurately identify the compatibility problem of the target application, improve the detection efficiency, reduce the cost of testing human resources, and reduce the quality risk of missing details.
  • an embodiment of the present application provides a device for application compatibility testing.
  • the device includes: an acquisition module 31, a first test module 32.
  • the obtaining module 31 is used to obtain test data of the target application, the test data including script parameter data and resolution data;
  • the first test module 32 is configured to use the script parameter data to perform a first compatibility test on the target application to obtain a first compatibility test result, and the first compatibility test refers to a test execution process;
  • the first determining module 33 is configured to determine and output the final compatibility test result of the target application program according to the first compatibility test result; and/or,
  • the second test module 34 is configured to perform a second compatibility test on the target application according to the resolution data to obtain a second compatibility test result, and the second compatibility test refers to a test for interface display;
  • the second determining module 35 is configured to determine and output the final compatibility test result of the target application program according to the second compatibility test result.
  • the first test module 32 may specifically include: a creation unit 321, a generation unit 322, and a first acquisition unit 323;
  • the creating unit 321 can be used to create compatibility test cases for each mobile terminal to be tested according to the terminal information of each mobile terminal to be tested;
  • the generating unit 322 may be used to associate the script parameter data of the target application to the compatibility test case in turn, and generate test scripts for each mobile terminal to be tested;
  • the first obtaining unit 323 may be used to send an execution command about the test script to an execution machine matching the target application, so that the execution machine runs each test script according to the execution command, and obtains the first compatibility test result.
  • the first acquiring unit 323 can be specifically used to send an execution command to an execution machine matching the target application.
  • the execution command carries the terminal identification of each mobile terminal to be tested and the corresponding test script; the execution machine executes each terminal
  • the corresponding test script is identified, and the first verification is performed on the target application; the first compatibility test result of the target application is determined based on the first verification result of the compatibility of each mobile terminal to be tested to the target application.
  • the second test module 34 may specifically include: a second acquisition unit 341, a determination unit 342, and a comparison unit 343;
  • the second acquiring unit 341 can be used to acquire the first image of the screen resolution screenshot of the target application under each mobile terminal to be tested;
  • the determining unit 342 may be configured to extract, from the resolution data, the resolution UI design drawing of the target application corresponding to each mobile terminal to be tested, and determine the resolution UI design drawing as the second image;
  • the comparison unit 343 may be used to compare the first image and the second image under each mobile terminal to be tested, and obtain the second compatibility test result corresponding to the target application.
  • the comparison unit 343 may be specifically configured to extract the difference characteristics of the first image and the second image under the same terminal identification to determine the second verification result of the compatibility of each mobile terminal to be tested with the target application;
  • the second verification result determines the second compatibility test result of the target application; or, extracts the target mobile terminal that fails the second verification, and performs pixel points on the first target image and the second target image under the target mobile terminal
  • the third verification result is obtained; according to the third verification result, the second compatibility test result of the target application is determined.
  • the comparison unit 343 can be specifically used to determine the binary fingerprints of the first target image and the second target image; calculate the fingerprint similarity between the binary fingerprints corresponding to the first target image and the second target image; determine the target movement based on the fingerprint similarity The third verification result of the terminal's compatibility with the target application program.
  • the first obtaining unit 323 can be specifically configured to determine that the first compatibility test result of the target application is passed if it is determined that the target application program has passed the first verification in each mobile terminal to be tested;
  • the comparison unit 343 can be specifically configured to determine that the second compatibility test result of the target application is passed if it is determined that the target application program has passed the second verification in each mobile terminal to be tested;
  • the comparison unit 343 may be specifically configured to determine that the second compatibility test result of the target application is that if it is determined that the target application has passed the third verification in each of the target mobile terminals pass through.
  • this embodiment also provides a storage medium on which computer-readable instructions are stored.
  • the above-mentioned Figure 2 shows the method of application compatibility testing.
  • a computer program is stored on the storage medium, and when the program is executed by the processor, the method for implementing the compatibility test of the application program shown in FIG. 1 to FIG. 2 is not repeated here.
  • the storage medium involved in this application may be a readable storage medium, such as a computer readable storage medium. Further optionally, the storage medium involved in this application, such as a readable storage medium, may be non-volatile, such as a non-volatile readable storage medium, or may be volatile, such as a volatile readable storage medium.
  • the technical solution of this application can be embodied in the form of a software product.
  • the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.), including several
  • the instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in each implementation scenario of this application.
  • this embodiment also provides a computer device that includes a storage medium and a processing device.
  • Storage medium used to store computer programs; processor, used to execute computer programs to implement the application compatibility test method shown in Figure 1 to Figure 2.
  • the storage medium may be a readable storage medium, such as a nonvolatile readable storage medium or a volatile readable storage medium.
  • the computer device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, and so on.
  • the user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, and the like.
  • the network interface can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and so on.
  • a computer device does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or arrange different components.
  • the non-volatile storage medium may also include an operating system and a network communication module.
  • the operating system is a program that manages the hardware and software resources of the above-mentioned computer equipment, and supports the operation of information processing programs and other software and/or programs.
  • the network communication module is used to realize the communication between the components in the non-volatile storage medium and the communication with other hardware and software in the information processing entity device.
  • this application can check the compatibility of the target application from the two dimensions of execution process and interface display, that is, first execute the execution process of the target application through script parameter data The first compatibility test is obtained, and the first compatibility test result is further obtained; at the same time, the second compatibility test of the interface display of the target application is performed based on the resolution data, and the second compatibility test result is further obtained; finally, the first compatibility test result is obtained.
  • the compatibility test result and/or the second compatibility test result can determine whether the target application passes the compatibility verification.

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

本申请公开了一种应用程序兼容性测试的方法、装置及计算机设备,涉及软件测试技术领域,可以解决在对应用程序进行兼容性测试时,测试效率低,精准度低的问题。其中方法包括:获取目标应用程序的测试数据,测试数据包括脚本参数数据和分辨率数据;利用脚本参数数据对目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,第一兼容性测试是指用于测试执行流程;根据第一兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果;和/或,根据分辨率数据对目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,第二兼容性测试是指用于界面显示的测试;根据第二兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果。

Description

应用程序兼容性测试的方法、装置及计算机设备
本申请要求于2020年9月27日提交中国专利局、申请号为202011031540.8,发明名称为“应用程序兼容性测试的方法、装置及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及软件测试技术领域,尤其涉及到一种应用程序兼容性测试的方法、装置及计算机设备。
背景技术
兼容性测是应用程序(Application,APP)测试中必不可少的,用于测试APP在不同终端设备中是否能正常运行。例如,测试APP在不同品牌、型号的终端设备中是否能正常运行,和/或,测试APP在同一品牌型号下不同版本的终端设备中是否能正常运行等等。
发明人意识到,目前APP测试基本上都是人工测试,APP自动化测试覆盖面比较低,成本高,在有限的时间和人力条件下,很难达到快速验证,并且验证的覆盖面有限,故导致测试效率较低。
发明内容
有鉴于此,本申请提供了一种应用程序兼容性测试的方法、装置及计算机设备,主要解决目前在对应用程序进行兼容性测试时,测试覆盖面有限,导致测试效率较低,精准度不高的问题。
根据本申请的一个方面,提供了一种应用程序兼容性测试的方法,该方法包括:
获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;
和/或,根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
根据本申请的另一个方面,提供了一种应用程序兼容性测试的装置,该装置包括:
获取模块,用于获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
第一测试模块,用于利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
第一确定模块,用于根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;和/或,
第二测试模块,用于根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
第二确定模块,用于根据根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
根据本申请的又一个方面,提供了一种可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现以下方法:
获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;
和/或,根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二 兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
根据本申请的再一个方面,提供了一种计算机设备,包括可读存储介质、处理器及存储在可读存储介质上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下方法:
获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;
和/或,根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
通过本申请中的兼容性测试方案,能够从多个维度进行检测,快速准确的识别出目标应用程序的兼容性问题,提高检测效率,减少测试人力资源成本,降低遗漏细节的质量风险。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本地申请的不当限定。在附图中:
图1示出了本申请实施例提供的一种应用程序兼容性测试的方法的流程示意图;
图2示出了本申请实施例提供的另一种应用程序兼容性测试的方法的流程示意图;
图3示出了本申请实施例提供的一种应用程序兼容性测试的装置的结构示意图;
图4示出了本申请实施例提供的另一种应用程序兼容性测试的装置的结构示意图。
具体实施方式
下文将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互结合。
本申请的技术方案可应用于人工智能、区块链和/或大数据技术领域,以实现兼容性测试,比如通过数据平台实现。可选的,本申请涉及的数据如测试数据和/或测试结果等可存储于数据库中,或者可以存储于区块链中,本申请不做限定。
针对目前在对应用程序进行兼容性测试时,测试覆盖面有限,导致测试效率较低,精准度不高的问题,本申请实施例提供了一种应用程序兼容性测试的方法,如图1所示,该方法包括:
101、获取目标应用程序的测试数据,测试数据包括脚本参数数据和分辨率数据。
其中,脚本参数数据为执行测试脚本时,需要对应设置的执行参数。分辨率数据为目标应用程序针对各个待测移动终端预设的分辨率UI设计图,以及目标应用程序在各个待测移动终端显示时的分辨率截图。
对于本实施例的执行主体可为用于对应用程序进行兼容性测试的测试系统,在对目标应用程序进行兼容性检测之前,需要预先获取目标应用程序的测试数据,其中,测试数据包括脚本参数数据和分辨率数据;之后可利用脚本参数数据对目标应用程序进行执行流程的第一兼容性测试,基于分辨率数据对目标应用程序进行界面显示的第二兼容性测试;最后根据第一兼容性测试结果和/或第二兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果。
102、利用脚本参数数据对目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果。
其中,第一兼容性测试是指用于测试执行流程。
在具体的应用场景中,在对目标应用程序进行第一兼容性测试之前,具体还包括:基于python+appium+behave(cucumber)等技术实现对兼容性测试工具的搭建与封装,进一步利用管理工具对兼容性测试工具进行调用,实现对各个应用程序兼容性测试的统一运行和管理。
对于本实施例,在利用脚本参数数据对目标应用程序进行执行流程的第一兼容性测试时,可通过管理工具确定并保存各个待测移动终端的兼容性测试用例步骤,进而通过调用兼容性测试工具以及对应的脚本参数数据,自动生成与兼容性测试用例步骤匹配的测试脚本,以使通过执行各个测试脚本,实现对目标应用程序的第一兼容性测试。
103、根据第一兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果。
对于本实施例,当确定出第一兼容性测试结果时,作为一种可选方式,可不进一步执行104-105实施例步骤对应的第二兼容性测试,进而直接将第一兼容性测试结果确定为目标应用程序的最终兼容性测试结果。
104、根据分辨率数据对目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果。
其中,第二兼容性测试是指用于界面显示的测试。
对于本实施例,在具体的应用场景中,可在获取得到分辨率数据后,通过对比同一待测移动终端下的分辨率UI设计图和分辨率截图,实现对目标应用程序的第二兼容性测试。
105、根据第二兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果。
对于本实施例,第二兼容性测试作为一种与第一兼容性测试的并列方式,同样也可通过单独执行实施例步骤101、104-105对应第二兼容性测试,确定出最终的兼容性测试结果。
需要说明的是,在本方案中,在对目标应用程序进行兼容性测试时,可单独选用第一兼容性测试的方式,也可单独选用第二兼容性测试的方式,同样也可选用两种兼容性测试结合的方式,具体在此不做限定。为了使测试结果更为准确且全面,在本实施例中,优选两种兼容性测试结合的方式,即对目标应用程序既进行第一兼容性测试也进行第二兼容性测试,通过整合两种兼容性测试结果,进一步确定出目标应用程序的最终兼容性测试结果。
通过本实施例中应用程序兼容性测试的方法,可从执行流程和界面显示两个维度对目标应用程序进行兼容性检测,即首先通过脚本参数数据对目标应用程序进行执行流程的第一兼容性测试,进一步获取得到第一兼容性测试结果;同时基于分辨率数据对目标应用程序进行界面显示的第二兼容性测试,进一步获取得到第二兼容性测试结果;最后通过第一兼容性测试结果和/或第二兼容性测试结果,即可确定出目标应用程序是否通过兼容性验证。通过本申请中的兼容性测试方案,能够快速准确的识别出目标应用程序的兼容性问题,提高检测效率,减少测试人力资源成本,降低遗漏细节的质量风险。
进一步的,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例中的具体实施过程,提供了另一种应用程序兼容性测试的方法,如图2所示,该方法包括:
201、获取目标应用程序的测试数据,测试数据包括脚本参数数据和分辨率数据。
对于本实施例,在具体的应用场景中,需要预先获取目标应用程序的测试数据,以使基于测试数据对目标应用程序分别进行第一兼容性测试和第二兼容性测试,从而整合得到兼容性测试结果。
202、根据各个待测移动终端的终端信息,创建各个待测移动终端的兼容性测试用例。
其中,待测移动终端可包含多个,具体可对应不同的终端类型,例如可以选取不同厂家、不同型号的手机或电脑来做测试。
对于本实施例,在具体的应用场景中,可预先为不同类型的移动终端创建对应匹配的兼容性测试用例,具体可以提前准备测试命令、设置脚本参数数据,测试步骤只需选择命令和脚本参数数据即可,系统自动生成执行脚本,使得整个脚本生成过程简单、快捷而精 准,参数和设置可复用,方便后续编写。
203、将目标应用程序的脚本参数数据依次关联至兼容性测试用例中,生成各个待测移动终端的测试脚本。
对于本实施例,在具体的应用场景中,可将通过appium和weditor获取到的脚本参数数据关联至兼容性测试用例中,进一步为各个待测移动终端生成对应的测试脚本。
204、向与目标应用程序匹配的执行机发送关于测试脚本的执行命令,以使执行机依据执行命令运行各个测试脚本,获取第一兼容性测试结果。
具体的,可通过触发执行动作,通过RabbitMQ向对应匹配的执行机发送关于测试脚本的执行命令,执行机会生成测试用例文件和python或者ruby的自动化执行脚本,之后可进一步使用behave(python)或者cucumber(ruby)命令来执行测试脚本。
对于本实施例,在具体的应用场景中,实施例步骤204具体可以包括:向与目标应用程序匹配的执行机发送执行命令,执行命令中携带有各个待测移动终端的终端标识以及对应的测试脚本;通过执行机执行各个终端标识对应的测试脚本,对目标应用程序进行第一验证;基于各个待测移动终端对目标应用程序兼容性的第一验证结果,确定目标应用程序的第一兼容性测试结果。
其中,第一验证即为对目标应用程序执行流程的验证,如是否能够成功打开应用程序,是否能成功登陆,操作流程是否准确等。具体可将执行流程中的每个待检测点均设定为各个独立的检测任务,在进行具体的检测时,对于每个检测任务都会进行状态的判定,并进行截图存储。如在检测过程中,判定存在任意一个状态异常的检测点,则判定在该待测移动终端中,目标应用程序未通过第一验证。
相应的,在基于各个待测移动终端对目标应用程序兼容性的第一验证结果,确定目标应用程序的第一兼容性测试结果时,实施例步骤204具体可以包括:若确定目标应用程序在各个待测移动终端中均通过第一验证,则判定目标应用程序的第一兼容性测试结果为通过;反之,则判定目标应用程序的第一兼容性测试结果为未通过。
205、根据第一兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果。
对于本实施例,在具体的应用场景中,在完成第一兼容性测试后,作为一种可选方式,可不需要执行实施例步骤206-209对应第二兼容性测试,进而直接将第一兼容性测试结果确定为最终兼容性测试结果,并输出。作为一种可选方式,为了保证兼容性测试的准确性,在执行第一兼容性测试方案后,还可通过执行实施例步骤206-209的第二兼容性测试方案,对目标应用程序进行另一个维度的兼容性测试,通过整合两次兼容性测试结果,最终判定目标应用程序是否通过兼容性测试。
206、获取目标应用程序在各个待测移动终端下关于屏幕分辨率截图的第一图像。
对于本实施例,可首先获取每个待测移动终端针对目标应用程序的屏幕分辨率截图,并按照待测移动终端对应的终端标识对各个屏幕分辨率截图进行命名存储。作为一种可选方式,为了避免对资源的浪费,可从第一兼容性测试过程保存的截图中,筛选用于进行界面显示测试的屏幕分辨率截图,并将屏幕分辨率截图确定为第一图像。
207、在分辨率数据中,提取目标应用程序对应各个待测移动终端的分辨率UI设计图,将分辨率UI设计图确定为第二图像。
在具体的应用场景中,为了起到参考的作用,还需要获取目标应用程序对应各个待测移动终端下的分辨率UI设计图,同样按照待测移动终端对应的终端标识对UI设计图进行标记。在具体的应用场景中,可应用场景sketch软件生成网页版本的UI设计图,通过爬虫获取到UI元素的尺寸信息:(x,y,height,width)。
208、对比各个待测移动终端下的第一图像以及第二图像,获取目标应用程序对应的第二兼容性测试结果。
对于本实施例,在具体的应用场景中,可基于终端标识将第一图像以及第二图像进行两两匹配,确定各个待测移动终端对应的图像分组。通过对比各个图像分组中的第一图像以及第二图像,可获取得到各个待测移动终端下关于目标应用程序的第二兼容性测试结果。
相应的,实施例步骤208具体可以包括:通过提取相同终端标识下第一图像以及第二图像的差异特征,确定各个待测移动终端对目标应用程序兼容性的第二验证结果;根据第二验证结果,确定目标应用程序的第二兼容性测试结果;和/或,提取出未通过第二验证的目标移动终端,并对目标移动终端下的第一目标图像以及第二目标图像进行像素点信息的第三验证,获取第三验证结果;根据第三验证结果,确定目标应用程序的第二兼容性测试结果。
其中,在对目标应用程序进行兼容性的第二验证时,差异特征提取的目的是为了先总体初步判定有没有差异,如果不存在差异,则判定该目标应用程序通过兼容性验证;如果存在差异则需要再进行细化分析。在进行差异特征提取时,可通过读取相应图像,把图像转为base64后进行对比即可达到目的。具体的,在进行差异特征提取时,可通过将两张图像缩放成等比大小,通过层叠消融技术,将相同像素点进行抵消,确定局部细节层面是否存在不一致的地方(即确定是否存在不能实现抵消的差异像素点),当判定存在差异像素点时,则判定第一图像和第二图像存在差异化,反之则不存在差异化。若判定两张图像无差异化则判定该待测移动终端下的目标应用程序通过第二验证;若判定两张图像存在部分差异,则判定该待测移动终端下的目标应用程序未通过第二验证。
相应的,在根据第二验证结果,确定目标应用程序的第二兼容性测试结果时,实施例步骤208具体可以包括:若确定目标应用程序在各个待测移动终端中均通过第二验证,则判定目标应用程序的第二兼容性测试结果为通过。
在具体的应用场景中,当确定某一待测移动终端通过上述第二验证时,为了节省测试资源,故不需要对该待测移动终端进行后续的第三验证过程,可直接判定该待测移动终端通过界面显示的第二兼容性测试。反之,对于未通过第二验证的目标移动终端,为了保证兼容性测试的精确度,还需要进一步进行更深入的关于像素点信息的第三验证。
相应的,在对目标移动终端下的第一目标图像以及第二目标图像进行像素点信息的第三验证,从而获取第三验证结果时,实施例步骤208具体可以包括:确定第一目标图像以及第二目标图像的二进制指纹;计算第一目标图像以及第二目标图像对应二进制指纹间的指纹相似度;基于指纹相似度确定目标移动终端对目标应用程序兼容性的第三验证结果。
对于本实施例,在具体的应用场景中,在计算二进制指纹时,为了保证像素点信息对比的精确性,可首先按照预设裁剪规则将第一图像以及第二图像分别裁剪为各个图像单元,并按照坐标位置对第一图像单元以及第二图像单元进行标记。通过计算各个第一图像单元的二进制指纹即可获取得到第一图像对应的二进制指纹;通过计算各个第二图像单元的二进制指纹即可获取得到第二图像对应的二进制指纹。具体的,在将第一图像以及第二图像分别裁剪为各个图像单元时,可首先基于UI设计图确定所包含的各个UI元素以及对应的尺寸占比,根据各个UI元素对应的尺寸占比将第一图像和第二图像剪切成各个UI元素对应的图像单元。
相应的,为了隐藏细节,提取出各个图像单元的主要特征,在截取得到各个第一图像单元以及第二图像单元后,还需要对第一图像单元以及第二图像单元进行合适的缩放,具体可设定预设缩放尺寸,例如可将图像缩放为9*8的像素图;通过计算相邻像素之间的颜色强度差异即可分别确定出各个第一图像单元以及第二图像单元对应的像素差异值;基于像素差异值可分别确定出第一图像单元以及第二图像单元对应的二进制指纹。
其中,在通过计算相邻像素之间的颜色强度差异得出差异值时,可以将色彩信息撇除,将像素图灰度化,方便比较。具体可通过将每行相邻像素的强度进行对比得出差异值。例 如,当图像为9*8的分辨率时,那么就有8行,每行9个像素。差异值是每行分别计算的,也就是第二行的第一个像素不会与第一行的任何像素比较。每一行有9个像素,那么就会产生8个差异值,最后每个图像单元均可以得到64个差异值。如果前一个像素的颜色强度大于第二个像素,那么差异值就设置为True(也就是1),如果不大于第二个像素,就设置为False(也就是0)。最后每个图像单元都可以生成一个长度为64位的二进制指纹。
相应的,若基于各个UI元素以及对应的尺寸占比分别将第一图像以及第二图像裁剪成4个UI元素对应独立的图像单元时,可基于各个UI元素的位置或名称对图像单元进行标记,进而可得到4个第一图像单元A、B、C、D以及4个第二图像单元a、b、c、d,第一图像单元和第二图像单元之间基于标记两两对应关联,如第一图像单元A与第二图像单元a关联、第一图像单元B与第二图像单元b关联、第一图像单元C与第二图像单元c关联、第一图像单元D与第二图像单元d关联,其中,每个图像单元均对应计算一个二进制指纹,第一图像单元A、B、C、D对应的4个二进制指纹构成第一图像的二进制指纹,第二图像单元a、b、c、d对应的4个二进制指纹构成第二图像的二进制指纹。
具体的,在计算第一图像以及第二图像对应二进制指纹间的相似度时,可依据汉明距离比较两个指纹间的相似度,其中,汉明距离表示将字符A修改成为字符B,需要多少个步骤,比如字符串“abc”与“ab3”,汉明距离为1,因为只需要修改“c”为“3”即可,也就是汉明距离越小相似度越高。设定一个汉明距离值,小于等于该值则判定验证通过,大于该值判定出现兼容性问题。
相应的,在计算第一图像以及第二图像对应二进制指纹间的相似度时,可通过分别计算同一UI元素对应第一图像单元和第二图像单元对应二进制指纹的第一汉明距离;最后通过对各个UI元素对应的第一汉明距离进行累加,即可得到第一图像和第二图像之间的第二汉明距离,通过第二汉明距离即可获取得到该目标待测机型下的第三验证结果。例如,基于上述实例,若基于各个UI元素以及对应的尺寸占比将第一图像裁剪成4个第一图像单元A、B、C、D,将第二图像裁剪成4个第二图像单元a、b、c、d时,可分别计算各个关联图像单元之间的第一汉明距离,即计算得到第一图像单元A与第二图像单元a之间的第一汉明距离、第一图像单元B与第二图像单元b之间的第一汉明距离、第一图像单元C与第二图像单元c之间的第一汉明距离、第一图像单元D与第二图像单元d之间的第一汉明距离。进而通过计算4个第一汉明距离之间的累计和,即可得到该目标移动终端对应第一图像和第二图像之间的第二汉明距离。
具体的,在根据各个目标移动终端下二进制指纹的相似度确定目标移动终端对目标应用程序兼容性的第三验证结果时,可通过将第二汉明距离与预设阈值进行对比,从而确定第三验证结果。具体的,若判定第二汉明距离大于预设阈值,则判定该目标待测机型通过第三验证,反之则判定该目标待测机型未通过第三验证。
相应的,在根据第三验证结果,确定目标应用程序的第二兼容性测试结果时,实施例步骤208具体可以包括:若确定目标应用程序在各个目标移动终端中均通过第三验证,则判定目标应用程序的第二兼容性测试结果为通过。
209、根据第二兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果。
对于本实施例,在具体的应用场景中,第二兼容性测试作为与第一兼容性测试并列的测试方案,也可优先执行第二兼容性测试,若第二兼容性测试结果为通过时,作为一种可选方式,可不需要执行实施例步骤202-205的第一兼容性测试,进而直接将第二兼容性测试结果确定为最终兼容性测试结果,并输出。作为一种可选方式,为了保证兼容性测试的准确性,在执行第二兼容性测试方案后,还可通过执行实施例步骤202-205的第一兼容性测试方案,对目标应用程序进行另一个维度的兼容性测试,通过整合两次兼容性测试结果,最终判定目标应用程序是否通过兼容性测试。
相应的,在利用第一兼容性测试结果和第二兼容性测试结果综合确定出最终的兼容性测试结果时,具体可以包括:若确定目标应用程序通过第一兼容性测试和第二兼容性测试,则判定最终兼容性测试结果为通过;若确定目标应用程序未通过第一兼容性测试和/或未通过第二兼容性测试,则判定最终兼容性测试结果为未通过;输出最终兼容性测试结果。
在具体的应用场景中,在对目标应用程序进行兼容性测试时,可单独选用第一兼容性测试的方式,也可单独选用第二兼容性测试的方式,同样也可选用两种兼容性测试结合的方式,具体在此不做限定。为了使测试结果更为准确且全面,在本实施例中,优选两种兼容性测试结合的方式,即同时对目标应用程序进行第一兼容性测试和第二兼容性测试,当确定目标应用程序通过第一兼容性测试和第二兼容性测试时,则可判定最终兼容性测试结果为通过;当确定目标应用程序未通过第一兼容性测试和/或第二兼容性测试时,则可判定最终兼容性测试结果为未通过。
借由上述应用程序兼容性测试的方法,可从执行流程和界面显示两个维度对目标应用程序进行兼容性检测,即首先通过脚本参数数据对目标应用程序进行执行流程的第一兼容性测试,进一步获取得到第一兼容性测试结果;同时基于分辨率数据对目标应用程序进行界面显示的第二兼容性测试,进一步获取得到第二兼容性测试结果;最后通过第一兼容性测试结果和/或第二兼容性测试结果,即可确定出目标应用程序是否通过兼容性验证。通过本申请中的兼容性测试方案,能够快速准确的识别出目标应用程序的兼容性问题,提高检测效率,减少测试人力资源成本,降低遗漏细节的质量风险。
进一步的,作为图1和图2所示方法的具体实现,本申请实施例提供了一种应用程序兼容性测试的装置,如图3所示,该装置包括:获取模块31、第一测试模块32、第一确定模块33、第二测试模块34、第二确定模块35;
获取模块31,用于获取目标应用程序的测试数据,测试数据包括脚本参数数据和分辨率数据;
第一测试模块32,用于利用脚本参数数据对目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,第一兼容性测试是指用于测试执行流程;
第一确定模块33,用于根据第一兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果;和/或,
第二测试模块34,用于根据分辨率数据对目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,第二兼容性测试是指用于界面显示的测试;
第二确定模块35,用于根据根据第二兼容性测试结果,确定并输出目标应用程序的最终兼容性测试结果。
在具体的应用场景中,如图4所示,第一测试模块32,具体可包括:创建单元321、生成单元322、第一获取单元323;
创建单元321,可用于根据各个待测移动终端的终端信息,创建各个待测移动终端的兼容性测试用例;
生成单元322,可用于将目标应用程序的脚本参数数据依次关联至兼容性测试用例中,生成各个待测移动终端的测试脚本;
第一获取单元323,可用于向与目标应用程序匹配的执行机发送关于测试脚本的执行命令,以使执行机依据执行命令运行各个测试脚本,获取第一兼容性测试结果。
相应的,第一获取单元323,具体可用于向与目标应用程序匹配的执行机发送执行命令,执行命令中携带有各个待测移动终端的终端标识以及对应的测试脚本;通过执行机执行各个终端标识对应的测试脚本,对目标应用程序进行第一验证;基于各个待测移动终端对目标应用程序兼容性的第一验证结果,确定目标应用程序的第一兼容性测试结果。
在具体的应用场景中,如图4所示,第二测试模块34,具体可包括:第二获取单元341、 确定单元342、对比单元343;
第二获取单元341,可用于获取目标应用程序在各个待测移动终端下关于屏幕分辨率截图的第一图像;
确定单元342,可用于在分辨率数据中,提取目标应用程序对应各个待测移动终端的分辨率UI设计图,将分辨率UI设计图确定为第二图像;
对比单元343,可用于对比各个待测移动终端下的第一图像以及第二图像,获取目标应用程序对应的第二兼容性测试结果。
在具体的应用场景中,对比单元343,具体可用于通过提取相同终端标识下第一图像以及第二图像的差异特征,确定各个待测移动终端对目标应用程序兼容性的第二验证结果;根据第二验证结果,确定目标应用程序的第二兼容性测试结果;或,提取出未通过第二验证的目标移动终端,并对目标移动终端下的第一目标图像以及第二目标图像进行像素点信息的第三验证,获取第三验证结果;根据第三验证结果,确定目标应用程序的第二兼容性测试结果。
相应的,对比单元343,具体可用于确定第一目标图像以及第二目标图像的二进制指纹;计算第一目标图像以及第二目标图像对应二进制指纹间的指纹相似度;基于指纹相似度确定目标移动终端对目标应用程序兼容性的第三验证结果。
在具体的应用场景中,第一获取单元323,具体可用于若确定目标应用程序在各个待测移动终端中均通过第一验证,则判定目标应用程序的第一兼容性测试结果为通过;
相应的,对比单元343,具体可用于若确定目标应用程序在各个待测移动终端中均通过第二验证,则判定目标应用程序的第二兼容性测试结果为通过;
相应的,对比单元343,具体可用于若确定所述目标应用程序在各个所述目标移动终端中均通过所述第三验证,则判定所述目标应用程序的所述第二兼容性测试结果为通过。
需要说明的是,本实施例提供的一种应用程序兼容性测试的装置所涉及各功能单元的其他相应描述,可以参考图1至图2的对应描述,在此不再赘述。
基于上述如图1至图2所示方法,相应的,本实施例还提供了一种存储介质,其上存储有计算机可读指令,该可读指令被处理器执行时实现上述如图1至图2所示的应用程序兼容性测试的方法。或者说,该存储介质上存储有计算机程序,该程序被处理器执行时实现上述如图1至图2所示的应用程序兼容性测试的方法,这里不赘述。
可选的,本申请涉及的存储介质可以是可读存储介质,如计算机可读存储介质。进一步可选的,本申请涉及的存储介质如可读存储介质可以是非易失性的,如非易失性可读存储介质,也可以是易失性的,如易失性可读存储介质。
基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。
基于上述如图1至图2所示的方法和图3、图4所示的虚拟装置实施例,为了实现上述目的,本实施例还提供了一种计算机设备,该计算机设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1至图2所示的应用程序兼容性测试的方法。可选的,该存储介质可以是可读存储介质,如非易失性可读存储介质或易失性可读存储介质。
可选的,该计算机设备还可以包括用户接口、网络接口、摄像头、射频(Radio Frequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)等。
本领域技术人员可以理解,本实施例提供的一种计算机设备结构并不构成对该实体设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。
非易失性存储介质中还可以包括操作系统、网络通信模块。操作系统是管理上述计算机设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现非易失性存储介质内部各组件之间的通信,以及与信息处理实体设备中其它硬件和软件之间通信。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。
通过应用本申请的技术方案,与目前现有技术相比,本申请可从执行流程和界面显示两个维度对目标应用程序进行兼容性检测,即首先通过脚本参数数据对目标应用程序进行执行流程的第一兼容性测试,进一步获取得到第一兼容性测试结果;同时基于分辨率数据对目标应用程序进行界面显示的第二兼容性测试,进一步获取得到第二兼容性测试结果;最后通过第一兼容性测试结果和/或第二兼容性测试结果,即可确定出目标应用程序是否通过兼容性验证。通过本申请中的兼容性测试方案,能够快速准确的识别出目标应用程序的兼容性问题,提高检测效率,减少测试人力资源成本,降低遗漏细节的质量风险。
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本申请所必须的。本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。
上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。

Claims (20)

  1. 一种应用程序兼容性测试的方法,其中,包括:
    获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
    利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
    根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;
    和/或,根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
    根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
  2. 根据权利要求1所述的方法,其中,所述利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,包括:
    根据各个待测移动终端的终端信息,创建各个所述待测移动终端的兼容性测试用例;
    将所述目标应用程序的脚本参数数据依次关联至所述兼容性测试用例中,生成各个所述待测移动终端的测试脚本;
    向与所述目标应用程序匹配的执行机发送关于所述测试脚本的执行命令,以使所述执行机依据所述执行命令运行各个所述测试脚本,获取第一兼容性测试结果。
  3. 根据权利要求2所述的方法,其中,所述向与所述目标应用程序匹配的执行机发送关于所述测试脚本的执行命令,以使所述执行机依据所述执行命令运行各个所述测试脚本,获取第一兼容性测试结果,包括:
    向与所述目标应用程序匹配的执行机发送执行命令,所述执行命令中携带有各个所述待测移动终端的终端标识以及对应的测试脚本;
    通过所述执行机执行各个所述终端标识对应的所述测试脚本,对所述目标应用程序进行第一验证;
    基于各个所述待测移动终端对所述目标应用程序兼容性的第一验证结果,确定所述目标应用程序的第一兼容性测试结果。
  4. 根据权利要求3所述的方法,其中,所述根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,包括:
    获取所述目标应用程序在各个所述待测移动终端下关于屏幕分辨率截图的第一图像;
    在所述分辨率数据中,提取所述目标应用程序对应各个所述待测移动终端的分辨率UI设计图,将所述分辨率UI设计图确定为第二图像;
    对比各个所述待测移动终端下的所述第一图像以及所述第二图像,获取所述目标应用程序对应的第二兼容性测试结果。
  5. 根据权利要求4所述的方法,其中,所述对比各个所述待测移动终端下的所述第一图像以及所述第二图像,获取所述目标应用程序对应的第二兼容性测试结果,包括:
    通过提取相同终端标识下第一图像以及第二图像的差异特征,确定各个所述待测移动终端对所述目标应用程序兼容性的第二验证结果;
    根据所述第二验证结果,确定所述目标应用程序的第二兼容性测试结果;
    和/或,提取出未通过第二验证的目标移动终端,并对所述目标移动终端下的第一目标图像以及第二目标图像进行像素点信息的第三验证,获取第三验证结果;
    根据所述第三验证结果,确定所述目标应用程序的第二兼容性测试结果。
  6. 根据权利要求5所述的方法,其中,所述提取出未通过第二验证的目标移动终端,并对所述目标移动终端下的第一目标图像以及第二目标图像进行像素点信息的第三验证,获取第三验证结果,包括:
    确定所述第一目标图像以及所述第二目标图像的二进制指纹;
    计算所述第一目标图像以及所述第二目标图像对应二进制指纹间的指纹相似度;
    基于所述指纹相似度确定所述目标移动终端对所述目标应用程序兼容性的第三验证结果。
  7. 根据权利要求6所述的方法,其中,所述基于各个所述待测移动终端对所述目标应用程序兼容性的第一验证结果,确定所述目标应用程序的第一兼容性测试结果,包括:
    若确定所述目标应用程序在各个所述待测移动终端中均通过所述第一验证,则判定所述目标应用程序的所述第一兼容性测试结果为通过;
    所述根据所述第二验证结果,确定所述目标应用程序的第二兼容性测试结果,具体包括:
    若确定所述目标应用程序在各个所述待测移动终端中均通过所述第二验证,则判定所述目标应用程序的所述第二兼容性测试结果为通过;
    所述根据所述第三验证结果,确定所述目标应用程序的第二兼容性测试结果,具体包括:
    若确定所述目标应用程序在各个所述目标移动终端中均通过所述第三验证,则判定所述目标应用程序的所述第二兼容性测试结果为通过。
  8. 一种应用程序兼容性测试的装置,其中,包括:
    获取模块,用于获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
    第一测试模块,用于利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
    第一确定模块,用于根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;和/或,
    第二测试模块,用于根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
    第二确定模块,用于根据根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
  9. 一种可读存储介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现以下方法:
    获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
    利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
    根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;
    和/或,根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
    根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
  10. 根据权利要求9所述的可读存储介质,其中,所述利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果时,具体实现:
    根据各个待测移动终端的终端信息,创建各个所述待测移动终端的兼容性测试用例;
    将所述目标应用程序的脚本参数数据依次关联至所述兼容性测试用例中,生成各个所述待测移动终端的测试脚本;
    向与所述目标应用程序匹配的执行机发送关于所述测试脚本的执行命令,以使所述执行机依据所述执行命令运行各个所述测试脚本,获取第一兼容性测试结果。
  11. 根据权利要求10所述的可读存储介质,其中,所述向与所述目标应用程序匹配的执行机发送关于所述测试脚本的执行命令,以使所述执行机依据所述执行命令运行各个所 述测试脚本,获取第一兼容性测试结果时,具体实现:
    向与所述目标应用程序匹配的执行机发送执行命令,所述执行命令中携带有各个所述待测移动终端的终端标识以及对应的测试脚本;
    通过所述执行机执行各个所述终端标识对应的所述测试脚本,对所述目标应用程序进行第一验证;
    基于各个所述待测移动终端对所述目标应用程序兼容性的第一验证结果,确定所述目标应用程序的第一兼容性测试结果。
  12. 根据权利要求11所述的可读存储介质,其中,所述根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果时,具体实现:
    获取所述目标应用程序在各个所述待测移动终端下关于屏幕分辨率截图的第一图像;
    在所述分辨率数据中,提取所述目标应用程序对应各个所述待测移动终端的分辨率UI设计图,将所述分辨率UI设计图确定为第二图像;
    对比各个所述待测移动终端下的所述第一图像以及所述第二图像,获取所述目标应用程序对应的第二兼容性测试结果。
  13. 根据权利要求12所述的可读存储介质,其中,所述对比各个所述待测移动终端下的所述第一图像以及所述第二图像,获取所述目标应用程序对应的第二兼容性测试结果时,具体实现:
    通过提取相同终端标识下第一图像以及第二图像的差异特征,确定各个所述待测移动终端对所述目标应用程序兼容性的第二验证结果;
    根据所述第二验证结果,确定所述目标应用程序的第二兼容性测试结果;
    和/或,提取出未通过第二验证的目标移动终端,并对所述目标移动终端下的第一目标图像以及第二目标图像进行像素点信息的第三验证,获取第三验证结果;
    根据所述第三验证结果,确定所述目标应用程序的第二兼容性测试结果。
  14. 根据权利要求13所述的可读存储介质,其中,所述基于各个所述待测移动终端对所述目标应用程序兼容性的第一验证结果,确定所述目标应用程序的第一兼容性测试结果时,具体实现:
    若确定所述目标应用程序在各个所述待测移动终端中均通过所述第一验证,则判定所述目标应用程序的所述第一兼容性测试结果为通过;
    所述根据所述第二验证结果,确定所述目标应用程序的第二兼容性测试结果时,具体实现:
    若确定所述目标应用程序在各个所述待测移动终端中均通过所述第二验证,则判定所述目标应用程序的所述第二兼容性测试结果为通过;
    所述根据所述第三验证结果,确定所述目标应用程序的第二兼容性测试结果时,具体实现:
    若确定所述目标应用程序在各个所述目标移动终端中均通过所述第三验证,则判定所述目标应用程序的所述第二兼容性测试结果为通过。
  15. 一种计算机设备,包括可读存储介质、处理器及存储在可读存储介质上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现以下方法:
    获取目标应用程序的测试数据,所述测试数据包括脚本参数数据和分辨率数据;
    利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果,所述第一兼容性测试是指用于测试执行流程;
    根据所述第一兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果;
    和/或,根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果,所述第二兼容性测试是指用于界面显示的测试;
    根据所述第二兼容性测试结果,确定并输出所述目标应用程序的最终兼容性测试结果。
  16. 根据权利要求15所述的计算机设备,其中,所述利用所述脚本参数数据对所述目标应用程序进行第一兼容性测试,获取得到第一兼容性测试结果时,具体实现:
    根据各个待测移动终端的终端信息,创建各个所述待测移动终端的兼容性测试用例;
    将所述目标应用程序的脚本参数数据依次关联至所述兼容性测试用例中,生成各个所述待测移动终端的测试脚本;
    向与所述目标应用程序匹配的执行机发送关于所述测试脚本的执行命令,以使所述执行机依据所述执行命令运行各个所述测试脚本,获取第一兼容性测试结果。
  17. 根据权利要求16所述的计算机设备,其中,所述向与所述目标应用程序匹配的执行机发送关于所述测试脚本的执行命令,以使所述执行机依据所述执行命令运行各个所述测试脚本,获取第一兼容性测试结果时,具体实现:
    向与所述目标应用程序匹配的执行机发送执行命令,所述执行命令中携带有各个所述待测移动终端的终端标识以及对应的测试脚本;
    通过所述执行机执行各个所述终端标识对应的所述测试脚本,对所述目标应用程序进行第一验证;
    基于各个所述待测移动终端对所述目标应用程序兼容性的第一验证结果,确定所述目标应用程序的第一兼容性测试结果。
  18. 根据权利要求17所述的计算机设备,其中,所述根据所述分辨率数据对所述目标应用程序进行第二兼容性测试,获取得到第二兼容性测试结果时,具体实现:
    获取所述目标应用程序在各个所述待测移动终端下关于屏幕分辨率截图的第一图像;
    在所述分辨率数据中,提取所述目标应用程序对应各个所述待测移动终端的分辨率UI设计图,将所述分辨率UI设计图确定为第二图像;
    对比各个所述待测移动终端下的所述第一图像以及所述第二图像,获取所述目标应用程序对应的第二兼容性测试结果。
  19. 根据权利要求18所述的计算机设备,其中,所述对比各个所述待测移动终端下的所述第一图像以及所述第二图像,获取所述目标应用程序对应的第二兼容性测试结果时,具体实现:
    通过提取相同终端标识下第一图像以及第二图像的差异特征,确定各个所述待测移动终端对所述目标应用程序兼容性的第二验证结果;
    根据所述第二验证结果,确定所述目标应用程序的第二兼容性测试结果;
    和/或,提取出未通过第二验证的目标移动终端,并对所述目标移动终端下的第一目标图像以及第二目标图像进行像素点信息的第三验证,获取第三验证结果;
    根据所述第三验证结果,确定所述目标应用程序的第二兼容性测试结果。
  20. 根据权利要求19所述的计算机设备,其中,所述基于各个所述待测移动终端对所述目标应用程序兼容性的第一验证结果,确定所述目标应用程序的第一兼容性测试结果时,具体实现:
    若确定所述目标应用程序在各个所述待测移动终端中均通过所述第一验证,则判定所述目标应用程序的所述第一兼容性测试结果为通过;
    所述根据所述第二验证结果,确定所述目标应用程序的第二兼容性测试结果时,具体实现:
    若确定所述目标应用程序在各个所述待测移动终端中均通过所述第二验证,则判定所述目标应用程序的所述第二兼容性测试结果为通过;
    所述根据所述第三验证结果,确定所述目标应用程序的第二兼容性测试结果时,具体实现:
    若确定所述目标应用程序在各个所述目标移动终端中均通过所述第三验证,则判定所述目标应用程序的所述第二兼容性测试结果为通过。
PCT/CN2020/124387 2020-09-27 2020-10-28 应用程序兼容性测试的方法、装置及计算机设备 WO2021159736A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011031540.8A CN112115059A (zh) 2020-09-27 2020-09-27 应用程序兼容性测试的方法、装置及计算机设备
CN202011031540.8 2020-09-27

Publications (1)

Publication Number Publication Date
WO2021159736A1 true WO2021159736A1 (zh) 2021-08-19

Family

ID=73797805

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/124387 WO2021159736A1 (zh) 2020-09-27 2020-10-28 应用程序兼容性测试的方法、装置及计算机设备

Country Status (2)

Country Link
CN (1) CN112115059A (zh)
WO (1) WO2021159736A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835791A (zh) * 2021-01-26 2021-05-25 杭州电魂网络科技股份有限公司 游戏兼容性自动化测试方法、装置、设备及介质
CN113296984A (zh) * 2021-06-15 2021-08-24 杭州朗和科技有限公司 兼容性参数确定方法、装置、电子设备及存储介质
CN113506291B (zh) * 2021-07-29 2024-03-26 上海幻电信息科技有限公司 兼容性测试方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329899A (zh) * 2017-07-04 2017-11-07 广州云测信息技术有限公司 一种应用程序兼容性测试方法和装置
CN108804328A (zh) * 2018-06-12 2018-11-13 浪潮软件集团有限公司 一种安卓应用兼容性测试的方法
CN108920380A (zh) * 2018-07-20 2018-11-30 百度在线网络技术(北京)有限公司 软件兼容性的测试方法、装置、服务器、设备和存储介质
CN109491888A (zh) * 2018-09-29 2019-03-19 中国平安人寿保险股份有限公司 应用程序兼容性测试方法、装置、及计算机可读存储介质
US20190243752A1 (en) * 2018-02-05 2019-08-08 Webomates LLC Method and system for multi-channel testing
CN110347587A (zh) * 2019-05-30 2019-10-18 平安银行股份有限公司 App兼容性测试方法、装置、计算机设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329899A (zh) * 2017-07-04 2017-11-07 广州云测信息技术有限公司 一种应用程序兼容性测试方法和装置
US20190243752A1 (en) * 2018-02-05 2019-08-08 Webomates LLC Method and system for multi-channel testing
CN108804328A (zh) * 2018-06-12 2018-11-13 浪潮软件集团有限公司 一种安卓应用兼容性测试的方法
CN108920380A (zh) * 2018-07-20 2018-11-30 百度在线网络技术(北京)有限公司 软件兼容性的测试方法、装置、服务器、设备和存储介质
CN109491888A (zh) * 2018-09-29 2019-03-19 中国平安人寿保险股份有限公司 应用程序兼容性测试方法、装置、及计算机可读存储介质
CN110347587A (zh) * 2019-05-30 2019-10-18 平安银行股份有限公司 App兼容性测试方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN112115059A (zh) 2020-12-22

Similar Documents

Publication Publication Date Title
WO2021159736A1 (zh) 应用程序兼容性测试的方法、装置及计算机设备
US9846634B2 (en) Visual graphical user interface verification
TWI748242B (zh) 掃描晶圓的系統及方法
US11657644B2 (en) Automatic ruler detection
CN106326108A (zh) 一种新应用的测试方法及装置
CN105302413B (zh) 控件的ui测试方法及系统
CN111045924B (zh) 用户界面视觉验收的处理方法、装置及设备
CN110427746A (zh) 滑块验证码验证方法、装置、存储介质和计算机设备
CN108304243B (zh) 界面生成方法、装置、计算机设备和存储介质
CN107845113A (zh) 目标元素定位方法、装置以及用户界面测试方法、装置
CN110879780A (zh) 页面异常检测方法、装置、电子设备及可读存储介质
US10395090B2 (en) Symbol detection for desired image reconstruction
CN111143188A (zh) 一种对应用进行自动化测试的方法及设备
CN111651368B (zh) 一种用户图形界面测试方法及计算机可读存储介质
CN117115823A (zh) 一种篡改识别方法、装置、计算机设备和存储介质
CN112633341A (zh) 一种界面测试方法、装置、计算机设备和存储介质
CN112950443A (zh) 基于图像贴纸的自适应隐私保护方法、系统、设备及介质
CN113392013B (zh) 用例生成方法及装置
CN115952079A (zh) 一种移动应用自动化行为记录及分析定位缺陷方法及系统
CN110532186B (zh) 利用验证码进行测试的方法、装置、电子设备和存储介质
WO2017219562A1 (zh) 一种二维码生成方法及装置
CN109753217B (zh) 动态键盘操作方法、装置、存储介质及电子设备
CN112529883A (zh) 一种基于图像边缘识别的贴片检测方法及装置
CN111914741A (zh) 房产证识别方法、装置和设备
CN107885180B (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: 20919009

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

Country of ref document: EP

Kind code of ref document: A1