CN111625222B - Online verification system and method for front-end codes - Google Patents

Online verification system and method for front-end codes Download PDF

Info

Publication number
CN111625222B
CN111625222B CN202010457886.8A CN202010457886A CN111625222B CN 111625222 B CN111625222 B CN 111625222B CN 202010457886 A CN202010457886 A CN 202010457886A CN 111625222 B CN111625222 B CN 111625222B
Authority
CN
China
Prior art keywords
end code
tested
code
machine
server
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.)
Active
Application number
CN202010457886.8A
Other languages
Chinese (zh)
Other versions
CN111625222A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an online verification system and an online verification method for a front-end code. Wherein, this system includes: the testing equipment is used for accessing the front-end code to be tested; the fort machine stores an original back-end code, and updates a part corresponding to the front-end code to be tested in the original back-end code into a test back-end code; 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 invention solves the technical problem of low verification efficiency caused by inaccuracy in searching the updated front-end code.

Description

Online verification system and method for front-end codes
Technical Field
The invention relates to the field of information verification, in particular to an online verification system and an online verification method for a front-end code.
Background
The current popular framework is a front-end and back-end separated architecture mode, namely, the front-end code and the back-end code are not coupled together, but are respectively and independently developed and deployed, and after the codes are deployed, the front-end code is related to the back-end code in a version number mode and the like. In the online system, the front end has multiple versions at the same time, and the rear end only refers to one front end version, so that only the functions and pages of the front end version can be validated and displayed to the user.
Each release of front-end code must be released at all front-end machines, so that multiple complete front-end versions are saved on-line. After the front-end code is released on line, since 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, the front-end machine is generally adopted to release the new version; while the back-end machine only issues back-end codes associated with new versions of the front-end code at 1 machine, the back-end codes on the other back-end machines remain associated with previous old versions of the front-end code. Thus, the tester has some chance to access and verify the new front-end code. The probability is determined by the number of back-end machines, for example: if the back-end machines have 8 machines in total, the flow can be uniformly distributed on the 8 machines, so that the testers and the users have 1/8 probability of accessing the new version front-end code, and 7/8 probability of accessing the old version front-end code, namely, the problem of inaccuracy exists when searching for the updated front-end code, and the problem of low verification efficiency is caused.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides an online verification system and an online verification method for a front-end code, which are used for at least solving the technical problem of low verification efficiency caused by inaccuracy in searching for an updated front-end code.
According to an aspect of the embodiment of the present invention, there is provided an on-line verification system for front end codes, applied to a network system of a front end and back end separation framework, the network system including a front end unit, a back end unit, and a shunting server, wherein the front end unit stores therein a front end code to be tested and an original front end code, the back end unit stores therein an original back end code corresponding to the original front end code, and the shunting server is communicatively connected with the front end unit and the back end unit, respectively, and includes: the testing equipment is used for accessing the front-end code to be tested; the fort machine stores an original back-end code, and updates a part corresponding to the front-end code to be tested in the original back-end code into a test back-end code, wherein after the test back-end code renders the 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 accesses the front-end unit and the fort machine based on an access request of the test equipment.
Optionally, the communication connection device comprises a router and a transit server; the router is in communication connection with the testing equipment, and the router directionally transmits an access request of the domain name corresponding to the front-end code to be tested to the transfer server; the transfer server accesses the front end unit and/or the fort machine based on the access request of the test equipment.
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 front end codes to be tested is multiple, and the part corresponding to each front end code to be tested in the original back end codes in the fort machine is updated to be the corresponding test back end code.
Optionally, the front end codes to be tested and the fort machines are multiple, the front end codes to be tested are in one-to-one correspondence with the fort machines, and the part corresponding to the front end codes to be tested in each fort machine in the original back end codes corresponding to the front end codes to be tested is updated to be the corresponding test back end codes.
Optionally, the front end code to be tested and the back end code to be tested are associated through identification.
Optionally, the identification identifier comprises at least one of a version number, a check code, and a serial number.
Optionally, the transit server is communicatively connected to the fort machine.
Optionally, forwarding rules of the offload server and the transit server are the same.
Optionally, the hardware configuration and software configuration of the fort machine are the same as any of the backend sets within the backend set.
According to another aspect of the embodiment of the present invention, there is also provided an online verification method of a front-end code, including: receiving an access request of a target object to a back-end machine; sending an access request to a fort machine 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 released into the front-end equipment; after the front-end codes to be tested render the pages in the fort machine in the associated back-end codes, if the working states of the pages are normal, determining that the front-end codes to be tested pass the 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 the 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 to forward an access request to the bastion machine for accessing the front end machine.
According to another aspect of the embodiments of the present invention, there is also provided a nonvolatile storage medium including a stored program, wherein the device in which the nonvolatile storage medium is controlled to execute any one of the on-line authentication methods of front-end code when the program runs.
According to another aspect of the embodiment of the present invention, there is also provided a processor, configured to execute a program, where the program executes any one of the on-line verification methods of front-end code.
In the embodiment of the invention, the aim of acquiring the test back end code corresponding to the front end code to be tested is fulfilled by accessing the fort machine in a mode of verifying the test back end code, so that the technical effect of quickly and accurately searching the front end code to be tested 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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic diagram of a front-end code online verification system according to an embodiment of the invention;
FIG. 2 is a flow diagram of a method for verification on a front-end code line according to an embodiment of the invention;
FIG. 3 is a system framework diagram of an alternative front end code online verification system in accordance with an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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 a method embodiment for on-line verification 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 other than that illustrated herein.
FIG. 1 is an online verification system of front end code according to an embodiment of the present invention, as shown in FIG. 1, comprising:
test equipment 10 for accessing a front-end code to be tested;
the fort machine 20 stores an original back-end code, and updates a part corresponding to the front-end code to be tested in the original back-end code to be a test back-end code, wherein after the test back-end code renders the 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 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 testing equipment is used for accessing the front-end code to be tested; the fort machine stores an original back-end code, and updates a part corresponding to the front-end code to be tested in the original back-end code into a test back-end code, wherein after the test back-end code renders the 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 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 rear-end separation frame, the network system comprises a front-end unit, a rear-end unit and a shunt server, the front-end unit stores a front-end code to be tested and an original front-end code, the rear-end unit stores the original rear-end code corresponding to the original front-end code, and the shunt server is respectively in communication connection with the front-end unit and the rear-end unit.
It should be noted that, the above-mentioned distributing server may be a load balancing server, which is used for forwarding a user request, where the above-mentioned balancing load server may distribute the user request to a plurality of operation units for execution, so as to cooperatively complete the work, further enhance the network data processing capability, increase the throughput, and improve the usability and flexibility of the network, and it is easy to note that, if the working state of the page is abnormal after the back-end test renders the page, for example, the incompleteness of the page display or some functions cannot be realized, it is determined that the verification is not passed.
In some embodiments of the present application, the communication connection device includes a router and a transit server; the router is in communication connection with the testing equipment, and the router directionally transmits an access request of a domain name corresponding to the front-end code to be tested to the transfer server; the router may also be called a front-end test router, and a wifi router capable of setting domain name (host) resolution is generally selected. In an alternative implementation of the present application, an intelligent wireless routing wifi router is used when implementing the present embodiment. 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 addresses of the transit servers, for example, if the tested pages related to the front end codes are https:// jr.qunar.com/test.html, the https:// jr.qunar.com/test.html is sent to the transit servers.
It should be noted that, when there are a plurality of front end codes to be tested of different domain names, the router may respectively send the resolved addresses corresponding to the plurality of different domain names to the transit server in a directional manner. The test equipment can be a mobile terminal, a computer and the like. The transfer server accesses the front end unit and/or the fort machine based on the access request of the test equipment.
In some embodiments of the present application, the router may fix the access address of the domain name corresponding to the front end code to be tested as the address of the transit server, specifically, the domain name of the tested page related to the front end code may be configured on the router, and the domain names may be configured to point to the address of the front end 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 to: jr.qunar.com 192.168.1.99.
In some embodiments of the present application, when the number of front end codes to be tested is plural, in the original back end codes in the fort machine, the portion corresponding to each front end code to be tested is updated to be the corresponding test back end code, that is, all front end codes to be tested are associated one by one to the fort machine, so as to obtain the test back end codes, for example, the number of front end codes to be tested is three: a, B, C, the corresponding part of the A, B, C front end code to be tested in the fort machine can be updated to a new version, and the updated version is the test back end code. Taking the front end code a as an example, the front end code a version has V1, V2, V3 and the latest V4 version, and in the fort machine, the front end code corresponding to the update of the corresponding version to the V4 version is the front end code associated with the fort machine, which is always the latest version, so as to be used for the accurate test of the test equipment.
In some optional embodiments of the present application, the front end code to be tested and the fort machine are multiple, and the front end codes to be tested and the fort machines are in one-to-one correspondence, and in the original back end code in each fort machine, the part corresponding to the front end code to be tested corresponding to the original back end code is updated to the corresponding back end code to be tested, for example, the front end code to be tested has three: d, E, F, the D, E, F front end codes to be tested can be respectively associated with the corresponding D 1 、E 1 、F 1 In the fort machine, and D is as described above 1 、E 1 、F 1 The fort machine is 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 back-end code to be tested are associated by identification. It should be noted that the types of the above identification marks include, but are not limited to: version number, check code, and serial number.
In some embodiments of the present application, the relay server is communicatively connected to the fort machine, and in particular, the relay server may also be referred to as a front-end test relay server, where the function of the relay server is the same as that of a load balancing server accessed by a user, and the relay server is used to forward a request to a specified target machine, where the target machine is different. The communication connection manner described above may be that a forwarding path is configured on the front-end test transfer server to forward the access request to the bastion machine, and specifically, two cases may be divided: the first case, forwarding a request to access the backend machine to the fort machine; the second case still forwards the request to access the front-end code to the fort machine, it being noted that there are multiple versions of the front-end code on the front-end machine, which front-end code to use is determined by the associated front-end version on the back-end machine, since the code associated with the new version front-end is issued on the fort machine, the request to access the front-end code must be the request to the new version front-end code. The forwarding rules should be completely consistent with the forwarding rules on the load balancing server, except that the target machine is different, the load balancing server can forward the user access request to the back-end machine, and the fort machine is not within the forwarding target of the load balancing server accessed by the user, so that no user request accesses the fort machine.
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. The latest backend code associated with the new version of the front-end code is released onto the fort machine. Therefore, when the fort machine is accessed, the acquired associated front-end code is the front-end code of the new version. The code may be problematic, causing page and function errors that affect customer usage, so it is necessary to test the code. The original back-end machine does not release the new version of the front-end code. When the back-end machine is accessed, the acquired associated front-end code is the original old version code.
When a user makes an access, the user access request is forwarded to the back-end machine via the offload server (load balancing server), so that the user uses an old version of the front-end code without problems, and thus the user is not affected.
When the tester accesses, the tester can connect the test mobile phone or the test tool to the wifi network of the front-end test router, and then execute the test. At this time, the tested page in the client is accessed by the tester on the test mobile phone, or the tested page is accessed through the browser, or the access request sent by the tool and the like pass through the front-end test router and then pass through the transfer server (front-end test transfer server), and the transfer server forwards the request to the fort machine, so that the front-end code of the new version to be verified on line is used. In this way, the test performed by the tester will be 100% accurate to hit the new version of the front end code, and the test handset or test tool connected to the wifi network of the front end test router is the white list that can access the new version of the front end code.
In some embodiments of the present application, the hardware configuration and software configuration of the fort machine are the same as any backend unit within the backend unit.
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 comprising the steps of:
step S102, receiving an access request of a target object to a back-end machine;
step S104, sending an access request to the fort machine 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;
step S106, after the front-end codes to be tested render the pages in the fort machine in association with the back-end codes, if the working state of the pages is normal, determining that the front-end codes to be tested pass the verification.
In the above-mentioned online verification method of front-end code, first, receive the access request to the back-end machine of the goal object; and finally, after rendering the page by the back end code associated with the front end code to be tested in the fort machine, determining that the working state of the page is normal, and verifying the back end code associated with the front end code to be tested in the fort machine by verifying the front end code to be tested, wherein the front end code to be tested is the latest version of the front end code issued to the front end device, and accessing the fort machine by verifying the back end code associated with the front end code to be tested, thereby achieving the technical effect of quickly and accurately searching the front end code to be tested and further solving 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 an access request to a backend machine for a target object, 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 the 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 to: jr.qunar.com 192.168.1.99.
In some optional embodiments of the present application, a forwarding path is configured on the forwarding server, where the forwarding path is at least used for forwarding an access request for accessing a front-end machine to a fort machine, and it should be noted that the forwarding path includes: the access request of the access back-end unit and the access request of the access front-end machine are forwarded to the fort machine, specifically, the above transfer server may also be called a front-end test transfer server, and the functions of the transfer server and the load balancing server accessed by the user are the same and are all used for forwarding the request to the designated target machine, except that the target machine is different. Configuring a forwarding path on a front-end test transit server can be divided into two cases: the first case, forwarding a request to access the backend machine to the fort machine; the second case still forwards the request to access the front-end machine to the fort machine, it being noted that there are multiple versions of the front-end code on the front-end machine, which front-end code to use is determined by the associated front-end version on the back-end machine, since the code associated with the new version of the front-end is issued on the fort machine, the request to access the front-end machine must be to the new version of the front-end code after being forwarded to the fort machine. The forwarding rules are completely consistent with the forwarding rules on the load balancing server.
FIG. 3 is a system frame diagram of an alternative front-end code online 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 through the load balancing server as shown in fig. 3, so that the front-end code of the old version with normal functions is used, and the page corresponding to the front-end code of the old version is an interface which always operates normally, so that the user is not influenced in general.
When a tester accesses, the tester needs to connect a test mobile phone or a test tool to a wifi network of a front-end test router, and then execute a test, as shown in fig. 3, the tester accesses a tested page in a client on the test mobile phone, accesses the tested page through a browser or requests sent by the tool all pass through the front-end test router, and the front-end test transit server is forwarded to the fort machine, so that a new version of front-end codes to be verified on line is used.
In this manner, the test performed by the tester will hit the new version of the front end code 100% accurately. The test handset or test tool connected to the wifi network of the front end test router is a white list of the front end codes that can access the new version.
Note that, in this system, the code deployment mode is: 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 (backend code consistent with other backend machines on-line) is issued to the fort machine. When the fort is accessed, the acquired associated front end code is the front end code of the new version. The code may be problematic causing page and function errors. The original back-end machine does not issue. When the back-end machine is accessed, the acquired associated front-end code is the original old version code.
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 controlled to execute any one of the online verification methods of the front end codes when the program runs.
Specifically, the above-mentioned nonvolatile storage medium is used to store program instructions that perform the following functions, implementing the following functions:
receiving an access request of a target object to a back-end machine; and sending the access request to the fort machine 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 latest version of the front-end code issued to the front-end equipment, and after the back-end code associated with the front-end code to be tested in the fort machine renders the page, 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 program runs to execute any on-line verification method of the front-end code.
Specifically, the above processor is configured to call program instructions in the memory, and implement the following functions:
receiving an access request of a target object to a back-end machine; and sending the access request to the fort machine 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 latest version of the front-end code issued to the front-end equipment, and after the back-end code associated with the front-end code to be tested in the fort machine renders the page, if the working state of the page is normal, determining that the front-end code to be tested passes the verification.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform 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, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (16)

1. An online verification system of front end codes, which is applied to a network system of a front-end and back-end separation framework, wherein the network system comprises a front end unit, a back end unit and a shunt server, the front end unit stores a front end code to be tested and an original front end code, the back end unit stores an original back end code corresponding to the original front end code, and the shunt server is respectively in communication connection with the front end unit and the back end unit, and the online verification system is characterized by comprising:
the testing equipment is used for accessing the front-end code to be tested;
the fort machine stores the original back-end code, and updates a part corresponding to the front-end code to be tested in the original back-end code 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 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 means comprises a router and a transit server;
the router is in communication connection with the testing equipment, and the router directionally sends an access request of the domain name corresponding to the front-end code to be tested to the transit server;
the transfer server accesses the front-end unit and/or the bastion machine based on the access request of the test equipment.
3. The on-line authentication system of claim 2, wherein the router fixes an access address of the domain name corresponding to the front-end code to be tested as an address of the transit server.
4. The on-line verification system according to claim 1, wherein the number of front end codes to be tested is plural, and the portion corresponding to each front end code to be tested in the original back end code in the fort machine is updated to be the corresponding test back end code.
5. The on-line verification system according to claim 1, wherein the front end code to be tested and the fort machine are plural, the plural front end codes to be tested are in one-to-one correspondence with the plural fort machines, and the part corresponding to the front end code to be tested in each fort machine is updated to be the corresponding back end code to be tested.
6. The on-line verification system according to claim 1, wherein the front-end code to be tested is associated with the back-end code to be tested by an identification.
7. The on-line authentication 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 of claim 2, wherein the staging server is communicatively coupled to the bastion machine.
9. The on-line authentication system of claim 2, wherein forwarding rules of the offload server and the relay server are the same.
10. The on-line validation system of claim 1, wherein the hardware configuration and software configuration of the bastion machine are the same as any of the backend sets within the backend set.
11. An on-line verification method of a front-end code, comprising:
receiving an access request of a target object to a back-end machine;
sending the access request to a fort machine 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 the front-end code of the latest version issued to front-end equipment;
after the front-end code to be tested renders the page in the bastion machine by the associated back-end code, if the working state of the page is normal, determining that the front-end code to be tested passes the verification.
12. The method of claim 11, wherein prior to receiving the request for access to the backend machine for the target object, 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 the address of the 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, wherein the step of determining the position of the probe is performed,
and 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 fort machine.
15. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the program, when run, controls a device in which the non-volatile storage medium is located to perform the on-line authentication method of the front-end code of any one of claims 11 to 14.
16. A processor, characterized in that the processor is configured to run a program, wherein the program when run performs the on-line verification method of the front-end code of 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 CN111625222A (en) 2020-09-04
CN111625222B true 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)

Families Citing this family (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 (6)

* 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
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
CN109960643A (en) * 2017-12-22 2019-07-02 网宿科技股份有限公司 A kind of code test method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10353831B2 (en) * 2015-12-24 2019-07-16 Intel Corporation Trusted launch of secure enclaves in virtualized environments
WO2019038588A1 (en) * 2017-07-24 2019-02-28 Wix. Com Ltd. Editing a database during preview of a virtual web page

Patent Citations (6)

* 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
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 (1)

* Cited by examiner, † Cited by third party
Title
《基于FPGA动态重构的多功能测试技术研究及应用验证》;邹孝付;《现代制造工程》;第102页-第107页 *

Also Published As

Publication number Publication date
CN111625222A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
US20160321628A1 (en) Online payment method, system, and apparatus
CN110661835A (en) Gray level publishing method and processing method thereof, node and system and storage device
CN107967206B (en) Data test system, request interception method and request interception device
JP2019500680A (en) Data processing method and apparatus
CN111177003A (en) Test method, device, system, electronic equipment and storage medium
CN110830234A (en) User traffic distribution method and device
CN111625222B (en) Online verification system and method for front-end codes
CN110781083A (en) H5 client code setting multi-environment testing method and system
CN112187934A (en) Micro-service building method
CN108829495B (en) Verification method, device, equipment and storage medium for multi-database modification transaction
CN110825451B (en) Configuration and verification method and device for applet page address
CN101350020A (en) Method, apparatus and system for verifying embedded type file system
CN111124908A (en) Interface testing method and device and computer readable storage medium
CN110955449A (en) Method and device for releasing gray scale of client
CN111444105B (en) Method, system and device for simulating payment
CN110457187B (en) TPC-E test method and test server capable of conveniently running based on backup test data
CN110971478A (en) Pressure measurement method and device for cloud platform service performance and computing equipment
CN111797149B (en) Data acquisition method, device, equipment and computer readable storage medium
CN111078527B (en) Auxiliary system and method for pressure testing of server
CN108306937A (en) Sending method, acquisition methods, server and the storage medium of short message verification code
CN113992515A (en) System configuration method, device, equipment and storage medium
CN113014443B (en) Method and system for testing whether CDN (content delivery network) resources hit cache
CN110611678B (en) Method for identifying message and access network equipment
CN110162278B (en) Adding method and device of built-in printer of POS machine
CN113076111A (en) Customized cluster configuration method, system, terminal and 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