Unlock instant, AI-driven research and patent intelligence for your innovation.

JS code testing method, device and system

A testing method and JS code technology applied in the computer field to achieve the effect of reducing workload and improving work efficiency

Active Publication Date: 2017-12-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to provide a testing method, device and system for JS codes, aiming at solving the problems in the prior art that a large number of HTML loading pages need to be written and preparing to switch different browsers or versions during testing, so as to reduce Reduce staff workload and improve test efficiency

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
  • JS code testing method, device and system
  • JS code testing method, device and system
  • JS code testing method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] figure 1 The implementation flow of the JS code testing method provided by Embodiment 1 of the present invention is shown, and the details are as follows:

[0025] In step S101, the server receives test data sent by the client, and the test data includes test cases and source codes to be tested.

[0026] Specifically, among the test case and the tested source code included in the test data, the tested source code is the JS code that needs to be verified whether its operation is correct, and the test case is the test code written by the software tester according to the tested source code. For some source codes to be tested, other relevant dependency files may need to be specially written, which can also be sent from the client to the server.

[0027] After the client receives the sending instruction, the test case and the source code to be tested are sent to be received by the server. The connection between the client and the server can be in the form of a LAN connecti...

Embodiment 2

[0043] figure 2 The implementation flowchart of the testing method of the JS code provided for the second embodiment of the present invention is described in detail as follows:

[0044]Optionally, in step S201, the server receives browser registration information of the testing terminal, and the registration information includes the version number and browser type of the browser.

[0045] Specifically, after the connection between the server and the tester is established, the tester needs to send browser registration information to the server. The registration information includes the version number and browser type of the browser. The version number is IE7, IE8, etc., and the browser type is Internet Explorer, Chrome, Mozilla Firefox, Netscape, and Opera etc.

[0046] According to the needs of the test, the type and version number of the browser installed on the test terminal can be selected. By increasing the number of test terminals, it is possible to increase the versio...

Embodiment 3

[0055] image 3 The structural block diagram of the JS code testing device provided for the third embodiment of the present invention is described in detail as follows:

[0056] The JS code testing device described in the embodiment of the present invention includes a test data receiving unit 301, a test data loading unit 302, and a test result receiving and forwarding unit 303, wherein,

[0057] The test data receiving unit 301 is configured to receive test data sent by the client, the test data including test cases and tested source code;

[0058] The test data loading unit 302 is used to send the received test data to the browser loading test of the test end;

[0059] The test result receiving and forwarding unit 303 is configured to receive the test result of the test terminal and forward it to the client.

[0060] Wherein, the test result receiving and forwarding unit may be specifically configured to receive the test result generated by the browser of the test terminal...

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 present invention is applicable to the computer field, and provides a method, device and system for testing JS codes. The method includes: the server receives test data sent by the client, and the test data includes test cases and source codes to be tested; the server receives The test data is sent to the browser loading test on the test end; the server receives the test results from the test end and forwards them to the client. In the embodiment of the present invention, the server can simultaneously load test data according to the browser information of the test terminal, without switching between multiple browsers of the local machine for testing, and the server automatically distributes the test data to each test terminal according to the browser information of the test terminal Loading test does not require testers to repeatedly write loading pages, which greatly improves work efficiency while reducing the workload of testers.

Description

technical field [0001] The invention belongs to the field of computers, and in particular relates to a JS code testing method, device and system. Background technique [0002] White-box testing is also called structural testing or logic-driven testing. It is based on the internal structural testing procedures of the program. Through testing, it is tested whether the internal actions of the product are normally carried out in accordance with the provisions of the design specification, and whether each path in the inspection program can be carried out according to the requirements. The booking requirements work correctly. This method regards the test object as a transparent box. Testers design or select test cases based on the information about the internal logical structure of the program, test all the logical paths of the program, and determine the actual state by checking the status of the program at different points. Whether the state is consistent with the expected state...

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 Patents(China)
IPC IPC(8): G06F11/36H04L29/08
Inventor 邓雄兵徐勇
Owner TENCENT TECH (SHENZHEN) CO LTD