CN112035339A - Page testing method, device and equipment - Google Patents

Page testing method, device and equipment Download PDF

Info

Publication number
CN112035339A
CN112035339A CN202010739851.3A CN202010739851A CN112035339A CN 112035339 A CN112035339 A CN 112035339A CN 202010739851 A CN202010739851 A CN 202010739851A CN 112035339 A CN112035339 A CN 112035339A
Authority
CN
China
Prior art keywords
page
version
static resource
displaying
resource
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010739851.3A
Other languages
Chinese (zh)
Inventor
冯阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Youheng Network Technology Co Ltd
Original Assignee
Changsha Youheng Network Technology Co Ltd
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 Changsha Youheng Network Technology Co Ltd filed Critical Changsha Youheng Network Technology Co Ltd
Priority to CN202010739851.3A priority Critical patent/CN112035339A/en
Publication of CN112035339A publication Critical patent/CN112035339A/en
Pending legal-status Critical Current

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
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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

The embodiment of the invention provides a page testing method, a page testing device and page testing equipment. The method comprises the following steps: displaying the page of the first version according to the first static resource corresponding to the page of the first version, and displaying a switching control in the page of the first version; in response to the operation of switching to the page of the second version according to the switching control, the static resource server returns a second static resource corresponding to the page of the second version, wherein the first static resource and the second static resource share the same resource reference path, and the page of the second version is an upgrading result of the page of the first version; and displaying the page of the second version according to the second static resource corresponding to the page of the second version. Under the condition of not modifying the resource reference path, the corresponding static resources are obtained by switching the pages of different versions, and the pages are further displayed according to the static resources, so that the testing of the pages of different versions is efficiently finished.

Description

Page testing method, device and equipment
Technical Field
The invention relates to the technical field of computers, in particular to a page testing method, a page testing device and page testing equipment.
Background
In the process of developing a Web page, the developed page needs to be tested before being on line, and the developed page can be released to be on line after the test is passed.
In addition, the user's needs often change dynamically, which may result in the second version of the page being developed according to the user's needs before the first version of the page is not on-line. Based on this, in practical application, there is a need for parallel testing of multiple versions of pages in the same time period.
Therefore, how to efficiently complete the common test requirement of multiple versions of pages is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a page testing method, a page testing device, page testing equipment and a storage medium, which can efficiently meet the common testing requirement of multiple versions of pages.
In a first aspect, an embodiment of the present invention provides a page testing method, where the method includes:
displaying a page of a first version according to a first static resource corresponding to the page of the first version, and displaying a switching control in the page of the first version;
responding to an operation of switching to a page of a second version according to the switching control, and acquiring a second static resource corresponding to the page of the second version, wherein the first static resource and the second static resource share the same resource reference path, and the page of the second version is an upgrading result of the page of the first version;
and displaying the page of the second version according to a second static resource corresponding to the page of the second version.
In a second aspect, an embodiment of the present invention provides a page testing apparatus, including:
the first display module is used for displaying the page of the first version according to the first static resource corresponding to the page of the first version and displaying the switching control in the page of the first version;
the first obtaining module is used for responding to the operation of switching to a page of a second version according to the switching control, and obtaining a second static resource corresponding to the page of the second version, wherein the first static resource and the second static resource share the same resource reference path, and the page of the second version is an upgrading result of the page of the first version;
and the second display module displays the page of the second version according to the second static resource corresponding to the page of the second version.
In a third aspect, an embodiment of the present invention provides an electronic device, including: the device comprises a memory, a processor, a communication interface and a display screen; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the page testing method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to implement at least the page testing method according to the first aspect.
In the embodiment of the invention, a scheme for simultaneously testing static resources used by multiple versions of pages is provided. In summary, when testing a static resource used by a page of a certain version, first, a corresponding static resource stored in a resource server needs to be called based on a reference path corresponding to the static resource, and then the static resource is displayed in the page. In the embodiment of the present invention, in order to improve the testing efficiency, taking the page of the first version and the page of the second version as an example, it is assumed that the first static resource corresponding to the page of the first version is obtained from the resource server at present, and the page of the first version is displayed based on the first static resource. In order to facilitate subsequent testing of other versions of the page, a switching control for switching page versions can be displayed in the page of the first version. Based on this, when a user (herein, the user refers to a person who performs a test task) triggers an operation of switching to a test second version of a page according to the switching control, a second static resource corresponding to the second version of the page may be acquired from the resource server based on the operation, so that the second version of the page is displayed according to the second static resource. Finally, the user determines whether the test is passed based on whether the display effect of the page is expected. It should be noted that, the first static resource and the second static resource share the same resource reference path, that is, in the process of testing the page of the second version, the user does not need to modify the resource reference path of the static resource to indicate which version of the page is currently desired to be tested, but the resource server is informed of which version of the page is currently desired to be tested by adding the switching control in the page of the first version, so that the feedback of the corresponding static resource is completed, the operation of the user is simplified, and the testing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of a page testing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another page testing method according to an embodiment of the present invention;
fig. 3 is an application schematic diagram of a page testing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page testing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device corresponding to the page testing apparatus provided in the embodiment shown in fig. 4.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Before introducing the page testing method provided by the embodiment of the present invention, a scenario of application of the present scheme is introduced first, and in practical applications, there may be multiple tasks of page testing, such as testing for page layout, testing for page operation logic, testing whether static resources (images, characters, and the like displayed on a page) corresponding to a page can be normally displayed, and the like. And the scheme only tests whether the static resources corresponding to the page can be normally displayed.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
The following describes an implementation of the page test method provided herein with reference to some of the following embodiments.
Fig. 1 is a flowchart of a page testing method according to an embodiment of the present invention, and as shown in fig. 2, the page testing method may include the following steps:
101. and displaying the page of the first version according to the first static resource corresponding to the page of the first version, and displaying the switching control in the page of the first version.
Wherein the static resources include at least one of: cascading Style Sheets (CSS), hypertext Markup Language (HTML) documents, pictures, and characters.
In the embodiment of the invention, a plurality of static resources, resource reference links corresponding to the static resources and identifiers corresponding to the static resources are pre-deployed in a server, a terminal sends a resource reference path and an identifier corresponding to the static resources to the server, the server returns the corresponding static resources according to the resource reference path and the identifier, and a browser analyzes the static resources and renders the static resources to generate a corresponding page.
Specifically, the identifiers of the plurality of static resources pre-deployed in the resource server correspond to the pages of different versions one to one, that is, the server calls the corresponding static resources according to the version of the current test page. After the tested page selected by the user is determined to be the page of the first version, the first static resource corresponding to the page of the first version is obtained from the resource server, the terminal analyzes the first static resource, and the page of the first version is generated through rendering according to the analyzed content.
It should be noted that, as described above, the present solution only tests whether the static resource corresponding to the page can be normally displayed, so that the switching of the page of the different version is only performed for the static resource corresponding to the subsequently acquired page of the different version.
Furthermore, in order to facilitate switching of pages of different versions, a developer injects a function of displaying the version of the current page and a function of switching the version of the page into a code of the script language corresponding to a preset position of the test page, so that a switching control for displaying the version of the current page and the version of the switching page is displayed on the test page.
In a specific embodiment, a self-adaptive static Resource service is deployed in advance, and the server can return the static Resource content of a corresponding version according to a Uniform Resource Locator (URL) requesting a static Resource and a page identifier in a small and medium text file (COOKIE) in a request header, and a script inserted in a page for generating a page version switching control for completing page version switching and writing a page identifier in the COOKIE of a browser. The URL of the static resource introduced by the page of each version of the scheme is fixed and is provided by a matched static resource service. When the page of the first version is loaded, the browser analyzes the URL of the static resource in the HMTL code corresponding to the page of the first version, then requests the static resource configured by the page from the static resource server, the static resource service returns the static resource corresponding to the page of the first version and renders the page content of the first version according to the URL of the static resource sent by the browser and the page identifier in COOKIE, and a version switching control is generated in the page of the first version.
102. And responding to the operation of switching to the page of the second version according to the switching control, and acquiring a second static resource corresponding to the page of the second version, wherein the first static resource and the second static resource share the same resource reference path, and the page of the second version is the upgrading result of the page of the first version.
Specifically, when the page of the second version is switched to be tested, the user switches the page of the first version to the page of the second version by operating the switching control, and when the static resource server receives a request of the static resource, the second static resource corresponding to the page of the second version in the resource server is sent to the terminal according to the URL of the requested static resource and the page identifier in COOKIE.
In the embodiment corresponding to the scheme, the resource server includes the first static resource and the second static resource, the second static resource is required to be acquired, the resource reference path of the second static resource is required, and the page of the second version corresponding to the second static resource.
Further, in general, functions to be implemented by a product are continuously upgraded, so that a subsequent version corresponding to the product is upgraded compared with a previous version, and correspondingly, in the presence of a page of the first version, a page of the second version to be tested is an upgrade result of a page of the first version.
103. And displaying the page of the second version according to the second static resource corresponding to the page of the second version.
In the embodiment of the invention, under the condition that the first static resource and the second static resource share the same resource reference path, in the process of testing the page of the second version, a user does not need to modify the reference path of the static resource to indicate which version of the page is required to be tested currently, after the switching to the page for testing the second version is determined, the second static resource corresponding to the page of the second version is obtained, and the page of the second version is displayed through the second static resource, so that whether the page of the second version can correctly display the static resource is tested, the test operation is simplified, and the efficiency is improved.
It should be noted that, before the first version of the page is displayed according to the first static resource corresponding to the first version of the page, the first tested version of the page needs to be determined.
Optionally, the determining the first page of the tested version may be implemented as:
displaying a configuration interface, wherein the configuration interface comprises page identifications corresponding to multiple versions of pages;
and acquiring the first static resource according to an operation of selecting a page identifier corresponding to the page of the first version from page identifiers corresponding to the pages of the multiple versions, wherein the pages of the multiple versions comprise the page of the first version and the page of the second version.
Specifically, according to the input URL, corresponding configuration data is acquired from the server, and a corresponding configuration interface is displayed based on the configuration data, where the configuration interface displays page identifiers corresponding to multiple versions of pages to be tested.
Further, according to the operation of selecting the page of the first version from the page identifications corresponding to the pages of the multiple versions, the first static resource corresponding to the page of the first version is obtained from the resource server.
It should be noted that, the way of determining the page identifier of the first tested version may be any one of the following ways: and inputting the identification of the page of the first tested version, and checking the option corresponding to the page of the first tested version or touching the identification of the page of the first tested version.
In a specific embodiment, the page of the first version and the page of the second version need to be tested, the URL input by the tester is www.test.com, according to the URL, the server returns to a configuration interface including respective page identifiers corresponding to the page of the first version and the page of the second version, and when a touch operation of a user is detected with respect to the identifier corresponding to the page of the first version, the terminal obtains the first static resource corresponding to the page of the first version from the background.
Optionally, the determining the first page of the tested version may further be implemented as:
and configuring static resources corresponding to the URLs of the pages with different versions in the background, and acquiring the static resources corresponding to the URLs from the background according to the input URL.
In the embodiment corresponding to the scheme, the URL of the page of the first version is www.test1.com, the corresponding static resource is the first static resource, the URL of the page of the second version is www.test2.com, the corresponding static resource is the second static resource, after the input URL is www.test1.com is determined, the first static resource is obtained from the static server, and the page of the tested first version is displayed according to the first static resource.
Optionally, since the page of the second version is an upgrade result of the page of the first version, the determining the page of the first tested version may be implemented as:
defaulting the page of the first tested version to the page of the lowest version, and correspondingly, if the page to be tested comprises: the first version of the page and the second version of the page, and the second version of the page is an upgrade result to the first version of the page, so the first tested version of the page defaults to the first version of the page.
Fig. 2 is a flowchart of another page testing method according to an embodiment of the present invention, and as shown in fig. 2, the page testing method may include the following steps:
201. and displaying the page of the first version according to the first static resource corresponding to the page of the first version, and displaying the switching control in the page of the first version.
202. And responding to the operation of switching to the page of the second version according to the switching control, and sending the resource reference path and the page identification corresponding to the page of the second version to the resource server.
203. And receiving a second static resource which is fed back by the resource server and corresponds to the resource reference path and the page identifier, wherein the resource server is established with a corresponding relation between the page identifier and the static resource.
Optionally, after the operation of switching to the page of the second version triggered by the switching control is performed, the resource reference path and the page identifier corresponding to the page of the second version carried in the browser COOKIE are sent to the resource server, and since the resource reference paths corresponding to the static resources in the resource server are all consistent, the resource server sends the second static resource corresponding to the page identifier to the terminal after receiving the resource reference path and the page identifier corresponding to the page of the second version.
204. And displaying the page of the second version according to the second static resource corresponding to the page of the second version.
205. A toggle control is displayed in the second version of the page.
Optionally, a first static resource corresponding to the first version of the page and a second static resource corresponding to the second version of the page are pre-deployed in the resource server, and a corresponding relationship between the page identifier and the static resource is established in the resource server, because the first static resource and the second static resource share the same resource reference path, that is, the resource reference path is deployed in both the first version of the page and the second version of the page, and as can be seen from the foregoing, the resource reference path of the second static resource and the page of the second version corresponding to the second static resource are needed to acquire the second static resource, further, the page of the test first version is switched to the page of the test second version, and because the page of the second version of the page deploys the resource reference path, only the page identifier corresponding to the page of the second version of the page needs to be sent to the resource server, a second static resource corresponding to the second version of the page may be obtained in the resource server.
Further, a second version of the page is generated by analyzing and rendering the second static resource, and the switching control is correspondingly displayed on the second version of the page so as to be switched to test other versions of the page.
Fig. 3 is an application schematic diagram of a page testing method provided in an embodiment of the present invention, and the page testing method is exemplified with reference to fig. 3, as shown in fig. 3, a first static resource "o" and a second static resource "□" are deployed in a resource server, the first static resource "o" corresponds to an identifier "a", the second static resource "□" corresponds to an identifier "B", and the first static resource and the second static resource share the same resource reference path www.jtzy.com, and the first static resource "o" is obtained from the resource server through a deployed reference path www.jtzy.com of a first version of a page and the identifier "a" of the first version of the page. After the testing of the first version of the page is completed, the identifier "a" corresponding to the first version of the page is switched to the identifier "B" corresponding to the second version of the page through touch operation, and since the resource reference path www.jtzy.com for referencing the static resource is not changed after the switching, the terminal sends the identifier B and the reference path www.jtzy.com to the resource server, the resource server returns the corresponding second static resource "□" according to the resource reference path www.jtzy.com and the identifier "B", the terminal displays the second version of the page according to the second static resource, and the testing of the second version of the page is performed through the feedback of the second static resource.
Optionally, the operation of switching to the page of the second version triggered by the switching control may be implemented as follows:
displaying an input box and prompt information in a first version of page, wherein the prompt information is used for prompting page identifications corresponding to multiple versions of page, and the multiple versions of page comprise a first version of page and a second version of page;
the operation of switching to the page of the second version according to the switching control is an operation of inputting a page identifier corresponding to the page of the second version in the input box according to the prompt information.
Optionally, the operation of switching to the page of the second version triggered by the switching control may also be implemented as follows:
displaying a button in the page of the first version, wherein the button is used for displaying a page identifier;
the operation of switching to the page of the second version is triggered by the switching control, namely, the operation of clicking the button to switch to the operation of displaying the page identifier corresponding to the page of the second version on the button, and writing the page identifier corresponding to the page of the second version into the browser COOKIE.
Optionally, the operation of switching to the page of the second version triggered by the switching control may also be implemented as follows:
displaying a plurality of options corresponding to the plurality of versions of the page in the first version of the page;
the operation of switching to the page of the second version according to the switching control is an operation of selecting an option corresponding to the page of the second version.
In the embodiment of the invention, when the page of the first version is switched to the page of the second version to be tested, the identifier of the page of the second version is sent to the resource server, and because the corresponding relation between the page identifier and the static resource is established in the resource server, the server returns the corresponding second static resource through the identifier of the page of the second version, so that the terminal analyzes the second static resource and renders and generates the page of the second version to be tested, and the test of the pages of the multiple versions is completed efficiently.
The page test apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these page test devices can each be constructed using commercially available hardware components configured through the steps taught in this scheme.
Fig. 4 is a schematic structural diagram of a page testing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes: the device comprises a display module 11 and an acquisition module 12.
The display module 11 is configured to display a first version of a page according to a first static resource corresponding to the first version of the page, and display a switching control in the first version of the page;
an obtaining module 12, configured to obtain, in response to an operation of switching to a page of a second version according to the switching control, a second static resource corresponding to the page of the second version, where the first static resource and the second static resource share a same resource reference path, and the page of the second version is an upgrade result of the page of the first version;
the display module 11 is further configured to display the page of the second version according to a second static resource corresponding to the page of the second version.
The page test device further includes:
the configuration display module is used for displaying a configuration interface, and the configuration interface comprises page identifiers corresponding to multiple versions of pages;
the obtaining module is further configured to obtain the first static resource according to an operation of selecting a page identifier corresponding to the page of the first version from page identifiers corresponding to the pages of the multiple versions, where the pages of the multiple versions include the page of the first version and the page of the second version.
And the display module is also used for displaying the switching control in the page of the second version.
Optionally, the first obtaining module 12 may specifically be configured to: sending a page identifier corresponding to the resource reference path and the second version page to a resource server; and receiving the second static resource corresponding to the resource reference path and the page identifier, which is fed back by the resource server, wherein the resource server is established with a corresponding relationship between the page identifier and the static resource.
Optionally, the first display module 11 may specifically be configured to: displaying an input box and prompt information in the first version of the page, wherein the prompt information is used for prompting page identifications corresponding to multiple versions of the page, and the multiple versions of the page comprise the first version of the page and the second version of the page; the operation of switching to the page of the second version is triggered according to the switching control, and the operation is an operation of inputting a page identifier corresponding to the page of the second version in the input box according to the prompt information.
Optionally, the first display module 11 may specifically be configured to: displaying a button in the first version of the page, wherein the button is used for displaying a page identifier; the operation of switching to the page of the second version is triggered according to the switching control, and is an operation of clicking the button to switch to display a page identifier corresponding to the page of the second version on the button, and writing the page identifier corresponding to the page of the second version into the browser COOKIE.
Optionally, the first display module 11 may specifically be configured to: displaying a plurality of options corresponding to a plurality of versions of pages in the first version of pages; the operation of switching to the page of the second version according to the switching control is an operation of selecting an option corresponding to the page of the second version.
The device shown in fig. 4 may execute the page testing method provided in the embodiments shown in fig. 1 to fig. 3, and the detailed execution process and technical effect refer to the description in the embodiments, which is not described herein again.
In one possible design, the structure of the page test apparatus shown in fig. 4 may be implemented as an electronic device, such as an electronic device integrated with a page test service. As shown in fig. 5, the electronic device may include: processor 21, memory 22, communication interface 23, display screen 24. Wherein the memory 22 has stored thereon executable code, which when executed by the processor 21, makes the processor 21 at least implement the page testing method as provided in the embodiments of fig. 1 to 3 described above.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor is enabled to implement at least the page testing method provided in the embodiments of fig. 1 to 3.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A page testing method is characterized by comprising the following steps:
displaying a page of a first version according to a first static resource corresponding to the page of the first version, and displaying a switching control in the page of the first version;
responding to an operation of switching to a page of a second version according to the switching control, and acquiring a second static resource corresponding to the page of the second version, wherein the first static resource and the second static resource share the same resource reference path, and the page of the second version is an upgrading result of the page of the first version;
and displaying the page of the second version according to a second static resource corresponding to the page of the second version.
2. The method of claim 1, wherein before displaying the first version of the page according to the first static resource corresponding to the first version of the page, further comprising:
displaying a configuration interface, wherein the configuration interface comprises page identifications corresponding to multiple versions of pages;
and acquiring the first static resource according to an operation of selecting a page identifier corresponding to the page of the first version from page identifiers corresponding to the pages of the multiple versions, wherein the pages of the multiple versions comprise the page of the first version and the page of the second version.
3. The method of claim 1, wherein obtaining the second static resource corresponding to the second version of the page comprises:
sending a page identifier corresponding to the resource reference path and the second version page to a resource server;
and receiving the second static resource corresponding to the resource reference path and the page identifier, which is fed back by the resource server, wherein the resource server is established with a corresponding relationship between the page identifier and the static resource.
4. The method of claim 1, wherein displaying a toggle control in the first version of the page comprises:
displaying an input box and prompt information in the first version of the page, wherein the prompt information is used for prompting page identifications corresponding to multiple versions of the page, and the multiple versions of the page comprise the first version of the page and the second version of the page;
the operation of switching to the page of the second version is triggered according to the switching control, and the operation is an operation of inputting a page identifier corresponding to the page of the second version in the input box according to the prompt information.
5. The method of claim 1, wherein displaying a toggle control in the first version of the page comprises:
displaying a button in the first version of the page, wherein the button is used for displaying a page identifier;
the operation of switching to the page of the second version is triggered according to the switching control, and is an operation of clicking the button to switch to display a page identifier corresponding to the page of the second version on the button, and writing the page identifier corresponding to the page of the second version into the browser COOKIE.
6. The method of claim 1, wherein displaying a toggle control in the first version of the page comprises:
displaying a plurality of options corresponding to a plurality of versions of pages in the first version of pages;
the operation of switching to the page of the second version according to the switching control is an operation of selecting an option corresponding to the page of the second version.
7. The method of claim 1, further comprising:
displaying the toggle control in the second version of the page.
8. A page detecting apparatus, comprising:
the display module is used for displaying the page of the first version according to the first static resource corresponding to the page of the first version and displaying the switching control in the page of the first version;
an obtaining module, configured to obtain, in response to an operation of switching to a page of a second version according to the switching control, a second static resource corresponding to the page of the second version, where the first static resource and the second static resource share a same resource reference path, and the page of the second version is an upgrade result of the page of the first version;
the display module is further configured to display the page of the second version according to a second static resource corresponding to the page of the second version.
9. An electronic device, comprising: the device comprises a memory, a processor, a communication interface and a display screen; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the page testing method of any of claims 1 to 7.
CN202010739851.3A 2020-07-28 2020-07-28 Page testing method, device and equipment Pending CN112035339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010739851.3A CN112035339A (en) 2020-07-28 2020-07-28 Page testing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010739851.3A CN112035339A (en) 2020-07-28 2020-07-28 Page testing method, device and equipment

Publications (1)

Publication Number Publication Date
CN112035339A true CN112035339A (en) 2020-12-04

Family

ID=73583404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010739851.3A Pending CN112035339A (en) 2020-07-28 2020-07-28 Page testing method, device and equipment

Country Status (1)

Country Link
CN (1) CN112035339A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546093A (en) * 2023-07-04 2023-08-04 云账户技术(天津)有限公司 Resource acquisition method and device based on static resource management platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060162071A1 (en) * 2005-01-27 2006-07-27 Eleri Dixon A/B testing
CN102932197A (en) * 2011-08-11 2013-02-13 阿里巴巴集团控股有限公司 Testing method and system
CN107832329A (en) * 2017-09-26 2018-03-23 中国平安人寿保险股份有限公司 Page resource acquisition methods and terminal device
CN111427648A (en) * 2020-03-23 2020-07-17 北京达佳互联信息技术有限公司 Page resource updating method and device, electronic equipment, server and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060162071A1 (en) * 2005-01-27 2006-07-27 Eleri Dixon A/B testing
CN102932197A (en) * 2011-08-11 2013-02-13 阿里巴巴集团控股有限公司 Testing method and system
CN107832329A (en) * 2017-09-26 2018-03-23 中国平安人寿保险股份有限公司 Page resource acquisition methods and terminal device
CN111427648A (en) * 2020-03-23 2020-07-17 北京达佳互联信息技术有限公司 Page resource updating method and device, electronic equipment, server and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546093A (en) * 2023-07-04 2023-08-04 云账户技术(天津)有限公司 Resource acquisition method and device based on static resource management platform
CN116546093B (en) * 2023-07-04 2023-10-20 云账户技术(天津)有限公司 Resource acquisition method and device based on static resource management platform

Similar Documents

Publication Publication Date Title
CN111061526B (en) Automatic test method, device, computer equipment and storage medium
US9262396B1 (en) Browser compatibility checker tool
WO2018223717A1 (en) Webpage front-end testing method, device, system, apparatus and readable storage medium
CN108574604B (en) Test method and device
US9275018B2 (en) Techniques for analyzing web pages to determine font subsets
WO2018184361A1 (en) Application test method, server, terminal, and storage media
US10491629B2 (en) Detecting sensitive data sent from client device to third-party
US9785710B2 (en) Automatic crawling of encoded dynamic URLs
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN108399119B (en) Method and device for data processing and automatic testing of browsing service kernel engine
CN110928767A (en) Webpage analysis method, device, equipment and storage medium
US20170161181A1 (en) Testing support system, and testing support method
CN111431767A (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
US9026997B2 (en) Systems and methods for executing object-oriented programming code invoking pre-existing objects
US10460019B2 (en) Computer implemented system and method for transforming web content for display on multiple form factors
CN113704110A (en) Automatic testing method and device for user interface
CN109582317A (en) Method and apparatus for debugging boarding application
CN112035339A (en) Page testing method, device and equipment
CN111679828B (en) Data processing method and device, electronic equipment and storage medium
CN113296653A (en) Simulation interaction model construction method, interaction method and related equipment
US20140289608A1 (en) Terminal device, display method, and server device
CN111338928A (en) Chrome-based browser testing method and device
CN112799927A (en) Operation behavior information acquisition method and device for front-end user
CN112181802A (en) Test method and device
JP6426535B2 (en) Test support apparatus and test support method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201204