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

Automatic test method and device for web page codes

An automated testing and coding technology, applied in the field of web pages, can solve problems such as output errors, low test efficiency, and test case failures, and achieve the effect of reducing errors and improving test efficiency

Active Publication Date: 2013-10-30
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing automated testing methods, each test case is only executed once, which is easily affected by the external environment, such as system instability, network problems, etc., resulting in test errors, and correct test cases may output wrong results; affecting the web page code Defect judgment
[0005] Moreover, the existing automated testing methods can only test all the test cases in the case set file, and cannot individually execute one of the test cases. For example, some test cases do not pass the test. If it is necessary to test again to determine whether it is a test error , it is necessary to test all the use case set files again, and the test efficiency is low

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 test method and device for web page codes
  • Automatic test method and device for web page codes
  • Automatic test method and device for web page codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] 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 with reference to the accompanying drawings and examples.

[0062] The present invention mainly judges whether there is a test case that fails the test before the existing test method generates a test report, and if there is, the test case that fails the test is combined into a failure use case file set, and the failure use case file set is processed. Repeat the test until the preset threshold of execution times is reached before generating the test report, thereby effectively reducing test result errors and improving test efficiency.

[0063] The improved test method of the present invention is as figure 2 shown, including the following steps:

[0064] Step 201, execute the test cases in the specified use case set file;

[0065] Step 202, judging whether all the specified use case set files have been execute...

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

An embodiment of the invention discloses an automatic test method for web page codes. The method comprises the steps of recording test execution times; before all use case assembly files are executed and a step for generating of test reports is executed, if unsuccessful use cases which do not pass tests exist, enabling the unsuccessful use cases which do not pass the tests to form unsuccessful use case assembly files; assigning the unsuccessful use case assembly files to execute the tests again, adding 1 to the execution times, and executing the step for generating of the test reports until the test execution times reach a preset threshold value. The invention also discloses an automatic test device for the web page codes. By the aid of the method and the device, the individual test use cases which do not pass the tests can be tested repeatedly and automatically, so that test result errors are effectively reduced, and meanwhile, the test efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of webpages, in particular to a method and device for automatically testing webpage codes. Background technique [0002] In the existing automated testing of web page codes, it is generally implemented by using a web application testing tool Watir (Web Application Testing in Ruby) written in RUBY language to automatically execute a collection of web page codes (use case set files) that need to be tested. [0003] Specific test methods such as figure 1 As shown, when the automated test starts, Watir will execute the use case set files that need to be tested one by one in a certain order. Each use case set file needs to start an IE process, and execute the test cases in the use case set file through the IE process, and the execution is completed. Afterwards, destroy the IE process, and judge whether all the use case set files have been executed, if not, start a new IE process and continue to execute the next ...

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
Inventor 苏召辉
Owner TENCENT TECH (SHENZHEN) 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