Method and apparatus for generating key in automated testing process

A technology for automated testing and key generation, which is applied to secure communication devices and key distribution, and can solve problems such as security risks, hacking, and inability to complete automated testing, so as to meet the needs of automated testing and improve test efficiency.

Active Publication Date: 2018-07-27
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in this method, since the key remains unchanged, it is very likely to be broken by hackers, the original string is decrypted, and the request parameters of the terminal are obtained, which brings security risks
Moreover, once the key changes, the process of automated testing will not be completed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for generating key in automated testing process
  • Method and apparatus for generating key in automated testing process
  • Method and apparatus for generating key in automated testing process

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, and do not limit the protection scope of the present invention.

[0024] figure 1 A schematic diagram of the working environment in one embodiment of the present invention is shown, as figure 1 As shown, its working environment involves a test platform terminal 101 and an application server 102 . The test platform terminal 101 and the application server 102 can communicate through the network. The application server 102 can provide services for application programs installed on user terminals. The test platform terminal 101 interacts with the application server 102 by simulating a user terminal to complete the test process. During ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and apparatus for generating a key in an automated testing process. The method in an embodiment comprises the following steps: receiving an automated testing instruction; according to the automated testing instruction and a predetermined script path, calling a key data extraction script associated with the predetermined script path on an application server through ascript calling interface to obtain server key data; and generating the key according to local terminal key data and the server key data. In the solution of the embodiment, the requirements of automated testing under the condition that the key changes are met, and the testing efficiency is improved.

Description

technical field [0001] The invention relates to the field of information testing, in particular to a method and device for generating a key in an automated testing process. Background technique [0002] In the current testing process of some application software, such as third-party payment software, some test platforms are often used for automated testing. For example, for the main site login test, it is necessary to enter scripts, modify parameters, and then simulate the terminal to initiate a request to the server. , and then simulate the automated test. During the test, these input parameters are passed in plain text, and even the password is encrypted and transmitted. However, terminals and servers usually use symmetric algorithms for encryption. When performing automated tests on terminals of these application software, the parameters must be decrypted with a key to see the original request, and then enter scripts, modify parameters, and simulate The terminal initiat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L9/08H04L29/06
CPCH04L9/0816H04L63/06
Inventor 秦晓晨
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products