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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


