JSON-based web automatic test method, system and device

A technology of automated testing and test cases, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of cost reduction, test script writing and maintenance costs, etc., to improve output speed, reduce writing threshold and cost Effect

Active Publication Date: 2020-05-29
HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF17 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problem of high cost of test script writing and maintenance, the present invention uses a JSON data structure to describe the test process and the judgment of the test results. Since the JSON data structure is relatively simple, both development and testing can quickly build a process, and the test process It can be split into every subtle action and reused, which reduces the overall cost

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
  • JSON-based web automatic test method, system and device
  • JSON-based web automatic test method, system and device
  • JSON-based web automatic test method, system and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0088] 1. First, the developer marks the interactive elements in the application code,

[0089] Then use the script to analyze the file to collect all the marker points and upload them to the cloud to form an application element library.

[0090] 2. The user's click is an action, and its JSON data structure is as follows:

[0091] {

[0092] "type": "action",

[0093] "action": "click",

[0094] "element":"#submit_button"

[0095]}

[0096] Among them, the value action of type indicates a user behavior, the value click of action indicates a click event, and the value #submit_button of element indicates the clicked element, which comes from the element library mentioned above. In addition to this, there will be many more user actions, which together form the action library.

[0097] 3. The test case maintainer edits the test case in the editor in the cloud. The editor can select and edit the behavior of the behavior library and the elements of the element library, so as t...

Embodiment 2

[0103] 1. First, the developer marks the interactive elements in the application code,

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 relates to the technical field of automatic program testing, in particular to an automatic web testing method, system and device based on JSON. The invention discloses a JSON (JavaScriptObject Notation)-based web automatic test method. The method comprises the following steps of: obtaining a source code of a web application; marking interactive elements in the source code and behaviors corresponding to the interactive elements to obtain an element library corresponding to the interactive elements and a behavior library corresponding to the behaviors; creating at least one test case according to the element library and the behavior library to obtain a case library; testing at least one test case in the case library to obtain a test result; wherein the data in the element library, the behavior library and the use case library adopts a JSON data structure. According to the invention, the JSON data structure is used to describe the web test process, and the writing thresholdand cost of the test process are reduced.

Description

technical field [0001] The invention relates to the technical field of program automation testing, in particular to a JSON-based web automation testing method and its system and device. Background technique [0002] Nowadays, more and more applications are built using web technology, and the update iteration speed is getting faster and faster. How to ensure the quality of web applications is one of the problems faced by developers. Automated testing can guarantee the quality of applications to a certain extent, but the current automated testing technology relies on developers to write test scripts, the cost is relatively high, and non-technical personnel cannot participate in maintenance, resulting in a relatively high input-output ratio of this traditional method. Low. Contents of the invention [0003] In order to solve the problem of high cost of test script writing and maintenance, the present invention uses a JSON data structure to describe the test process and the j...

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/3684G06F11/3688
Inventor 张凯
Owner HANGZHOU TUYA INFORMATION TECH 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