CN111625222A - On-line verification system and verification method for front-end codes - Google Patents

On-line verification system and verification method for front-end codes Download PDF

Info

Publication number
CN111625222A
CN111625222A CN202010457886.8A CN202010457886A CN111625222A CN 111625222 A CN111625222 A CN 111625222A CN 202010457886 A CN202010457886 A CN 202010457886A CN 111625222 A CN111625222 A CN 111625222A
Authority
CN
China
Prior art keywords
tested
end code
codes
machine
code
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.)
Granted
Application number
CN202010457886.8A
Other languages
Chinese (zh)
Other versions
CN111625222B (en
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.)
Beijing Hujin Xinrong Technology Co ltd
Original Assignee
Beijing Hujin Xinrong 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 Beijing Hujin Xinrong Technology Co ltd filed Critical Beijing Hujin Xinrong Technology Co ltd
Priority to CN202010457886.8A priority Critical patent/CN111625222B/en
Publication of CN111625222A publication Critical patent/CN111625222A/en
Application granted granted Critical
Publication of CN111625222B publication Critical patent/CN111625222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses an on-line verification system and a verification method of a front-end code. Wherein, this system includes: the test equipment is used for accessing the front-end codes to be tested; the bastion machine stores original back-end codes and updates the parts of the original back-end codes corresponding to the front-end codes to be tested into test back-end codes; and the communication connecting device is in communication connection with the test equipment, and accesses the front-end unit and the fort machine based on the access request of the test equipment. The invention solves the technical problem of low verification efficiency caused by inaccuracy in searching the updated front-end code.

Description

On-line verification system and verification method for front-end codes
Technical Field
The invention relates to the field of information verification, in particular to an online verification system and a verification method for front-end codes.
Background
The current popular framework is an architecture mode with front and back ends separated, namely, the front end codes and the back end codes are not coupled together, but are independently developed and independently deployed respectively, and after the codes are deployed, the front end codes are associated to the back end codes in the modes of version numbers and the like. In the online system, a plurality of versions exist at the front end, and the back end only refers to one of the front end versions, so that only the functions and pages of the front end version can be effective and displayed to the user.
The front-end code must be published at all front-end machines per publication, so that multiple complete front-end versions are saved on the line. After the front-end code is released online, because the front-end code in the front-end machine has the front-end code of the old version, the verified code version is not the front-end code of the new version, and in the prior art, all front-end machines are generally adopted to release the new version; and the back-end machine only releases the back-end code associated with the front-end code of the new version at 1 machine, and the back-end codes on other back-end machines are still associated with the front-end codes of the previous and old versions. Thus, the tester has some chance to access and verify the new front-end code. The probability is determined by the number of backend machines, for example: if the back-end machine has 8 machines, the flow can be uniformly distributed to the 8 machines, so that both a tester and a user have 1/8 probability to access the front-end code of the new version, and 7/8 probability to access the front-end code of the old version, namely, the problem of inaccuracy exists when searching for the updated front-end code, and further the verification efficiency is low.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an online verification system and a verification method of a front-end code, which at least solve the technical problem of low verification efficiency caused by inaccuracy in searching for an updated front-end code.
According to an aspect of an embodiment of the present invention, an online verification system for front-end codes is provided, which is applied to a network system of a front-end and back-end separation framework, the network system includes a front-end unit, a back-end unit, and a distribution server, the front-end unit stores therein front-end codes to be tested and original front-end codes, the back-end unit stores therein original back-end codes corresponding to the original front-end codes, and the distribution server is in communication connection with the front-end unit and the back-end unit, respectively, including: the test equipment is used for accessing the front-end codes to be tested; the bastion machine is used for storing an original back end code and updating a part of the original back end code corresponding to the front end code to be tested into a test back end code, wherein after the test back end code renders a page, if the working state of the page is normal, the front end code to be tested is confirmed to pass verification; and the communication connecting device is in communication connection with the test equipment, and accesses the front-end unit and the fort machine based on the access request of the test equipment.
Optionally, the communication connection device comprises a router and a transfer server; the router is in communication connection with the testing equipment and directionally sends an access request of a domain name corresponding to the front-end code to be tested to the transfer server; the transit server accesses the front end cluster and/or the fortress machine based on the access request of the test device.
Optionally, the router fixes the access address of the domain name corresponding to the front-end code to be tested as the address of the transit server.
Optionally, the number of the front-end codes to be tested is multiple, and in the original back-end codes in the bastion machine, the part corresponding to each front-end code to be tested is updated to be the corresponding test back-end code.
Optionally, the number of the front-end codes to be tested and the number of the fort machines are multiple, the multiple front-end codes to be tested correspond to the multiple fort machines one by one, and a part of the original back-end codes in each fort machine, which corresponds to the corresponding front-end code to be tested, is updated to be corresponding test back-end codes.
Optionally, the front-end code to be tested and the test back-end code are associated through an identification mark.
Optionally, the identification includes at least one of a version number, a check code and a serial number.
Optionally, the transit server is in communication connection with the fort machine.
Optionally, the forwarding rules of the offload server and the transit server are the same.
Optionally, the hardware configuration and the software configuration of the fort machine are the same as any of the backend machine groups.
According to another aspect of the embodiments of the present invention, there is also provided an online verification method for a front-end code, including: receiving an access request of a target object to a backend machine; sending an access request to the fort machine so as to verify the front-end code to be tested through a back-end code associated with the front-end code to be tested in the fort machine, wherein the front-end code to be tested is a front-end code of a latest version issued to the front-end equipment; and after the page is rendered by the back end code associated with the front end code to be tested in the bastion machine, if the working state of the page is normal, determining that the front end code to be tested passes verification.
Optionally, before receiving the access request of the target object to the backend machine, the method includes: and receiving an access request forwarded by the router, wherein the access request carries a domain name, and the domain name is used for pointing to an address of the transit server.
Optionally, the router fixes the access address of the domain name corresponding to the front-end code to be tested as the address of the transit server.
Optionally, a forwarding path is configured on the transit server, wherein the forwarding path is at least used for forwarding the access request for accessing the front-end machine to the bastion machine.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and when the program runs, a device in which the non-volatile storage medium is located is controlled to execute any one of the on-line verification methods of the front-end code.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to run a program, where the program executes an online verification method of any one of the front-end codes when running.
In the embodiment of the invention, the purpose of acquiring the test back-end code corresponding to the to-be-tested front-end code and updated test back-end code is achieved by verifying the test back-end code and accessing the bastion machine, so that the technical effect of quickly and accurately searching the to-be-tested front-end code is realized, and the technical problem of low verification efficiency caused by inaccuracy in searching the updated front-end code is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a front-end code on-line verification system according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for on-line verification of a front-end code according to an embodiment of the present invention;
FIG. 3 is a system block diagram of an alternative front-end code on-line authentication system in accordance with an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for on-line validation of front-end code, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Fig. 1 is an on-line verification system of a front-end code according to an embodiment of the present invention, as shown in fig. 1, the system including:
a test device 10 for accessing a front-end code to be tested;
the bastion machine 20 stores original back-end codes and updates the parts of the original back-end codes corresponding to the front-end codes to be tested into test back-end codes, wherein after the test back-end codes render the page, if the working state of the page is normal, the front-end codes to be tested pass verification;
and the communication connection device 30 is in communication connection with the test equipment, and accesses the front-end unit and the fort machine based on the access request of the test equipment.
In the system, the test equipment is used for accessing the front-end code to be tested; the bastion machine stores original back-end codes and updates parts of the original back-end codes corresponding to the front-end codes to be tested into test back-end codes, wherein after the test back-end codes render the page, if the working state of the page is normal, the front-end codes to be tested are confirmed to pass verification; the communication connection device is in communication connection with the test equipment, and accesses the front-end unit and the fort machine based on an access request of the test equipment; the system is applied to a network system of a front-end and back-end separation framework, the network system comprises a front-end unit, a back-end unit and a shunt server, front-end codes to be tested and original front-end codes are stored in the front-end unit, original back-end codes corresponding to the original front-end codes are stored in the back-end unit, and the shunt server is in communication connection with the front-end unit and the back-end unit respectively.
It should be noted that the offloading server may be a load balancing server, which is configured to forward a request of a user, and the load balancing server may distribute the user request to a plurality of operation units to execute the user request, so as to complete work cooperatively, thereby enhancing network data processing capability, increasing throughput, and improving availability and flexibility of a network.
In some embodiments of the present application, the communication connection device includes a router and a relay server; the router is in communication connection with the testing equipment and directionally sends an access request of a domain name corresponding to a front-end code to be tested to the transfer server; the router may also be referred to as a front-end test router, and a wifi router capable of setting domain name (host) resolution is generally selected. In an optional implementation of the present application, an intelligent wireless routing wifi router is used in implementing the present solution. The domain names of the tested pages related to the front end codes can be configured on the router, and the domain names are configured to point to the address of the transit server, for example, if the tested pages related to the front end codes are https:// jr.qnar.com/test.html, https:// jr.qnar.com/test.html is sent to the transit server.
It should be noted that, when there are a plurality of front-end codes to be tested with different domain names, the router may send the resolved addresses corresponding to the different domain names to the relay server in a directed manner. The test equipment can be a mobile terminal, a computer and the like. The transit server accesses the front end cluster and/or the fortress machine based on the access request of the test device.
In some embodiments of the present application, a router may fix an access address of a domain name corresponding to a front end code to be tested as an address of a transit server, and specifically, may configure domain names of pages to be tested related to the front end code on the router, and configure the domain names as addresses pointing to the front end transit server, for example, a page to be tested related to the front end code is https:// jr.qnar.com/test.html, and an address of the transit server is: 192.168.1.99, then the domain name is configured as: com 192.168.1.99.
In some embodiments of the present application, when there are a plurality of front-end codes to be tested, in the original back-end codes in the bastion machine, the part corresponding to each front-end code to be tested is updated to the corresponding back-end code, that is, all the front-end codes to be tested are associated into the bastion machine one by one, so as to obtain the back-end codes to be tested, for example, there are three front-end codes to be tested: a, B, C, the corresponding parts of the A, B, C front-end codes to be tested in the bastion machine can be updated to new versions, and the updated versions are the test back-end codes. Taking the front-end code A as an example, the front-end code A has the versions V1, V2, V3 and the latest version V4, in the fortress machine, the front-end code corresponding to the association is updated to the version V4, namely the front-end code of the fortress machine which is always the latest version is associated with the fortress machine, so that the front-end code can be used for the test equipment to perform accurate test.
In some optional embodiments of the present application, the number of the front-end codes to be tested and the bastion machines are multiple, and the multiple front-end codes to be tested correspond to the multiple bastion machines one by one, and in the original back-end codes in each bastion machine, the part corresponding to the corresponding front-end code to be tested is updated to the corresponding test back-end code, for example, there are three front-end codes to be tested: d, E, F, the D, E, F front-end codes to be tested can be respectively associated with the corresponding D1、E1、F1In fort machine, and D above1、E1、F1The fort machines are all updated with a new version of the front-end code to be tested.
In some embodiments of the present application, the front-end code to be tested and the test back-end code are associated by an identification mark. It should be noted that the types of the identification marks include, but are not limited to: version number, check code and serial number.
In some embodiments of the present application, the transfer server is in communication connection with the bastion machine, specifically, the transfer server may also be referred to as a front-end test transfer server, and functions of the transfer server are the same as those of a load balancing server accessed by a user, and are both used for forwarding a request to a specified target machine, but are different from the target machine. The communication connection mode may be that a forwarding path is configured on the front-end test transfer server, and the access request is forwarded to the bastion machine, and specifically, the communication connection mode may be divided into two cases: in the first case, a request to access the backend machine is forwarded to the bastion machine; the second case, in which the request for access to the front-end code is still forwarded to the bastion machine, is to say that there are multiple versions of the front-end code on the front-end machine, and which front-end code to use is determined by the associated front-end version on the back-end machine, because the code associated with the front-end of the new version is issued on the bastion machine, the request for access to the front-end code must be the request for access to the front-end code of the new version. The forwarding rules should be completely consistent with the forwarding rules on the load balancing server, only the target machine is different, the load balancing server can forward the user access request to the backend machine, and the bastion machine is not in the forwarding target of the load balancing server accessed by the user, so that the bastion machine is not accessed by the user.
In some embodiments of the present application, in the system, the code deployment manner may be: the new version of the front-end code is released to the online machine. And releasing the latest back-end code associated with the front-end code of the new version to the bastion machine. Therefore, when the bastion machine is accessed, the acquired associated front-end code is the front-end code of the new version. This code may be problematic, causing page and functional errors that affect customer usage, and therefore requires testing. The original backend machine does not release the new version of the front-end code. Therefore, when the back-end machine is accessed, the obtained associated front-end code is the code of the original old version.
When a user accesses, the user access request is forwarded to a back-end machine through a shunting server (a load balancing server), so that the user uses the front-end code of the old version without problems, and the user is not influenced.
When the tester accesses, the tester can connect the testing mobile phone or the testing tool to the wifi network of the front-end testing router, and then execute the test. At this time, a tester accesses a tested page in the client on the testing mobile phone, or accesses the tested page through a browser, or accesses a request and the like sent by a tool, the tested page passes through the front-end testing router, then passes through the transfer server (front-end testing transfer server), and is forwarded to the bastion machine by the transfer server, so that a new version of front-end codes to be verified on line are used. In this way, all tests performed by the tester can hit the front-end code of the new version 100% accurately, and the test mobile phone or the test tool connected to the wifi network of the front-end test router belongs to the white list which can access the front-end code of the new version.
In some embodiments of the application, the hardware configuration and the software configuration of the bastion machine are the same as any backend machine group in the backend machine group.
Fig. 2 is an on-line verification method of a front-end code according to an embodiment of the present invention, as shown in fig. 2, the method includes the steps of:
step S102, receiving an access request of a target object to a back-end machine;
step S104, sending the access request to the bastion machine so as to verify the front-end code to be tested through the back-end code of the front-end code to be tested, wherein the front-end code to be tested is the front-end code of the latest version issued to the front-end equipment;
and step S106, after the page is rendered by the back end code associated with the front end code to be tested in the bastion machine, if the working state of the page is normal, the front end code to be tested is confirmed to pass the verification.
In the on-line verification method of the front-end code, firstly, an access request of a target object to a back-end machine is received; secondly, an access request is sent to the bastion machine, so that a front-end code to be tested is verified through a back-end code associated with the front-end code to be tested in the bastion machine, wherein the front-end code to be tested is the front-end code of the latest version issued to the front-end equipment, finally, after the back-end code associated with the front-end code to be tested in the bastion machine renders a page, if the working state of the page is normal, the front-end code to be tested is determined to pass through verification and a mode of verifying the back-end code associated with the front-end code to be tested in the bastion machine is adopted, and the aim of verifying the front-end code to be tested is achieved through accessing the bastion machine, so that the technical effect of quickly and accurately searching the front-end code to be tested is achieved, and the technical problem of low verification efficiency caused by inaccuracy in searching the updated front-end code.
In some embodiments of the present application, before receiving a request for access to a target object from a backend machine, the method includes: and receiving an access request forwarded by the router, wherein the access request carries a domain name, and the domain name is used for pointing to an address of the transit server.
In some optional embodiments of the present application, the router fixes the access address of the domain name corresponding to the front end code to be tested as the address of the transit server, for example, the tested page related to the front end code is https:// jr.qunar.com/test.html, and the address of the transit server is: 192.168.1.99, then the domain name is configured as: jr.qunar.com 192.168.1.99.
In some optional embodiments of the present application, a forwarding path is configured on the transit server, where the forwarding path is at least used for forwarding an access request for accessing the front-end machine to the bastion machine, and it should be noted that the forwarding path includes: the access request for accessing the back-end unit and the access request for accessing the front-end machine are forwarded to the bastion machine, specifically, the transfer server may also be called a front-end test transfer server, and the functions of the transfer server are the same as those of a load balancing server accessed by a user, and the transfer server is used for forwarding the requests to a specified target machine, and only the target machine is different. Configuring a forwarding path on a front-end test transit server can be divided into two cases: in the first case, a request to access the backend machine is forwarded to the bastion machine; the second case is that the request for accessing the front-end machine is still forwarded to the bastion machine, and it should be noted that there are multiple versions of the front-end code on the front-end machine, and what front-end code is used is determined by the associated front-end version on the back-end machine, because the code associated with the front end of the new version is issued on the bastion machine, so the request for accessing the front-end machine is always requested to the front-end code of the new version after being forwarded to the bastion machine. The forwarding rules are completely consistent with the forwarding rules on the load balancing server.
FIG. 3 is a system block diagram of an alternative front-end code on-line verification system, according to an embodiment of the invention, as shown in FIG. 3:
when the user accesses, the path of the user access request is forwarded to the back-end machine via the load balancing server as shown in fig. 3, so that the front-end code of the old version with normal function is used, and generally, the user is not affected because the page corresponding to the front-end code of the old version is the interface which is always normally running.
When a tester accesses, the tester needs to connect a testing mobile phone or a testing tool to a wifi network of a front-end testing router, and then executes a test, as shown in fig. 3, the tester accesses a tested page in a client on the testing mobile phone, or accesses the tested page through a browser, or requests sent by the tool are forwarded to a bastion machine through the front-end testing router and a front-end testing transfer server, so that a new version of front-end codes to be verified on line are used.
In this way, the tests performed by the tester all hit the new version of the front-end code 100% accurately. The testing mobile phone or the testing tool connected to the wifi network of the front-end testing router belongs to a white list which can access the front-end code of the new version.
It should be noted that, in the system, the code deployment mode is as follows: the new version of the front-end code is released to the online machine. The latest backend code associated with the new version of the front-end code (the backend code that is consistent with other backend machines on the line) is released to the bastion machine. Therefore, when the bastion machine is accessed, the acquired associated front-end code is the front-end code of the new version. The code may have problems causing page and function errors. The original backend machine does not make the publication. Therefore, when the back-end machine is accessed, the obtained associated front-end code is the code of the original old version.
The embodiment of the invention also provides a nonvolatile storage medium which comprises a stored program, wherein the device where the nonvolatile storage medium is located is controlled to execute any one of the online verification methods of the front-end codes when the program runs.
Specifically, the nonvolatile storage medium is used for storing program instructions for executing the following functions, and the following functions are realized:
receiving an access request of a target object to a backend machine; and sending the access request to the fort machine so as to verify the front-end code to be tested through the back-end code associated with the front-end code to be tested in the fort machine, wherein the front-end code to be tested is the front-end code of the latest version issued to the front-end equipment, and after the page is rendered through the back-end code associated with the front-end code to be tested in the fort machine, if the working state of the page is normal, determining that the front-end code to be tested passes the verification.
The embodiment of the invention also provides a processor, which is used for running the program, wherein the on-line verification method of any front-end code is executed when the program runs.
Specifically, the processor is configured to call a program instruction in the memory, and implement the following functions:
receiving an access request of a target object to a backend machine; and sending the access request to the fort machine so as to verify the front-end code to be tested through the back-end code associated with the front-end code to be tested in the fort machine, wherein the front-end code to be tested is the front-end code of the latest version issued to the front-end equipment, and after the page is rendered through the back-end code associated with the front-end code to be tested in the fort machine, if the working state of the page is normal, determining that the front-end code to be tested passes the verification.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (16)

1. An online verification system of front-end codes is applied to a network system of a front-end and back-end separation framework, the network system comprises a front-end unit, a back-end unit and a shunt server, the front-end unit stores front-end codes to be tested and original front-end codes, the back-end unit stores original back-end codes corresponding to the original front-end codes, and the shunt server is respectively in communication connection with the front-end unit and the back-end unit, and the online verification system of the front-end codes is characterized by comprising:
the testing equipment is used for accessing the front-end code to be tested;
the bastion machine is used for storing the original back end code and updating the part of the original back end code corresponding to the front end code to be tested into a test back end code, wherein after the test back end code renders a page, if the working state of the page is normal, the front end code to be tested is determined to pass verification;
the communication connection device is in communication connection with the test equipment, and the communication connection device accesses the front-end unit and the fort machine based on the access request of the test equipment.
2. The on-line authentication system of claim 1, wherein the communication connection device comprises a router and a relay server;
the router is in communication connection with the testing equipment, and directionally sends the access request of the domain name corresponding to the front-end code to be tested to the transfer server;
and the transfer server accesses the front-end machine group and/or the bastion machine based on the access request of the test equipment.
3. The on-line verification system of claim 2, wherein the router fixes an access address of a domain name corresponding to the front-end code to be tested as an address of the transit server.
4. The on-line verification system of claim 1, wherein the number of the front-end codes to be tested is plural, and a portion of the original back-end codes in the bastion machine corresponding to each of the front-end codes to be tested is updated to a corresponding test back-end code.
5. The on-line verification system according to claim 1, wherein the number of the front end codes to be tested and the fort machines are both plural, and the plural front end codes to be tested correspond to the plural fort machines one by one, and a part of the original back end codes in each fort machine corresponding to the corresponding front end code to be tested is updated to the corresponding test back end code.
6. The on-line validation system of claim 1, wherein the front-end code to be tested and the back-end code are associated by an identification tag.
7. The online verification system of claim 6, wherein the identification comprises at least one of a version number, a check code, and a serial number.
8. The on-line authentication system as recited in claim 2, wherein the transit server is communicatively coupled to the bastion machine.
9. The online verification system of claim 2, wherein the forwarding rules of the offload server and the transit server are the same.
10. The on-line verification system of claim 1, wherein the hardware configuration and the software configuration of the fort machine are the same as any of the backend machine groups within the backend machine group.
11. An on-line verification method for front-end code, comprising:
receiving an access request of a target object to a backend machine;
sending the access request to the bastion machine so as to verify the front-end codes to be tested through the back-end codes associated with the front-end codes to be tested in the bastion machine, wherein the front-end codes to be tested are the latest version of the front-end codes issued to the front-end equipment;
and after the page is rendered by the back end code associated with the front end code to be tested in the bastion machine, if the working state of the page is normal, determining that the front end code to be tested passes verification.
12. The method of claim 11, wherein prior to receiving a request for access to a target object from a backend machine, the method further comprises:
and receiving the access request forwarded by the router, wherein the access request carries a domain name, and the domain name is used for pointing to an address of a transit server.
13. The method of claim 12, wherein the router fixes the access address of the domain name corresponding to the front-end code to be tested as the address of the transit server.
14. The method of claim 11,
configuring a forwarding path on a transit server, wherein the forwarding path is at least used for forwarding an access request for accessing the front-end machine to the bastion machine.
15. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls a device on which the non-volatile storage medium is located to perform the on-line verification method of the front-end code according to any one of claims 11 to 14.
16. A processor, configured to run a program, wherein the program when running performs the method for on-line verification of front-end code according to any one of claims 11 to 14.
CN202010457886.8A 2020-05-26 2020-05-26 Online verification system and method for front-end codes Active CN111625222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010457886.8A CN111625222B (en) 2020-05-26 2020-05-26 Online verification system and method for front-end codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010457886.8A CN111625222B (en) 2020-05-26 2020-05-26 Online verification system and method for front-end codes

Publications (2)

Publication Number Publication Date
CN111625222A true CN111625222A (en) 2020-09-04
CN111625222B CN111625222B (en) 2023-08-04

Family

ID=72271130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010457886.8A Active CN111625222B (en) 2020-05-26 2020-05-26 Online verification system and method for front-end codes

Country Status (1)

Country Link
CN (1) CN111625222B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685046A (en) * 2020-12-29 2021-04-20 北京达佳互联信息技术有限公司 Data processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7000224B1 (en) * 2000-04-13 2006-02-14 Empirix Inc. Test code generator, engine and analyzer for testing middleware applications
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server
CN106897053A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of code dissemination method and device
US20170185776A1 (en) * 2015-12-24 2017-06-29 Intel Corporation Trusted launch of secure enclaves in virtualized environments
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
US20190028531A1 (en) * 2017-07-24 2019-01-24 Wix.Com Ltd. On-demand web-server execution instances for website hosting
CN109408092A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 Method and device, storage medium and the electronic equipment of front end version publication
CN109960643A (en) * 2017-12-22 2019-07-02 网宿科技股份有限公司 A kind of code test method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7000224B1 (en) * 2000-04-13 2006-02-14 Empirix Inc. Test code generator, engine and analyzer for testing middleware applications
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server
US20170185776A1 (en) * 2015-12-24 2017-06-29 Intel Corporation Trusted launch of secure enclaves in virtualized environments
CN106897053A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of code dissemination method and device
US20190028531A1 (en) * 2017-07-24 2019-01-24 Wix.Com Ltd. On-demand web-server execution instances for website hosting
CN109960643A (en) * 2017-12-22 2019-07-02 网宿科技股份有限公司 A kind of code test method and device
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN109408092A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 Method and device, storage medium and the electronic equipment of front end version publication

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XING LIU: "《 Improved finite-control-set model predictive control for active front-end rectifiers with simplified computational approach and on-line parameter identification》", 《ISA TRANSACTIONS》, pages 51 *
邹孝付: "《基于FPGA动态重构的多功能测试技术研究及应用验证》", 《现代制造工程》, pages 102 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685046A (en) * 2020-12-29 2021-04-20 北京达佳互联信息技术有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN111625222B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
JP4855495B2 (en) On-premises and remote connections to radio parameter data and radio regulation data, and methods thereof.
CN105187230B (en) The switching method and device of server
CN102932775A (en) Method and device for carrying out terminal identification by combining IMEI and UA
CN107404481A (en) User profile recognition methods and device
CN110290024B (en) Method, device and equipment for testing strategy before online
CN106302384A (en) DNS message processing method and device
CN111625222B (en) Online verification system and method for front-end codes
CN106990988A (en) The method and device that a kind of program updates
CN104657256A (en) Method and device for collecting mapping relation between cases and codes
CN108763098A (en) A kind of internal storage data processing test system
CN107426314B (en) Data downloading method and device
CN116204431A (en) Method, device, equipment and medium for testing mark diffusion service isolation
CN110460487A (en) The monitoring method and system of service node, service node
CN112199104B (en) Software upgrading method and device, electronic equipment and storage medium
CN110457187B (en) TPC-E test method and test server capable of conveniently running based on backup test data
CN110611678B (en) Method for identifying message and access network equipment
CN115514733A (en) Configuration method and configuration device for domain name resolution service (DNS)
CN106790269A (en) Restoration methods and device that application program time-out is logged in
CN111143644B (en) Identification method and device of Internet of things equipment
CN113014443A (en) Method and system for testing whether CDN (content delivery network) resources hit cache
CN105025461B (en) Method, user terminal and system for updating Preferred Roaming List
CN110290429B (en) Column issuing method and device
CN115878909A (en) Multi-user central access method and device
CN112468614B (en) Method for automatically identifying access style supported by object storage
CN116760697B (en) Network equipment risk monitoring method, computer equipment and computer storage medium

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
GR01 Patent grant
GR01 Patent grant