WO2020233047A1 - Procédé et appareil de test de page - Google Patents

Procédé et appareil de test de page Download PDF

Info

Publication number
WO2020233047A1
WO2020233047A1 PCT/CN2019/120605 CN2019120605W WO2020233047A1 WO 2020233047 A1 WO2020233047 A1 WO 2020233047A1 CN 2019120605 W CN2019120605 W CN 2019120605W WO 2020233047 A1 WO2020233047 A1 WO 2020233047A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
url
page
terminal
summary data
Prior art date
Application number
PCT/CN2019/120605
Other languages
English (en)
Chinese (zh)
Inventor
许剑勇
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020233047A1 publication Critical patent/WO2020233047A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • This application relates to the field of computer technology, and in particular to a method and device for page testing.
  • H5 HyperText Markup Language
  • the method of the prior art is to save all the entered URLs in local storage. Once needed, they can be directly selected from the list. However, if the App is uninstalled, all stored URL records will also be lost. Therefore, how to enter the H5 page without fear of losing the URL record or entering a long URL address has become an urgent problem to be solved.
  • the embodiment of the application provides a method and device for page testing, which can enter the test page by scanning a two-dimensional code, which reduces the time for entering the test page, is simple to operate, and has high security.
  • an embodiment of the present application provides a method for page testing, which includes:
  • the first terminal sends a page test request to the second terminal
  • the first terminal receives and recognizes the page test QR code generated by the second terminal based on the page test request, and obtains uniform resource locator URL encoding data in the page test QR code;
  • the first terminal determines the first summary data and the URL address from the URL encoded data, and determines the second summary data according to the URL address;
  • the first terminal determines whether the first summary data and the second summary data match
  • the first terminal determines that the first summary data matches the second summary data, it determines that the page test two-dimensional code is legal, and enters the page to be tested through the URL address and tests the page to be tested.
  • the embodiments of the present application provide another page testing method, which includes:
  • the second terminal receives the page test request sent by the first terminal
  • the second terminal obtains the URL address of the page to be tested according to the page test request
  • the second terminal determines the URL encoded data according to the URL address
  • the second terminal generates a page test two-dimensional code from the URL encoding data and sends the page test two-dimensional code to the first terminal.
  • an embodiment of the present application provides a page testing device, which is suitable for a first terminal for page testing, and the device includes:
  • the request sending module is used to send a page test request to the second terminal
  • the data acquisition module is configured to receive and identify the page test QR code generated by the second terminal based on the page test request, and obtain the uniform resource locator URL encoding data in the page test QR code;
  • the data determining module is used to determine the first summary data and the URL address from the aforementioned URL encoding data, and determine the second summary data according to the aforementioned URL address;
  • a data matching module for determining whether the first summary data and the second summary data match
  • the page test module is configured to determine that the two-dimensional code for the page test is legal if the first summary data matches the second summary data, and enter the page to be tested through the URL address and test the page to be tested.
  • the embodiments of the present application provide another page testing device, which is suitable for a second terminal for page testing, and the device includes:
  • the request receiving module is used to receive the page test request sent by the first terminal
  • the address obtaining module is used to obtain the URL address of the page to be tested according to the above page test request;
  • the data processing module is used to determine URL encoded data according to the above URL address;
  • the two-dimensional code generation module is configured to generate a page test two-dimensional code from the URL encoding data and send the page test two-dimensional code to the first terminal.
  • an embodiment of the present application provides a terminal.
  • the terminal includes a processor and a memory, and the processor and the memory are connected to each other.
  • the memory is used to store a computer program that supports the terminal to execute the method provided in the first aspect and/or any one of the possible implementations of the first aspect, the computer program includes program instructions, and the processor is configured to call the program Instructions to execute the method provided in the first aspect and/or any possible implementation of the first aspect.
  • an embodiment of the present application provides a terminal.
  • the terminal includes a processor and a memory, and the processor and the memory are connected to each other.
  • the memory is used to store a computer program that supports the terminal to execute the method provided by the second aspect and/or any one of the possible implementations of the second aspect, the computer program includes program instructions, and the processor is configured to call the program Instructions to execute the method provided in the second aspect and/or any possible implementation manner of the second aspect.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute The method provided by the foregoing first aspect and/or any possible implementation manner of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute
  • the computer program includes program instructions that, when executed by a processor, cause the processor to execute
  • the first terminal obtains URL encoding data by receiving and recognizing the page test QR code generated by the second terminal based on the page test request, and determines the first summary data and the URL address from the URL encoding data, and Determine the second summary data according to the URL address, and determine the validity of the page test QR code by matching the first summary data and the second summary data. If the first summary data matches the second summary data, determine the page test two-dimensional code The code is legal, and enter the page to be tested through the URL address and test the page to be tested.
  • the embodiment of the application enters the test page by scanning the two-dimensional code, which reduces the time for performing the test page, is simple to operate, and has high security.
  • FIG. 1 is a schematic flowchart of a page testing method provided by an embodiment of the present application
  • FIG. 2 is another schematic flowchart of a page testing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a page testing device provided by an embodiment of the present application.
  • FIG. 4 is another schematic diagram of the structure of the page testing device provided by the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another structure of a terminal provided by an embodiment of the present application.
  • the page testing method provided in the embodiments of this application can be widely applied to various page testing terminals.
  • the page testing methods provided in the embodiments of this application can be completed interactively by two terminals.
  • the first terminal and the second terminal can be used.
  • the first terminal provided by the embodiment of the present application can be used for page testing
  • the second terminal can be used for generating a two-dimensional code for page testing.
  • the above-mentioned first terminal may include a smart phone, a desktop computer, a notebook computer, a tablet computer, etc.
  • the second terminal may include a smart phone, a desktop computer, a notebook computer, a tablet computer, etc., according to actual application scenarios. OK, there is no restriction here.
  • the embodiment of the present application will take the first terminal and the second terminal as examples for description.
  • developers often need to test the developed H5 pages. Therefore, when the first terminal opens the application or web page for page testing, the first terminal display interface will display the page test Main interface or initialization interface.
  • the user can send a page test request to the second terminal by clicking the test button on the main interface or the initialization interface, and the page test request may include the page information to be tested.
  • the second terminal can obtain the URL address of the page to be tested by receiving the page test request and according to the page test request. After the obtained URL address is hashed, it can be encrypted and encoded to generate URL encoded data, using the second terminal.
  • the above QR code generation tool can generate a page test QR code from the URL encoding data and send it to the first terminal.
  • the first terminal After the first terminal receives the page test QR code, it can recognize the page test QR code by waking up the camera on the first terminal to obtain URL encoded data, determine the first summary data and URL address from the URL encoded data, and use the URL The address determines the second summary data, and the legality of the page test QR code is determined by matching the first summary data and the second summary data. If the first summary data matches the second summary data, the page test QR code is determined to be legal , And enter the page to be tested through the URL address and test the page to be tested.
  • the embodiment of the application enters the test page by scanning the two-dimensional code, which reduces the time for performing the test page, has simple operation, high security, and strong applicability.
  • FIG. 1 is a schematic flowchart of a page testing method provided by an embodiment of the application.
  • the method provided in the embodiment of the present application may include the following steps 101 to 104:
  • the first terminal display interface will display the main interface or initialization interface of the page testing.
  • the user can trigger the page test request to be sent to the second terminal by clicking the page test button in the displayed main interface or the initialization interface on the display interface of the first terminal, and the first terminal collects the user operation instructions on the page test button.
  • the page test request may carry information of the page to be tested, wherein the information of the page to be tested includes at least the URL address of the page to be tested.
  • the second terminal will receive the page test request sent by the first terminal.
  • the second terminal when the second terminal receives the page test request sent by the first terminal, the second terminal will obtain the URL address of the page to be tested according to the page to be tested information included in the received page test request.
  • a URL address is a concise representation of the location and access method of resources available on the Internet. It is the address of a standard resource on the Internet, and each file on the Internet has a unique URL address. , It contains information indicating the location of the file and how the browser should handle it.
  • the page test request sent by the first terminal received by the second terminal is a "first H5 page test request", where the "first H5 page test request” carries information about the page to be tested, that is, the first H5 page information.
  • the first H5 page information includes the URL address "first H5 page URL address" of the first H5 page.
  • the second terminal can obtain the URL address of the first H5 page by receiving the "first H5 page test request” and parsing the "first H5 page URL address" in the "first H5 page test request".
  • the second terminal may obtain hash data by performing hash calculation on the obtained URL address, and may extract digest data from the hash data.
  • hash calculation for convenience of description, hash for short
  • the output is the hash data (for convenience of description, referred to as the hash value)
  • the hash value is a unique and extremely compact numerical representation of a piece of data. If a piece of plaintext is hashed and even if only one letter of the paragraph is changed, the resulting hash value will be different.
  • the hash value of the data can check the uniqueness of the data.
  • the digest data can be complete hash data, one or more characters at a specified position in the hash data, or the first M characters and the last N characters in the hash data Characters and M and N are both positive integers, which can be determined according to actual application scenarios, and there is no restriction here. Encoding the data composed of the URL address and the summary data can obtain the corresponding URL encoding data.
  • encoding and encryption are both a conversion of the format.
  • the encoding is public, and the encoding converts data into encoded information in a certain fixed format, which is convenient for different systems.
  • the transmission and identification of the original information can be obtained by decoding the encoded information.
  • the encryption is to hide the information to ensure the security of the information, and the original information can be restored through the key and ciphertext. Therefore, in order to enhance data security, the second terminal may also encrypt the data composed of the URL address and the summary data to obtain the second URL data, and then encode the second URL data to obtain the corresponding URL encoded data. It is understandable that a two-dimensional code can be used as a means of mutual conversion between image information and text information.
  • the two-dimensional code is also called a two-dimensional bar code, which uses a certain geometric figure in a plane (two-dimensional direction) according to a certain rule.
  • the distributed black and white graphics record data symbol information.
  • QR code generation tools As long as we enter the required information into the QR code generation tool, the QR code corresponding to the information can be generated and then saved and applied. For example, texts, short messages, URLs, business cards, emails, WIFI, telephones, etc. that may be used in our lives can generate QR codes.
  • the obtained URL encoding data can be generated by the QR code generation tool on the second terminal to generate the corresponding page test QR code.
  • the second terminal may send the generated page test QR code to the first terminal via Bluetooth, a wireless network, or a cellular mobile network.
  • the first terminal will receive the page test QR code sent by the second terminal.
  • the first terminal when it detects that it has received the page test QR code generated based on the page test request sent by the second terminal, it can directly activate or wake up the camera to scan the received page test QR code. Code to obtain the URL encoding data in the QR code of the page test.
  • the received page test QR code can be displayed on the display interface of the first terminal, and the developer or user can press and hold the second terminal A page test QR code displayed on the terminal display interface is selected to identify the page test QR code.
  • the first terminal can monitor the user operation on the display interface of the first terminal in real time.
  • the long-press instruction on the display position of the page test QR code on the display interface of the first terminal When the long-press instruction on the display position of the page test QR code on the display interface of the first terminal is detected, it can be based on the first terminal
  • the user operation instruction (ie, long press instruction) on the display interface turns on the camera to scan the page test QR code to obtain the URL encoding data in the page test QR code.
  • the first terminal can extract the first summary data and the URL address from the decoded URL encoded data by decoding the acquired URL encoded data.
  • the second terminal encrypts the data for data security before generating the URL encoded data
  • it will continue to decrypt the decoded URL encoded data, and then Obtain the decoded and decrypted first URL data, and then extract the first summary data and the URL address from the first URL data.
  • the first summary data may be the last W characters in the first URL data, where W is a positive integer.
  • Hash data can be obtained by hashing the extracted URL address.
  • the first M characters and last N characters in the hash data can be extracted, and the first M characters and last N characters can be determined as the second digest Data, where M and N are both positive integers and the sum of M and N is equal to W.
  • hash calculation for convenience of description, hash for short
  • the output is the hash data (for convenience of description, referred to as the hash value)
  • the hash value is a unique and extremely compact numerical representation of a piece of data.
  • the hash value of the data can verify the uniqueness of the data.
  • the first terminal compares the first summary data and the second summary data one by one, and if the first summary data and the second summary data are the same, it is determined that the first summary data and the second summary data match .
  • the first summary data matches the second summary data, it means that the page test QR code is legal. Therefore, the first terminal can enter the page to be tested through the extracted URL address and test the page to be tested. That is, the first terminal display interface will jump from the main interface or initialization interface of the page test to the page to be tested and complete the test. If the first summary data and the second summary data are not the same, it is determined that the first summary data and the second summary data do not match.
  • the first terminal display interface may pop up a dialog box to remind the tester that the two-dimensional code tested on the page may be an illegal two-dimensional code.
  • the first terminal may send a page test request to the second terminal, and the page test request may include the page information to be tested.
  • the second terminal receives the page test request and obtains the URL address of the page to be tested according to the page test request. After hashing the obtained URL address, it is encrypted and encoded to generate URL-encoded data, using the two-dimensional data on the second terminal
  • the code generation tool generates a page test QR code from the URL encoded data and sends it to the first terminal.
  • the first terminal When receiving the page test QR code, the first terminal recognizes the page test QR code by waking up the camera to obtain URL encoded data, determines the first summary data and the URL address from the URL encoded data, and determines the second based on the URL address
  • the summary data is used to determine the validity of the page test QR code by matching the first summary data and the second summary data. If the first summary data matches the second summary data, it is determined that the page test QR code is legal, and the page to be tested is entered through the URL address and the page to be tested is tested.
  • the embodiment of the application enters the test page by scanning the two-dimensional code, which reduces the time for performing the test page, has simple operation, high security, and strong applicability.
  • FIG. 2 is another schematic flowchart of the page testing method provided by the embodiment of the present application.
  • the method of page testing provided in the embodiment of the present application can be illustrated by the implementation manner provided in the following steps 201 to 210:
  • the specific implementation manner of sending the page test request in the above steps 201-202 and obtaining the URL address of the page to be tested according to the page test request can refer to the implementation manner provided in the steps 101-102 in the corresponding embodiment in Figure 1 above. Do not repeat them here.
  • the second terminal can obtain the hash data by hashing the obtained URL address, and by extracting the first M characters and the last N characters in the hash data, the extracted first The M-bit character and the last N-bit character are determined as digest data, where M and N are both positive integers.
  • the summary data may also be complete hash data, or may be one or more characters at a specified position in the hash data, which can be specifically determined according to actual application scenarios, and is not limited here. It is understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understandable that we can understand
  • hash data (for convenience of description, hash value for short), which is a unique and extremely compact numerical representation of a piece of data. If you hash a piece of plaintext and change only one letter of the paragraph, the hash value produced will be different. Since it is computationally impossible to find two different inputs whose hashes are the same value, the hash value of the data can check the uniqueness of the data.
  • the RSA encryption algorithm is a typical asymmetric encryption algorithm, that is, the encryption key and the decryption key use different passwords, and it is a type of "decryption derived from a known encryption key.
  • the key is computationally infeasible" cryptosystem. Therefore, there is no reliable way to attack the RSA encryption algorithm in the world so far.
  • the RSA encryption algorithm usually first generates a pair of RSA keys, that is, an RSA key pair, where the private key is used for encryption and the public key is used for decryption.
  • the second URL data can be obtained by encrypting the data composed of the URL address and the digest data according to the private key in the obtained RSA key pair.
  • the encoding is a conversion of the format.
  • any data in the computer is stored in ASCII code, and the value between 128 and 255 of the ASCII code is an invisible character.
  • the data can be Base64 encoded first, and all become visible characters, so that the possibility of errors is greatly reduced.
  • the URL-encoded data can be obtained by Base64 encoding the second URL data, and then the URL-encoded data can be generated into the corresponding page test QR code by the QR code generation tool on the second terminal.
  • the specific implementation of sending the page test QR code in the above steps 206-207 to obtain the URL encoding data in the page testing QR code can refer to the implementation provided by the steps 104-105 in the corresponding embodiment of FIG. 1 above. Do not repeat them here.
  • the second terminal after the second terminal performs Base64 decoding on the obtained URL-encoded data, it decrypts the decoded data according to the public key in the RSA key pair, and the decoded and decrypted data can be obtained.
  • the first URL data includes the first summary data and the URL address.
  • Extract the first summary data from the first URL data extract the URL address from the first URL data, obtain hash data by hashing the URL address, and extract the second summary data from the hash data.
  • the extracted last W characters can be used as the first summary data, where W is a positive integer.
  • Hash data can be obtained by hashing the extracted URL address.
  • the first M characters and last N characters in the hash data can be extracted, and the first M characters and last N characters can be determined as the second digest Data, where M and N are both positive integers and the sum of M and N is equal to W.
  • hash calculation for convenience of description, hash for short
  • hash as a process, which is to transform an input of any length (also called pre-mapping) into a fixed-length output through a hash algorithm
  • the output is the hash data (for convenience of description, referred to as the hash value)
  • the hash value is a unique and extremely compact numerical representation of a piece of data. If a piece of plaintext is hashed and even if only one letter of the paragraph is changed, the resulting hash value will be different. Since it is computationally impossible to find two different inputs whose hashes are the same value, the hash value of the data can check the uniqueness of the data.
  • extract the last 8 characters in the first URL data as 0xA226F3
  • the first summary data is 0xA226F3
  • extract the URL address in the first URL data as http://www.aspxfans .com:8080/news/index.asp?
  • the first summary data and the second summary data are compared one by one, and if the first summary data and the second summary data are the same, it is determined that the first summary data and the second summary data match.
  • the first summary data matches the second summary data it means that the page test QR code is legal. Therefore, the extracted URL address can be used to enter the page to be tested and test the page to be tested. That is, the first terminal display interface will jump from the main interface or initialization interface of the page test to the page to be tested and complete the test. If the first summary data and the second summary data are not the same, it is determined that the first summary data and the second summary data do not match.
  • the first terminal display interface may pop up a dialog box to remind the tester that the two-dimensional code tested on the page may be an illegal two-dimensional code.
  • the URL encoded data obtained by identifying the page and testing the QR code is "URL encoded data 1”
  • the data obtained by Base64 decoding the "URL encoded data 1” is "URL data 1”.
  • the second summary data composed of characters and the last N characters is 0xA226F3.
  • the first terminal may send a page test request to the second terminal, and the page test request may include the page information to be tested.
  • the second terminal receives the page test request and obtains the URL address of the page to be tested according to the page test request, obtains the hash data by hashing the obtained URL address, and extracts the digest data in the hash data, using the RSA key pair Encrypt the data composed of the URL address and summary data with the private key and Base64-encode the encrypted data to generate URL-encoded data.
  • Use the QR code generation tool on the second terminal to generate the page test QR code from the URL-encoded data And sent to the first terminal.
  • the first terminal uses the camera to recognize the received page test QR code to obtain URL encoded data.
  • the decoded data is decrypted according to the public key in the acquired RSA key pair.
  • Obtain the first URL data determine the first summary data and URL address from the first URL data, and determine the second summary data according to the URL address, and determine the page test QR code by matching the first summary data and the second summary data If the first summary data matches the second summary data, it is determined that the page test QR code is legal, and the URL address is used to enter the page to be tested and test the page to be tested.
  • the embodiment of the application enters the test page by scanning the two-dimensional code, which reduces the time for performing the test page, has simple operation, high security, and strong applicability.
  • FIG. 3 is a schematic structural diagram of a page testing device provided by an embodiment of the present application, and the device is suitable for the first terminal for page testing provided by the embodiment of the present application.
  • the page testing device provided by the embodiment of the application includes:
  • the request sending module 31 is configured to send a page test request to the second terminal
  • the data acquisition module 32 is configured to receive and identify the page test QR code generated by the second terminal based on the page test request, and obtain the uniform resource locator URL encoding data in the page test QR code;
  • the data determining module 33 is configured to determine the first summary data and the URL address from the aforementioned URL encoding data, and determine the second summary data according to the aforementioned URL address;
  • the data matching module 34 is configured to determine whether the first summary data and the second summary data match
  • the page test module 35 is configured to determine that the two-dimensional code for the page test is legal if the first summary data matches the second summary data, and enter the page to be tested through the URL address and test the page to be tested.
  • the aforementioned URL encoded data is obtained by encrypting the private key in an RSA key pair; the aforementioned data determining module 33 includes:
  • the decoding and decrypting unit 331 is configured to decode the aforementioned URL encoded data, and decrypt the decoded data according to the public key in the obtained RSA key pair to obtain the first URL data;
  • the first summary data determining unit 332 is configured to extract first summary data from the aforementioned first URL data
  • the second summary data determining unit 333 is configured to extract a URL address from the aforementioned first URL data, obtain hash data by hashing the aforementioned URL address, and extract second summary data from the aforementioned hash data.
  • the aforementioned first summary data determining unit 332 is configured to:
  • the aforementioned second summary data determining unit 333 is configured to:
  • the aforementioned data matching module 34 is used to:
  • the first summary data and the second summary data are compared, and if the first summary data and the second summary data are the same, it is determined that the first summary data and the second summary data match.
  • the above-mentioned page testing device can execute the implementation manners provided in the above-mentioned steps in FIGS. 1 to 2 through various built-in functional modules.
  • the above-mentioned request sending module 31 may be used to perform implementation methods such as sending a page test request in the above-mentioned steps.
  • the implementation methods provided in the above-mentioned steps which will not be repeated here.
  • the above-mentioned data acquisition module 32 can be used to perform the implementation described in the relevant steps of receiving and identifying the page test QR code in the above-mentioned steps.
  • the implementation methods provided in the above-mentioned steps which will not be repeated here.
  • the above-mentioned data determining module 33 can be used to perform implementation methods such as determining the first summary data, determining the URL address, and determining the second summary data according to the URL address in the above steps. For details, please refer to the implementation methods provided in the above steps. Repeat it again.
  • the above-mentioned data matching module 34 may be used to perform implementation manners such as determining whether the first summary data and the second summary data match in each of the foregoing steps. For details, please refer to the implementation manners provided by the foregoing steps, and details are not described herein again.
  • the above-mentioned page testing module 35 can be used to perform implementation methods such as page testing in the above-mentioned steps. For details, please refer to the implementation methods provided in the above-mentioned steps, which will not be repeated here.
  • the device for page testing can obtain URL-encoded data based on the received page test QR code, determine the first summary data and URL address from the aforementioned URL-encoded data, and determine the first summary data and URL address according to the aforementioned URL address.
  • Second summary data by matching the first summary data and the second summary data to determine the validity of the page test QR code, if the first summary data matches the second summary data, then the page test QR code is determined It is legal and enters the page to be tested through the above URL address and tests the page to be tested.
  • the embodiment of the application enters the test page by scanning the two-dimensional code, which reduces the time for performing the test page, has simple operation, high safety, and wide application range.
  • FIG. 4 is another schematic diagram of the structure of the page testing device provided by the embodiment of the present application, and the device is suitable for the second terminal for page testing provided by the embodiment of the present application.
  • the page testing device provided by the embodiment of the application includes:
  • the request receiving module 41 is configured to receive a page test request sent by the first terminal;
  • the address obtaining module 42 is configured to obtain the URL address of the page to be tested according to the above page test request;
  • the data processing module 43 is configured to determine URL encoded data according to the above URL address;
  • the two-dimensional code generation module 44 is configured to generate a page test two-dimensional code from the URL encoding data and send the page test two-dimensional code to the first terminal.
  • the aforementioned data processing module 43 includes:
  • the summary data determining unit 431 is configured to obtain hash data by hashing the aforementioned URL address, and extract summary data from the aforementioned hash data;
  • the data encryption unit 432 is configured to encrypt the aforementioned URL address and the aforementioned digest data according to the obtained private key in the RSA key pair to obtain second URL data;
  • the data encoding unit 433 is configured to encode the aforementioned second URL data to obtain URL encoded data.
  • the aforementioned summary data determining unit 431 is configured to:
  • the first M characters and the last N characters in the hash data are extracted, and the first M characters and the last N characters are determined as the digest data, where M and N are both positive integers.
  • the above-mentioned page testing device can execute the implementation manners provided in the above-mentioned steps in FIGS. 1 to 2 through various built-in functional modules.
  • the above-mentioned request receiving module 41 may be used to perform implementation manners such as receiving a page test request in the above-mentioned steps.
  • the address obtaining module 42 may be used to perform the implementation described in the related steps of obtaining the URL address of the page to be tested in the foregoing steps.
  • the above-mentioned data processing module 43 may be used to perform implementation methods such as generating a page test QR code and sending a test QR code in the foregoing steps. For details, please refer to the implementation methods provided in the foregoing steps, and will not be repeated here.
  • the device for page testing can obtain the URL address of the page to be tested based on the received page test request, and after hashing the obtained URL address, it is encrypted and encoded to generate URL encoded data.
  • the QR code generation tool on the second terminal generates a page test QR code from the URL encoding data and sends it to the first terminal.
  • FIG. 5 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal in this embodiment may be the first terminal provided in the embodiment of the application, and the above-mentioned first terminal may include: one or more processors 501 and a memory 502.
  • the aforementioned processor 501 and memory 502 are connected through a bus 503.
  • the memory 502 is configured to store a computer program, and the computer program includes program instructions.
  • the processor 501 is configured to execute the program instructions stored in the memory 502, and perform the following operations:
  • first summary data matches the second summary data, it is determined that the page test two-dimensional code is legal, and the page to be tested is entered through the URL address and the page to be tested is tested.
  • the above-mentioned URL encoded data is obtained by encrypting the private key in an RSA key pair; the above-mentioned processor 501 is configured to:
  • the URL address is extracted from the first URL data
  • the hash data is obtained by hashing the URL address
  • the second digest data is extracted from the hash data.
  • the aforementioned processor 501 is configured to:
  • the aforementioned processor 501 is configured to:
  • the aforementioned processor 501 is configured to:
  • the first summary data and the second summary data are compared, and if the first summary data and the second summary data are the same, it is determined that the first summary data and the second summary data match.
  • the aforementioned processor 501 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application specific integrated circuit (ASIC), ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 502 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501. A part of the memory 502 may also include a non-volatile random access memory. For example, the memory 502 may also store device type information.
  • the foregoing terminal can execute the implementation manners performed by the first terminal in the foregoing steps in FIGS. 1 to 2 through various built-in functional modules thereof, and details are not described herein again.
  • the first terminal may test the QR code based on the received page to obtain URL-encoded data, determine the first summary data and URL address from the aforementioned URL-encoded data, and determine the second summary data and URL address according to the aforementioned URL address.
  • Summary data by matching the first summary data and the second summary data to determine the validity of the page test QR code, if the first summary data matches the second summary data, the page test QR code is determined to be legal , And enter the page to be tested through the above URL address and test the page to be tested.
  • the embodiment of the application enters the test page by scanning the two-dimensional code, which reduces the time for performing the test page, has simple operation, high safety, and wide application range.
  • FIG. 6 is another schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal in this embodiment may be the second terminal provided in the embodiment of the application, and the above-mentioned second terminal may include: one or more processors 601 and a memory 602.
  • the aforementioned processor 601 and memory 602 are connected through a bus 603.
  • the memory 602 is configured to store a computer program including program instructions
  • the processor 601 is configured to execute the program instructions stored in the memory 602, and perform the following operations:
  • the aforementioned processor 601 is configured to:
  • the aforementioned processor 601 is configured to:
  • Extract the first M characters and the last N characters in the hash data and determine the first M characters and the last N characters as the digest data, where M and N are both positive integers.
  • the aforementioned processor 601 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application specific integrated circuit (ASIC), ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 602 may include a read-only memory and a random access memory, and provides instructions and data to the processor 601. A part of the memory 602 may also include a non-volatile random access memory. For example, the memory 602 may also store device type information.
  • the foregoing terminal may execute the implementation manners performed by the second terminal in the foregoing steps in FIG. 1 to FIG. 2 through various built-in functional modules thereof, and details are not described herein again.
  • the second terminal may obtain the URL address of the page to be tested based on the received page test request, and after hashing the obtained URL address, it is encrypted and encoded to generate URL encoded data.
  • the QR code generation tool on the second terminal generates a page test QR code from the URL encoding data and sends it to the first terminal.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes program instructions.
  • the program instructions are executed by a processor, the first For the method of page testing performed by the terminal, please refer to the implementation manners provided in the above steps for details, which will not be repeated here.
  • the foregoing computer-readable storage medium may be the page testing apparatus provided in any of the foregoing embodiments or the internal storage unit of the foregoing terminal, such as a hard disk or memory of an electronic device.
  • the computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), or a secure digital (SD) card equipped on the electronic device. Flash card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • the embodiments of the present application also provide another computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the computer program includes program instructions.
  • the foregoing computer-readable storage medium may be the page testing apparatus provided in any of the foregoing embodiments or the internal storage unit of the foregoing terminal, such as a hard disk or memory of an electronic device.
  • the computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), or a secure digital (SD) card equipped on the electronic device. Flash card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • computer program instructions can implement each process and/or schematic structural diagrams of the method Or a block, and a combination of processes and/or blocks in a flowchart and/or block diagram.
  • These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated for use. It is a device that realizes the functions specified in one or more processes in the flowchart and/or one block or more in the schematic structural diagram.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the schematic structural diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one block or multiple blocks in the flow chart or the flow chart and/or the structure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

L'invention concerne un procédé et un appareil de test de page. Le procédé est applicable à l'amélioration d'un processus de tests. Le procédé comporte les étapes suivantes: un premier terminal envoie une demande de test de page à un second terminal; le premier terminal reçoit et identifie un code bidimensionnel de test de page généré, sur la base de la demande de test de page, par le second terminal, et acquiert des données codées de localisateur uniforme de ressources (URL) figurant dans le code bidimensionnel de test de page; le premier terminal détermine, à partir des données codées d'URL, des premières données de condensé et une adresse URL, et détermine des secondes données de condensé d'après l'adresse URL; et si le premier terminal détermine que les premières données de condensé concordent avec les secondes données de condensé, il détermine que le code bidimensionnel de test de page est légitime, saisit, au moyen de l'adresse URL, une page à tester, et teste la page à tester. Au moyen des modes de réalisation de la présente invention, une page de test peut être saisie en lisant un code bidimensionnel, de sorte que le temps mis pour tester une page est réduit; et la présente invention est simple à exploiter et présente une haute sécurité et une applicabilité élevée.
PCT/CN2019/120605 2019-05-21 2019-11-25 Procédé et appareil de test de page WO2020233047A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910421886.XA CN110232021A (zh) 2019-05-21 2019-05-21 页面测试的方法及装置
CN201910421886.X 2019-05-21

Publications (1)

Publication Number Publication Date
WO2020233047A1 true WO2020233047A1 (fr) 2020-11-26

Family

ID=67861442

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120605 WO2020233047A1 (fr) 2019-05-21 2019-11-25 Procédé et appareil de test de page

Country Status (2)

Country Link
CN (1) CN110232021A (fr)
WO (1) WO2020233047A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110996A (zh) * 2021-04-22 2021-07-13 北京格瑞拉科技有限公司 测试方法及装置
CN113971134A (zh) * 2021-10-28 2022-01-25 中国银行股份有限公司 配置手机银行h5页面地址的方法及装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110232021A (zh) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 页面测试的方法及装置
CN111371643B (zh) * 2020-02-28 2022-07-05 京东科技控股股份有限公司 验证方法、设备及存储介质
CN112346970B (zh) * 2020-10-30 2023-06-06 长沙市到家悠享网络科技有限公司 免安装应用码的测试方法、设备及存储介质
CN114978937B (zh) * 2021-02-26 2023-09-01 腾讯科技(北京)有限公司 一种页面数据校验方法及装置
CN114637670A (zh) * 2022-03-11 2022-06-17 平安普惠企业管理有限公司 自动化测试方法、装置、设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160147641A1 (en) * 2014-11-24 2016-05-26 Syntel, Inc. Cross-browser web application testing tool
CN106528404A (zh) * 2016-09-30 2017-03-22 腾讯科技(深圳)有限公司 移动应用程序测试方法和装置
CN107783899A (zh) * 2017-08-25 2018-03-09 上海壹账通金融科技有限公司 应用程序中h5页面的测试方法、装置和计算机设备
CN109614334A (zh) * 2018-12-07 2019-04-12 北京小米移动软件有限公司 文件测试方法、装置及计算机可读存储介质
CN110232021A (zh) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 页面测试的方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751736B1 (en) * 2000-03-14 2004-06-15 International Business Machines Corporation Method and apparatus for E-commerce by using optional fields for virtual bar codes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160147641A1 (en) * 2014-11-24 2016-05-26 Syntel, Inc. Cross-browser web application testing tool
CN106528404A (zh) * 2016-09-30 2017-03-22 腾讯科技(深圳)有限公司 移动应用程序测试方法和装置
CN107783899A (zh) * 2017-08-25 2018-03-09 上海壹账通金融科技有限公司 应用程序中h5页面的测试方法、装置和计算机设备
CN109614334A (zh) * 2018-12-07 2019-04-12 北京小米移动软件有限公司 文件测试方法、装置及计算机可读存储介质
CN110232021A (zh) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 页面测试的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110996A (zh) * 2021-04-22 2021-07-13 北京格瑞拉科技有限公司 测试方法及装置
CN113971134A (zh) * 2021-10-28 2022-01-25 中国银行股份有限公司 配置手机银行h5页面地址的方法及装置

Also Published As

Publication number Publication date
CN110232021A (zh) 2019-09-13

Similar Documents

Publication Publication Date Title
WO2020233047A1 (fr) Procédé et appareil de test de page
CN111835511A (zh) 数据安全传输方法、装置、计算机设备及存储介质
CN107786331B (zh) 数据处理方法、装置、系统及计算机可读存储介质
CN113364760A (zh) 一种数据加密处理方法、装置、计算机设备及存储介质
CN109241484B (zh) 一种基于加密技术的网页数据的发送方法及设备
CN113259133B (zh) 基于http协议的加密通讯方法、设备及存储介质
CN112131564B (zh) 加密数据通信方法、装置、设备以及介质
US10643204B2 (en) Cryptography method and system for securing data via electronic transmission
CN108075888B (zh) 动态url生成方法及装置、存储介质、电子设备
CN112511514A (zh) 一种http加密传输方法、装置、计算机设备及存储介质
CN110019075B (zh) 日志加密方法与解密方法及装置
CN104243474B (zh) 电子设备真伪验证方法及装置
CN113961956B (zh) 标签化网络信息服务生成及应用方法、装置、设备、介质
CN112287372A (zh) 用于保护剪贴板隐私的方法和装置
CN104050431A (zh) 一种rfid芯片的自签名方法及其装置
CN105978693B (zh) 一种终端关联的方法及系统
CN109413099B (zh) 基于证书的混合云加密通信方法、装置以及电子设备
CN111160504A (zh) 动态二维码的生成方法、装置、设备及存储介质
CN108900472B (zh) 信息的传输方法和装置
CN110287733B (zh) 一种文件防篡改方法和装置
CN105809494A (zh) 发票生成及验证方法及系统
CN107729345B (zh) 网站数据处理方法、装置、网站数据处理平台及存储介质
US9203607B2 (en) Keyless challenge and response system
CN114036364B (zh) 用于识别爬虫的方法、装置、设备、介质和系统
CN115941187A (zh) 一种基于md5的不可逆随机加盐加密方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19929298

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 04/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19929298

Country of ref document: EP

Kind code of ref document: A1