WO2020248505A1 - Website page test method and apparatus, and terminal device and medium - Google Patents

Website page test method and apparatus, and terminal device and medium Download PDF

Info

Publication number
WO2020248505A1
WO2020248505A1 PCT/CN2019/118568 CN2019118568W WO2020248505A1 WO 2020248505 A1 WO2020248505 A1 WO 2020248505A1 CN 2019118568 W CN2019118568 W CN 2019118568W WO 2020248505 A1 WO2020248505 A1 WO 2020248505A1
Authority
WO
WIPO (PCT)
Prior art keywords
browser
browser interface
page
address
bar control
Prior art date
Application number
PCT/CN2019/118568
Other languages
French (fr)
Chinese (zh)
Inventor
赵超
金志敏
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020248505A1 publication Critical patent/WO2020248505A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • This application belongs to the field of data processing technology, and in particular relates to a method, device, terminal device, and computer-readable storage medium for testing website pages.
  • the Uniform Resource Locator (URL) of the page to be tested will involve multiple levels of directories, so its access address will contain a long string.
  • the access address is https://abc.com/question/7723419.html.
  • the tester can only manually enter the access address in the browser. Due to the problem of cumbersome operation and high error rate in the way of manually entering the access address, the test efficiency of the website page is reduced.
  • the embodiments of the present application provide a method, device, terminal device, and computer-readable storage medium for testing a website page to solve the problem of the cumbersome entry of the page access address in the prior art.
  • the test efficiency is relatively low.
  • the first aspect of the embodiments of the present application provides a method for testing website pages, including:
  • Control the browser to load a preset browser plug-in, and display the control object of the browser plug-in in the browser;
  • the browser plug-in is used to perform image scanning and reading operations;
  • a scan window is generated; and an image related to the access address of the page to be tested scanned by the user through the scan window is acquired;
  • FIG. 1 is a schematic diagram of the implementation process of a method for testing a website page provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a specific implementation process of the website page testing method S104 provided by an embodiment of the present application;
  • FIG. 3 is a schematic diagram of another specific implementation process of the website page testing method S104 provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the implementation process of a method for testing a website page provided by another embodiment of the present application.
  • FIG. 5 is a specific implementation flowchart of the method S105 for testing a website page provided by an embodiment of the present application
  • Fig. 6 is a structural block diagram of a website page testing device provided by an embodiment of the present application.
  • Fig. 7 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • Fig. 1 shows the implementation flow chart of the website page testing method provided by the embodiment of the present application, which is detailed as follows:
  • S101 Control the browser to load a preset browser plug-in, and display the control object of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations.
  • a browser plug-in with image scanning and reading function is generated in advance according to the development code input by the developer. For the browser running on the page test terminal, control the browser to download and install the above-mentioned browser plug-in. At this time, in the menu bar or option toolbar displayed on the browser interface, a control object for identifying the image scanning function will be generated, so that the user can determine whether the currently running browser has image scanning recognition based on the control object. Read function.
  • the generation process of the aforementioned browser plug-in includes: creating a dynamic link library file PIugl.dll; and binding the dynamic link library file PIugl.dll with a plurality of preset code functions according to the manipulation instruction input by the developer.
  • the dynamic link library file can be stored in the preset plug-in Plugins Under the subdirectory.
  • the aforementioned code functions include image detection functions, preprocessing functions, and single word recognition functions.
  • the image detection function is used to call each frame of image captured by the camera application running on the page test terminal;
  • the preprocessing function is used to reduce the noise of the called image and segment the image into the text area;
  • single word recognition The function is used to recognize the feature points, projection information and point area distribution in the text area, and output the characters corresponding to each text area according to the recognition results.
  • the aforementioned preset Plugins subdirectory is searched and detected. If it is detected that the plug-in Plugins subdirectory contains a non-empty value, the Wia32 function LoadLrbrary is called to read the dynamic link library file in the subdirectory, so as to realize the call to the above code functions, and after the corresponding function of each code function is enabled , To realize the implantation of the browser image scanning and reading function.
  • S102 If a selection instruction issued by the user to the control object is detected, a scan window is generated, and an image scanned by the user through the scan window is acquired.
  • a scan event trigger instruction is received.
  • the browser is controlled to generate a scanning window, and the camera preset in the page testing terminal is activated to prompt the user to scan the image related to the access address of the page to be tested by moving the scanning window.
  • the screen image captured by the camera is displayed in the scanning window.
  • the access address of the page to be tested is specifically the URL of the page that the user needs to access the test.
  • the image related to the access address of the page to be tested may be a picture, text containing the URL, and/or a QR code, barcode, etc. generated based on the URL.
  • the image related to the access address of the page to be tested can be a physical picture created by the user in advance, such as URL text information on a printed material; it can also be an electronic picture displayed on the interface of other terminals.
  • S103 Detect a target area in the image that contains an access address, and analyze the access address related to the target area based on the browser plug-in.
  • the code logic of the browser plug-in is used to analyze and process the image detected in the scanning window based on technologies such as Optical Character Recognition (OCR) to extract the access address associated with the image URL.
  • OCR Optical Character Recognition
  • the scanned image is segmented to form independent rectangular regions. If it exists in a rectangular area corresponding to a text, each text object obtained by recognition is sequentially stored. Read each stored text object continuously, and output the character string corresponding to the access address of the page to be tested.
  • the character strings that meet the preset rule are filtered out.
  • the preset rule may be, for example, a regular expression matching the URL.
  • S104 Locate an address bar control existing in the browser interface.
  • the shortcut key control instruction set includes multiple shortcut key control instructions, and the aforementioned shortcut key control instructions are used to trigger the browser to execute the response event corresponding to the shortcut key.
  • the shortcut key control instruction used to locate the address bar control is determined in the shortcut key control instruction set.
  • the determined shortcut key control instruction is the key “Alt” and the key “D” "While selecting instructions. At this time, by executing the shortcut key control instruction, the cursor is positioned on the address bar in the browser interface.
  • the page code of the display page is detected and matched through a preset regular expression.
  • the second regular expression represents the string pattern matched by the address bar control.
  • the aforementioned address bar control may be, for example, a text box control. If it is matched that there is a control object matching the regular expression in the current page code, the control object is recognized as an address bar control, and the control object is activated.
  • FIG. 2 shows the specific implementation process of the website page testing method S104 provided by the embodiment of the present application, which is detailed as follows:
  • S1041 Obtain a preset address bar control image, and generate a first feature vector of the address bar control image.
  • the address bar control image For the manually pre-identified and confirmed address bar control, collect the address bar control image containing the address bar control.
  • the address bar control image is processed by a preset algorithm to generate the first feature vector corresponding thereto.
  • the foregoing preset algorithms include, but are not limited to, the scale-invariant feature transformation matching algorithm, the OpenCV algorithm, and the perceptual hash algorithm.
  • S1042 Divide the browser interface into a plurality of regional images, and respectively generate a second feature vector of each regional image.
  • a screen capture operation is performed on the current browser interface to obtain a screenshot image.
  • image segmentation processing is performed on the screenshot image.
  • the corresponding multiple regional images are obtained.
  • the size of the images in each area may be the same or different, which is determined according to the image segmentation algorithm currently used.
  • record the position distribution of each area image in the browser interface For example, the coordinates of the center point of the image of the recording area, etc.
  • step S1041 calculation processing is performed on each area image to generate the second feature vector corresponding to each area image.
  • S1043 Calculate the similarity between the first feature vector and the second feature vector, and determine the region image corresponding to the second feature vector with the highest similarity.
  • S1044 According to the determined position distribution of the area image on the browser interface, locate the address bar control existing in the browser interface.
  • the similarity between the second feature vector and the first feature vector is calculated through the cosine similarity algorithm, and the second feature vector with the highest similarity is selected, and the second feature vector is obtained.
  • the region image corresponding to the feature vector is obtained.
  • the coordinate position of the above-mentioned area image in the browser interface is read according to the pre-recorded position distribution. After locating the screen area to which the coordinate location belongs in the browser interface, determine the screen area as the location area of the address bar control.
  • the method further includes:
  • S1045 Determine whether the determined similarity is greater than a first threshold.
  • the value of the similarity is greater than the preset first threshold. If the similarity is less than the first threshold, it means that the region image corresponding to the second feature vector does not have a high degree of coincidence with the address bar control image, and the region image may not include the address bar control. Therefore, through pre-entered script code, it is detected whether there are hidden controls in the current browser interface.
  • the hidden controls are re-displayed on the current browser interface, and then the steps S1042 to S1044 are executed again. If there are no hidden controls on the current browser interface, the browser's interface sliding event is triggered to cause the browser to slide down a preset distance, and then return to perform the above steps S1042 to S1044. Among them, if the display page of the current browser reaches the user interface of the page test terminal (User Interface, UI) at the bottom, it means that it cannot continue to slide down, and it is determined that there is no explicit or implicit address bar control on the current website page. At this time, stop returning to the above step S1042.
  • UI User Interface
  • S105 Input the access address into the address bar control and execute a jump to perform a test operation on the jump page.
  • the page access jump operation is performed, so that the browser can load and display the backend server corresponding to the access address. Web page information, and realize the jump of the page to be tested.
  • the user can perform a functional test or performance test operation on the website page according to each test case.
  • the jump operation of the access address is performed only when a confirmation instruction issued by the user is received.
  • the method further includes:
  • the address bar control Before jumping to the page to be tested, the address bar control may not exist in the website page loaded by the browser, for example, the address bar of the browser interface is hidden and displayed, or the current website page has not been fully loaded Complete. Therefore, when locating the address bar controls that exist in the browser, the number of detected address bar controls may be zero. In the embodiment of this application, when it is detected that there is no address bar control in the browser interface, it is determined that the current user does not need to jump to display the next website page temporarily, and the scanned access address is stored in the clipboard for subsequent use .
  • S107 Switch and display the browser interface at the current moment according to the received page switching instruction.
  • the browser display interface is selected from the first After switching from one page to the second page, re-detect and locate the address bar control in the current page.
  • a prompt message is automatically sent first to prompt the user whether to paste the access address in the clipboard. Only when the confirmation message sent by the user is received, the access address is input into the address bar control.
  • the access address obtained by the analysis is stored in the clipboard, and after switching the display of the browser interface at the current moment, the user is prompted to paste the clipboard again
  • the access address in the board is added to the address bar control of the current browser display interface, ensuring that even if the user activates the image scanning function on a page that does not contain the address bar control, the scanned access address can be pre-stored, so that the subsequent When the access address needs to be entered, the existing access address can be quickly called without scanning again or manual input operation. Therefore, the efficiency of obtaining the access address is improved, and thus the testing efficiency of the website page is also improved.
  • FIG. 5 shows the specific implementation process of the website page testing method S105 provided by the embodiment of the present application, which is detailed as follows:
  • S1051 Download and run the automated test plug-in corresponding to the access address in the pre-connected background server.
  • S1052 Start the parameter setting window of the automated test plug-in to display preset test cases and test abnormal conditions.
  • S1053 Using the code logic of the automated test plug-in, execute the test case in the jump page, and obtain corresponding page response parameters.
  • the user can perform multiple types of functional testing operations, for example, verifying whether the login function of the website page is normal.
  • different page functions correspond to different test scripts. Therefore, according to the type of function test pre-defined by the tester for the page to be tested, the corresponding function test can be created and published Type of automated test plug-in.
  • the automated test plug-in is used to determine test cases, test abnormal conditions, and test normal conditions.
  • the above-mentioned automated test plug-in containing test cases can be generated.
  • the tester performs operations such as "clicking the text box control 1, enter the account password, and then click the login control"
  • the coordinates of the controls and operation events involved in the process are detected and recorded, and the corresponding execution script is generated.
  • the execution script packaging and generating automated test plug-ins.
  • a communication connection is established in advance with the aforementioned background server according to the pre-stored network address to download and run the automated test plug-in corresponding to the access address.
  • the parameter setting window is used to receive various test parameters customized and changed by the user.
  • the pre-stored test cases and test abnormal conditions are displayed in the parameter setting window, so that the user knows the test environment of the page to be tested at the current moment.
  • the test abnormal conditions represent various test parameters that may be returned when a test abnormality occurs on the page during the execution of the test case.
  • the page response parameters do not match the test abnormal conditions, it means that the current website page function test is normal; if the page response parameters match the test abnormal conditions, it means the current website page has a function abnormality, so the abnormal test result is output , And display the abnormal reason and the test parameters associated with the current test case in the test results.
  • the browser can execute the automated test of page functions according to the automated test plug-in, avoiding the need for the user to log in each website page every time Perform manual testing operations, so the page testing efficiency is improved.
  • FIG. 6 shows a structural block diagram of a testing device for a website page provided in an embodiment of the present application.
  • the website page testing device illustrated in FIG. 6 may be the execution body of the website page testing method provided in the foregoing embodiment.
  • the testing device for the website page includes:
  • the loading unit 61 is configured to control the browser to load a preset browser plug-in, and display control objects of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations.
  • the scanning unit 62 is configured to generate a scanning window if a selection instruction issued by a user to the control object is detected, and obtain an image scanned by the user through the scanning window;
  • the parsing unit 63 is configured to detect a target area containing an access address in the image, and analyze the access address related to the target area based on the browser plug-in.
  • the locating unit 64 is used to locate the address bar control existing in the browser interface.
  • the input unit 65 is configured to input the access address into the address bar control and perform a jump, so as to perform a test operation on the jump page.
  • the testing device for the aforementioned website page further includes:
  • the storage unit is configured to store the parsed access address in the clipboard if the address bar control does not exist in the browser interface.
  • the switching unit is configured to switch and display the browser interface at the current moment according to the received page switching instruction.
  • the prompt unit is configured to send out prompt information if a manipulation instruction for activating the address bar control is received in the browser interface at the current moment, and the prompt information is used to instruct the user to determine whether to paste the clipboard The access address in.
  • the input unit 65 includes:
  • the downloading subunit is used to download and run the automated test plug-in corresponding to the access address in the pre-connected background server.
  • the display subunit is used to start the parameter setting window of the automated test plug-in, and display preset test cases and test abnormal conditions.
  • the test subunit is used to execute the test case in the jump page through the code logic of the automated test plug-in, and obtain corresponding page response parameters.
  • the output subunit is configured to output the test result of the jump page according to the test abnormal condition and the page response parameter.
  • the positioning unit 64 includes:
  • the obtaining subunit is used to obtain a preset address bar control image and generate a first feature vector of the address bar control image.
  • the segmentation subunit is used to segment the browser interface into a plurality of regional images, and respectively generate a second feature vector of each regional image.
  • the calculation subunit is configured to calculate the similarity between the first feature vector and the second feature vector, and determine the region image corresponding to the second feature vector with the highest similarity.
  • the positioning subunit is used to locate the address bar control existing in the browser interface according to the determined position distribution of the area image on the browser interface.
  • the positioning unit 64 further includes:
  • the judging subunit is used to judge whether the determined similarity is greater than a first threshold.
  • the detection subunit is configured to detect whether there are hidden controls in the current browser interface if the similarity is less than the first threshold.
  • the return subunit is configured to, if there are no hidden controls on the browser interface, slide the browser interface down by a second threshold, and then return to execute the segmentation of the browser interface into multiple region images, The step of separately generating the second feature vector of each of the regional images until the browser interface reaches the boundary of the interactive page.
  • Fig. 7 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 7 of this embodiment includes a processor 70 and a memory 71.
  • the memory 71 stores computer-readable instructions 72 that can run on the processor 70.
  • the processor 70 executes the computer-readable instructions 72, the steps in the above-mentioned method for testing each website page are implemented, such as steps 101 to 105 shown in FIG. 1.
  • the processor 70 executes the computer-readable instructions 72
  • the functions of the modules/units in the foregoing device embodiments, such as the functions of the units 61 to 65 shown in FIG. 6, are realized.
  • the terminal device 7 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 70 and a memory 71.
  • FIG. 7 is only an example of the terminal device 7 and does not constitute a limitation on the terminal device 7. It may include more or less components than shown in the figure, or a combination of certain components, or different components.
  • the terminal device may also include an input sending device, a network access device, a bus, and the like.
  • the so-called processor 70 may be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7.
  • the memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) equipped on the terminal device 7. Card, Flash Card, etc.
  • the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device.
  • the memory 71 is used to store the computer-readable instructions and other programs and data required by the terminal device.
  • the memory 71 can also be used to temporarily store data that has been sent or will be sent.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • this application implements all or part of the procedures in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium.
  • the computer-readable instruction when executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer-readable instruction includes computer-readable instruction code
  • the computer-readable instruction code may be in the form of source code, object code, executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrical carrier signal, telecommunications signal, and software distribution media.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

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)
  • Information Transfer Between Computers (AREA)

Abstract

A website page test method and apparatus, and a terminal device, wherein same are applicable to the technical field of data processing. The method comprises: controlling a browser to load a pre-set browser plug-in, and displaying, in the browser, a control object of the browser plug-in (S101); if a selection instruction sent out by a user for the control object is detected, generating a scanning window, and acquiring an image scanned, by means of the scanning window, by the user (S102); detecting a target region, including an access address, in the image, and parsing, on the basis of the browser plug-in, the access address related to the target region (S103); positioning an address bar control that is present in a browser interface (S104); and inputting the access address into the address bar control, and executing skipping, so as to execute a test operation on a skipped page (S105). Accordingly, a website page tester does not need to perform an artificial input operation on an access address in a browser, such that the operation complexity is reduced, the reduction of the input accuracy of the access address due to the problem of human error is avoided, and the website page testing efficiency is also improved.

Description

网站页面的测试方法、装置、终端设备及介质Website page testing method, device, terminal equipment and medium
本申请申明享有2019年06月14日递交的申请号为201910517948.7、名称为“网站页面的测试方法、装置、终端设备及介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application affirms that it enjoys the priority of the Chinese patent application with the application number 201910517948.7 filed on June 14, 2019 and titled "Web page testing methods, devices, terminal equipment and media". The entire content of the Chinese patent application is for reference The method is incorporated in this application.
技术领域Technical field
本申请属于数据处理技术领域,尤其涉及一种网站页面的测试方法、装置、终端设备及计算机可读存储介质。This application belongs to the field of data processing technology, and in particular relates to a method, device, terminal device, and computer-readable storage medium for testing website pages.
背景技术Background technique
在移动应用或网站页面开发完成后,开发测试人员通常都需要在移动终端上对其具体开发效果进行测试,以判定上述移动应用或网站页面的实际显示效果是否达到了预期值。对于网站页面来说,在页面测试过程中,测试人员会在移动终端的浏览器中输入待测试页面的访问地址,进而才能进入到待测试页面进行页面功能的测试操作。After the development of a mobile application or website page is completed, developers and testers usually need to test their specific development effects on a mobile terminal to determine whether the actual display effect of the above-mentioned mobile application or website page has reached the expected value. For website pages, during the page testing process, the tester will enter the access address of the page to be tested in the browser of the mobile terminal, and then enter the page to be tested to test the page function.
一般情况下,待测试页面的统一资源定位符(Uniform Resource Locator,URL)会涉及多层级的目录,因此其访问地址会包含有较长的字符串。例如,访问地址为https://abc.com/question/7723419.html。假设移动终端仅能够与企业内网相连,且无法连接其他通信软件,无法执行访问地址的复制操作,则测试人员只能在浏览器中进行访问地址的人工录入。由于人工录入访问地址的方式存在操作繁琐以及错误率高的问题,因而降低了网站页面的测试效率。In general, the Uniform Resource Locator (URL) of the page to be tested will involve multiple levels of directories, so its access address will contain a long string. For example, the access address is https://abc.com/question/7723419.html. Assuming that the mobile terminal can only be connected to the corporate intranet, and cannot connect to other communication software, and cannot perform the copy operation of the access address, the tester can only manually enter the access address in the browser. Due to the problem of cumbersome operation and high error rate in the way of manually entering the access address, the test efficiency of the website page is reduced.
技术问题technical problem
有鉴于此,本申请实施例提供了一种网站页面的测试方法、装置、终端设备及计算机可读存储介质,以解决现有技术中,因页面访问地址的录入繁琐度高而导致的网站页面的测试效率较为低下的问题。In view of this, the embodiments of the present application provide a method, device, terminal device, and computer-readable storage medium for testing a website page to solve the problem of the cumbersome entry of the page access address in the prior art. The test efficiency is relatively low.
技术解决方案Technical solutions
本申请实施例的第一方面提供了一种网站页面的测试方法,包括:The first aspect of the embodiments of the present application provides a method for testing website pages, including:
控制浏览器加载预设的浏览器插件,并在所述浏览器中展示所述浏览器插件的控件对象;所述浏览器插件用于执行图像扫描识读操作;Control the browser to load a preset browser plug-in, and display the control object of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations;
若检测到用户对所述控件对象发出的选取指令,则生成扫描窗口;并获取所述用户通过所述扫描窗口扫描的与待测试页面的访问地址相关的图像;If a selection instruction issued by the user to the control object is detected, a scan window is generated; and an image related to the access address of the page to be tested scanned by the user through the scan window is acquired;
检测所述图像中包含访问地址的目标区域,并基于所述浏览器插件,解析与所述目标区域相关的所述访问地址;Detecting a target area in the image containing an access address, and analyzing the access address related to the target area based on the browser plug-in;
定位所述浏览器界面中所存在的地址栏控件;Locate the address bar control existing in the browser interface;
将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作。Enter the access address into the address bar control and perform a jump to execute a test operation on the jump page.
有益效果Beneficial effect
本申请实施例中,通过预先加载一个用于执行图像扫描识读操作的浏览器插件,使得原本只能人工输入文本地址信息的浏览器能够被植入图像扫描识读功能;通过接收用户对控件对象发出的选取指令,生成扫描窗口,用户便能够通过该扫描窗口,扫描与待测试页面的访问地址相关的图像,使得浏览器能够提取图像所关联的页面访问地址并自动录入地址栏控件中。该过程中,由于网站页面测试人员无须在浏览器中进行访问地址的人工录入操作,因而降低了操作繁琐度,避免了因人为出错问题而导致访问地址的输入准确率下降,由此也提高了网站页面的测试效率。In this embodiment of the application, by preloading a browser plug-in for performing image scanning and reading operations, browsers that can only manually input text address information can be embedded with image scanning and reading functions; The selection instruction issued by the object generates a scan window, and the user can scan the image related to the access address of the page to be tested through the scan window, so that the browser can extract the page access address associated with the image and automatically enter it into the address bar control. In this process, because the website page testers do not need to manually enter the access address in the browser, the cumbersome operation is reduced, and the accuracy of the access address input caused by human error is avoided, thereby improving Testing efficiency of website pages.
附图说明Description of the drawings
图1是本申请实施例提供的网站页面的测试方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation process of a method for testing a website page provided by an embodiment of the present application;
图2是本申请实施例提供的网站页面的测试方法S104的具体实现流程示意图;FIG. 2 is a schematic diagram of a specific implementation process of the website page testing method S104 provided by an embodiment of the present application;
图3是本申请实施例提供的网站页面的测试方法S104的另一具体实现流程示意图;3 is a schematic diagram of another specific implementation process of the website page testing method S104 provided by an embodiment of the present application;
图4是本申请另一实施例提供的网站页面的测试方法的实现流程示意图;4 is a schematic diagram of the implementation process of a method for testing a website page provided by another embodiment of the present application;
图5是本申请实施例提供的网站页面的测试方法S105的具体实现流程图;FIG. 5 is a specific implementation flowchart of the method S105 for testing a website page provided by an embodiment of the present application;
图6是本申请实施例提供的网站页面的测试装置的结构框图;Fig. 6 is a structural block diagram of a website page testing device provided by an embodiment of the present application;
图7是本申请实施例提供的终端设备的示意图。Fig. 7 is a schematic diagram of a terminal device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the invention
图1示出了本申请实施例提供的网站页面的测试方法的实现流程图,详述如下:Fig. 1 shows the implementation flow chart of the website page testing method provided by the embodiment of the present application, which is detailed as follows:
S101:控制浏览器加载预设的浏览器插件,并在所述浏览器中展示所述浏览器插件的控件对象;所述浏览器插件用于执行图像扫描识读操作。S101: Control the browser to load a preset browser plug-in, and display the control object of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations.
本申请实施例中,根据开发人员输入的开发代码,预先生成一个具有图像扫描识读功能的浏览器插件。对页面测试终端所运行的浏览器,控制该浏览器下载并安装上述浏览器插件。此时,在浏览器界面所展示的菜单栏或选项工具栏中,将生成一个用于标识图像扫描功能的控件对象,以使得用户根据该控件对象,确定当前运行的浏览器是否具备图像扫描识读功能。In the embodiment of the present application, a browser plug-in with image scanning and reading function is generated in advance according to the development code input by the developer. For the browser running on the page test terminal, control the browser to download and install the above-mentioned browser plug-in. At this time, in the menu bar or option toolbar displayed on the browser interface, a control object for identifying the image scanning function will be generated, so that the user can determine whether the currently running browser has image scanning recognition based on the control object. Read function.
具体地,上述浏览器插件的生成过程包括:创建动态链接库文件PIugl.dll;根据开发人员输入的操控指令,将动态链接库文件PIugl.dll与预设的多个代码函数进行绑定。通过将上述动态链接库文件及其绑定的代码函数打包封装为浏览器插件,使得页面测试终端的浏览器下载并安装该浏览器插件后,动态链接库文件能够被存储至预设的插件Plugins子目录之下。Specifically, the generation process of the aforementioned browser plug-in includes: creating a dynamic link library file PIugl.dll; and binding the dynamic link library file PIugl.dll with a plurality of preset code functions according to the manipulation instruction input by the developer. By packaging the above-mentioned dynamic link library file and its bound code function as a browser plug-in, after the browser of the page test terminal downloads and installs the browser plug-in, the dynamic link library file can be stored in the preset plug-in Plugins Under the subdirectory.
其中,上述代码函数包括图像检测函数、预处理函数以及单字识别函数。图像检测函数用于调用运行于页面测试终端上的相机应用程序所捕获得到的各帧图像;预处理函数用于对调用得到的图像进行降噪以及对图像进行文字区域的切分存储;单字识别函数用于对文字区域中的特征点、投影信息以及点区域分布进行识别,并根据识别结果来输出每一文字区域所对应的字符。Among them, the aforementioned code functions include image detection functions, preprocessing functions, and single word recognition functions. The image detection function is used to call each frame of image captured by the camera application running on the page test terminal; the preprocessing function is used to reduce the noise of the called image and segment the image into the text area; single word recognition The function is used to recognize the feature points, projection information and point area distribution in the text area, and output the characters corresponding to each text area according to the recognition results.
本申请实施例中,在浏览器启动时,搜索并检测上述预设的插件Plugins子目录。若检测到插件Plugins子目录中包含非空值,则调用Wia32函数LoadLrbrary,读取子目录中的动态链接库文件,从而实现对上述各个代码函数的调用,并在启用各代码函数的相应功能后,实现对浏览器图像扫描识读功能的植入。In the embodiment of the present application, when the browser is started, the aforementioned preset Plugins subdirectory is searched and detected. If it is detected that the plug-in Plugins subdirectory contains a non-empty value, the Wia32 function LoadLrbrary is called to read the dynamic link library file in the subdirectory, so as to realize the call to the above code functions, and after the corresponding function of each code function is enabled , To realize the implantation of the browser image scanning and reading function.
S102:若检测到用户对所述控件对象发出的选取指令,则生成扫描窗口,并获取所述用户通过所述扫描窗口扫描的图像。S102: If a selection instruction issued by the user to the control object is detected, a scan window is generated, and an image scanned by the user through the scan window is acquired.
当检测到用户对浏览器中的上述控件对象所发出的选取指令时,确定接收到扫描事件触发指令。此时,控制浏览器生成一扫描窗口,并启用页面测试终端所预置的摄像头,以提示用户通过移动该扫描窗口,对待测试页面访问地址所相关的图像进行扫描。其中,摄像头所捕获的画面图像显示于扫描窗口。When a selection instruction sent by the user to the aforementioned control object in the browser is detected, it is determined that a scan event trigger instruction is received. At this time, the browser is controlled to generate a scanning window, and the camera preset in the page testing terminal is activated to prompt the user to scan the image related to the access address of the page to be tested by moving the scanning window. Among them, the screen image captured by the camera is displayed in the scanning window.
本申请实施例中,待测试页面的访问地址具体为用户所需访问测试的页面的URL。与待测试页面访问地址相关的图像可以是包含该URL的图片、文字和/或基于该URL所生成的二维码、条形码等。与待测试页面访问地址相关的图像可以为用户预先制作生成的实物图片,如打印资料上的URL文字信息;也可以是显示于其他终端界面上的电子图片等。In the embodiment of the present application, the access address of the page to be tested is specifically the URL of the page that the user needs to access the test. The image related to the access address of the page to be tested may be a picture, text containing the URL, and/or a QR code, barcode, etc. generated based on the URL. The image related to the access address of the page to be tested can be a physical picture created by the user in advance, such as URL text information on a printed material; it can also be an electronic picture displayed on the interface of other terminals.
S103:检测所述图像中包含访问地址的目标区域,并基于所述浏览器插件,解析与所述目标区域相关的所述访问地址。S103: Detect a target area in the image that contains an access address, and analyze the access address related to the target area based on the browser plug-in.
本申请实施例中,通过浏览器插件的代码逻辑,基于光学字符识别(Optical Character Recognition,OCR)等技术,对扫描窗口中所检测到的图像进行解析处理,以提取出图像所关联的访问地址URL。In the embodiment of this application, the code logic of the browser plug-in is used to analyze and process the image detected in the scanning window based on technologies such as Optical Character Recognition (OCR) to extract the access address associated with the image URL.
例如,通过元素分割算法,对扫描图像进行分割,形成一个个独立的矩形区域。若存在于一文本对应的矩形区域,则将识别得到的每一个文本对象进行依序存储。连续读取已存储的各个文本对象,可输出与待测试页面访问地址对应的字符串。For example, through the element segmentation algorithm, the scanned image is segmented to form independent rectangular regions. If it exists in a rectangular area corresponding to a text, each text object obtained by recognition is sequentially stored. Read each stored text object continuously, and output the character string corresponding to the access address of the page to be tested.
优选地,若输出的字符串为两个以上,则筛选出其中符合预设规则的字符串。所述预设规则例如可以是与URL匹配的正则表达式等。Preferably, if there are more than two character strings output, the character strings that meet the preset rule are filtered out. The preset rule may be, for example, a regular expression matching the URL.
S104:定位所述浏览器界面中所存在的地址栏控件。S104: Locate an address bar control existing in the browser interface.
作为本申请的一个具体实施示例,对于当前运行的浏览器版本,下载该浏览器版本对应的快捷键控制指令集。快捷键控制指令集包含多个快捷键控制指令,上述快捷键控制指令用于触发浏览器执行快捷键所对应的响应事件。本申请实施例中,在快捷键控制指令集中确定出用于定位地址栏控件的快捷键控制指令。As a specific implementation example of the present application, for the currently running browser version, download the shortcut key control instruction set corresponding to the browser version. The shortcut key control instruction set includes multiple shortcut key control instructions, and the aforementioned shortcut key control instructions are used to trigger the browser to execute the response event corresponding to the shortcut key. In the embodiment of the present application, the shortcut key control instruction used to locate the address bar control is determined in the shortcut key control instruction set.
示例性地,对于A版本的浏览器来说,若组合按键“Alt+D”能够用于激活浏览器中的地址栏控件,则确定出的快捷键控制指令为按键“Alt”以及按键“D”的同时选取指令。此时,通过执行该快捷键控制指令,实现将光标定位于浏览器界面中的地址栏。Exemplarily, for a browser of version A, if the combination key "Alt+D" can be used to activate the address bar control in the browser, the determined shortcut key control instruction is the key "Alt" and the key "D" "While selecting instructions. At this time, by executing the shortcut key control instruction, the cursor is positioned on the address bar in the browser interface.
作为本申请的另一具体实施示例,对当前浏览器所加载的显示页面,通过预设的正则表达式,对该显示页面的页面代码进行检测匹配。其中,第二正则表达式表示地址栏控件所匹配的字符串模式。上述地址栏控件例如可以是文本框控件等。若匹配出当前页面代码中存在与正则表达式匹配的控件对象,则将该控件对象识别为地址栏控件,并对该控件对象进行激活。As another specific implementation example of the present application, for the display page loaded by the current browser, the page code of the display page is detected and matched through a preset regular expression. Among them, the second regular expression represents the string pattern matched by the address bar control. The aforementioned address bar control may be, for example, a text box control. If it is matched that there is a control object matching the regular expression in the current page code, the control object is recognized as an address bar control, and the control object is activated.
作为本申请的一个实施例,图2示出了本申请实施例提供的网站页面的测试方法S104的具体实现流程,详述如下:As an embodiment of the present application, FIG. 2 shows the specific implementation process of the website page testing method S104 provided by the embodiment of the present application, which is detailed as follows:
S1041:获取预设的地址栏控件图像,并生成所述地址栏控件图像的第一特征向量。S1041: Obtain a preset address bar control image, and generate a first feature vector of the address bar control image.
对人工预先识别确认的地址栏控件,收集包含该地址栏控件的地址栏控件图像。本申请实施例中,通过预设算法对该地址栏控件图像进行处理,以生成与其对应的第一特征向量。其中,上述预设算法包括但不限于尺度不变特征变换匹配算法、OpenCV算法以及感知哈希算法等。For the manually pre-identified and confirmed address bar control, collect the address bar control image containing the address bar control. In the embodiment of the present application, the address bar control image is processed by a preset algorithm to generate the first feature vector corresponding thereto. Among them, the foregoing preset algorithms include, but are not limited to, the scale-invariant feature transformation matching algorithm, the OpenCV algorithm, and the perceptual hash algorithm.
S1042:将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量。S1042: Divide the browser interface into a plurality of regional images, and respectively generate a second feature vector of each regional image.
本申请实施例中,对当前浏览器界面执行屏幕截取操作,得到截屏图像。通过对截屏图像进行图像分割处理,获取其所对应的多个区域图像。其中,各个区域图像的尺寸大小可以相同也可以不同,其根据当前所使用的图像分割算法来确定。对获取得到的每一个区域图像,记录其中各个区域图像在浏览器界面中的位置分布。例如,记录区域图像的中心点坐标等。In the embodiment of the present application, a screen capture operation is performed on the current browser interface to obtain a screenshot image. By performing image segmentation processing on the screenshot image, the corresponding multiple regional images are obtained. Among them, the size of the images in each area may be the same or different, which is determined according to the image segmentation algorithm currently used. For each area image obtained, record the position distribution of each area image in the browser interface. For example, the coordinates of the center point of the image of the recording area, etc.
利用上述步骤S1041中所提及的预设算法,对每一区域图像进行计算处理,生成各个区域图像所分别对应的第二特征向量。Using the preset algorithm mentioned in step S1041, calculation processing is performed on each area image to generate the second feature vector corresponding to each area image.
S1043:计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像。S1043: Calculate the similarity between the first feature vector and the second feature vector, and determine the region image corresponding to the second feature vector with the highest similarity.
S1044:根据确定出的所述区域图像在所述浏览器界面的位置分布,定位浏览器界面中所存在的地址栏控件。S1044: According to the determined position distribution of the area image on the browser interface, locate the address bar control existing in the browser interface.
对获取得到的每一个第二特征向量,通过余弦相似度算法计算该第二特征向量与第一特征向量的相似度,并选取出其中相似度最高的第二特征向量后,获取与该第二特征向量对应的区域图像。For each second feature vector obtained, the similarity between the second feature vector and the first feature vector is calculated through the cosine similarity algorithm, and the second feature vector with the highest similarity is selected, and the second feature vector is obtained. The region image corresponding to the feature vector.
本申请实施例中,根据预先记录的各个位置分布,读取上述区域图像在浏览器界面中的坐标位置。在浏览器界面中定位该坐标位置所属屏幕区域后,将该屏幕区域确定为地址栏控件所属位置区域。In the embodiment of the present application, the coordinate position of the above-mentioned area image in the browser interface is read according to the pre-recorded position distribution. After locating the screen area to which the coordinate location belongs in the browser interface, determine the screen area as the location area of the address bar control.
优选地,如图3所示,在上述S1043之后,在S1044之前,还包括:Preferably, as shown in FIG. 3, after S1043 and before S1044, the method further includes:
S1045:判断确定出的所述相似度是否大于第一阈值。S1045: Determine whether the determined similarity is greater than a first threshold.
S1046:若所述相似度小于第一阈值,则检测当前浏览器界面是否存在隐藏控件。S1046: If the similarity is less than the first threshold, detect whether there are hidden controls on the current browser interface.
本申请实施例中,对于与第一特征向量具有最大相似度的第二特征向量,判断其相似度的数值是否大于预设的第一阈值。若相似度小于第一阈值,则表示该第二特征向量所对应的区域图像与地址栏控件图像并未存在较高的吻合度,该区域图像中可能不包含地址栏控件。因此,通过预先录入的脚本代码,检测当前浏览器界面是否存在隐藏控件。In the embodiment of the present application, for the second feature vector having the greatest similarity with the first feature vector, it is determined whether the value of the similarity is greater than the preset first threshold. If the similarity is less than the first threshold, it means that the region image corresponding to the second feature vector does not have a high degree of coincidence with the address bar control image, and the region image may not include the address bar control. Therefore, through pre-entered script code, it is detected whether there are hidden controls in the current browser interface.
S1047:若当前所述浏览器界面不存在隐藏控件,则将所述浏览器界面向下滑动第二阈值后,返回执行所述将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量的步骤,直至所述浏览器界面达到可交互页面的边界。S1047: If there are no hidden controls on the browser interface currently, slide the browser interface down by the second threshold, and then return to execute the segmentation of the browser interface into multiple region images, and generate each image separately. The step of the second feature vector of the regional image until the browser interface reaches the boundary of the interactive page.
若当前所述浏览器界面存在隐藏控件,则令隐藏控件重新显示于当前浏览器界面后,返回执行上述步骤S1042至S1044。若当前所述浏览器界面不存在隐藏控件,则通过触发浏览器的界面滑动事件,令浏览器向下滑动预设距离后,再返回执行上述步骤S1042至S1044。其中,若当前浏览器的显示页面到达页面测试终端的用户界面(User Interface,UI)的底部,则表示其无法继续向下滑动,确定当前网站页面不存在显式或隐式的地址栏控件,此时,停止返回上述步骤S1042。If there are hidden controls in the current browser interface, the hidden controls are re-displayed on the current browser interface, and then the steps S1042 to S1044 are executed again. If there are no hidden controls on the current browser interface, the browser's interface sliding event is triggered to cause the browser to slide down a preset distance, and then return to perform the above steps S1042 to S1044. Among them, if the display page of the current browser reaches the user interface of the page test terminal (User Interface, UI) at the bottom, it means that it cannot continue to slide down, and it is determined that there is no explicit or implicit address bar control on the current website page. At this time, stop returning to the above step S1042.
S105:将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作。S105: Input the access address into the address bar control and execute a jump to perform a test operation on the jump page.
本申请实施例中,将上述浏览器插件所解析得到的访问地址输入于当前激活的地址栏控件后,执行页面访问跳转操作,使得浏览器能够加载显示与访问地址对应的后台服务器所返回的网页信息,并实现待测试页面的跳转。在跳转得到网站页面中,用户可根据各测试用例,执行关于该网站页面的功能测试或性能测试操作。In the embodiment of this application, after the access address obtained by the above browser plug-in is input into the currently activated address bar control, the page access jump operation is performed, so that the browser can load and display the backend server corresponding to the access address. Web page information, and realize the jump of the page to be tested. In the redirected website page, the user can perform a functional test or performance test operation on the website page according to each test case.
优选地,在将访问地址输入地址栏控件之后,仅在接收到用户发出的确认指令时,才执行访问地址的跳转操作。Preferably, after the access address is input into the address bar control, the jump operation of the access address is performed only when a confirmation instruction issued by the user is received.
本申请实施例中,通过预先加载一个用于执行图像扫描识读操作的浏览器插件,使得原本只能人工输入文本地址信息的浏览器能够被植入图像扫描识读功能;通过接收用户对控件对象发出的选取指令,生成扫描窗口,用户便能够通过该扫描窗口,扫描与待测试页面的访问地址相关的图像,使得浏览器能够提取图像所关联的页面访问地址并自动录入地址栏控件中。该过程中,由于网站页面测试人员无须在浏览器中进行访问地址的人工录入操作,因而降低了操作繁琐度,避免了因人为出错问题而导致访问地址的输入准确率下降,由此也提高了网站页面的测试效率。In this embodiment of the application, by preloading a browser plug-in for performing image scanning and reading operations, browsers that can only manually input text address information can be embedded with image scanning and reading functions; The selection instruction issued by the object generates a scan window, and the user can scan the image related to the access address of the page to be tested through the scan window, so that the browser can extract the page access address associated with the image and automatically enter it into the address bar control. In this process, because the website page testers do not need to manually enter the access address in the browser, the cumbersome operation is reduced, and the accuracy of the access address input caused by human error is avoided, thereby improving Testing efficiency of website pages.
作为本申请的另一个实施例,如图4所示,在上述S104之后,还包括:As another embodiment of the present application, as shown in FIG. 4, after S104, the method further includes:
S106:若所述浏览器界面中不存在所述地址栏控件,则将解析得到的所述访问地址存储于剪贴板中。S106: If the address bar control does not exist in the browser interface, store the parsed access address in the clipboard.
在跳转至待测试页面之前,由于浏览器所加载的网站页面中,可能会出现地址栏控件不存在的情况,例如,浏览器界面的地址栏被隐藏显示,或者,当前网站页面尚未完全加载完成,因此,在定位浏览器中所存在的地址栏控件时,检测得到的地址栏控件数目可能为零。本申请实施例中,在检测到浏览器界面中不存在地址栏控件时,确定当前用户暂时不需要跳转显示下一网站页面,并将扫描得到的访问地址存入剪贴板,以备后续使用。Before jumping to the page to be tested, the address bar control may not exist in the website page loaded by the browser, for example, the address bar of the browser interface is hidden and displayed, or the current website page has not been fully loaded Complete. Therefore, when locating the address bar controls that exist in the browser, the number of detected address bar controls may be zero. In the embodiment of this application, when it is detected that there is no address bar control in the browser interface, it is determined that the current user does not need to jump to display the next website page temporarily, and the scanned access address is stored in the clipboard for subsequent use .
S107:根据接收到的页面切换指令,对当前时刻的浏览器界面进行切换显示。S107: Switch and display the browser interface at the current moment according to the received page switching instruction.
本申请实施例中,在将访问地址存入剪贴板后,若接收到用户发出的页面切换指令,如检测到用户对将显示界面中的超链接控件进行选取,则将浏览器显示界面从第一页面切换至第二页面后,在当前页面中重新检测并定位地址栏控件。In the embodiment of this application, after the access address is stored in the clipboard, if a page switching instruction issued by the user is received, if it is detected that the user selects the hyperlink control in the display interface, the browser display interface is selected from the first After switching from one page to the second page, re-detect and locate the address bar control in the current page.
S108:在当前时刻的所述浏览器界面中,若接收到用于激活地址栏控件的操控指令,则发出提示信息,所述提示信息用于指示用户确定是否需要粘贴所述剪贴板中的所述访问地址。S108: In the browser interface at the current moment, if a manipulation instruction for activating the address bar control is received, a prompt message is sent, and the prompt message is used to instruct the user to determine whether to paste all the information in the clipboard. The access address.
在当前时刻的浏览器显示界面中,若检测到地址栏控件存在,且接收到用于激活地址栏控件的操控指令,则读取最近一次存储至剪贴板中的访问地址,并将该访问地址输入该地址栏控件中。In the browser display interface at the current moment, if the presence of an address bar control is detected and a manipulation instruction for activating the address bar control is received, the last access address stored in the clipboard is read, and the access address Enter the address bar control.
优选地,在接收到用户对当前浏览器显示界面中的地址栏控件发出激活指令时,先自动发出提示信息,以提示用户是否需要粘贴剪贴板中的访问地址。仅在接收到用户发出的确认信息时,才将访问地址输入于该地址栏控件。Preferably, when receiving an activation instruction from the user to the address bar control in the current browser display interface, a prompt message is automatically sent first to prompt the user whether to paste the access address in the clipboard. Only when the confirmation message sent by the user is received, the access address is input into the address bar control.
本申请实施例中,在浏览器界面中不存在地址栏控件时,通过将解析得到的访问地址存储于剪贴板中,并在对当前时刻的浏览器界面进行切换显示之后,提示用户重新粘贴剪贴板中的访问地址至当前浏览器显示界面的地址栏控件中,保证了即使用户在未包含地址栏控件的页面中启动图像扫描功能,也能对扫描得到的访问地址进行预存储,使得后续再次需要录入访问地址时,可以迅速调用已存在的访问地址,无须再次进行扫描或进行人工输入操作,因此,提高了访问地址的获取效率,由此也提高了网站页面的测试效率。In the embodiment of the present application, when there is no address bar control in the browser interface, the access address obtained by the analysis is stored in the clipboard, and after switching the display of the browser interface at the current moment, the user is prompted to paste the clipboard again The access address in the board is added to the address bar control of the current browser display interface, ensuring that even if the user activates the image scanning function on a page that does not contain the address bar control, the scanned access address can be pre-stored, so that the subsequent When the access address needs to be entered, the existing access address can be quickly called without scanning again or manual input operation. Therefore, the efficiency of obtaining the access address is improved, and thus the testing efficiency of the website page is also improved.
作为本申请的一个实施例,图5示出了本申请实施例提供的网站页面的测试方法S105的具体实现流程,详述如下:As an embodiment of the present application, FIG. 5 shows the specific implementation process of the website page testing method S105 provided by the embodiment of the present application, which is detailed as follows:
S1051:在预先连接的后台服务器中,下载并运行与所述访问地址对应的自动化测试插件。S1051: Download and run the automated test plug-in corresponding to the access address in the pre-connected background server.
S1052:启动所述自动化测试插件的参数设置窗口,展示预置的测试用例以及测试异常条件。S1052: Start the parameter setting window of the automated test plug-in to display preset test cases and test abnormal conditions.
S1053:通过所述自动化测试插件的代码逻辑,在所述跳转页面中执行所述测试用例,并获取对应的页面响应参数。S1053: Using the code logic of the automated test plug-in, execute the test case in the jump page, and obtain corresponding page response parameters.
S1054:根据所述测试异常条件以及所述页面响应参数,输出关于所述跳转页面的测试结果。S1054: According to the test abnormal condition and the page response parameter, output a test result on the jump page.
在跳转得到的待测试页面中,用户可以进行多类功能测试操作,例如,验证网站页面的登录功能是否正常等。本申请实施例中,对一网站页面而言,由于不同的页面功能对应有不同的测试脚本,因此,根据测试人员针对待测试页面所预先制定的功能测试类型,可创建并发布对应该功能测试类型的自动化测试插件。其中,自动化测试插件用于确定测试用例、测试异常条件以及测试正常条件等。In the page to be tested obtained by the jump, the user can perform multiple types of functional testing operations, for example, verifying whether the login function of the website page is normal. In the embodiments of this application, for a website page, different page functions correspond to different test scripts. Therefore, according to the type of function test pre-defined by the tester for the page to be tested, the corresponding function test can be created and published Type of automated test plug-in. Among them, the automated test plug-in is used to determine test cases, test abnormal conditions, and test normal conditions.
示例性地,通过对测试人员的历史测试场景进行录制,可生成上述包含测试用例的自动化测试插件。例如,当测试人员执行“点击文本框控件1,录入账户密码,再点击登录控件”等操作时,对该过程中所涉及的各控件坐标以及操作事件进行检测及录制,生成对应的执行脚本。通过对该执行脚本进行存储,打包并生成自动化测试插件。Exemplarily, by recording historical test scenarios of testers, the above-mentioned automated test plug-in containing test cases can be generated. For example, when the tester performs operations such as "clicking the text box control 1, enter the account password, and then click the login control", the coordinates of the controls and operation events involved in the process are detected and recorded, and the corresponding execution script is generated. By storing the execution script, packaging and generating automated test plug-ins.
将各个目标测试页面的自动化测试插件发布于指定的后台服务器中。Publish the automated test plug-ins for each target test page on the designated backend server.
本申请实施例中,为了提高网页测试效率,根据预存储的网络地址,与上述后台服务器预先建立通讯连接,以下载并运行与访问地址对应的自动化测试插件。In the embodiment of the present application, in order to improve the efficiency of web page testing, a communication connection is established in advance with the aforementioned background server according to the pre-stored network address to download and run the automated test plug-in corresponding to the access address.
在加载自动化测试插件时,启动自动化测试插件的参数设置窗口。其中,参数设置窗口用于接收用户所自定义更改的各项测试参数。初始状态下,在参数设置窗口中对预存储的测试用例以及测试异常条件进行展示,以使用户获知当前时刻待测试页面所处的测试环境。其中,测试异常条件表示在测试用例的执行过程中,页面出现测试异常时所可能返回的各项测试参数。When loading the automated test plug-in, start the parameter setting window of the automated test plug-in. Among them, the parameter setting window is used to receive various test parameters customized and changed by the user. In the initial state, the pre-stored test cases and test abnormal conditions are displayed in the parameter setting window, so that the user knows the test environment of the page to be tested at the current moment. Among them, the test abnormal conditions represent various test parameters that may be returned when a test abnormality occurs on the page during the execution of the test case.
当页面测试事件被触发时,通过当前自动化测试插件的代码逻辑,在待测试页面中执行参数设置窗口所展示的测试用例,并获取对应的页面响应参数。When a page test event is triggered, through the code logic of the current automated test plug-in, the test case displayed in the parameter setting window is executed on the page to be tested, and the corresponding page response parameters are obtained.
若页面响应参数与各项测试异常条件均不匹配,则表示当前网站页面功能测试正常;若页面响应参数与测试异常条件匹配,则表示当前网站页面存在功能异常的情况,因此,输出异常测试结果,并在测试结果中展示异常原因以及当前测试用例所关联的测试参数。If the page response parameters do not match the test abnormal conditions, it means that the current website page function test is normal; if the page response parameters match the test abnormal conditions, it means the current website page has a function abnormality, so the abnormal test result is output , And display the abnormal reason and the test parameters associated with the current test case in the test results.
本申请实施例中,通过令浏览器下载并启动与访问地址对应的自动化测试插件,使得浏览器能够根据该自动化测试插件来执行页面功能的自动化测试,避免用户每次都需要在各个网站页面中执行人工测试操作,故提高了页面测试效率。In the embodiment of this application, by making the browser download and start the automated test plug-in corresponding to the access address, the browser can execute the automated test of page functions according to the automated test plug-in, avoiding the need for the user to log in each website page every time Perform manual testing operations, so the page testing efficiency is improved.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
对应于上文实施例的方法,图6示出了本申请实施例提供的网站页面的测试装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。图6示例的网站页面的测试装置可以是前述实施例提供的网站页面的测试方法的执行主体。Corresponding to the method of the above embodiment, FIG. 6 shows a structural block diagram of a testing device for a website page provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown. The website page testing device illustrated in FIG. 6 may be the execution body of the website page testing method provided in the foregoing embodiment.
参照图6,该网站页面的测试装置包括:Referring to Figure 6, the testing device for the website page includes:
加载单元61,用于控制浏览器加载预设的浏览器插件,并在所述浏览器中展示所述浏览器插件的控件对象;所述浏览器插件用于执行图像扫描识读操作。The loading unit 61 is configured to control the browser to load a preset browser plug-in, and display control objects of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations.
扫描单元62,用于若检测到用户对所述控件对象发出的选取指令,则生成扫描窗口,并获取所述用户通过所述扫描窗口扫描的图像;。The scanning unit 62 is configured to generate a scanning window if a selection instruction issued by a user to the control object is detected, and obtain an image scanned by the user through the scanning window;
解析单元63,用于检测所述图像中包含访问地址的目标区域,并基于所述浏览器插件,解析与所述目标区域相关的所述访问地址。The parsing unit 63 is configured to detect a target area containing an access address in the image, and analyze the access address related to the target area based on the browser plug-in.
定位单元64,用于定位所述浏览器界面中所存在的地址栏控件。The locating unit 64 is used to locate the address bar control existing in the browser interface.
输入单元65,用于将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作。The input unit 65 is configured to input the access address into the address bar control and perform a jump, so as to perform a test operation on the jump page.
可选地,上述网站页面的测试装置还包括:Optionally, the testing device for the aforementioned website page further includes:
存储单元,用于若所述浏览器界面中不存在所述地址栏控件,则将解析得到的所述访问地址存储于剪贴板中。The storage unit is configured to store the parsed access address in the clipboard if the address bar control does not exist in the browser interface.
切换单元,用于根据接收到的页面切换指令,对当前时刻的浏览器界面进行切换显示。The switching unit is configured to switch and display the browser interface at the current moment according to the received page switching instruction.
提示单元,用于在当前时刻的所述浏览器界面中,若接收到用于激活地址栏控件的操控指令,则发出提示信息,所述提示信息用于指示用户确定是否需要粘贴所述剪贴板中的所述访问地址。The prompt unit is configured to send out prompt information if a manipulation instruction for activating the address bar control is received in the browser interface at the current moment, and the prompt information is used to instruct the user to determine whether to paste the clipboard The access address in.
可选地,所述输入单元65包括:Optionally, the input unit 65 includes:
下载子单元,用于在预先连接的后台服务器中,下载并运行与所述访问地址对应的自动化测试插件。The downloading subunit is used to download and run the automated test plug-in corresponding to the access address in the pre-connected background server.
展示子单元,用于启动所述自动化测试插件的参数设置窗口,展示预置的测试用例以及测试异常条件。The display subunit is used to start the parameter setting window of the automated test plug-in, and display preset test cases and test abnormal conditions.
测试子单元,用于通过所述自动化测试插件的代码逻辑,在所述跳转页面中执行所述测试用例,并获取对应的页面响应参数。The test subunit is used to execute the test case in the jump page through the code logic of the automated test plug-in, and obtain corresponding page response parameters.
输出子单元,用于根据所述测试异常条件以及所述页面响应参数,输出关于所述跳转页面的测试结果。The output subunit is configured to output the test result of the jump page according to the test abnormal condition and the page response parameter.
可选地,所述定位单元64包括:Optionally, the positioning unit 64 includes:
获取子单元,用于获取预设的地址栏控件图像,并生成所述地址栏控件图像的第一特征向量。The obtaining subunit is used to obtain a preset address bar control image and generate a first feature vector of the address bar control image.
分割子单元,用于将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量。The segmentation subunit is used to segment the browser interface into a plurality of regional images, and respectively generate a second feature vector of each regional image.
计算子单元,用于计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像。The calculation subunit is configured to calculate the similarity between the first feature vector and the second feature vector, and determine the region image corresponding to the second feature vector with the highest similarity.
定位子单元,用于根据确定出的所述区域图像在所述浏览器界面的位置分布,定位浏览器界面中所存在的地址栏控件。The positioning subunit is used to locate the address bar control existing in the browser interface according to the determined position distribution of the area image on the browser interface.
可选地,所述定位单元64还包括:Optionally, the positioning unit 64 further includes:
判断子单元,用于判断确定出的所述相似度是否大于第一阈值。The judging subunit is used to judge whether the determined similarity is greater than a first threshold.
检测子单元,用于若所述相似度小于第一阈值,则检测当前浏览器界面是否存在隐藏控件。The detection subunit is configured to detect whether there are hidden controls in the current browser interface if the similarity is less than the first threshold.
返回子单元,用于若当前所述浏览器界面不存在隐藏控件,则将所述浏览器界面向下滑动第二阈值后,返回执行所述将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量的步骤,直至所述浏览器界面达到可交互页面的边界。The return subunit is configured to, if there are no hidden controls on the browser interface, slide the browser interface down by a second threshold, and then return to execute the segmentation of the browser interface into multiple region images, The step of separately generating the second feature vector of each of the regional images until the browser interface reaches the boundary of the interactive page.
本申请实施例中,通过预先加载一个用于执行图像扫描识读操作的浏览器插件,使得原本只能人工输入文本地址信息的浏览器能够被植入图像扫描识读功能;通过接收用户对控件对象发出的选取指令,生成扫描窗口,用户便能够通过该扫描窗口,扫描与待测试页面的访问地址相关的图像,使得浏览器能够提取图像所关联的页面访问地址并自动录入地址栏控件中。该过程中,由于网站页面测试人员无须在浏览器中进行访问地址的人工录入操作,因而降低了操作繁琐度,避免了因人为出错问题而导致访问地址的输入准确率下降,由此也提高了网站页面的测试效率。In this embodiment of the application, by preloading a browser plug-in for performing image scanning and reading operations, browsers that can only manually input text address information can be embedded with image scanning and reading functions; The selection instruction issued by the object generates a scan window, and the user can scan the image related to the access address of the page to be tested through the scan window, so that the browser can extract the page access address associated with the image and automatically enter it into the address bar control. In this process, because the website page testers do not need to manually enter the access address in the browser, the cumbersome operation is reduced, and the accuracy of the access address input caused by human error is avoided, thereby improving Testing efficiency of website pages.
图7是本申请一实施例提供的终端设备的示意图。如图7所示,该实施例的终端设备7包括:处理器70以及存储器71,所述存储器71中存储有可在所述处理器70上运行的计算机可读指令72。所述处理器70执行所述计算机可读指令72时实现上述各个网站页面的测试方法实施例中的步骤,例如图1所示的步骤101至105。或者,所述处理器70执行所述计算机可读指令72时实现上述各装置实施例中各模块/单元的功能,例如图6所示单元61至65的功能。Fig. 7 is a schematic diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 7, the terminal device 7 of this embodiment includes a processor 70 and a memory 71. The memory 71 stores computer-readable instructions 72 that can run on the processor 70. When the processor 70 executes the computer-readable instructions 72, the steps in the above-mentioned method for testing each website page are implemented, such as steps 101 to 105 shown in FIG. 1. Alternatively, when the processor 70 executes the computer-readable instructions 72, the functions of the modules/units in the foregoing device embodiments, such as the functions of the units 61 to 65 shown in FIG. 6, are realized.
所述终端设备7可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器70、存储器71。本领域技术人员可以理解,图7仅仅是终端设备7的示例,并不构成对终端设备7的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入发送设备、网络接入设备、总线等。The terminal device 7 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art can understand that FIG. 7 is only an example of the terminal device 7 and does not constitute a limitation on the terminal device 7. It may include more or less components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include an input sending device, a network access device, a bus, and the like.
所称处理器70可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 70 may be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器71可以是所述终端设备7的内部存储单元,例如终端设备7的硬盘或内存。所述存储器71也可以是所述终端设备7的外部存储设备,例如所述终端设备7上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器71还可以既包括所述终端设备7的内部存储单元也包括外部存储设备。所述存储器71用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器71还可以用于暂时地存储已经发送或者将要发送的数据。The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) equipped on the terminal device 7. Card, Flash Card, etc. Further, the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device. The memory 71 is used to store the computer-readable instructions and other programs and data required by the terminal device. The memory 71 can also be used to temporarily store data that has been sent or will be sent.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, this application implements all or part of the procedures in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. Here, when the computer-readable instruction is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer-readable instruction includes computer-readable instruction code, and the computer-readable instruction code may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrical carrier signal, telecommunications signal, and software distribution media.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机非易失性可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile computer. In a readable storage medium, when the computer-readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使对应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种网站页面的测试方法,其特征在于,包括:A method for testing website pages, which is characterized in that it includes:
    控制浏览器加载预设的浏览器插件,并在所述浏览器中展示所述浏览器插件的控件对象;所述浏览器插件用于执行图像扫描识读操作;Control the browser to load a preset browser plug-in, and display the control object of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations;
    若检测到用户对所述控件对象发出的选取指令,则生成扫描窗口,并获取所述用户通过所述扫描窗口扫描的与待测试页面的访问地址相关的图像;If a selection instruction issued by the user to the control object is detected, a scan window is generated, and an image related to the access address of the page to be tested scanned by the user through the scan window is acquired;
    检测所述图像中包含访问地址的目标区域,并基于所述浏览器插件,解析与所述目标区域相关的所述访问地址;Detecting a target area in the image containing an access address, and analyzing the access address related to the target area based on the browser plug-in;
    定位所述浏览器界面中所存在的地址栏控件;Locate the address bar control existing in the browser interface;
    将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作。Enter the access address into the address bar control and perform a jump to execute a test operation on the jump page.
  2. 如权利要求1所述的网站页面的测试方法,其特征在于,在所述定位所述浏览器界面中所存在的地址栏控件之后,还包括:The method for testing a website page according to claim 1, wherein after the locating the address bar control existing in the browser interface, the method further comprises:
    若所述浏览器界面中不存在所述地址栏控件,则将解析得到的所述访问地址存储于剪贴板中;If the address bar control does not exist in the browser interface, storing the parsed access address in the clipboard;
    根据接收到的页面切换指令,对当前时刻的浏览器界面进行切换显示;According to the received page switching instruction, switch and display the browser interface at the current moment;
    在当前时刻的所述浏览器界面中,若接收到用于激活地址栏控件的操控指令,则发出提示信息,所述提示信息用于指示用户确定是否需要粘贴所述剪贴板中的所述访问地址。In the browser interface at the current moment, if a manipulation instruction for activating the address bar control is received, a prompt message is issued, and the prompt message is used to instruct the user to determine whether to paste the access in the clipboard address.
  3. 如权利要求1所述的网站页面的测试方法,其特征在于,所述将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作,包括:The method for testing a website page according to claim 1, wherein the inputting the access address into the address bar control and executing a jump to perform a test operation on the jump page comprises:
    在预先连接的后台服务器中,下载并运行与所述访问地址对应的自动化测试插件;In the pre-connected background server, download and run the automated test plug-in corresponding to the access address;
    启动所述自动化测试插件的参数设置窗口,展示预置的测试用例以及测试异常条件;Start the parameter setting window of the automated test plug-in to display preset test cases and test abnormal conditions;
    通过所述自动化测试插件的代码逻辑,在所述跳转页面中执行所述测试用例,并获取对应的页面响应参数;Execute the test case in the jump page through the code logic of the automated test plug-in, and obtain corresponding page response parameters;
    根据所述测试异常条件以及所述页面响应参数,输出关于所述跳转页面的测试结果。According to the test abnormal condition and the page response parameter, output the test result on the jump page.
  4. 如权利要求2所述的网站页面的测试方法,其特征在于,所述定位所述浏览器界面中所存在的地址栏控件,包括:The method for testing a website page according to claim 2, wherein the locating the address bar control existing in the browser interface comprises:
    获取预设的地址栏控件图像,并生成所述地址栏控件图像的第一特征向量;Acquiring a preset address bar control image, and generating a first feature vector of the address bar control image;
    将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量;Dividing the browser interface into a plurality of regional images, and respectively generating a second feature vector of each of the regional images;
    计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像;Calculating the similarity between the first feature vector and the second feature vector, and determining the region image corresponding to the second feature vector with the highest similarity;
    根据确定出的所述区域图像在所述浏览器界面的位置分布,定位浏览器界面中所存在的地址栏控件。According to the determined location distribution of the region image on the browser interface, the address bar control existing in the browser interface is located.
  5. 如权利要求4所述的网站页面的测试方法,其特征在于,在所述计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像之后,还包括:The method for testing a website page according to claim 4, wherein in said calculating the similarity between the first feature vector and the second feature vector, the second feature with the highest similarity is determined After the region image corresponding to the vector, it further includes:
    判断确定出的所述相似度是否大于第一阈值;Judging whether the determined similarity is greater than a first threshold;
    若所述相似度小于第一阈值,则检测当前浏览器界面是否存在隐藏控件;If the similarity is less than the first threshold, detecting whether there are hidden controls in the current browser interface;
    若当前所述浏览器界面不存在隐藏控件,则将所述浏览器界面向下滑动第二阈值后,返回执行所述将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量的步骤,直至所述浏览器界面达到可交互页面的边界。If there are no hidden controls on the browser interface, after sliding the browser interface down by the second threshold, return to the execution of the segmentation of the browser interface into multiple regional images, and generate each of the The step of the second feature vector of the regional image until the browser interface reaches the boundary of the interactive page.
  6. 一种网站页面的测试装置,其特征在于,包括:A testing device for website pages is characterized in that it comprises:
    加载单元,用于控制浏览器加载预设的浏览器插件,并在所述浏览器中展示所述浏览器插件的控件对象;所述浏览器插件用于执行图像扫描识读操作;The loading unit is configured to control the browser to load a preset browser plug-in and display the control object of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations;
    扫描单元,用于若检测到用户对所述控件对象发出的选取指令,则生成扫描窗口,并获取所述用户通过所述扫描窗口扫描的图像;A scanning unit, configured to generate a scan window if a selection instruction issued by a user to the control object is detected, and obtain an image scanned by the user through the scan window;
    解析单元,用于检测所述图像中包含访问地址的目标区域,并基于所述浏览器插件,解析与所述目标区域相关的所述访问地址;A parsing unit, configured to detect a target area containing an access address in the image, and analyze the access address related to the target area based on the browser plug-in;
    定位单元,用于定位所述浏览器界面中所存在的地址栏控件;The positioning unit is used to locate the address bar control existing in the browser interface;
    输入单元,用于将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作。The input unit is used to input the access address into the address bar control and perform a jump, so as to perform a test operation on the jump page.
  7. 如权利要求6所述的网站页面的测试装置,其特征在于,还包括:8. The website page testing device according to claim 6, further comprising:
    存储单元,用于若所述浏览器界面中不存在所述地址栏控件,则将解析得到的所述访问地址存储于剪贴板中;A storage unit, configured to store the parsed access address in the clipboard if the address bar control does not exist in the browser interface;
    切换单元,用于根据接收到的页面切换指令,对当前时刻的浏览器界面进行切换显示;The switching unit is used to switch and display the browser interface at the current moment according to the received page switching instruction;
    提示单元,用于在当前时刻的所述浏览器界面中,若接收到用于激活地址栏控件的操控指令,则发出提示信息,所述提示信息用于指示用户确定是否需要粘贴所述剪贴板中的所述访问地址。The prompt unit is configured to send out prompt information if a manipulation instruction for activating the address bar control is received in the browser interface at the current moment, and the prompt information is used to instruct the user to determine whether to paste the clipboard The access address in.
  8. 如权利要求6所述的网站页面的测试装置,其特征在于,所述输入单元包括:8. The website page testing device according to claim 6, wherein the input unit comprises:
    下载子单元,用于在预先连接的后台服务器中,下载并运行与所述访问地址对应的自动化测试插件;The downloading subunit is used to download and run the automated test plug-in corresponding to the access address in the pre-connected background server;
    展示子单元,用于启动所述自动化测试插件的参数设置窗口,展示预置的测试用例以及测试异常条件;The display subunit is used to start the parameter setting window of the automated test plug-in, and display preset test cases and test abnormal conditions;
    测试子单元,用于通过所述自动化测试插件的代码逻辑,在所述跳转页面中执行所述测试用例,并获取对应的页面响应参数;The test subunit is used to execute the test case in the jump page through the code logic of the automated test plug-in, and obtain corresponding page response parameters;
    输出子单元,用于根据所述测试异常条件以及所述页面响应参数,输出关于所述跳转页面的测试结果。The output subunit is configured to output the test result of the jump page according to the test abnormal condition and the page response parameter.
  9. 根据权利要求7所述的网站页面的测试装置,其特征在于,所述定位单元包括:8. The website page testing device according to claim 7, wherein the positioning unit comprises:
    获取子单元,用于获取预设的地址栏控件图像,并生成所述地址栏控件图像的第一特征向量。The obtaining subunit is used to obtain a preset address bar control image and generate a first feature vector of the address bar control image.
    分割子单元,用于将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量。The segmentation subunit is used to segment the browser interface into a plurality of regional images, and respectively generate a second feature vector of each regional image.
    计算子单元,用于计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像。The calculation subunit is configured to calculate the similarity between the first feature vector and the second feature vector, and determine the region image corresponding to the second feature vector with the highest similarity.
    定位子单元,用于根据确定出的所述区域图像在所述浏览器界面的位置分布,定位浏览器界面中所存在的地址栏控件。The positioning subunit is used to locate the address bar control existing in the browser interface according to the determined position distribution of the area image on the browser interface.
  10. 根据权利要求9所述的网站页面的测试装置,其特征在于,所述定位单元还包括:The testing device for website pages according to claim 9, wherein the positioning unit further comprises:
    判断子单元,用于判断确定出的所述相似度是否大于第一阈值。The judging subunit is used to judge whether the determined similarity is greater than a first threshold.
    检测子单元,用于若所述相似度小于第一阈值,则检测当前浏览器界面是否存在隐藏控件。The detection subunit is configured to detect whether there are hidden controls in the current browser interface if the similarity is less than the first threshold.
    返回子单元,用于若当前所述浏览器界面不存在隐藏控件,则将所述浏览器界面向下滑动第二阈值后,返回执行所述将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量的步骤,直至所述浏览器界面达到可交互页面的边界。The return subunit is configured to, if there are no hidden controls on the browser interface, slide the browser interface down by a second threshold, and then return to execute the segmentation of the browser interface into multiple region images, The step of separately generating the second feature vector of each of the regional images until the browser interface reaches the boundary of the interactive page.
  11. 一种终端设备,其特征在于,所述终端设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时执行以下步骤:A terminal device, characterized in that, the terminal device includes a memory, a processor, and computer-readable instructions stored in the memory and running on the processor, and the processor executes the computer-readable instructions. Perform the following steps when ordering:
    控制浏览器加载预设的浏览器插件,并在所述浏览器中展示所述浏览器插件的控件对象;所述浏览器插件用于执行图像扫描识读操作;Control the browser to load a preset browser plug-in, and display the control object of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations;
    若检测到用户对所述控件对象发出的选取指令,则生成扫描窗口,并获取所述用户通过所述扫描窗口扫描的与待测试页面的访问地址相关的图像;If a selection instruction issued by the user to the control object is detected, a scan window is generated, and an image related to the access address of the page to be tested scanned by the user through the scan window is acquired;
    检测所述图像中包含访问地址的目标区域,并基于所述浏览器插件,解析与所述目标区域相关的所述访问地址;Detecting a target area in the image containing an access address, and analyzing the access address related to the target area based on the browser plug-in;
    定位所述浏览器界面中所存在的地址栏控件;Locate the address bar control existing in the browser interface;
    将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作。Enter the access address into the address bar control and perform a jump to execute a test operation on the jump page.
  12. 根据权利要求11所述的终端设备,其特征在于,在所述定位所述浏览器界面中所存在的地址栏控件之后,所述计算机可读指令被处理器执行时还实现如下步骤:The terminal device according to claim 11, wherein after the locating the address bar control existing in the browser interface, the following steps are further implemented when the computer-readable instruction is executed by the processor:
    若所述浏览器界面中不存在所述地址栏控件,则将解析得到的所述访问地址存储于剪贴板中;If the address bar control does not exist in the browser interface, storing the parsed access address in the clipboard;
    根据接收到的页面切换指令,对当前时刻的浏览器界面进行切换显示;According to the received page switching instruction, switch and display the browser interface at the current moment;
    在当前时刻的所述浏览器界面中,若接收到用于激活地址栏控件的操控指令,则发出提示信息,所述提示信息用于指示用户确定是否需要粘贴所述剪贴板中的所述访问地址。In the browser interface at the current moment, if a manipulation instruction for activating the address bar control is received, a prompt message is issued, and the prompt message is used to instruct the user to determine whether to paste the access in the clipboard address.
  13. 根据权利要求11所述的中的终端设备,其特征在于,所述将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作,包括:The terminal device according to claim 11, wherein the inputting the access address into the address bar control and executing a jump to perform a test operation on the jump page comprises:
    在预先连接的后台服务器中,下载并运行与所述访问地址对应的自动化测试插件;In the pre-connected background server, download and run the automated test plug-in corresponding to the access address;
    启动所述自动化测试插件的参数设置窗口,展示预置的测试用例以及测试异常条件;Start the parameter setting window of the automated test plug-in to display preset test cases and test abnormal conditions;
    通过所述自动化测试插件的代码逻辑,在所述跳转页面中执行所述测试用例,并获取对应的页面响应参数;Execute the test case in the jump page through the code logic of the automated test plug-in, and obtain corresponding page response parameters;
    根据所述测试异常条件以及所述页面响应参数,输出关于所述跳转页面的测试结果。According to the test abnormal condition and the page response parameter, output the test result on the jump page.
  14. 根据权利要求12所述的终端设备,其特征在于,所述定位所述浏览器界面中所存在的地址栏控件,包括:The terminal device according to claim 12, wherein the locating the address bar control existing in the browser interface comprises:
    获取预设的地址栏控件图像,并生成所述地址栏控件图像的第一特征向量;Acquiring a preset address bar control image, and generating a first feature vector of the address bar control image;
    将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量;Dividing the browser interface into a plurality of regional images, and respectively generating a second feature vector of each of the regional images;
    计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像;Calculating the similarity between the first feature vector and the second feature vector, and determining the region image corresponding to the second feature vector with the highest similarity;
    根据确定出的所述区域图像在所述浏览器界面的位置分布,定位浏览器界面中所存在的地址栏控件。According to the determined location distribution of the region image on the browser interface, the address bar control existing in the browser interface is located.
  15. 根据权利要求14所述的终端设备,其特征在于,在所述计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像之后,所述计算机可读指令被处理器执行时还实现如下步骤:The terminal device according to claim 14, wherein in the calculating the similarity between the first feature vector and the second feature vector, it is determined that the second feature vector with the highest similarity corresponds to After the image of the area, when the computer-readable instructions are executed by the processor, the following steps are also implemented:
    判断确定出的所述相似度是否大于第一阈值;Judging whether the determined similarity is greater than a first threshold;
    若所述相似度小于第一阈值,则检测当前浏览器界面是否存在隐藏控件;If the similarity is less than the first threshold, detecting whether there are hidden controls in the current browser interface;
    若当前所述浏览器界面不存在隐藏控件,则将所述浏览器界面向下滑动第二阈值后,返回执行所述将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量的步骤,直至所述浏览器界面达到可交互页面的边界。If there are no hidden controls on the browser interface, after sliding the browser interface down by the second threshold, return to the execution of the segmentation of the browser interface into multiple regional images, and generate each of the The step of the second feature vector of the regional image until the browser interface reaches the boundary of the interactive page.
  16. 一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer non-volatile readable storage medium, the computer non-volatile readable storage medium storing computer readable instructions, wherein the computer readable instructions are executed by a processor to implement the following steps:
    控制浏览器加载预设的浏览器插件,并在所述浏览器中展示所述浏览器插件的控件对象;所述浏览器插件用于执行图像扫描识读操作;Control the browser to load a preset browser plug-in, and display the control object of the browser plug-in in the browser; the browser plug-in is used to perform image scanning and reading operations;
    若检测到用户对所述控件对象发出的选取指令,则生成扫描窗口,并获取所述用户通过所述扫描窗口扫描的与待测试页面的访问地址相关的图像;If a selection instruction issued by the user to the control object is detected, a scan window is generated, and an image related to the access address of the page to be tested scanned by the user through the scan window is acquired;
    检测所述图像中包含访问地址的目标区域,并基于所述浏览器插件,解析与所述目标区域相关的所述访问地址;Detecting a target area in the image containing an access address, and analyzing the access address related to the target area based on the browser plug-in;
    定位所述浏览器界面中所存在的地址栏控件;Locate the address bar control existing in the browser interface;
    将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作。Enter the access address into the address bar control and perform a jump to execute a test operation on the jump page.
  17. 根据权利要求16所述的计算机非易失性可读存储介质,其特征在于,在所述定位所述浏览器界面中所存在的地址栏控件之后,所述计算机可读指令被处理器执行时还实现如下步骤:The computer non-volatile readable storage medium according to claim 16, wherein, after the address bar control existing in the browser interface is located, the computer readable instruction is executed by the processor Also implement the following steps:
    若所述浏览器界面中不存在所述地址栏控件,则将解析得到的所述访问地址存储于剪贴板中;If the address bar control does not exist in the browser interface, storing the parsed access address in the clipboard;
    根据接收到的页面切换指令,对当前时刻的浏览器界面进行切换显示;According to the received page switching instruction, switch and display the browser interface at the current moment;
    在当前时刻的所述浏览器界面中,若接收到用于激活地址栏控件的操控指令,则发出提示信息,所述提示信息用于指示用户确定是否需要粘贴所述剪贴板中的所述访问地址。In the browser interface at the current moment, if a manipulation instruction for activating the address bar control is received, a prompt message is issued, and the prompt message is used to instruct the user to determine whether to paste the access in the clipboard address.
  18. 根据权利要求16所述的计算机非易失性可读存储介质,其特征在于,所述将所述访问地址输入所述地址栏控件并执行跳转,以执行关于跳转页面的测试操作,包括:The computer non-volatile readable storage medium according to claim 16, wherein the inputting the access address into the address bar control and executing a jump to perform a test operation on the jump page comprises :
    在预先连接的后台服务器中,下载并运行与所述访问地址对应的自动化测试插件;In the pre-connected background server, download and run the automated test plug-in corresponding to the access address;
    启动所述自动化测试插件的参数设置窗口,展示预置的测试用例以及测试异常条件;Start the parameter setting window of the automated test plug-in to display preset test cases and test abnormal conditions;
    通过所述自动化测试插件的代码逻辑,在所述跳转页面中执行所述测试用例,并获取对应的页面响应参数;Execute the test case in the jump page through the code logic of the automated test plug-in, and obtain corresponding page response parameters;
    根据所述测试异常条件以及所述页面响应参数,输出关于所述跳转页面的测试结果。According to the test abnormal condition and the page response parameter, output the test result on the jump page.
  19. 根据权利要求17所述的计算机非易失性可读存储介质,其特征在于,所述定位所述浏览器界面中所存在的地址栏控件,包括:The computer non-volatile readable storage medium according to claim 17, wherein the locating the address bar control existing in the browser interface comprises:
    获取预设的地址栏控件图像,并生成所述地址栏控件图像的第一特征向量;Acquiring a preset address bar control image, and generating a first feature vector of the address bar control image;
    将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量;Dividing the browser interface into a plurality of regional images, and respectively generating a second feature vector of each of the regional images;
    计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像;Calculating the similarity between the first feature vector and the second feature vector, and determining the region image corresponding to the second feature vector with the highest similarity;
    根据确定出的所述区域图像在所述浏览器界面的位置分布,定位浏览器界面中所存在的地址栏控件。According to the determined location distribution of the region image on the browser interface, the address bar control existing in the browser interface is located.
  20. 如权利要求19所述的计算机非易失性可读存储介质,其特征在于,在所述计算所述第一特征向量以及所述第二特征向量的相似度,确定所述相似度最高的所述第二特征向量所对应的所述区域图像之后,所述计算机可读指令被处理器执行时还实现如下步骤:The computer non-volatile readable storage medium according to claim 19, wherein, in said calculating the similarity between the first feature vector and the second feature vector, the one with the highest similarity is determined After the region image corresponding to the second feature vector, when the computer-readable instructions are executed by the processor, the following steps are further implemented:
    判断确定出的所述相似度是否大于第一阈值;Judging whether the determined similarity is greater than a first threshold;
    若所述相似度小于第一阈值,则检测当前浏览器界面是否存在隐藏控件;If the similarity is less than the first threshold, detecting whether there are hidden controls in the current browser interface;
    若当前所述浏览器界面不存在隐藏控件,则将所述浏览器界面向下滑动第二阈值后,返回执行所述将所述浏览器界面分割成多个区域图像,分别生成每一所述区域图像的第二特征向量的步骤,直至所述浏览器界面达到可交互页面的边界。If there are no hidden controls on the browser interface, after sliding the browser interface down by the second threshold, return to the execution of the segmentation of the browser interface into multiple regional images, and generate each of the The step of the second feature vector of the regional image until the browser interface reaches the boundary of the interactive page.
PCT/CN2019/118568 2019-06-14 2019-11-14 Website page test method and apparatus, and terminal device and medium WO2020248505A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910517948.7A CN110377500A (en) 2019-06-14 2019-06-14 Test method, device, terminal device and the medium of Website page
CN201910517948.7 2019-06-14

Publications (1)

Publication Number Publication Date
WO2020248505A1 true WO2020248505A1 (en) 2020-12-17

Family

ID=68248829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118568 WO2020248505A1 (en) 2019-06-14 2019-11-14 Website page test method and apparatus, and terminal device and medium

Country Status (2)

Country Link
CN (1) CN110377500A (en)
WO (1) WO2020248505A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377500A (en) * 2019-06-14 2019-10-25 平安科技(深圳)有限公司 Test method, device, terminal device and the medium of Website page
CN111104308A (en) * 2019-11-12 2020-05-05 贝壳技术有限公司 Display page testing method and device, storage medium and electronic equipment
CN111026648A (en) * 2019-11-21 2020-04-17 汉海信息技术(上海)有限公司 Application program page testing method and device, electronic equipment and storage medium
CN111130845B (en) * 2019-11-25 2021-04-30 北京邮电大学 Method and device for testing IPv6 support degree of website page based on visual information
CN112925965A (en) * 2019-12-05 2021-06-08 贵州白山云科技股份有限公司 Method, device, equipment and medium for identifying website plug-in
CN113495838B (en) * 2020-04-08 2024-01-09 阿里巴巴集团控股有限公司 Page testing method and device
CN112000443A (en) * 2020-09-14 2020-11-27 支付宝(杭州)信息技术有限公司 Service data processing method and device and electronic equipment
CN112231213A (en) * 2020-10-16 2021-01-15 广州助蜂网络科技有限公司 Web automatic testing method, system, storage medium and terminal equipment
CN114385477A (en) * 2020-10-21 2022-04-22 腾讯科技(深圳)有限公司 Application interface testing method, system, storage medium and terminal equipment
CN112346970B (en) * 2020-10-30 2023-06-06 长沙市到家悠享网络科技有限公司 Method, device and storage medium for testing installation-free application code
CN112506778A (en) * 2020-12-10 2021-03-16 北京云测信息技术有限公司 WEB user interface automatic test method, device, equipment and storage medium
CN112732957A (en) * 2021-01-13 2021-04-30 北京字节跳动网络技术有限公司 Interaction method, interaction device, electronic equipment and computer-readable storage medium
CN113254338B (en) * 2021-05-25 2023-01-24 深圳前海微众银行股份有限公司 Test case generation method, device and equipment
CN113791723A (en) * 2021-09-23 2021-12-14 苏州美能华智能科技有限公司 Data entry method, device and storage medium
CN114880613B (en) * 2022-05-12 2024-03-22 苏州轻棹科技有限公司 Image playing processing method
CN114969610A (en) * 2022-06-21 2022-08-30 中银金融科技有限公司 Page processing method and device
CN117609104A (en) * 2024-01-24 2024-02-27 盛威时代科技股份有限公司 Page exception processing method, system and equipment in client test process

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334790A (en) * 2007-06-29 2008-12-31 Nhn公司 Method and system for controlling browser by using image
CN102306167A (en) * 2011-08-22 2012-01-04 盛乐信息技术(上海)有限公司 Recording method and system based on mobile handheld equipment
CN107729249A (en) * 2017-10-18 2018-02-23 北京奇虎科技有限公司 Browser compatibility method of testing, device, system and electronic equipment
CN107832221A (en) * 2017-11-15 2018-03-23 杭州安恒信息技术有限公司 Platform semi-automation function test method, apparatus and system based on Burpsuit plug-in units
CN109063079A (en) * 2018-07-25 2018-12-21 维沃移动通信有限公司 Webpage label method and electronic equipment
CN110377500A (en) * 2019-06-14 2019-10-25 平安科技(深圳)有限公司 Test method, device, terminal device and the medium of Website page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375951B (en) * 2011-10-18 2014-07-23 北龙中网(北京)科技有限责任公司 Webpage security detection method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334790A (en) * 2007-06-29 2008-12-31 Nhn公司 Method and system for controlling browser by using image
CN102306167A (en) * 2011-08-22 2012-01-04 盛乐信息技术(上海)有限公司 Recording method and system based on mobile handheld equipment
CN107729249A (en) * 2017-10-18 2018-02-23 北京奇虎科技有限公司 Browser compatibility method of testing, device, system and electronic equipment
CN107832221A (en) * 2017-11-15 2018-03-23 杭州安恒信息技术有限公司 Platform semi-automation function test method, apparatus and system based on Burpsuit plug-in units
CN109063079A (en) * 2018-07-25 2018-12-21 维沃移动通信有限公司 Webpage label method and electronic equipment
CN110377500A (en) * 2019-06-14 2019-10-25 平安科技(深圳)有限公司 Test method, device, terminal device and the medium of Website page

Also Published As

Publication number Publication date
CN110377500A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
WO2020248505A1 (en) Website page test method and apparatus, and terminal device and medium
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
WO2018010552A1 (en) Test method and device
US20100211865A1 (en) Cross-browser page visualization generation
US9342237B2 (en) Automated testing of gesture-based applications
CN110704304B (en) Application program testing method and device, storage medium and server
WO2019019628A1 (en) Test method, apparatus, test device and medium for mobile application
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
US8671389B1 (en) Web application resource manager on the web and localizable components
CN111367595B (en) Data processing method, program running method, device and processing equipment
US20210042150A1 (en) Method-call-chain tracking method, electronic device, and computer readable storage medium
CN111324352A (en) Code generation method of application page and related equipment
CN112069068A (en) Automatic test data processing method, device, equipment and readable storage medium
KR20190113050A (en) Method and system for automatic configuration test case generation of mobile application
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN113448862A (en) Software version testing method and device and computer equipment
KR20180129623A (en) Apparatus for statically analyzing assembly code including assoxiated multi files
US20180210819A1 (en) System and method of controlling a web browser plug-in for testing analytics
CN117076410B (en) PDF file generation method, processing method, device and storage medium
CN114253841A (en) Test script generation method and device and storage medium
US20230333820A1 (en) Replacing remote device functions
CN110598142A (en) Webpage calibration method and device, computer equipment and storage medium
CN109308253B (en) Code detection method and device
CN115408667A (en) Method and system for detecting infringement of application program content

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

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

Country of ref document: EP

Kind code of ref document: A1