WO2020181839A1 - Page data testing method, apparatus, computer device, and storage medium - Google Patents

Page data testing method, apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2020181839A1
WO2020181839A1 PCT/CN2019/122569 CN2019122569W WO2020181839A1 WO 2020181839 A1 WO2020181839 A1 WO 2020181839A1 CN 2019122569 W CN2019122569 W CN 2019122569W WO 2020181839 A1 WO2020181839 A1 WO 2020181839A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
crawling
page
test
business process
Prior art date
Application number
PCT/CN2019/122569
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 WO2020181839A1 publication Critical patent/WO2020181839A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Definitions

  • This application relates to a page data testing method, device, computer equipment and storage medium.
  • Business application software often includes multiple pages.
  • each page needs to be tested, and the business application software often triggers data crawling requests through each page. Crawling data through the server according to the data crawling request, and updating the page according to the crawled data. It takes a certain amount of time to crawl the data, which will lead to inefficient page testing.
  • a page data testing method, device, computer equipment, and storage medium are provided.
  • a page data testing method including:
  • the page update status of the terminal under test is recorded to obtain a page test report.
  • a page data testing device including:
  • the crawl request acquisition module is used to asynchronously acquire the data crawl request sent by the tested terminal corresponding to each business process node;
  • Node ID extraction module used to extract the business process node ID in the data crawling request
  • a test file obtaining module configured to obtain a test configuration file corresponding to the business process node identifier
  • a simulation data generation module configured to generate simulated crawling data corresponding to the business process node identifier according to the test configuration file
  • the analog data sending module is used to asynchronously send the generated simulation crawling data corresponding to each business process node identifier to the tested terminal;
  • the test report obtaining module is used to record the page update status of the tested terminal after the tested terminal performs page update according to the asynchronously received simulated crawling data to obtain the page test report.
  • a computer device includes a memory and one or more processors, the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the one or more processors execute the following Steps: computer readable instructions
  • the page update status of the terminal under test is recorded to obtain a page test report.
  • One or more non-volatile storage media storing computer-readable instructions.
  • the computer-readable instructions When executed by one or more processors, the one or more processors perform the following steps:
  • Computer readable instructions asynchronously acquire data crawling requests sent by the tested terminal corresponding to each business process node;
  • the page update status of the terminal under test is recorded to obtain a page test report.
  • Fig. 1 is an application scenario diagram of a page data testing method according to one or more embodiments.
  • Fig. 2 is a schematic flowchart of a page data testing method according to one or more embodiments.
  • Fig. 3 is a schematic flowchart of the steps of intercepting a data crawl request according to one or more embodiments.
  • Figure 4 is a schematic flow diagram of the steps of generating simulated crawling data according to one or more embodiments.
  • Fig. 5 is a schematic flowchart of the steps of obtaining crawling data according to one or more embodiments.
  • Fig. 6 is a schematic flowchart of the steps of generating a page test report according to one or more embodiments.
  • Fig. 7 is a block diagram of a page data testing device according to one or more embodiments.
  • Figure 8 is a block diagram of a computer device according to one or more embodiments.
  • the page data testing method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the application environment of FIG. 1 includes a test terminal 102, a tested terminal 104, and a server 106.
  • the test terminal 102 and the terminal under test communicate with the server 106 through the network through the network, and the test terminal 102 and the terminal under test 104 may be connected through a network or through a data cable.
  • the test terminal 102 and the tested terminal 104 can be, but are not limited to, various personal computers, laptops, smart phones, tablets, and portable wearable devices.
  • the server 106 can be implemented by an independent server or a server cluster composed of multiple servers. .
  • a page data testing method is provided. Taking the method applied to the test terminal in FIG. 1 as an example, the method includes the following steps:
  • S202 Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node.
  • a business application is installed in the tested terminal, and the page in the business application can be displayed on the tested terminal.
  • the pages in the business application correspond to the business process nodes respectively.
  • the data crawl request is a request that instructs the server to crawl data.
  • the tested terminal displays the page corresponding to the business process node, and when it detects that the crawling data identifier is entered in the page, it obtains the input crawling data identifier, extracts the business process node identifier corresponding to the current page, and based on the crawl data identifier and business
  • the process node identifier generates a data crawl request, and sends the data crawl request to the test terminal.
  • the test terminal asynchronously receives multiple data crawling requests sent by the tested terminal.
  • the terminal under test obtains the crawling data identifier input in asynchronously acquiring multiple pages, and asynchronously generates multiple data crawling requests according to the acquired crawling data identifier.
  • the terminal under test generates a first data crawl request according to the crawl data identifier entered in the first page, sends the generated first data crawl request to the test terminal, and the test terminal receives the first data crawl request;
  • the test terminal switches from the first page to the second page, generates a second data crawl request according to the crawl data identifier entered in the second page, sends the generated second data crawl request to the test terminal, and the test terminal receives the second data crawl request.
  • Data crawling request; the test terminal asynchronously receives the first data crawling request and the second data crawling request.
  • the test terminal analyzes each data crawling request, and extracts the business process node identifier in the data crawling request through the analysis.
  • the business process node identifier is the unique identifier of the nodes that make up the business process.
  • test configuration file corresponding to each business process node identifier is stored in the test terminal.
  • the test configuration file includes the test parameters to be configured during the test.
  • the test terminal queries the test configuration file corresponding to the business process node identifier in the stored test configuration file, and extracts the queried test configuration file.
  • S208 Generate simulated crawling data corresponding to the business process node identifier according to the test configuration file.
  • the test terminal parses the test configuration file, extracts configuration crawl data of the test configuration file, and uses the extracted configuration crawl data as the simulated crawl data corresponding to the business process node identifier.
  • the test terminal extracts the storage address of the simulated crawl data in the test configuration file, accesses the storage space according to the extracted storage address, and extracts the simulated crawl data in the accessed storage space to extract the simulated crawl data. Take the data as the simulated crawling data corresponding to the business process node identifier.
  • S210 Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test.
  • the test terminal After the test terminal generates a plurality of simulated crawling data respectively corresponding to each business process node identifier, the generated simulated crawling data is asynchronously sent to the terminal under test.
  • the test terminal After the test terminal generates the simulated crawling data corresponding to the first business process node identifier, it sends the simulated crawling data to the tested terminal without receiving the response information of the tested terminal, and then the test terminal sets the second business process node
  • the simulated crawling data corresponding to the identifier is sent to the terminal, and the test terminal asynchronously sends the simulated crawling data corresponding to the first business process node identifier and the simulated crawling data corresponding to the second business process node identifier to the tested terminal.
  • the tested terminal asynchronously receives the simulated crawling data corresponding to each business process node identifier, it performs business approval based on the simulated crawled data, obtains the business approval result, obtains the page data corresponding to the business approval result, and according to the obtained
  • the page data is page updated, the page update status is recorded, and the recorded page update status is sent to the test terminal.
  • the test terminal receives the page update status sent by the tested terminal, and generates a page test report according to the page update status.
  • the simulated crawling data corresponding to the data crawling request is generated according to the test configuration file corresponding to each business process node identifier, There is no need to crawl data through the server according to the data crawl request.
  • the generated simulated crawling data corresponding to each business process node identifier is asynchronously sent to the tested terminal, so that the tested terminal updates the page according to the asynchronously received simulated crawling data, and generates a page test report according to the page update status, saving the server The time it takes to crawl data, which improves the efficiency of page testing.
  • S202 specifically further includes a step of intercepting a data crawling request, and this step specifically includes the following content:
  • the test terminal After the test terminal establishes a connection with the tested terminal, the test terminal obtains preset verification information, generates a permission verification request according to the preset verification information, and sends the permission verification request to the tested terminal through the established connection.
  • the established connection can be a wireless connection or a wired connection.
  • S302 specifically includes: obtaining a test instruction carrying a business process node identifier; querying a test case corresponding to the business process node identifier carried in the test instruction; sending permission to the tested terminal according to the test case Verify the request.
  • test page is displayed in the test terminal, and when it is detected that the test button in the test page is clicked, the business process node identifier entered in the test page is obtained, and the test instruction is generated according to the business process node identifier.
  • the test terminal queries the test case library for the test case corresponding to the business process node identifier carried in the test instruction, extracts preset verification information from the queried test case, and generates a permission verification request based on the extracted preset verification information.
  • the test case library stores test cases corresponding to each business process node.
  • a test case is a file written to test the page of the tested terminal.
  • S304 Obtain a verification pass notification triggered by the tested terminal on the permission verification page according to the permission verification request.
  • the tested terminal receives the authorization verification request sent by the test terminal, parses the authorization verification request, extracts preset verification information in the authorization verification request through the analysis, and displays the preset verification information on the authorization verification page.
  • the tested terminal detects that the verification passed button on the authorization verification page is clicked, it generates a verification passed notification.
  • S306 Monitor the data crawling request sent by the terminal under test according to the verification pass notification.
  • the test terminal monitors the data crawling request sent by the tested terminal to identify the monitored data crawling request and whether the data crawling request is sent to the tested terminal Server's data crawling request.
  • the data crawling request sent by the tested terminal is monitored, and the data crawling request is recognized as a data crawling request sent by the tested terminal to the server, the data crawling request sent by the tested terminal is intercepted, To prevent the terminal under test from sending data crawling requests to the server.
  • the permission verification request is verified by the tested terminal, and the monitoring permission of the tested terminal is obtained.
  • monitor the data crawling request sent by the terminal under test to improve the accuracy of intercepting the data crawling request sent to the server.
  • S208 specifically further includes a step of generating simulated crawling data, and this step specifically includes the following content:
  • S402 Query the historical crawling data corresponding to the business process node identifier in the stored historical crawling data.
  • the test terminal intercepts the crawling data sent by the server to the tested terminal, extracts the business process node identifier in the intercepted crawling data, and uses the intercepted crawling data as historical crawling data, corresponding to the extracted business process
  • the node ID is stored in the database.
  • the test terminal queries the historical crawling data corresponding to the business process node identifier in the stored historical crawling data.
  • the test terminal parses the test configuration file, and extracts parameter identifiers and scene configuration parameters in the test configuration file through the analysis.
  • the scene configuration parameters are parameters used to configure different scenes.
  • the parameter identifier is the identifier of the parameter to be configured.
  • S406 Configure parameters corresponding to the parameter identifiers in the queried historical crawling data according to the scenario configuration parameters, and generate simulated crawling data.
  • the test terminal determines the parameter corresponding to the parameter identifier in the queried historical crawling data, modifies the determined parameter according to the scene configuration parameter, obtains the modified parameter, and uses the modified parameter as the simulated crawling data.
  • the test terminal determines the parameter corresponding to the parameter identifier in the queried historical crawling data, replaces the determined parameter with the scene configuration parameter, and generates simulated crawling data.
  • the historical crawling data corresponding to the business process node identifier is queried in the stored historical crawling data, and the historical crawling data is modified according to the test configuration file corresponding to the business process node identifier to generate the business process node Identify the corresponding simulated crawling data, which improves the generation efficiency of simulated crawling data.
  • the page data testing method further includes a step of obtaining crawl data, and this step specifically includes the following content:
  • the test terminal does not find historical crawling data corresponding to the business process node identifier
  • the data crawling request corresponding to the business process node identifier is parsed, and the server address in the data crawling request is extracted by parsing.
  • the parameter identifier and the scenario configuration parameter in the test configuration file are extracted.
  • S504 Send the data crawling request to the server corresponding to the server address.
  • test terminal re-encapsulates the data crawling request according to the extracted server address, and sends the encapsulated data crawling request to the server corresponding to the server address.
  • the server receives the encapsulated data crawl request sent by the test terminal.
  • S506 Intercept the crawling data returned by the server to the tested terminal according to the data crawling request.
  • the server parses the data crawl request, analyzes the crawl data identifier in the crawl request by extracting the data, and performs data crawl according to the crawl data identifier to obtain the corresponding crawl data identifier Crawl data and return the crawled data to the tested terminal.
  • the test terminal monitors the crawl data sent by the server to the tested terminal, and intercepts the monitored crawl data.
  • S508 Store the intercepted crawl data as historical crawl data, and send the intercepted crawl data to the tested terminal as simulated crawl data.
  • the test terminal uses the business process node identification from the intercepted crawling data, uses the intercepted crawling data as historical crawling data, and stores it corresponding to the business process node identification, and uses the intercepted crawling data as a simulated crawling data. Get the data and send it to the terminal under test.
  • the test terminal extracts the crawl data identifier in the intercepted crawl data, uses the intercepted crawl data as historical crawl data, and stores it corresponding to the extracted crawl data identifier.
  • the data crawling request is directly sent to the server, so that the server performs data crawling according to the data crawling request to obtain the crawled data
  • the success rate of obtaining simulated crawling data is improved, and the obtained crawling data is stored as historical crawling data, so that the simulated crawling can be quickly generated next time based on historical crawling data Data, thereby improving the efficiency and accuracy of generating simulated crawling data.
  • S212 specifically includes a step of generating a page test report, and this step specifically includes the following content:
  • the tested terminal updates the current page according to the simulated crawling data, and records the page update status.
  • the test terminal obtains the page update status recorded by the tested terminal.
  • the page update status includes at least one of page identification, page content, and page display parameters.
  • S604 Obtain an expected update status of the page corresponding to the asynchronously received simulated crawling data.
  • the test terminal obtains the test configuration file, and extracts the expected update status of the page from the test configuration file.
  • the expected update status of the page includes at least one of an expected page identifier, an expected page content, and an expected page display parameter.
  • S606 Compare the page update status with the expected page update status, and generate a page test report.
  • the test terminal extracts the page update status and the expected update status of the page, compares the extracted page update status with the expected update status of the page, verifies the consistency of the page update status and the expected update status of the page, obtains the verification result, and generates it according to the verification result Page test report.
  • the page update status is recorded, the recorded page update status is verified with the expected update status of the page, and the page test report is generated based on the verification result, which improves the performance of the page test report. accuracy.
  • a page data testing device 700 which includes: a crawl request acquisition module 702, a node identification extraction module 704, a test file acquisition module 706, a simulation data generation module 708, and a simulation The data sending module 710 and the test report obtaining module 712, where:
  • the crawl request acquisition module 702 is used to asynchronously acquire the data crawl request sent by the tested terminal corresponding to each business process node.
  • the node identification extraction module 704 is configured to extract the business process node identification in the data crawling request.
  • the test file obtaining module 706 is configured to obtain a test configuration file corresponding to the business process node identifier.
  • the simulation data generation module 708 is configured to generate simulated crawling data corresponding to the business process node identifier according to the test configuration file.
  • the simulation data sending module 710 is configured to asynchronously send the generated simulation crawling data corresponding to each business process node identifier to the terminal under test.
  • the test report obtaining module 712 is configured to record the page update status of the tested terminal after the test terminal performs page update according to the asynchronously received simulated crawling data to obtain the page test report.
  • the crawl request acquisition module 702 is also used to send a permission verification request to the tested terminal; to obtain a verification pass notification triggered by the tested terminal on the permission verification page according to the permission verification request;
  • the data crawling request sent by the terminal is monitored; when it is monitored that the tested terminal sends a data crawling request to the server, the data crawling request sent by the tested terminal is intercepted.
  • the crawl request obtaining module 702 is also used to obtain a test instruction carrying a business process node identifier; query the test case corresponding to the business process node identifier carried in the test instruction; send to the terminal under test according to the test case Permission verification request.
  • the simulation data generation module 708 is also used to query the historical crawl data corresponding to the business process node identifier in the stored historical crawl data; extract the parameter identifier and scenario configuration parameters in the test configuration file; The scene configuration parameter configures the parameters corresponding to the parameter identifiers in the queried historical crawling data to generate simulated crawling data.
  • the simulation data generation module 708 is also used to extract the server address from the data crawl request corresponding to the business process node identifier when the historical crawling data corresponding to the business process node identifier is not queried; Send the fetch request to the server corresponding to the server address; intercept the crawl data returned by the server to the tested terminal according to the data crawl request; store the intercepted crawl data as historical crawl data, and use the intercepted crawl data as The simulated crawling data is sent to the terminal under test.
  • the test report obtaining module 712 is also used to record the page update status of the tested terminal after the tested terminal updates the page according to the asynchronously received simulated crawling data; to obtain the simulated crawling data received asynchronously The corresponding expected update status of the page; compare the update status of the page with the expected update status of the page, and generate a page test report.
  • Each module in the above-mentioned page data testing device can be implemented in whole or in part by software, hardware and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8.
  • the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer readable instructions.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer readable instruction is executed by the processor to realize a page data testing method.
  • the display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen
  • the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, a trackball or a touchpad set on the housing of the computer equipment , It can also be an external keyboard, touchpad, or mouse.
  • FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer readable instructions.
  • the one or more processors execute the following steps:
  • the tested terminal updates the page according to the asynchronously received simulated crawling data
  • the page update status of the tested terminal is recorded, and the page test report is obtained.
  • the processor further implements the following steps when executing the computer readable instructions:
  • the processor further implements the following steps when executing the computer readable instructions:
  • the processor further implements the following steps when executing the computer readable instructions:
  • Configure the parameters according to the scenario configure the parameters corresponding to the parameter identifiers in the queried historical crawling data, and generate simulated crawling data.
  • the processor further implements the following steps when executing the computer readable instructions:
  • the processor further implements the following steps when executing the computer readable instructions:
  • One or more non-volatile storage media storing computer-readable instructions.
  • the computer-readable instructions When executed by one or more processors, the one or more processors perform the following steps:
  • the tested terminal updates the page according to the asynchronously received simulated crawling data
  • the page update status of the tested terminal is recorded, and the page test report is obtained.
  • the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
  • the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
  • test case Query the test case corresponding to the business process node identifier carried in the test instruction; send a permission verification request to the tested terminal according to the test case.
  • the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
  • Configure the parameters according to the scenario configure the parameters corresponding to the parameter identifiers in the queried historical crawling data, and generate simulated crawling data.
  • the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
  • the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
  • 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.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Channel
  • memory bus Radbus direct RAM
  • RDRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Provided is a method for testing page data, comprising: asynchronously obtaining a data crawl request sent by each service process node corresponding to a terminal under test; extracting a service process node identifier from said data crawl request; obtaining a test configuration file corresponding to said service process node identifier; according to the test configuration file, generating simulated crawl data corresponding to the service process node identifier; asynchronously sending to the terminal under test the simulated crawl data corresponding to each generated service process node identifier; after the terminal under test performs page update according to the simulated crawl data received asynchronously, recording the page update status of the terminal under test to obtain a page test report.

Description

页面数据测试方法、装置、计算机设备和存储介质Page data testing method, device, computer equipment and storage medium
相关申请的交叉引用Cross references to related applications
本申请要求于2019年3月13日提交中国专利局,申请号为2019101889720,申请名称为“页面数据测试方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on March 13, 2019. The application number is 2019101889720 and the application title is "Page Data Testing Method, Device, Computer Equipment and Storage Medium". Incorporated in this application.
技术领域Technical field
本申请涉及一种页面数据测试方法、装置、计算机设备和存储介质。This application relates to a page data testing method, device, computer equipment and storage medium.
背景技术Background technique
随着计算机技术的发展,随着互联网的发展,越来越多的公司都为自己公司开发相应的业务应用软件,随着各种业务的处理都可以通过业务应用软件来处理,在业务处理过程中,需要根据需要调用手机各功能模块。With the development of computer technology and the development of the Internet, more and more companies are developing corresponding business application software for their own companies. As various business processes can be processed through business application software, in the business process In the mobile phone, it is necessary to call each functional module of the mobile phone as needed.
然而,发明人意识到,在业务应用软件的开发过程中,需要对开发的业务应用软件进行测试。业务应用软件往往包括多个页面,为了保证业务应用软件可以正常运行,需要对各页面进行测试,而业务应用软件往往通过各页面触发数据爬取请求。根据数据爬取请求通过服务器爬取数据,根据爬取到数据更新页面,爬取数据需要耗费一定时长,会导致页面测试效率低下。However, the inventor realizes that in the development process of business application software, it is necessary to test the developed business application software. Business application software often includes multiple pages. In order to ensure that the business application software can run normally, each page needs to be tested, and the business application software often triggers data crawling requests through each page. Crawling data through the server according to the data crawling request, and updating the page according to the crawled data. It takes a certain amount of time to crawl the data, which will lead to inefficient page testing.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种页面数据测试方法、装置、计算机设备和存储介质。According to various embodiments disclosed in the present application, a page data testing method, device, computer equipment, and storage medium are provided.
一种页面数据测试方法,包括:A page data testing method, including:
异步获取被测终端对应各业务流程节点发送的数据爬取请求;Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node;
提取所述数据爬取请求中的业务流程节点标识;Extracting the business process node identifier in the data crawling request;
获取与所述业务流程节点标识对应的测试配置文件;Obtaining a test configuration file corresponding to the business process node identifier;
根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;Generating simulated crawl data corresponding to the business process node identifier according to the test configuration file;
将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。After the terminal under test performs page update according to the asynchronously received simulated crawling data, the page update status of the terminal under test is recorded to obtain a page test report.
一种页面数据测试装置,包括:A page data testing device, including:
爬取请求获取模块,用于异步获取被测终端对应各业务流程节点发送的数据爬取请求;The crawl request acquisition module is used to asynchronously acquire the data crawl request sent by the tested terminal corresponding to each business process node;
节点标识提取模块,用于提取所述数据爬取请求中的业务流程节点标识;Node ID extraction module, used to extract the business process node ID in the data crawling request;
测试文件获取模块,用于获取与所述业务流程节点标识对应的测试配置文件;A test file obtaining module, configured to obtain a test configuration file corresponding to the business process node identifier;
模拟数据生成模块,用于根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;A simulation data generation module, configured to generate simulated crawling data corresponding to the business process node identifier according to the test configuration file;
模拟数据发送模块,用于将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及The analog data sending module is used to asynchronously send the generated simulation crawling data corresponding to each business process node identifier to the tested terminal; and
测试报告得到模块,用于在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。The test report obtaining module is used to record the page update status of the tested terminal after the tested terminal performs page update according to the asynchronously received simulated crawling data to obtain the page test report.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:计算机可读指令A computer device includes a memory and one or more processors, the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the one or more processors execute the following Steps: computer readable instructions
异步获取被测终端对应各业务流程节点发送的数据爬取请求;Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node;
提取所述数据爬取请求中的业务流程节点标识;Extracting the business process node identifier in the data crawling request;
获取与所述业务流程节点标识对应的测试配置文件;Obtaining a test configuration file corresponding to the business process node identifier;
根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;Generating simulated crawl data corresponding to the business process node identifier according to the test configuration file;
将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。After the terminal under test performs page update according to the asynchronously received simulated crawling data, the page update status of the terminal under test is recorded to obtain a page test report.
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-volatile storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps:
计算机可读指令计算机可读指令异步获取被测终端对应各业务流程节点发送的数据爬取请求;Computer readable instructions Computer readable instructions asynchronously acquire data crawling requests sent by the tested terminal corresponding to each business process node;
提取所述数据爬取请求中的业务流程节点标识;Extracting the business process node identifier in the data crawling request;
获取与所述业务流程节点标识对应的测试配置文件;Obtaining a test configuration file corresponding to the business process node identifier;
根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;Generating simulated crawl data corresponding to the business process node identifier according to the test configuration file;
将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。After the terminal under test performs page update according to the asynchronously received simulated crawling data, the page update status of the terminal under test is recorded to obtain a page test report.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the following drawings and description. Other features and advantages of this application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为根据一个或多个实施例中页面数据测试方法的应用场景图。Fig. 1 is an application scenario diagram of a page data testing method according to one or more embodiments.
图2为根据一个或多个实施例中页面数据测试方法的流程示意图。Fig. 2 is a schematic flowchart of a page data testing method according to one or more embodiments.
图3为根据一个或多个实施例中拦截数据爬取请求的步骤的流程示意图。Fig. 3 is a schematic flowchart of the steps of intercepting a data crawl request according to one or more embodiments.
图4为根据一个或多个实施例中生成模拟爬取数据的步骤的流程示意图.Figure 4 is a schematic flow diagram of the steps of generating simulated crawling data according to one or more embodiments.
图5为根据一个或多个实施例中获取爬取数据的步骤的流程示意图。Fig. 5 is a schematic flowchart of the steps of obtaining crawling data according to one or more embodiments.
图6为根据一个或多个实施例中生成页面测试报告的步骤的流程示意图。Fig. 6 is a schematic flowchart of the steps of generating a page test report according to one or more embodiments.
图7为根据一个或多个实施例中页面数据测试装置的框图。Fig. 7 is a block diagram of a page data testing device according to one or more embodiments.
图8为根据一个或多个实施例中计算机设备的框图。Figure 8 is a block diagram of a computer device according to one or more embodiments.
具体实施方式detailed description
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application.
本申请提供的页面数据测试方法,可以应用于如图1所示的应用环境中。图1的应用环境中包括测试终端102、被测终端104和服务器106。测试终端102和被测终端通过网络与服务器106通过网络进行通信,测试终端102与被测终端104可以通过网络连接,也可以通过数据线连接。测试终端102和被测终端104可以但不限于是各种个人计算机、笔 记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器106可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The page data testing method provided in this application can be applied to the application environment as shown in FIG. 1. The application environment of FIG. 1 includes a test terminal 102, a tested terminal 104, and a server 106. The test terminal 102 and the terminal under test communicate with the server 106 through the network through the network, and the test terminal 102 and the terminal under test 104 may be connected through a network or through a data cable. The test terminal 102 and the tested terminal 104 can be, but are not limited to, various personal computers, laptops, smart phones, tablets, and portable wearable devices. The server 106 can be implemented by an independent server or a server cluster composed of multiple servers. .
在一些实施例中,如图2所示,提供了一种页面数据测试方法,以该方法应用于图1中的测试终端为例进行说明,包括以下步骤:In some embodiments, as shown in FIG. 2, a page data testing method is provided. Taking the method applied to the test terminal in FIG. 1 as an example, the method includes the following steps:
S202,异步获取被测终端对应各业务流程节点发送的数据爬取请求。S202: Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node.
被测终端中安装有业务应用,被测终端中可展示业务应用中的页面。业务应用中的页面都分别与业务流程节点对应。数据爬取请求为指示服务器爬取数据的请求。A business application is installed in the tested terminal, and the page in the business application can be displayed on the tested terminal. The pages in the business application correspond to the business process nodes respectively. The data crawl request is a request that instructs the server to crawl data.
具体地,被测终端展示业务流程节点对应的页面,检测到页面中输入爬取数据标识时,获取输入的爬取数据标识,提取当前页面对应的业务流程节点标识,根据爬取数据标识和业务流程节点标识生成数据爬取请求,将数据爬取请求发送至测试终端。测试终端异步接收被测终端发送的多个数据爬取请求。Specifically, the tested terminal displays the page corresponding to the business process node, and when it detects that the crawling data identifier is entered in the page, it obtains the input crawling data identifier, extracts the business process node identifier corresponding to the current page, and based on the crawl data identifier and business The process node identifier generates a data crawl request, and sends the data crawl request to the test terminal. The test terminal asynchronously receives multiple data crawling requests sent by the tested terminal.
在一些实施例中,被测终端在获取到异步获取多个页面中输入的爬取数据标识,根据获取到的爬取数据标识异步生成多个数据爬取请求。In some embodiments, the terminal under test obtains the crawling data identifier input in asynchronously acquiring multiple pages, and asynchronously generates multiple data crawling requests according to the acquired crawling data identifier.
举例说明,被测终端根据第一页面中输入的爬取数据标识生成第一数据爬取请求,将生成的第一数据爬取请求发送至测试终端,测试终端接收第一数据爬取请求;被测终端从第一页面切换到第二页面,根据第二页面中输入的爬取数据标识生成第二数据爬取请求,将生成的第二数据爬取请求发送至测试终端,测试终端接收第二数据爬取请求;测试终端异步接收到第一数据爬取请求和第二数据爬取请求。For example, the terminal under test generates a first data crawl request according to the crawl data identifier entered in the first page, sends the generated first data crawl request to the test terminal, and the test terminal receives the first data crawl request; The test terminal switches from the first page to the second page, generates a second data crawl request according to the crawl data identifier entered in the second page, sends the generated second data crawl request to the test terminal, and the test terminal receives the second data crawl request. Data crawling request; the test terminal asynchronously receives the first data crawling request and the second data crawling request.
S204,提取数据爬取请求中的业务流程节点标识。S204: Extract the business process node identifier in the data crawling request.
具体地,测试终端在异步接收到多个数据爬取请求后,对于每个数据爬取请求进行解析,通过解析提取数据爬取请求中的业务流程节点标识。业务流程节点标识为组成业务流程的节点的唯一标识。Specifically, after asynchronously receiving multiple data crawling requests, the test terminal analyzes each data crawling request, and extracts the business process node identifier in the data crawling request through the analysis. The business process node identifier is the unique identifier of the nodes that make up the business process.
S206,获取与业务流程节点标识对应的测试配置文件。S206: Obtain a test configuration file corresponding to the business process node identifier.
具体地,测试终端中存储着各业务流程节点标识分别对应的测试配置文件。测试配置文件中包括测试过程中待配置的测试参数。测试终端在存储的测试配置文件中查询与业务流程节点标识对应的测试配置文件,提取查询到的测试配置文件。Specifically, the test configuration file corresponding to each business process node identifier is stored in the test terminal. The test configuration file includes the test parameters to be configured during the test. The test terminal queries the test configuration file corresponding to the business process node identifier in the stored test configuration file, and extracts the queried test configuration file.
S208,根据测试配置文件生成业务流程节点标识对应的模拟爬取数据。S208: Generate simulated crawling data corresponding to the business process node identifier according to the test configuration file.
具体地,测试终端在获取到测试配置文件后,对测试配置文件进行解析,提取测试配置文件的配置爬取数据,以提取到的配置爬取数据作为业务流程节点标识对应的模拟爬 取数据。Specifically, after obtaining the test configuration file, the test terminal parses the test configuration file, extracts configuration crawl data of the test configuration file, and uses the extracted configuration crawl data as the simulated crawl data corresponding to the business process node identifier.
在一些实施例中,测试终端提取测试配置文件中模拟爬取数据的存储地址,根据提取到的存储地址访问存储空间,提取访问到的存储空间中的模拟爬取数据,以提取到的模拟爬取数据作为业务流程节点标识对应的模拟爬取数据。In some embodiments, the test terminal extracts the storage address of the simulated crawl data in the test configuration file, accesses the storage space according to the extracted storage address, and extracts the simulated crawl data in the accessed storage space to extract the simulated crawl data. Take the data as the simulated crawling data corresponding to the business process node identifier.
S210,将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端。S210: Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test.
具体地,测试终端在生成各业务流程节点标识分别对应的多个模拟爬取数据后,将生成的模拟爬取数据异步发送至被测终端。Specifically, after the test terminal generates a plurality of simulated crawling data respectively corresponding to each business process node identifier, the generated simulated crawling data is asynchronously sent to the terminal under test.
举例说明,测试终端在生成第一业务流程节点标识对应的模拟爬取数据后,将模拟爬取数据发送至被测终端,无需接收被测终端的响应信息,再测试终端将第二业务流程节点标识对应的模拟爬取数据发送至终端,测试终端将第一业务流程节点标识对应的模拟爬取数据和第二业务流程节点标识对应的模拟爬取数据异步发送至被测终端。For example, after the test terminal generates the simulated crawling data corresponding to the first business process node identifier, it sends the simulated crawling data to the tested terminal without receiving the response information of the tested terminal, and then the test terminal sets the second business process node The simulated crawling data corresponding to the identifier is sent to the terminal, and the test terminal asynchronously sends the simulated crawling data corresponding to the first business process node identifier and the simulated crawling data corresponding to the second business process node identifier to the tested terminal.
S212,在被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录被测终端的页面更新状态,得到页面测试报告。S212: After the terminal under test performs page update according to the asynchronously received simulated crawling data, record the page update status of the terminal under test, and obtain a page test report.
具体地,被测终端异步接收到各业务流程节点标识对应的模拟爬取数据后,根据模拟爬取数据进行业务审批,得到业务审批结果,获取与业务审批结果对应的页面数据,根据获取到的页面数据进行页面更新,记录页面更新状态,将记录的页面更新状态发用至测试终端。测试终端接收被测终端发送的页面更新状态,根据页面更新状态生成页面测试报告。Specifically, after the tested terminal asynchronously receives the simulated crawling data corresponding to each business process node identifier, it performs business approval based on the simulated crawled data, obtains the business approval result, obtains the page data corresponding to the business approval result, and according to the obtained The page data is page updated, the page update status is recorded, and the recorded page update status is sent to the test terminal. The test terminal receives the page update status sent by the tested terminal, and generates a page test report according to the page update status.
上述页面数据测试方法中,在异步获取被测终端对应各业务流程节点发送的数据爬取请求后,根据各业务流程节点标识对应的测试配置文件生成与数据爬取请求对应的模拟爬取数据,无需根据数据爬取请求通过服务器去爬取数据。将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端,使被测终端根据异步接收到的模拟爬取数据更新页面,根据页面更新状态生成页面测试报告,节省了通过服务器爬取数据所耗费的时间,从而提高了页面测试效率。In the above page data testing method, after asynchronously acquiring the data crawling request sent by the tested terminal corresponding to each business process node, the simulated crawling data corresponding to the data crawling request is generated according to the test configuration file corresponding to each business process node identifier, There is no need to crawl data through the server according to the data crawl request. The generated simulated crawling data corresponding to each business process node identifier is asynchronously sent to the tested terminal, so that the tested terminal updates the page according to the asynchronously received simulated crawling data, and generates a page test report according to the page update status, saving the server The time it takes to crawl data, which improves the efficiency of page testing.
如图3所示,在一些实施例中,S202具体还包括拦截数据爬取请求的步骤,该步骤具体包括以下内容:As shown in Figure 3, in some embodiments, S202 specifically further includes a step of intercepting a data crawling request, and this step specifically includes the following content:
S302,向被测终端发送权限验证请求。S302: Send a permission verification request to the tested terminal.
具体地,测试终端在与被测终端建立连接后,测试终端获取预设验证信息,根据预设验证信息生成权限验证请求,将权限验证请求通过建立的连接发送至被测终端。建立的 连接可以是无线连接或有线连接。Specifically, after the test terminal establishes a connection with the tested terminal, the test terminal obtains preset verification information, generates a permission verification request according to the preset verification information, and sends the permission verification request to the tested terminal through the established connection. The established connection can be a wireless connection or a wired connection.
在一些实施例中,S302具体包括:获取携带有业务流程节点标识的测试指令;查询与所述测试指令中携带的业务流程节点标识对应的测试用例;根据所述测试用例向被测终端发送权限验证请求。In some embodiments, S302 specifically includes: obtaining a test instruction carrying a business process node identifier; querying a test case corresponding to the business process node identifier carried in the test instruction; sending permission to the tested terminal according to the test case Verify the request.
具体地,测试终端中展示测试页面,检测到测试页面中的测试按钮被点击时,获取测试页面中录入的业务流程节点标识,根据业务流程节点标识生成测试指令。测试终端在测试用例库中查询与测试指令中携带的业务流程节点标识对应的测试用例,从查询到的测试用例中提取预设验证信息,根据提取到的预设验证信息生成权限验证请求。测试用例库中存储着与各业务流程节点分别对应的测试用例。测试用例为对被测终端的页面进行测试所编写的文件。Specifically, the test page is displayed in the test terminal, and when it is detected that the test button in the test page is clicked, the business process node identifier entered in the test page is obtained, and the test instruction is generated according to the business process node identifier. The test terminal queries the test case library for the test case corresponding to the business process node identifier carried in the test instruction, extracts preset verification information from the queried test case, and generates a permission verification request based on the extracted preset verification information. The test case library stores test cases corresponding to each business process node. A test case is a file written to test the page of the tested terminal.
S304,获取被测终端根据权限验证请求,在权限验证页面触发的验证通过通知。S304: Obtain a verification pass notification triggered by the tested terminal on the permission verification page according to the permission verification request.
具体地,被测终端接收到测试终端发送的权限验证请求,对权限验证请求进行解析,通过解析提取权限验证请求中的预设验证信息,将预设验证信息展示在权限验证页面中。被测终端在检测到权限验证页面中的验证通过按钮被点击时,生成验证通过通知。Specifically, the tested terminal receives the authorization verification request sent by the test terminal, parses the authorization verification request, extracts preset verification information in the authorization verification request through the analysis, and displays the preset verification information on the authorization verification page. When the tested terminal detects that the verification passed button on the authorization verification page is clicked, it generates a verification passed notification.
S306,根据验证通过通知对被测终端发送的数据爬取请求进行监听。S306: Monitor the data crawling request sent by the terminal under test according to the verification pass notification.
具体地,测试终端在接收到验证通过通知后,对被测终端发送的数据爬取请求进行监听,以对监听到的数据爬取请求进行识别,识别数据爬取请求是否为被测终端发送至服务器的数据爬取请求。Specifically, after receiving the verification pass notification, the test terminal monitors the data crawling request sent by the tested terminal to identify the monitored data crawling request and whether the data crawling request is sent to the tested terminal Server's data crawling request.
S308,当监听到被测终端向服务器发送数据爬取请求时,拦截被测终端发送的数据爬取请求。S308: When it is monitored that the terminal under test sends a data crawl request to the server, intercept the data crawl request sent by the terminal under test.
具体地,当通过对被测终端发送的数据爬取请求进行监听,并且识别到数据爬取请求为被测终端发送至服务器的数据爬取请求时,拦截被测终端发送的数据爬取请求,以阻止被测终端将数据爬取请求发送至服务器。Specifically, when the data crawling request sent by the tested terminal is monitored, and the data crawling request is recognized as a data crawling request sent by the tested terminal to the server, the data crawling request sent by the tested terminal is intercepted, To prevent the terminal under test from sending data crawling requests to the server.
本实施例中,通过向被测终端发送权限验证请求,通过被测终端对权限验证请求进行验证,获取对被测终端的监听权限。在获取到监听权限后对被测终端发送的数据爬取请求进行监听,提高对向服务器发送数据爬取请求的拦截准确性。In this embodiment, by sending a permission verification request to the tested terminal, the permission verification request is verified by the tested terminal, and the monitoring permission of the tested terminal is obtained. After obtaining the monitoring authority, monitor the data crawling request sent by the terminal under test to improve the accuracy of intercepting the data crawling request sent to the server.
如图4所示,在一些实施例中,S208具体还包括生成模拟爬取数据的步骤,该步骤具体包括以下内容:As shown in Figure 4, in some embodiments, S208 specifically further includes a step of generating simulated crawling data, and this step specifically includes the following content:
S402,在已存储的历史爬取数据中,查询与业务流程节点标识对应的历史爬取数据。S402: Query the historical crawling data corresponding to the business process node identifier in the stored historical crawling data.
具体地,测试终端拦截服务器向被测终端发送的爬取数据,提取拦截到的爬取数据中的业务流程节点标识,将拦截到的爬取数据作为历史爬取数据,对应提取到的业务流程节点标识存储在数据库中。测试终端在已存储的历史爬取数据中,查询与业务流程节点标识对应的历史爬取数据。Specifically, the test terminal intercepts the crawling data sent by the server to the tested terminal, extracts the business process node identifier in the intercepted crawling data, and uses the intercepted crawling data as historical crawling data, corresponding to the extracted business process The node ID is stored in the database. The test terminal queries the historical crawling data corresponding to the business process node identifier in the stored historical crawling data.
S404,提取测试配置文件中参数标识和场景配置参数。S404: Extract the parameter identifier and the scenario configuration parameter in the test configuration file.
具体地,测试终端对测试配置文件进行解析,通过解析提取测试配置文件中的参数标识和场景配置参数。场景配置参数为用于配置不同场景的参数。参数标识为待配置的参数的标识。Specifically, the test terminal parses the test configuration file, and extracts parameter identifiers and scene configuration parameters in the test configuration file through the analysis. The scene configuration parameters are parameters used to configure different scenes. The parameter identifier is the identifier of the parameter to be configured.
S406,按照场景配置参数,对查询到的历史爬取数据中与参数标识对应的参数进行配置,生成模拟爬取数据。S406: Configure parameters corresponding to the parameter identifiers in the queried historical crawling data according to the scenario configuration parameters, and generate simulated crawling data.
具体地,测试终端在查询到的历史爬取数据中确定参数标识对应的参数,按照场景配置参数对确定的参数进行修改,得到修改后的参数,以修改后的参数作为模拟爬取数据。Specifically, the test terminal determines the parameter corresponding to the parameter identifier in the queried historical crawling data, modifies the determined parameter according to the scene configuration parameter, obtains the modified parameter, and uses the modified parameter as the simulated crawling data.
在一些实施例中,测试终端在查询到的历史爬取数据中确定参数标识对应的参数,将确定的参数替换为场景配置参数,生成模拟爬取数据。In some embodiments, the test terminal determines the parameter corresponding to the parameter identifier in the queried historical crawling data, replaces the determined parameter with the scene configuration parameter, and generates simulated crawling data.
本实施例中,在已存储的历史爬取数据中查询与业务流程节点标识对应的历史爬取数据,根据与业务流程节点标识对应的测试配置文件对历史爬取数据进行修改,生成业务流程节点标识对应的模拟爬取数据,提高了模拟爬取数据的生成效率。In this embodiment, the historical crawling data corresponding to the business process node identifier is queried in the stored historical crawling data, and the historical crawling data is modified according to the test configuration file corresponding to the business process node identifier to generate the business process node Identify the corresponding simulated crawling data, which improves the generation efficiency of simulated crawling data.
如图5所示,在一些实施例中,页面数据测试方法还包括获取爬取数据的步骤,该步骤具体包括以下内容:As shown in FIG. 5, in some embodiments, the page data testing method further includes a step of obtaining crawl data, and this step specifically includes the following content:
S502,当未查询到与业务流程节点标识对应的历史爬取数据时,从业务流程节点标识对应的数据爬取请求中提取服务器地址。S502: When the historical crawl data corresponding to the business process node identifier is not queried, extract the server address from the data crawl request corresponding to the business process node identifier.
具体地,当测试终端未查询到与业务流程节点标识对应的历史爬取数据时,对业务流程节点标识对应的数据爬取请求进行解析,通过解析提取数据爬取请求中的服务器地址。Specifically, when the test terminal does not find historical crawling data corresponding to the business process node identifier, the data crawling request corresponding to the business process node identifier is parsed, and the server address in the data crawling request is extracted by parsing.
在一些实施例中,当查询到与业务流程节点标识对应的历史爬取数据时,提取所述测试配置文件中参数标识和场景配置参数。In some embodiments, when the historical crawling data corresponding to the business process node identifier is queried, the parameter identifier and the scenario configuration parameter in the test configuration file are extracted.
S504,将数据爬取请求发送至服务器地址对应的服务器。S504: Send the data crawling request to the server corresponding to the server address.
具体地,测试终端按照提取到的服务器地址重新对数据爬取请求进行封装,将封装后的数据爬取请求发送至服务器地址对应的服务器。服务器接收测试终端发送的封装后的 数据爬取请求。Specifically, the test terminal re-encapsulates the data crawling request according to the extracted server address, and sends the encapsulated data crawling request to the server corresponding to the server address. The server receives the encapsulated data crawl request sent by the test terminal.
S506,拦截服务器根据数据爬取请求向被测终端返回的爬取数据。S506: Intercept the crawling data returned by the server to the tested terminal according to the data crawling request.
具体地,服务器接收到数据爬取请求后,对数据爬取请求进行解析,通过解析提取数爬取请求中的爬取数据标识,根据爬取数据标识进行数据爬取,得到爬取数据标识对应爬取数据,将爬取数据返回被测终端。测试终端对服务器向被测终端发送的爬取数据进行监听,拦截监听到的爬取数据。Specifically, after the server receives the data crawl request, it parses the data crawl request, analyzes the crawl data identifier in the crawl request by extracting the data, and performs data crawl according to the crawl data identifier to obtain the corresponding crawl data identifier Crawl data and return the crawled data to the tested terminal. The test terminal monitors the crawl data sent by the server to the tested terminal, and intercepts the monitored crawl data.
S508,将拦截到的爬取数据存储为历史爬取数据,并将拦截到的爬取数据作为模拟爬取数据发送至被测终端。S508: Store the intercepted crawl data as historical crawl data, and send the intercepted crawl data to the tested terminal as simulated crawl data.
具体地,测试终端从拦截到的爬取数据中业务流程节点标识,将拦截到的爬取数据作为历史爬取数据,对应于业务流程节点标识存储,并将拦截到的爬取数据作为模拟爬取数据发送至被测终端。Specifically, the test terminal uses the business process node identification from the intercepted crawling data, uses the intercepted crawling data as historical crawling data, and stores it corresponding to the business process node identification, and uses the intercepted crawling data as a simulated crawling data. Get the data and send it to the terminal under test.
在一些实施例中,测试终端提取拦截到的爬取数据中的爬取数据标识,将拦截到的爬取数据作为历史爬取数据,对应于提取到的爬取数据标识存储。In some embodiments, the test terminal extracts the crawl data identifier in the intercepted crawl data, uses the intercepted crawl data as historical crawl data, and stores it corresponding to the extracted crawl data identifier.
本实施例中,当未查询到与业务流程节点标识对应的历史爬取数据时,直接将数据爬取请求发送至服务器,使服务器根据数据爬取请求进行数据爬取,以得到的爬取数据作为模拟爬取数据发送至被测终端,提高了获取模拟爬取数据的成功率,并将得到的爬取数据作为历史爬取数据进行存储,使得下次根据历史爬取数据快速生成模拟爬取数据,从而提高了生成模拟爬取数据的效率和准确性。In this embodiment, when the historical crawling data corresponding to the business process node identifier is not queried, the data crawling request is directly sent to the server, so that the server performs data crawling according to the data crawling request to obtain the crawled data As simulated crawling data sent to the tested terminal, the success rate of obtaining simulated crawling data is improved, and the obtained crawling data is stored as historical crawling data, so that the simulated crawling can be quickly generated next time based on historical crawling data Data, thereby improving the efficiency and accuracy of generating simulated crawling data.
如图6所示,在一些实施例中,S212具体包括生成页面测试报告的步骤,该步骤具体包括以下内容:As shown in FIG. 6, in some embodiments, S212 specifically includes a step of generating a page test report, and this step specifically includes the following content:
S602,在被测终端根据异步接收到的模拟爬取数据更新页面后,记录被测终端的页面更新状态。S602: After the terminal under test updates the page according to the asynchronously received simulated crawling data, record the page update status of the terminal under test.
具体地,被测终端异步接收到各数据爬取请求分别对应的模拟爬取数据后,根据模拟爬取数据对当前页面进行更新,记录页面更新状态。测试终端获取被测终端记录的页面更新状态。页面更新状态包括页面标识、页面内容和页面展示参数中的至少一种。Specifically, after asynchronously receiving the simulated crawling data corresponding to each data crawling request, the tested terminal updates the current page according to the simulated crawling data, and records the page update status. The test terminal obtains the page update status recorded by the tested terminal. The page update status includes at least one of page identification, page content, and page display parameters.
S604,获取与异步接收到的模拟爬取数据对应的页面预期更新状态。S604: Obtain an expected update status of the page corresponding to the asynchronously received simulated crawling data.
具体地,测试终端获取测试配置文件,从测试配置文件中提取页面预期更新状态,页面预期更新状态中包括预期页面标识、预期页面内容和预期页面展示参数中的至少一种。Specifically, the test terminal obtains the test configuration file, and extracts the expected update status of the page from the test configuration file. The expected update status of the page includes at least one of an expected page identifier, an expected page content, and an expected page display parameter.
S606,将页面更新状态与页面预期更新状态比较,生成页面测试报告。S606: Compare the page update status with the expected page update status, and generate a page test report.
具体地,测试终端提取页面更新状态和页面预期更新状态,将提取到页面更新状态与页面预期更新状态进行比较,验证页面更新状态与页面预期更新状态的一致性,得到验证结果,根据验证结果生成页面测试报告。Specifically, the test terminal extracts the page update status and the expected update status of the page, compares the extracted page update status with the expected update status of the page, verifies the consistency of the page update status and the expected update status of the page, obtains the verification result, and generates it according to the verification result Page test report.
本实施例中,在被测终端根据数据处理结果更新页面后,记录页面更新状态,将记录的页面更新状态与页面预期更新状态进行验证,根据验证结果生成页面测试报告,提高了页面测试报告的准确性。In this embodiment, after the terminal under test updates the page according to the data processing result, the page update status is recorded, the recorded page update status is verified with the expected update status of the page, and the page test report is generated based on the verification result, which improves the performance of the page test report. accuracy.
应该理解的是,虽然图2-6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-6中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2-6 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-6 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
在一些实施例中,如图7所示,提供了一种页面数据测试装置700,包括:爬取请求获取模块702、节点标识提取模块704、测试文件获取模块706、模拟数据生成模块708、模拟数据发送模块710和测试报告得到模块712,其中:In some embodiments, as shown in FIG. 7, a page data testing device 700 is provided, which includes: a crawl request acquisition module 702, a node identification extraction module 704, a test file acquisition module 706, a simulation data generation module 708, and a simulation The data sending module 710 and the test report obtaining module 712, where:
爬取请求获取模块702,用于异步获取被测终端对应各业务流程节点发送的数据爬取请求。The crawl request acquisition module 702 is used to asynchronously acquire the data crawl request sent by the tested terminal corresponding to each business process node.
节点标识提取模块704,用于提取数据爬取请求中的业务流程节点标识。The node identification extraction module 704 is configured to extract the business process node identification in the data crawling request.
测试文件获取模块706,用于获取与业务流程节点标识对应的测试配置文件。The test file obtaining module 706 is configured to obtain a test configuration file corresponding to the business process node identifier.
模拟数据生成模块708,用于根据测试配置文件生成业务流程节点标识对应的模拟爬取数据。The simulation data generation module 708 is configured to generate simulated crawling data corresponding to the business process node identifier according to the test configuration file.
模拟数据发送模块710,用于将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端。The simulation data sending module 710 is configured to asynchronously send the generated simulation crawling data corresponding to each business process node identifier to the terminal under test.
测试报告得到模块712,用于在被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录被测终端的页面更新状态,得到页面测试报告。The test report obtaining module 712 is configured to record the page update status of the tested terminal after the test terminal performs page update according to the asynchronously received simulated crawling data to obtain the page test report.
在一些实施例中,爬取请求获取模块702还用于向被测终端发送权限验证请求;获取被测终端根据权限验证请求,在权限验证页面触发的验证通过通知;根据验证通过通知 对被测终端发送的数据爬取请求进行监听;当监听到被测终端向服务器发送数据爬取请求时,拦截被测终端发送的数据爬取请求。In some embodiments, the crawl request acquisition module 702 is also used to send a permission verification request to the tested terminal; to obtain a verification pass notification triggered by the tested terminal on the permission verification page according to the permission verification request; The data crawling request sent by the terminal is monitored; when it is monitored that the tested terminal sends a data crawling request to the server, the data crawling request sent by the tested terminal is intercepted.
在一些实施例中,爬取请求获取模块702还用于获取携带有业务流程节点标识的测试指令;查询与测试指令中携带的业务流程节点标识对应的测试用例;根据测试用例向被测终端发送权限验证请求。In some embodiments, the crawl request obtaining module 702 is also used to obtain a test instruction carrying a business process node identifier; query the test case corresponding to the business process node identifier carried in the test instruction; send to the terminal under test according to the test case Permission verification request.
在一些实施例中,模拟数据生成模块708还用于在已存储的历史爬取数据中,查询与业务流程节点标识对应的历史爬取数据;提取测试配置文件中参数标识和场景配置参数;按照场景配置参数,对查询到的历史爬取数据中与参数标识对应的参数进行配置,生成模拟爬取数据。In some embodiments, the simulation data generation module 708 is also used to query the historical crawl data corresponding to the business process node identifier in the stored historical crawl data; extract the parameter identifier and scenario configuration parameters in the test configuration file; The scene configuration parameter configures the parameters corresponding to the parameter identifiers in the queried historical crawling data to generate simulated crawling data.
在一些实施例中,模拟数据生成模块708还用于当未查询到与业务流程节点标识对应的历史爬取数据时,从业务流程节点标识对应的数据爬取请求中提取服务器地址;将数据爬取请求发送至服务器地址对应的服务器;拦截服务器根据数据爬取请求向被测终端返回的爬取数据;将拦截到的爬取数据存储为历史爬取数据,并将拦截到的爬取数据作为模拟爬取数据发送至被测终端。In some embodiments, the simulation data generation module 708 is also used to extract the server address from the data crawl request corresponding to the business process node identifier when the historical crawling data corresponding to the business process node identifier is not queried; Send the fetch request to the server corresponding to the server address; intercept the crawl data returned by the server to the tested terminal according to the data crawl request; store the intercepted crawl data as historical crawl data, and use the intercepted crawl data as The simulated crawling data is sent to the terminal under test.
在一些实施例中,测试报告得到模块712还用于在被测终端根据异步接收到的模拟爬取数据更新页面后,记录被测终端的页面更新状态;获取与异步接收到的模拟爬取数据对应的页面预期更新状态;将页面更新状态与页面预期更新状态比较,生成页面测试报告。In some embodiments, the test report obtaining module 712 is also used to record the page update status of the tested terminal after the tested terminal updates the page according to the asynchronously received simulated crawling data; to obtain the simulated crawling data received asynchronously The corresponding expected update status of the page; compare the update status of the page with the expected update status of the page, and generate a page test report.
关于页面数据测试装置的具体限定可以参见上文中对于页面数据测试方法的限定,在此不再赘述。上述页面数据测试装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the page data testing device, please refer to the above limitation of the page data testing method, which will not be repeated here. Each module in the above-mentioned page data testing device can be implemented in whole or in part by software, hardware and a combination thereof. The foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
在一些实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机可读指令。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种页面数据测试方法。该计算机设备的显示屏可以是液晶显示屏或者电 子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In some embodiments, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8. The computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. The processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer readable instruction is executed by the processor to realize a page data testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, a trackball or a touchpad set on the housing of the computer equipment , It can also be an external keyboard, touchpad, or mouse.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer readable instructions. When the computer readable instructions are executed by the processor, the one or more processors execute the following steps:
异步获取被测终端对应各业务流程节点发送的数据爬取请求;Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node;
提取数据爬取请求中的业务流程节点标识;Extract the business process node ID in the data crawl request;
获取与业务流程节点标识对应的测试配置文件;Obtain the test configuration file corresponding to the business process node identifier;
根据测试配置文件生成业务流程节点标识对应的模拟爬取数据;Generate simulated crawling data corresponding to the business process node identifier according to the test configuration file;
将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
在被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录被测终端的页面更新状态,得到页面测试报告。After the tested terminal updates the page according to the asynchronously received simulated crawling data, the page update status of the tested terminal is recorded, and the page test report is obtained.
在一些实施例中,处理器执行计算机可读指令计算机可读指令时还实现以下步骤:In some embodiments, the processor further implements the following steps when executing the computer readable instructions:
向被测终端发送权限验证请求;Send a permission verification request to the tested terminal;
获取被测终端根据权限验证请求,在权限验证页面触发的验证通过通知;Obtain the verification pass notification triggered by the tested terminal on the permission verification page according to the permission verification request;
根据验证通过通知对被测终端发送的数据爬取请求进行监听;及Monitor the data crawling request sent by the tested terminal according to the verification pass notification; and
当监听到被测终端向服务器发送数据爬取请求时,拦截被测终端发送的数据爬取请求。When monitoring the data crawling request sent by the tested terminal to the server, intercept the data crawling request sent by the tested terminal.
在一些实施例中,处理器执行计算机可读指令计算机可读指令时还实现以下步骤:In some embodiments, the processor further implements the following steps when executing the computer readable instructions:
获取携带有业务流程节点标识的测试指令;Obtain a test instruction carrying a business process node identifier;
查询与测试指令中携带的业务流程节点标识对应的测试用例;及Query the test case corresponding to the business process node identifier carried in the test instruction; and
根据测试用例向被测终端发送权限验证请求。Send a permission verification request to the tested terminal according to the test case.
在一些实施例中,处理器执行计算机可读指令计算机可读指令时还实现以下步骤:In some embodiments, the processor further implements the following steps when executing the computer readable instructions:
在已存储的历史爬取数据中,查询与业务流程节点标识对应的历史爬取数据;In the stored historical crawling data, query the historical crawling data corresponding to the business process node identifier;
提取测试配置文件中参数标识和场景配置参数;及Extract the parameter identification and scene configuration parameters in the test configuration file; and
按照场景配置参数,对查询到的历史爬取数据中与参数标识对应的参数进行配置,生成模拟爬取数据。Configure the parameters according to the scenario, configure the parameters corresponding to the parameter identifiers in the queried historical crawling data, and generate simulated crawling data.
在一些实施例中,处理器执行计算机可读指令计算机可读指令时还实现以下步骤:In some embodiments, the processor further implements the following steps when executing the computer readable instructions:
当未查询到与业务流程节点标识对应的历史爬取数据时,从业务流程节点标识对应的数据爬取请求中提取服务器地址;When the historical crawl data corresponding to the business process node identifier is not queried, extract the server address from the data crawl request corresponding to the business process node identifier;
将数据爬取请求发送至服务器地址对应的服务器;Send the data crawling request to the server corresponding to the server address;
拦截服务器根据数据爬取请求向被测终端返回的爬取数据;及Intercept the crawling data returned by the server to the tested terminal according to the data crawling request; and
将拦截到的爬取数据存储为历史爬取数据,并将拦截到的爬取数据作为模拟爬取数据发送至被测终端。Store the intercepted crawl data as historical crawl data, and send the intercepted crawl data to the tested terminal as simulated crawl data.
在一些实施例中,处理器执行计算机可读指令计算机可读指令时还实现以下步骤:In some embodiments, the processor further implements the following steps when executing the computer readable instructions:
在被测终端根据异步接收到的模拟爬取数据更新页面后,记录被测终端的页面更新状态;After the tested terminal updates the page according to the asynchronously received simulated crawling data, record the page update status of the tested terminal;
获取与异步接收到的模拟爬取数据对应的页面预期更新状态;及Obtain the expected update status of the page corresponding to the asynchronously received simulated crawl data; and
将页面更新状态与页面预期更新状态比较,生成页面测试报告。Compare the page update status with the expected update status of the page, and generate a page test report.
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-volatile storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps:
异步获取被测终端对应各业务流程节点发送的数据爬取请求;Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node;
提取数据爬取请求中的业务流程节点标识;获取与业务流程节点标识对应的测试配置文件;Extract the business process node identifier in the data crawling request; obtain the test configuration file corresponding to the business process node identifier;
根据测试配置文件生成业务流程节点标识对应的模拟爬取数据;Generate simulated crawling data corresponding to the business process node identifier according to the test configuration file;
将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
在被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录被测终端的页面更新状态,得到页面测试报告。After the tested terminal updates the page according to the asynchronously received simulated crawling data, the page update status of the tested terminal is recorded, and the page test report is obtained.
在一些实施例中,计算机可读指令计算机可读指令被处理器执行时还实现以下步骤:In some embodiments, the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
向被测终端发送权限验证请求;Send a permission verification request to the tested terminal;
获取被测终端根据权限验证请求,在权限验证页面触发的验证通过通知;Obtain the verification pass notification triggered by the tested terminal on the permission verification page according to the permission verification request;
根据验证通过通知对被测终端发送的数据爬取请求进行监听;及Monitor the data crawling request sent by the tested terminal according to the verification pass notification; and
当监听到被测终端向服务器发送数据爬取请求时,拦截被测终端发送的数据爬取请求。When monitoring the data crawling request sent by the tested terminal to the server, intercept the data crawling request sent by the tested terminal.
在一些实施例中,计算机可读指令计算机可读指令被处理器执行时还实现以下步骤:In some embodiments, the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
获取携带有业务流程节点标识的测试指令;及Obtain the test instruction carrying the business process node identifier; and
查询与测试指令中携带的业务流程节点标识对应的测试用例;根据测试用例向被测终端发送权限验证请求。Query the test case corresponding to the business process node identifier carried in the test instruction; send a permission verification request to the tested terminal according to the test case.
在一些实施例中,计算机可读指令计算机可读指令被处理器执行时还实现以下步骤:In some embodiments, the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
在已存储的历史爬取数据中,查询与业务流程节点标识对应的历史爬取数据;In the stored historical crawling data, query the historical crawling data corresponding to the business process node identifier;
提取测试配置文件中参数标识和场景配置参数;及Extract the parameter identification and scene configuration parameters in the test configuration file; and
按照场景配置参数,对查询到的历史爬取数据中与参数标识对应的参数进行配置,生成模拟爬取数据。Configure the parameters according to the scenario, configure the parameters corresponding to the parameter identifiers in the queried historical crawling data, and generate simulated crawling data.
在一些实施例中,计算机可读指令计算机可读指令被处理器执行时还实现以下步骤:In some embodiments, the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
当未查询到与业务流程节点标识对应的历史爬取数据时,从业务流程节点标识对应的数据爬取请求中提取服务器地址;When the historical crawl data corresponding to the business process node identifier is not queried, extract the server address from the data crawl request corresponding to the business process node identifier;
将数据爬取请求发送至服务器地址对应的服务器;Send the data crawling request to the server corresponding to the server address;
拦截服务器根据数据爬取请求向被测终端返回的爬取数据;及Intercept the crawling data returned by the server to the tested terminal according to the data crawling request; and
将拦截到的爬取数据存储为历史爬取数据,并将拦截到的爬取数据作为模拟爬取数据发送至被测终端。Store the intercepted crawl data as historical crawl data, and send the intercepted crawl data to the tested terminal as simulated crawl data.
在一些实施例中,计算机可读指令计算机可读指令被处理器执行时还实现以下步骤:In some embodiments, the computer-readable instructions when the computer-readable instructions are executed by the processor further implement the following steps:
在被测终端根据异步接收到的模拟爬取数据更新页面后,记录被测终端的页面更新状态;及After the tested terminal updates the page according to the asynchronously received simulated crawling data, record the page update status of the tested terminal; and
获取与异步接收到的模拟爬取数据对应的页面预期更新状态;将页面更新状态与页面预期更新状态比较,生成页面测试报告。Obtain the expected update status of the page corresponding to the asynchronously received simulated crawling data; compare the page update status with the expected update status of the page, and generate a page test report.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(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, which 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. 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 technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种页面数据测试方法,包括:A page data testing method, including:
    异步获取被测终端对应各业务流程节点发送的数据爬取请求;Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node;
    提取所述数据爬取请求中的业务流程节点标识;Extracting the business process node identifier in the data crawling request;
    获取与所述业务流程节点标识对应的测试配置文件;Obtaining a test configuration file corresponding to the business process node identifier;
    根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;Generating simulated crawl data corresponding to the business process node identifier according to the test configuration file;
    将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
    在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。After the terminal under test performs page update according to the asynchronously received simulated crawling data, the page update status of the terminal under test is recorded to obtain a page test report.
  2. 根据权利要求1所述的方法,其特征在于,所述异步获取被测终端对应各业务流程节点发送的数据爬取请求,包括:The method according to claim 1, wherein the asynchronously acquiring data crawling requests sent by the tested terminal corresponding to each business process node comprises:
    向被测终端发送权限验证请求;Send a permission verification request to the tested terminal;
    获取所述被测终端根据所述权限验证请求,在权限验证页面触发的验证通过通知;Obtaining a verification pass notification triggered on the permission verification page by the tested terminal according to the permission verification request;
    根据所述验证通过通知对所述被测终端发送的数据爬取请求进行监听;及Monitor the data crawl request sent by the tested terminal according to the verification pass notification; and
    当监听到所述被测终端向服务器发送数据爬取请求时,拦截所述被测终端发送的数据爬取请求。When it is monitored that the terminal under test sends a data crawl request to the server, intercept the data crawl request sent by the terminal under test.
  3. 根据权利要求2所述的方法,其特征在于,所述向被测终端发送权限验证请求,包括:The method according to claim 2, wherein the sending a permission verification request to the terminal under test comprises:
    获取携带有业务流程节点标识的测试指令;Obtain a test instruction carrying a business process node identifier;
    查询与所述测试指令中携带的业务流程节点标识对应的测试用例;及Query the test case corresponding to the business process node identifier carried in the test instruction; and
    根据所述测试用例向被测终端发送权限验证请求。Send a permission verification request to the tested terminal according to the test case.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据,包括:The method according to claim 1, wherein the generating simulation crawling data corresponding to the business process node identifier according to the test configuration file comprises:
    在已存储的历史爬取数据中,查询与所述业务流程节点标识对应的历史爬取数据;In the stored historical crawling data, query the historical crawling data corresponding to the business process node identifier;
    提取所述测试配置文件中参数标识和场景配置参数;及Extracting the parameter identification and scene configuration parameters in the test configuration file; and
    按照所述场景配置参数,对查询到的历史爬取数据中与所述参数标识对应的参数进行配置,生成模拟爬取数据。According to the scenario configuration parameters, the parameters corresponding to the parameter identifiers in the queried historical crawling data are configured to generate simulated crawling data.
  5. 根据权利要求4所述的方法,其特征在于,所述在已存储的历史爬取数据中,查询与所述业务流程节点标识对应的历史爬取数据之后,还包括:The method according to claim 4, characterized in that, after querying the historical crawling data corresponding to the business process node identifier in the stored historical crawling data, the method further comprises:
    当未查询到与所述业务流程节点标识对应的历史爬取数据时,从所述业务流程节点标识对应的数据爬取请求中提取服务器地址;When the historical crawling data corresponding to the business process node identifier is not queried, extract the server address from the data crawl request corresponding to the business process node identifier;
    将所述数据爬取请求发送至所述服务器地址对应的服务器;Sending the data crawling request to the server corresponding to the server address;
    拦截所述服务器根据所述数据爬取请求向所述被测终端返回的爬取数据;及Intercepting the crawling data returned by the server to the tested terminal according to the data crawling request; and
    将拦截到的爬取数据存储为历史爬取数据,并将所述拦截到的爬取数据作为模拟爬取数据发送至所述被测终端。Store the intercepted crawl data as historical crawl data, and send the intercepted crawl data to the tested terminal as simulated crawl data.
  6. 根据权利要求1所述的方法,其特征在于,所述在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告,包括:The method according to claim 1, wherein after the terminal under test performs page update according to asynchronously received simulated crawling data, the page update status of the terminal under test is recorded to obtain a page test report ,include:
    在所述被测终端根据异步接收到的模拟爬取数据更新页面后,记录所述被测终端的页面更新状态;After the terminal under test updates the page according to the asynchronously received simulated crawling data, record the page update status of the terminal under test;
    获取与所述异步接收到的模拟爬取数据对应的页面预期更新状态;及Acquiring the expected update status of the page corresponding to the asynchronously received simulated crawling data; and
    将所述页面更新状态与所述页面预期更新状态比较,生成页面测试报告。The page update status is compared with the expected update status of the page, and a page test report is generated.
  7. 一种页面数据测试装置,包括:A page data testing device, including:
    爬取请求获取模块,用于异步获取被测终端对应各业务流程节点发送的数据爬取请求;The crawl request acquisition module is used to asynchronously acquire the data crawl request sent by the tested terminal corresponding to each business process node;
    节点标识提取模块,用于提取所述数据爬取请求中的业务流程节点标识;Node ID extraction module, used to extract the business process node ID in the data crawling request;
    测试文件获取模块,用于获取与所述业务流程节点标识对应的测试配置文件;A test file obtaining module, configured to obtain a test configuration file corresponding to the business process node identifier;
    模拟数据生成模块,用于根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;A simulation data generation module, configured to generate simulated crawling data corresponding to the business process node identifier according to the test configuration file;
    模拟数据发送模块,用于将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及The analog data sending module is used to asynchronously send the generated simulation crawling data corresponding to each business process node identifier to the tested terminal; and
    测试报告得到模块,用于在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。The test report obtaining module is used to record the page update status of the tested terminal after the tested terminal performs page update according to the asynchronously received simulated crawling data to obtain the page test report.
  8. 根据权利要求7所述的装置,其特征在于,所述爬取请求获取模块还用于向被测终端发送权限验证请求;The device according to claim 7, wherein the crawling request obtaining module is further configured to send a permission verification request to the tested terminal;
    获取所述被测终端根据所述权限验证请求,在权限验证页面触发的验证通过通知;Obtaining a verification pass notification triggered on the permission verification page by the tested terminal according to the permission verification request;
    根据所述验证通过通知对所述被测终端发送的数据爬取请求进行监听;及Monitor the data crawl request sent by the tested terminal according to the verification pass notification; and
    当监听到所述被测终端向服务器发送数据爬取请求时,拦截所述被测终端发送的数据 爬取请求。When it is monitored that the terminal under test sends a data crawl request to the server, intercept the data crawl request sent by the terminal under test.
  9. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器存储有计算机可读指令,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors, the memory stores computer-readable instructions, and is characterized in that, when the computer-readable instructions are executed by the one or more processors, the One or more processors perform the following steps:
    异步获取被测终端对应各业务流程节点发送的数据爬取请求;Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node;
    提取所述数据爬取请求中的业务流程节点标识;Extracting the business process node identifier in the data crawling request;
    获取与所述业务流程节点标识对应的测试配置文件;Obtaining a test configuration file corresponding to the business process node identifier;
    根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;Generating simulated crawl data corresponding to the business process node identifier according to the test configuration file;
    将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
    在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。After the terminal under test performs page update according to the asynchronously received simulated crawling data, the page update status of the terminal under test is recorded to obtain a page test report.
  10. 根据权利要求x所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim x, wherein the processor further executes the following steps when executing the computer readable instruction:
    向被测终端发送权限验证请求;Send a permission verification request to the tested terminal;
    获取所述被测终端根据所述权限验证请求,在权限验证页面触发的验证通过通知;Obtaining a verification pass notification triggered on the permission verification page by the tested terminal according to the permission verification request;
    根据所述验证通过通知对所述被测终端发送的数据爬取请求进行监听;及Monitor the data crawl request sent by the tested terminal according to the verification pass notification; and
    当监听到所述被测终端向服务器发送数据爬取请求时,拦截所述被测终端发送的数据爬取请求。When it is monitored that the terminal under test sends a data crawl request to the server, intercept the data crawl request sent by the terminal under test.
  11. 根据权利要求x所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim x, wherein the processor further executes the following steps when executing the computer readable instruction:
    获取携带有业务流程节点标识的测试指令;Obtain a test instruction carrying a business process node identifier;
    查询与所述测试指令中携带的业务流程节点标识对应的测试用例;及Query the test case corresponding to the business process node identifier carried in the test instruction; and
    根据所述测试用例向被测终端发送权限验证请求。Send a permission verification request to the tested terminal according to the test case.
  12. 根据权利要求x所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim x, wherein the processor further executes the following steps when executing the computer readable instruction:
    在已存储的历史爬取数据中,查询与所述业务流程节点标识对应的历史爬取数据;In the stored historical crawling data, query the historical crawling data corresponding to the business process node identifier;
    提取所述测试配置文件中参数标识和场景配置参数;及Extracting the parameter identification and scene configuration parameters in the test configuration file; and
    按照所述场景配置参数,对查询到的历史爬取数据中与所述参数标识对应的参数进行配置,生成模拟爬取数据。According to the scenario configuration parameters, the parameters corresponding to the parameter identifiers in the queried historical crawling data are configured to generate simulated crawling data.
  13. 根据权利要求x所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim x, wherein the processor further executes the following steps when executing the computer readable instruction:
    当未查询到与所述业务流程节点标识对应的历史爬取数据时,从所述业务流程节点标识对应的数据爬取请求中提取服务器地址;When the historical crawling data corresponding to the business process node identifier is not queried, extract the server address from the data crawl request corresponding to the business process node identifier;
    将所述数据爬取请求发送至所述服务器地址对应的服务器;Sending the data crawling request to the server corresponding to the server address;
    拦截所述服务器根据所述数据爬取请求向所述被测终端返回的爬取数据;及Intercepting the crawling data returned by the server to the tested terminal according to the data crawling request; and
    将拦截到的爬取数据存储为历史爬取数据,并将所述拦截到的爬取数据作为模拟爬取数据发送至所述被测终端。Store the intercepted crawl data as historical crawl data, and send the intercepted crawl data to the tested terminal as simulated crawl data.
  14. 根据权利要求x所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim x, wherein the processor further executes the following steps when executing the computer readable instruction:
    在所述被测终端根据异步接收到的模拟爬取数据更新页面后,记录所述被测终端的页面更新状态;After the terminal under test updates the page according to the asynchronously received simulated crawling data, record the page update status of the terminal under test;
    获取与所述异步接收到的模拟爬取数据对应的页面预期更新状态;及Acquiring the expected update status of the page corresponding to the asynchronously received simulated crawling data; and
    将所述页面更新状态与所述页面预期更新状态比较,生成页面测试报告。The page update status is compared with the expected update status of the page, and a page test report is generated.
  15. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    异步获取被测终端对应各业务流程节点发送的数据爬取请求;Asynchronously obtain data crawling requests sent by the tested terminal corresponding to each business process node;
    提取所述数据爬取请求中的业务流程节点标识;Extracting the business process node identifier in the data crawling request;
    获取与所述业务流程节点标识对应的测试配置文件;Obtaining a test configuration file corresponding to the business process node identifier;
    根据所述测试配置文件生成所述业务流程节点标识对应的模拟爬取数据;Generating simulated crawl data corresponding to the business process node identifier according to the test configuration file;
    将生成的各业务流程节点标识对应的模拟爬取数据异步发送至被测终端;及Asynchronously send the generated simulated crawling data corresponding to each business process node identifier to the terminal under test; and
    在所述被测终端根据异步接收到的模拟爬取数据进行页面更新后,记录所述被测终端的页面更新状态,得到页面测试报告。After the terminal under test performs page update according to the asynchronously received simulated crawling data, the page update status of the terminal under test is recorded to obtain a page test report.
  16. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    向被测终端发送权限验证请求;Send a permission verification request to the tested terminal;
    获取所述被测终端根据所述权限验证请求,在权限验证页面触发的验证通过通知;Obtaining a verification pass notification triggered on the permission verification page by the tested terminal according to the permission verification request;
    根据所述验证通过通知对所述被测终端发送的数据爬取请求进行监听;及Monitor the data crawl request sent by the tested terminal according to the verification pass notification; and
    当监听到所述被测终端向服务器发送数据爬取请求时,拦截所述被测终端发送的数据 爬取请求。When it is monitored that the terminal under test sends a data crawl request to the server, intercept the data crawl request sent by the terminal under test.
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    获取携带有业务流程节点标识的测试指令;Obtain a test instruction carrying a business process node identifier;
    查询与所述测试指令中携带的业务流程节点标识对应的测试用例;及Query the test case corresponding to the business process node identifier carried in the test instruction; and
    根据所述测试用例向被测终端发送权限验证请求。Send a permission verification request to the tested terminal according to the test case.
  18. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    在已存储的历史爬取数据中,查询与所述业务流程节点标识对应的历史爬取数据;In the stored historical crawling data, query the historical crawling data corresponding to the business process node identifier;
    提取所述测试配置文件中参数标识和场景配置参数;及Extracting the parameter identification and scene configuration parameters in the test configuration file; and
    按照所述场景配置参数,对查询到的历史爬取数据中与所述参数标识对应的参数进行配置,生成模拟爬取数据。According to the scenario configuration parameters, the parameters corresponding to the parameter identifiers in the queried historical crawling data are configured to generate simulated crawling data.
  19. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    当未查询到与所述业务流程节点标识对应的历史爬取数据时,从所述业务流程节点标识对应的数据爬取请求中提取服务器地址;When the historical crawling data corresponding to the business process node identifier is not queried, extract the server address from the data crawl request corresponding to the business process node identifier;
    将所述数据爬取请求发送至所述服务器地址对应的服务器;Sending the data crawling request to the server corresponding to the server address;
    拦截所述服务器根据所述数据爬取请求向所述被测终端返回的爬取数据;及Intercepting the crawling data returned by the server to the tested terminal according to the data crawling request; and
    将拦截到的爬取数据存储为历史爬取数据,并将所述拦截到的爬取数据作为模拟爬取数据发送至所述被测终端。Store the intercepted crawl data as historical crawl data, and send the intercepted crawl data to the tested terminal as simulated crawl data.
  20. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the following steps are further executed when the computer-readable instructions are executed by the processor:
    在所述被测终端根据异步接收到的模拟爬取数据更新页面后,记录所述被测终端的页面更新状态;After the terminal under test updates the page according to the asynchronously received simulated crawling data, record the page update status of the terminal under test;
    获取与所述异步接收到的模拟爬取数据对应的页面预期更新状态;及Acquiring the expected update status of the page corresponding to the asynchronously received simulated crawling data; and
    将所述页面更新状态与所述页面预期更新状态比较,生成页面测试报告。The page update status is compared with the expected update status of the page, and a page test report is generated.
PCT/CN2019/122569 2019-03-13 2019-12-03 Page data testing method, apparatus, computer device, and storage medium WO2020181839A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910188972.0 2019-03-13
CN201910188972.0A CN110008118B (en) 2019-03-13 2019-03-13 Page data testing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020181839A1 true WO2020181839A1 (en) 2020-09-17

Family

ID=67167020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122569 WO2020181839A1 (en) 2019-03-13 2019-12-03 Page data testing method, apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN110008118B (en)
WO (1) WO2020181839A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269744A (en) * 2020-10-30 2021-01-26 深圳壹账通智能科技有限公司 System abnormity testing method and device, computer equipment and storage medium
CN112433944A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Service testing method, device, computer equipment and storage medium
CN112527654A (en) * 2020-12-16 2021-03-19 康键信息技术(深圳)有限公司 Test case preparation method and device, computer equipment and storage medium
CN112650683A (en) * 2020-12-28 2021-04-13 京东数字科技控股股份有限公司 Program test method, program test apparatus, and storage medium
CN112817849A (en) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 Test data processing method, device, equipment and storage medium
CN113268417A (en) * 2021-05-18 2021-08-17 北京京东振世信息技术有限公司 Task execution method and device
CN113434410A (en) * 2021-06-25 2021-09-24 青岛海尔科技有限公司 Data testing method and device, storage medium and electronic device
CN113467855A (en) * 2021-06-24 2021-10-01 北京达佳互联信息技术有限公司 Webpage request processing method and device, electronic equipment and storage medium
CN113765735A (en) * 2021-04-19 2021-12-07 北京沃东天骏信息技术有限公司 Application testing method, device, equipment and storage medium
CN114756446A (en) * 2021-01-11 2022-07-15 腾讯科技(深圳)有限公司 Interface debugging method and device
CN114780432A (en) * 2022-05-11 2022-07-22 平安国际智慧城市科技股份有限公司 Interface test method, device, equipment and storage medium
CN116527548A (en) * 2023-06-26 2023-08-01 中国电信股份有限公司江西分公司 IPv 6-based dynamic test method and system

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008118B (en) * 2019-03-13 2023-03-10 深圳壹账通智能科技有限公司 Page data testing method and device, computer equipment and storage medium
CN110659517A (en) * 2019-08-30 2020-01-07 深圳壹账通智能科技有限公司 Data verification method and device, computer equipment and storage medium
CN110730107B (en) * 2019-09-02 2022-07-12 深圳壹账通智能科技有限公司 Test data generation method and device, computer equipment and storage medium
CN111176641B (en) * 2019-12-03 2023-06-02 泰康保险集团股份有限公司 Flow node execution method, device, medium and electronic equipment
CN111209187B (en) * 2019-12-26 2024-03-15 深圳市奇迅新游科技股份有限公司 Service request processing method, device, computer equipment and storage medium
CN111177003A (en) * 2019-12-30 2020-05-19 北京同邦卓益科技有限公司 Test method, device, system, electronic equipment and storage medium
CN111324629B (en) * 2020-02-19 2023-08-15 望海康信(北京)科技股份公司 Service data processing method and device, electronic equipment and computer storage medium
CN112416350A (en) * 2020-12-14 2021-02-26 深圳壹账通智能科技有限公司 View page construction method and device, computer equipment and storage medium
CN113254337A (en) * 2021-05-24 2021-08-13 北京创源微致软件有限公司 Software function testing system, method and server
CN114780822A (en) * 2022-06-20 2022-07-22 云账户技术(天津)有限公司 Method and device for crawling application program data, electronic equipment and storage medium
CN116010239B (en) * 2022-10-25 2023-12-08 汇通达网络股份有限公司 Automatic test method based on assembly line

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688526A (en) * 2017-08-25 2018-02-13 上海壹账通金融科技有限公司 Performance test methods, device, computer equipment and the storage medium of application program
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN109413153A (en) * 2018-09-26 2019-03-01 深圳壹账通智能科技有限公司 Data crawling method, device, computer equipment and storage medium
CN110008118A (en) * 2019-03-13 2019-07-12 深圳壹账通智能科技有限公司 Page data test method, device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407099B (en) * 2015-07-28 2019-10-22 阿里巴巴集团控股有限公司 A kind of test method and client
CN107102937B (en) * 2016-02-19 2021-03-02 腾讯科技(深圳)有限公司 User interface testing method and device
US20170300402A1 (en) * 2016-04-19 2017-10-19 Sap Se Mock server and extensions for application testing
CN107256195B (en) * 2017-06-08 2019-01-29 武汉斗鱼网络科技有限公司 Webpage front-end test method and device
CN108427635A (en) * 2018-01-03 2018-08-21 深圳壹账通智能科技有限公司 Quickly method, server and the computer readable storage medium of test web page
CN108268375B (en) * 2018-01-12 2021-04-30 深圳壹账通智能科技有限公司 Application program testing method and device, computer equipment and storage medium
CN108848000B (en) * 2018-05-07 2021-05-11 深圳壹账通智能科技有限公司 Network request testing method and device, computer equipment and storage medium
CN109359050A (en) * 2018-11-15 2019-02-19 北京奇虎科技有限公司 Webpage test method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688526A (en) * 2017-08-25 2018-02-13 上海壹账通金融科技有限公司 Performance test methods, device, computer equipment and the storage medium of application program
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN109413153A (en) * 2018-09-26 2019-03-01 深圳壹账通智能科技有限公司 Data crawling method, device, computer equipment and storage medium
CN110008118A (en) * 2019-03-13 2019-07-12 深圳壹账通智能科技有限公司 Page data test method, device, computer equipment and storage medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269744A (en) * 2020-10-30 2021-01-26 深圳壹账通智能科技有限公司 System abnormity testing method and device, computer equipment and storage medium
CN112433944A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Service testing method, device, computer equipment and storage medium
CN112527654A (en) * 2020-12-16 2021-03-19 康键信息技术(深圳)有限公司 Test case preparation method and device, computer equipment and storage medium
CN112650683A (en) * 2020-12-28 2021-04-13 京东数字科技控股股份有限公司 Program test method, program test apparatus, and storage medium
CN114756446A (en) * 2021-01-11 2022-07-15 腾讯科技(深圳)有限公司 Interface debugging method and device
CN112817849A (en) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 Test data processing method, device, equipment and storage medium
CN112817849B (en) * 2021-01-28 2024-06-04 北京达佳互联信息技术有限公司 Test data processing method, device, equipment and storage medium
CN113765735A (en) * 2021-04-19 2021-12-07 北京沃东天骏信息技术有限公司 Application testing method, device, equipment and storage medium
CN113268417B (en) * 2021-05-18 2023-09-22 北京京东振世信息技术有限公司 Task execution method and device
CN113268417A (en) * 2021-05-18 2021-08-17 北京京东振世信息技术有限公司 Task execution method and device
CN113467855A (en) * 2021-06-24 2021-10-01 北京达佳互联信息技术有限公司 Webpage request processing method and device, electronic equipment and storage medium
CN113467855B (en) * 2021-06-24 2024-03-19 北京达佳互联信息技术有限公司 Webpage request processing method and device, electronic equipment and storage medium
CN113434410A (en) * 2021-06-25 2021-09-24 青岛海尔科技有限公司 Data testing method and device, storage medium and electronic device
CN114780432A (en) * 2022-05-11 2022-07-22 平安国际智慧城市科技股份有限公司 Interface test method, device, equipment and storage medium
CN116527548A (en) * 2023-06-26 2023-08-01 中国电信股份有限公司江西分公司 IPv 6-based dynamic test method and system
CN116527548B (en) * 2023-06-26 2023-09-05 中国电信股份有限公司江西分公司 IPv 6-based dynamic test method and system

Also Published As

Publication number Publication date
CN110008118A (en) 2019-07-12
CN110008118B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
WO2020181839A1 (en) Page data testing method, apparatus, computer device, and storage medium
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
WO2020253061A1 (en) Page generating method and apparatus, computer device, and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN109446068B (en) Interface test method, device, computer equipment and storage medium
CN109375884B (en) Application log printing method, device, computer equipment and storage medium
CN110008117A (en) Page test method, device, computer equipment and storage medium
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
CN110908778B (en) Task deployment method, system and storage medium
CN109389299B (en) Workflow process deployment method, workflow process deployment device, computer equipment and storage medium
WO2020232883A1 (en) Script defect scanning method and apparatus, computer device and storage medium
CN111475376A (en) Method and device for processing test data, computer equipment and storage medium
CN109542764B (en) Webpage automatic testing method and device, computer equipment and storage medium
CN110245125B (en) Data migration method, device, computer equipment and storage medium
WO2020199594A1 (en) Service component loading method and apparatus, and computer device and storage medium
CN112506481A (en) Service data interaction method and device, computer equipment and storage medium
CN111242317A (en) Method and device for managing application, computer equipment and storage medium
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN113342767A (en) Log generation method, device, equipment and storage medium
CN114780895A (en) Business object recommendation method and device, computer equipment and storage medium
CN108228611B (en) Document information copying method and device
CN114567557B (en) Message processing method, device, computer equipment and storage medium
CN110704218B (en) Data processing method, data processing device, computer equipment and storage medium
CN114186216A (en) System access control method, system, computer device and storage medium
WO2019242112A1 (en) Method and apparatus for obtaining audit field information, computer device, and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.01.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19919287

Country of ref document: EP

Kind code of ref document: A1