Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic page interface testing method and device based on Django framework

A technology of automated testing and pages, applied in the field of testing, can solve the problems of low efficiency of interface automated testing

Pending Publication Date: 2022-07-08
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the embodiment of the present application is to provide a method and device for automated testing of page interfaces based on the Django framework to solve the problem of modifying configuration files and executing commands in the background in the prior art to perform automated testing of interfaces, resulting in low efficiency of automated testing of interfaces The problem

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
  • Automatic page interface testing method and device based on Django framework
  • Automatic page interface testing method and device based on Django framework
  • Automatic page interface testing method and device based on Django framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to make the purposes, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present application.

[0016] In the following description, suffixes such as "module" and "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meaning per se. Therefore, "module" and "component" can be used interchangeably.

[0017] First, the relevant terms in the embodiments ...

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 page interface automatic testing method and device based on a Django framework, and the method comprises the steps: decompressing a Django compressed package, and installing the decompressed Django compressed package in a root directory consistent with a Python installation directory; the decompressed Django compressed package is installed in a target catalog under the root catalog in the Python, and the Django compressed package is installed in the target catalog under the root catalog in the Python; adding the target directory into a target environment variable, and executing a script language based on the target environment variable to create a page application project; and performing interface automatic testing based on a page corresponding to the page application project. By means of the method and device, the problem that in the prior art, the interface testing efficiency is low due to the fact that configuration files need to be modified in the background and commands need to be executed for automatic interface testing is solved.

Description

technical field [0001] The present application relates to the technical field of testing, and in particular, to a method and device for automated testing of page interfaces based on the Django framework. Background technique [0002] The HttpRunner interface automation project is deployed on a Linux server, and commands need to be executed on the server during interface automation testing. Moreover, when executing different test environments, it is necessary to modify variable values ​​such as environment address, area, and computer room information in the project configuration file. However, the modification operation of the configuration file can only be performed in the background, resulting in low interface test efficiency; in addition, in the interface test After completion, the test report of the generated Hyper Text Markup Language (HTML) file is located in the specified Linux server directory, and it is cumbersome to view the test report. SUMMARY OF THE INVENTION ...

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): G06F11/36
CPCG06F11/3664G06F11/3684G06F11/3688
Inventor 李可宏宋立辉
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products