A page address determination method and device in a page comparison test and a computing device
Patent Information
- Application Number
- CN202211213292.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2042-09-29
AI Technical Summary
[0004]然而,目前常用的A/B测试平台或工具,在进行页面对比时,通常采用简单的参数替换方式来保证参与测试的各待对比页面的页面参数的一致性,对页面地址的要求比较固定和严格,不支持页面地址中的路径参数,应用场景较为单一且有一定局限性,特别是无法应对各待对比页面的页面地址差异化较大的情况
[0017]根据本发明的页面对比测试中页面地址确定方案,先将当前的待对比页面作为第一页面,再从第一页面关联的页面集合中抽选一个待对比页面作为第二页面,若第一页面和第二页面不一致,则根据第二页面的页面地址模板,对第一页面的页面地址进行调整,以生成第一页面的测试用地址,降低了对待对比页面的页面地址的要求,且不局限于单一场景,可应用于不同待对比页面的页面地址有较大差异等多样化场景。
Smart Images

Figure CN115640211B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software testing technology, and in particular to a method, apparatus, computing device, and storage medium for determining page addresses in page comparison testing. Background Technology
[0002] Page comparison testing, also known as A / B testing, involves creating two or more versions of a web page or application page and having different visitor groups (i.e., the target audience) with the same or similar composition randomly access these versions at the same time. User experience data and business data are collected from each visitor group, and finally, the most suitable version is analyzed and evaluated for official adoption.
[0003] For example, if a shopping website wants to launch a new promotional campaign, it designs multiple versions of the campaign page for initial page comparison testing. The traffic to each version of the campaign page is divided, and based on the completion of the page's functional goals, the differences in traffic to different versions of the campaign page are measured. The final version of the campaign page can then be determined based on these differences.
[0004] However, commonly used A / B testing platforms or tools typically employ simple parameter replacement methods to ensure the consistency of page parameters across the pages being compared during page comparison. They have relatively fixed and strict requirements for page addresses, do not support path parameters in page addresses, and have limited application scenarios, especially in situations where the page addresses of the pages being compared vary significantly.
[0005] Therefore, a method for determining page addresses in page comparison tests is needed to optimize the above processing. Summary of the Invention
[0006] Therefore, the present invention provides a scheme for determining page addresses in page comparison tests, in an attempt to solve or at least alleviate the problems mentioned above.
[0007] According to one aspect of the present invention, a method for determining a page address in a page comparison test is provided, comprising the following steps: First, taking the current page to be compared in the page comparison test as the first page and obtaining the page address of the first page; selecting a page to be compared from a set of pages associated with the first page as the second page, the page set including multiple pages to be compared; determining whether the first page and the second page are consistent; if the first page and the second page are inconsistent, adjusting the page address of the first page according to the page address template of the second page to generate a test address for the first page.
[0008] Optionally, in the page address determination method for page comparison testing according to the present invention, the step of determining whether the first page and the second page are consistent includes: parsing the page address of the first page to extract the corresponding parameter set; comparing the extracted parameter set with the page address template of the second page; and determining whether the first page and the second page are consistent based on the comparison result.
[0009] Optionally, in the page address determination method in the page comparison test according to the present invention, the page address template includes a parameter set of the page address and a page address style, wherein the parameter set includes path parameters, normal parameters and fixed parameters.
[0010] Optionally, in the page address determination method for page comparison testing according to the present invention, the step of adjusting the page address of the first page according to the page address template of the second page to generate a test address for the first page includes: adjusting the path parameters, normal parameters, and fixed parameters of the page address of the first page according to the path parameters, normal parameters, and fixed parameters of the page address of the second page, using the page address style of the second page as a template; and using the adjusted page address of the first page as the test address for the first page.
[0011] Optionally, the page address determination method in the page comparison test according to the present invention further includes pre-generating page address templates for each page to be compared, wherein the version of the page to be compared is a basic version or a reference version.
[0012] Optionally, in the page address determination method for page comparison testing according to the present invention, the step of pre-generating a page address template for each page to be compared includes: for each page to be compared, verifying whether the page address of the page to be compared is valid; if the page address of the page to be compared is valid, extracting path parameters, normal parameters, and fixed parameters from the page address of the page to be compared, and combining them to form a parameter set for the page address of the page to be compared; determining the page address style of the page to be compared, and generating a page address template for the page to be compared by combining it with the parameter set for the page address of the page to be compared.
[0013] Optionally, in the page address determination method of the page comparison test according to the present invention, the step of verifying whether the page address of the page to be compared is valid includes: verifying the protocol header, domain name and path parameters of the page address of the page to be compared to determine whether the page address of the page to be compared is valid; if the protocol header, domain name and path parameters of the page address of the page to be compared are all verified, then the page address of the page to be compared is determined to be valid; otherwise, the page address of the page to be compared is determined to be invalid.
[0014] According to another aspect of the present invention, a page address determination apparatus for page comparison testing is provided, comprising an acquisition module, a selection module, a judgment module, and a generation module. The acquisition module is adapted to take the current page to be compared in the page comparison test as a first page and acquire the page address of the first page; the selection module is adapted to select a page to be compared as a second page from a set of pages associated with the first page, the page set including multiple pages to be compared; the judgment module is adapted to determine whether the first page and the second page are consistent; and the generation module is adapted to adjust the page address of the first page according to the page address template of the second page when the first page and the second page are inconsistent, so as to generate a test address for the first page.
[0015] According to another aspect of the present invention, a computing device is provided, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the page address determination method in the page comparison test as described above.
[0016] According to another aspect of the present invention, a readable storage medium storing program instructions is provided, which, when read and executed by a computing device, causes the computing device to perform the page address determination method in the page comparison test as described above.
[0017] According to the page address determination scheme in the page comparison test of the present invention, the current page to be compared is firstly taken as the first page, and then a page to be compared is selected from the set of pages associated with the first page as the second page. If the first page and the second page are inconsistent, the page address of the first page is adjusted according to the page address template of the second page to generate the test address of the first page. This reduces the requirements for the page address of the page to be compared and is not limited to a single scenario. It can be applied to diverse scenarios such as when the page addresses of different pages to be compared have large differences.
[0018] In the above technical solution, the page address template typically needs to be pre-generated, including a parameter set and a page address style. The parameter set includes path parameters, normal parameters, and fixed parameters. By parsing the page address of the first page, the corresponding parameter set can be extracted. Then, when generating the test address for the first page, based on the path parameters, normal parameters, and fixed parameters of the second page's page address, and using the page address style of the second page as a template, the path parameters, normal parameters, and fixed parameters of the first page's page address are adjusted accordingly to obtain the appropriate test address. This solves the problem of not supporting path parameters and reduces the development and testing workload of determining the page address suitable for page comparison testing. Attached Figure Description
[0019] To achieve the foregoing and related objectives, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings. These aspects indicate various ways in which the principles disclosed herein may be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The foregoing and other objectives, features, and advantages of this disclosure will become more apparent from the following detailed description, taken in conjunction with the accompanying drawings. Throughout this disclosure, the same reference numerals generally refer to the same parts or elements.
[0020] Figure 1 A structural block diagram of a computing device 100 according to an embodiment of the present invention is shown;
[0021] Figure 2 A flowchart of a page address determination method 200 in a page comparison test according to an embodiment of the present invention is shown; and
[0022] Figure 3 A schematic diagram of a page address determination device 300 in a page comparison test according to an embodiment of the present invention is shown. Detailed Implementation
[0023] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0024] Figure 1 A structural block diagram of a computing device 100 according to an embodiment of the present invention is shown.
[0025] like Figure 1 As shown, in the basic configuration 102, the computing device 100 typically includes system memory 106 and one or more processors 104. Memory bus 108 can be used for communication between processor 104 and system memory 106.
[0026] Depending on the desired configuration, processor 104 can be any type of processor, including but not limited to: microprocessor (UP), microcontroller (UC), digital information processor (DSP), or any combination thereof. Processor 104 may include one or more levels of cache such as L1 cache 110 and L2 cache 112, processor core 114, and registers 116. Example processor core 114 may include an arithmetic logic unit (ALU), floating-point unit (FPU), digital signal processing core (DSP core), or any combination thereof. Example memory controller 118 may be used with processor 104, or in some implementations, memory controller 118 may be an internal part of processor 104.
[0027] Depending on the desired configuration, system memory 106 can be any type of memory, including but not limited to volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include operating system 120, one or more applications 122, and program data 124. In some embodiments, application 122 may be arranged to execute instructions on the operating system using program data 124 by one or more processors 104.
[0028] The computing device 100 also includes a storage device 132, which includes a removable storage device 136 and a non-removable storage device 138.
[0029] The computing device 100 may also include a storage interface bus 134. The storage interface bus 134 enables communication from storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to the basic configuration 102 via a bus / interface controller 130. At least a portion of the operating system 120, application 122, and program data 124 may be stored on the removable storage 136 and / or the non-removable storage 138, and loaded into system memory 106 via the storage interface bus 134 when the computing device 100 is powered on or when application 122 is to be executed, and executed by one or more processors 104.
[0030] The computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via a bus / interface controller 130. Example output devices 142 include a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices such as displays or speakers via one or more A / V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 158. Example communication devices 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via a network communication link through one or more communication ports 164.
[0031] A network communication link can be an example of a communication medium. A communication medium can typically be embodied in a modulated data signal, such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A “modulated data signal” can be a signal whose data set, or its modifications, can be encoded as information within the signal. As a non-limiting example, a communication medium can include wired media such as wired networks or leased lines, and various wireless media including sound, radio frequency (RF), microwave, infrared (IR), or other wireless media. The term “computer-readable medium” as used herein can include both storage media and communication media.
[0032] The computing device 100 can be implemented as a personal computer, including desktop and laptop computer configurations. Of course, the computing device 100 can also be implemented as part of a small-sized portable (or mobile) electronic device, such as a cellular phone, digital camera, personal digital assistant (PDA), personal media player device, wireless network browsing device, personal head-mounted device, application-specific device, or a hybrid device that may include any of the above functions. It can even be implemented as a server, such as a file server, database server, application server, and web server. The embodiments of the present invention do not limit this.
[0033] In an embodiment of the present invention, computing device 100 is configured to execute a page address determination method 200 in a page comparison test according to the present invention. An application 122 arranged on an operating system includes a plurality of program instructions for executing the method 200 of the present invention. These program instructions can instruct processor 104 to execute the method 200 of the present invention so that computing device 100 determines the page address in a page comparison test by executing the method 200 of the present invention.
[0034] According to an embodiment of the present invention, application 122 arranged on an operating system includes a page address determination device 300 for page comparison testing. The device 300 includes multiple program instructions for executing the page address determination method 200 for page comparison testing of the present invention, so that the method 200 of the present invention can be executed in the device 300.
[0035] Figure 2 A flowchart of a page address determination method 200 in a page comparison test according to an embodiment of the present invention is shown. Method 200 can be executed in a page address determination apparatus 300 in a computing device (e.g., the aforementioned computing device 100). It should be noted that the page address here generally refers to a URL (Uniform Resource Locator) address; unless otherwise specified, page address refers to a URL address.
[0036] like Figure 2 As shown, method 200 begins with step S210. In step S210, the current page to be compared in the page comparison test is taken as the first page, and the page address of the first page is obtained.
[0037] Before performing page comparison tests, it is usually necessary to preprocess each page to be compared to obtain a corresponding page address template. This facilitates subsequent adjustment of the page addresses of the pages currently participating in the page comparison test, thereby obtaining the test addresses. Based on this, according to an embodiment of the present invention, method 200 further includes pre-generating page address templates for each page to be compared. The version of the page to be compared is a basic version or a reference version.
[0038] Regarding the comparison pages and their versions, a brief example is provided below for easier understanding. Suppose an e-commerce website is launching a product promotion and has designed three promotional pages: page P1, page P2, and page P3. A comparison test of these three pages is needed to determine which page will be ultimately selected for deployment. These three pages are the comparison pages; one version will be the base version, and the remaining two versions will be the reference versions.
[0039] In other words, among the three pages to be compared, there is one basic version, such as page P1, which can be considered the basic version page, and two reference versions, such as pages P2 and P3, which can be considered the reference versions pages. It should be noted that there is one and only one basic version page, while there is no limit to the number of reference versions pages; there can be only one or multiple. The basic version page and the reference version pages have essentially the same functionality; the differences are mostly in page layout, icon style, color, font, etc. Users visiting pages will have a certain preference for pages with different styles. Therefore, the goal is to select the page to be compared that is more popular with users and can bring more revenue to the event provider—this is the significance of page comparison testing.
[0040] According to one embodiment of the present invention, page address templates for each page to be compared can be pre-generated in the following manner. In this embodiment, the validity of the page address of each page to be compared is first verified. Specifically, the protocol header, domain name, and path parameters of the page address to be compared are verified to determine whether the page address of the page to be compared is valid. If the protocol header, domain name, and path parameters of the page address to be compared all pass the verification, the page address of the page to be compared is determined to be valid; otherwise, the page address of the page to be compared is determined to be invalid.
[0041] For example, the page address is http: / / www.xyzqcjz.com.cn / page1 / ?param1=1 ?param2=2#target0, where "http: / / " is the protocol header, "www.xyzqcjz.com.cn" is the domain name, " / page1" is the path parameter, "?param1=1 ?param2=2" are normal parameters, and "#target0" is the fixed parameter. The fixed parameter here uses the anchor parameter in the URL address, which starts with the symbol "#". Anchor parameters can be used to record the source of the page; that is, when there may be two or more different entry pages for the same page, different anchor parameters are used to identify them.
[0042] For a valid page URL, the protocol header, domain name, and path parameters are necessary components, but they are not required to include normal parameters and fixed parameters. Therefore, when the protocol header, domain name, and path parameters of the page URL to be compared all pass verification, the page URL to be compared can be determined to be valid. If the page URL to be compared is valid, then the path parameters, normal parameters, and fixed parameters are extracted from the page URL to form the parameter set of the page URL to be compared. Extraction can be performed using regular expressions. In actual implementation, verification and extraction can be completed in one step; that is, once verification is successful, the desired content can be extracted.
[0043] Assume the address of the basic page P1 is http: / / order / P1?brandId=1, the address of the reference page P2 is http: / / order / P2?brandId=1, and the address of the reference page P3 is http: / / order / P3?brandId=1. Taking the basic page P1 as an example, the protocol header "http: / / ", the domain name "order", and the path parameter " / P1" of its address "http: / / order / P1?brandId=1" are validated to determine whether the address of the basic page P1 is valid. If valid, the path parameter, normal parameter, and fixed parameter are extracted and represented by the symbols "$", "?", and "#" respectively. For the path parameter, it can be further represented by the symbols "$1", "$2", etc. in sequence. Since the page address "http: / / order / P1?brandId=1" does not contain a fixed parameter, only the path parameter " / P1" and the normal parameter "?brandId=1" are extracted and combined to form the corresponding parameter set.
[0044] After obtaining the parameter set of the page address to be compared, the page address style of the page to be compared is determined, and a page address template for the page to be compared is generated by combining the parameter set of the page address to be compared. At this point, it can be confirmed that the page address template includes the parameter set of the page address and the page address style. The parameter set includes path parameters, normal parameters, and fixed parameters.
[0045] Page address templates can be stored in a database for easy use and retrieval later. Path parameters, normal parameters, and fixed parameters in the parameter set can be stored using a Map data structure (a collection of key-value pairs), where the parameter name is a keyword and the parameter value is the value corresponding to the keyword. Since a page address may not necessarily include normal or fixed parameters, these parameters in the parameter set can also be omitted.
[0046] Subsequently, proceeding to step S220, a page to be compared is selected from the set of pages associated with the first page as the second page. The page set includes multiple pages to be compared. All the multiple pages to be compared included in the set of pages associated with the first page will now participate in the page comparison test. Currently, the first page and the second page have been determined to be used for the page comparison test.
[0047] Considering that the second page selected in step S220 has a certain probability of being the first page determined in step S210, in order to avoid the first page and the second page being the same and thus making the page comparison test meaningless, in step S230, it is determined whether the first page and the second page are consistent.
[0048] According to one embodiment of the present invention, whether a first page and a second page are identical can be determined in the following manner. In this embodiment, the page address of the first page is first parsed to extract the corresponding parameter set. For example, regular expressions can be used to identify path parameters, normal parameters, and fixed parameters from the page address of the first page, and then these parameters are combined to form the parameter set of the page address of the first page.
[0049] Then, the extracted parameter set is compared with the page address template of the second page, and the comparison result determines whether the first page and the second page are consistent. Specifically, the path parameters and normal parameters in the parameter set of the page address of the first page are compared with the path parameters and normal parameters in the parameter set included in the page address template of the second page. If they are completely identical, the first page and the second page are considered consistent; otherwise, the first page and the second page are considered inconsistent.
[0050] Finally, step S240 is executed. If the first page and the second page are inconsistent, the page address of the first page is adjusted according to the page address template of the second page to generate a test address for the first page.
[0051] According to one embodiment of the present invention, the page address of the first page can be adjusted based on the page address template of the second page to generate a test address for the first page. In this embodiment, based on the path parameters, normal parameters, and fixed parameters of the page address of the second page, and using the page address style of the second page as a template, the path parameters, normal parameters, and fixed parameters of the page address of the first page are adjusted accordingly, and the adjusted page address of the first page is used as the test address of the first page.
[0052] In actual adjustments, the values of the path parameters, normal parameters, and fixed parameters of the page address of the first page are replaced with the corresponding positions in the page address style of the second page. The path parameters are identified according to their order of appearance, the normal parameters are directly concatenated with the symbols "?" and "$" (the concatenation order does not affect the result), and the fixed parameters are directly appended to the end of the page address.
[0053] Figure 3 A schematic diagram of a page address determination apparatus 300 in a page comparison test according to an embodiment of the present invention is shown. The apparatus 300 resides in a computing device (e.g., the aforementioned computing device 100) and determines the page address in a page comparison test by executing the method 200 of the present invention.
[0054] like Figure 3As shown, the page address determination device 300 in the page comparison test includes an acquisition module 310, a selection module 320, a judgment module 330 and a generation module 340 connected in sequence. The acquisition module 310 is also connected to the judgment module 330 and the generation module 340 respectively.
[0055] The acquisition module 310 can use the current page to be compared in the page comparison test as the first page and obtain the page address of the first page. Then, the selection module 320 can select a page to be compared from the set of pages associated with the first page as the second page; the page set includes multiple pages to be compared. The judgment module 330 can determine whether the first page and the second page are consistent. When the first page and the second page are inconsistent, the generation module 340 can adjust the page address of the first page according to the page address template of the second page to generate a test address for the first page.
[0056] It should be noted that the acquisition module 310 is used to execute the aforementioned step S210, the selection module 320 is used to execute the aforementioned step S220, the judgment module 330 is used to execute the aforementioned step S230, and the generation module 340 is used to execute the aforementioned step S240. Here, the execution logic of the acquisition module 310, the selection module 320, the judgment module 330, and the generation module 340 can be found in the detailed description of steps S210 to S240 in method 200 above, and will not be repeated here.
[0057] According to the page address determination scheme in the page comparison test of the present invention, the current page to be compared is firstly taken as the first page, and then a page to be compared is selected from the set of pages associated with the first page as the second page. If the first page and the second page are inconsistent, the page address of the first page is adjusted according to the page address template of the second page to generate the test address of the first page. This reduces the requirements for the page address of the page to be compared and is not limited to a single scenario. It can be applied to diverse scenarios such as when the page addresses of different pages to be compared have significant differences.
[0058] In the above technical solution, the page address template typically needs to be pre-generated, including a parameter set and a page address style. The parameter set includes path parameters, normal parameters, and fixed parameters, and different types of parameters can be categorized, saved, and processed. The parameter set can be obtained by parsing and extracting the page address, such as using regular expressions to match and identify various parameters. Furthermore, when generating the test address for the first page, based on the path parameters, normal parameters, and fixed parameters of the second page's page address, and using the page address style of the second page as a template, the path parameters, normal parameters, and fixed parameters of the first page's page address are adjusted accordingly to obtain the corresponding test address. This solves the problem of not supporting path parameters and reduces the development and testing workload of the function of determining the page address suitable for page comparison testing.
[0059] The various techniques described herein can be implemented in combination with hardware or software, or a combination thereof. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, USB flash drive, floppy disk, CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into and executed by a machine such as a computer, the machine becomes an apparatus for practicing the present invention.
[0060] When the program code is executed on a programmable computer, the computing device generally includes a processor, a processor-readable storage medium (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store program code; the processor is configured to execute the page address determination method in the page comparison test of the present invention according to instructions in the program code stored in the memory.
[0061] By way of example, and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer-readable instructions, data structures, program modules, or other data. Communication media generally embodies computer-readable instructions, data structures, program modules, or other data in the form of modulated data signals such as carrier waves or other transmission mechanisms, and includes any information delivery medium. Any combination of the above is also included within the scope of readable media.
[0062] In the specification provided herein, the algorithms and displays are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with the examples of this invention. The required structure for constructing such systems is apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the invention.
[0063] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0064] Similarly, it should be understood that, in order to streamline this disclosure and aid in understanding one or more of the various aspects of the invention, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.
[0065] Those skilled in the art will understand that modules, units, or components of the devices disclosed in the examples herein can be arranged in the devices described in this embodiment, or alternatively, can be located in one or more devices different from the devices in this example. The modules in the foregoing examples can be combined into a single module or, in addition, can be divided into multiple sub-modules.
[0066] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0067] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features but not others included in other embodiments, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0068] Furthermore, some of the embodiments described herein are methods or combinations of method elements that can be implemented by a processor of a computer system or by other means of performing the functions. Therefore, a processor having the necessary instructions for implementing the methods or method elements forms means for implementing the methods or method elements. Furthermore, the elements described herein in the apparatus embodiments are examples of means for implementing the functions performed by elements for the purposes of carrying out the invention.
[0069] As used herein, unless otherwise specified, the use of ordinal numbers such as “first,” “second,” “third,” etc., to describe ordinary objects merely indicates different instances of similar objects and is not intended to imply that the objects being described must have a given order in time, space, ordering, or any other manner.
[0070] Although the invention has been described with reference to a limited number of embodiments, those skilled in the art will understand from the foregoing description that other embodiments are conceivable within the scope of the invention described herein. Furthermore, it should be noted that the language used in this specification has been chosen primarily for readability and edibility purposes, and not for the purpose of interpreting or limiting the subject matter of the invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the invention is illustrative and not restrictive, and the scope of the invention is defined by the appended claims.
Claims
1. A method for determining page addresses in page comparison testing, comprising: In the page comparison test, the current page to be compared is taken as the first page, and the page address of the first page is obtained; Select a page to be compared from the set of pages associated with the first page as the second page, wherein the set of pages includes multiple pages to be compared; Determining whether the first page and the second page are consistent includes: parsing the page address of the first page to extract the corresponding parameter set; comparing the path parameters and normal parameters in the parameter set of the page address of the first page with the path parameters and normal parameters in the parameter set included in the page address template of the second page; if the two are completely identical, then the first page and the second page are consistent; otherwise, the first page and the second page are inconsistent. If the first page and the second page are inconsistent, the page address of the first page is adjusted according to the page address template of the second page to generate a test address for the first page, including replacing the values of the path parameters, normal parameters and fixed parameters of the page address of the first page with the corresponding positions of the page address style of the second page.
2. The method as described in claim 1, wherein, The page address template includes a set of page address parameters and a page address style. The set of parameters includes path parameters, normal parameters, and fixed parameters.
3. The method as described in claim 2, wherein, The step of adjusting the page address of the first page according to the page address template of the second page to generate a test address for the first page includes: Based on the path parameters, normal parameters, and fixed parameters of the page address of the second page, and using the page address style of the second page as a template, the path parameters, normal parameters, and fixed parameters of the page address of the first page are adjusted accordingly. Use the adjusted URL of the first page as the test URL for the first page.
4. The method according to any one of claims 1-3 further includes pre-generating page address templates for each page to be compared, wherein the version of the page to be compared is a basic version or a reference version.
5. The method of claim 4, wherein, The step of pre-generating page address templates for each page to be compared includes: For each page to be compared, verify whether the page address of the page to be compared is valid; If the page address of the page to be compared is valid, then path parameters, normal parameters and fixed parameters are extracted from the page address of the page to be compared, and these are combined to form the parameter set of the page address of the page to be compared. The page address style of the page to be compared is determined, and a page address template of the page to be compared is generated by combining the parameter set of the page address of the page to be compared.
6. The method of claim 5, wherein, The step of verifying whether the page address of the page to be compared is valid includes: The protocol header, domain name, and path parameters of the page address to be compared are verified to determine whether the page address to be compared is valid. If the protocol header, domain name, and path parameters of the page address to be compared are all verified, then the page address to be compared is determined to be valid; otherwise, the page address to be compared is determined to be invalid.
7. A device for determining page addresses in a page comparison test, comprising: The acquisition module is adapted to take the current page to be compared in the page comparison test as the first page and obtain the page address of the first page; The selection module is adapted to select a page to be compared as the second page from the page set associated with the first page; the page set includes multiple pages to be compared. The judgment module is adapted to determine whether the first page and the second page are consistent, and is further adapted to: parse the page address of the first page to extract the corresponding parameter set; compare the path parameters and normal parameters in the parameter set of the page address of the first page with the path parameters and normal parameters in the parameter set included in the page address template of the second page respectively; if the two are completely the same, then the first page and the second page are consistent; otherwise, the first page and the second page are inconsistent. The generation module is adapted to adjust the page address of the first page according to the page address template of the second page when the first page and the second page are inconsistent, so as to generate a test address for the first page. It is further adapted to replace the values of the path parameters, normal parameters and fixed parameters of the page address of the first page with the corresponding positions of the page address style of the second page.
8. A computing device, comprising: At least one processor; as well as A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the method as described in any one of claims 1-6.
9. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Test method of multi-version webpage visiting
CN104102577A
Page service A / B testing method and device
CN107273290A
