CN115495120A - Equipment testing method and system - Google Patents
Equipment testing method and system Download PDFInfo
- Publication number
- CN115495120A CN115495120A CN202211083858.XA CN202211083858A CN115495120A CN 115495120 A CN115495120 A CN 115495120A CN 202211083858 A CN202211083858 A CN 202211083858A CN 115495120 A CN115495120 A CN 115495120A
- Authority
- CN
- China
- Prior art keywords
- equipment
- tool page
- webpage
- test
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Abstract
According to the equipment testing method and system provided by the invention, the method comprises the following steps: step S1: developing and obtaining a visual tool page based on the chord browser; step S2: the equipment is connected with a local computer through a serial port-to-network port line; and step S3: the webpage is connected to the equipment through a ws protocol for communication; and step S4: and testing the equipment after acquiring the instruction issued by the webpage, and sending the test result to the visual tool page.
Description
Technical Field
The invention relates to the field of equipment control and test, in particular to an equipment test method and system, and more particularly to a tool for testing equipment based on javaScript.
Background
At present, most of test tools are written by using c language, the installation and update process is complex, the iteration of factory test and version update is difficult and limited, and the specific characteristics are as follows:
once the tool is installed, the worker performs the test, and if some checksum algorithms in the test tool need to be updated, the factory manager cannot update quickly, and a developer needs to perform new training on basic level workers of the factory.
How to reduce the test duration in the test process and save the test time and the test error log, because the advantages of the C language in the test process cannot be shown due to the complexity of the C language, unnecessary test time waste is caused due to the increase of the test times, and meanwhile, the C language can be stored in a local file when error information is recorded, so that the C language is not beneficial to remote workers to efficiently control and manage the C language, the use efficiency of the workers is reduced, and the waste of factory resources is caused.
Because the enterprise can not monitor the errors occurring in the testing process, the controllable cost can not be reduced, the testing quality can not be ensured due to the uncertainty of the working state of the testing tool, and the like, the enterprise is also one of the troubles of the outsourcing yard industry.
Patent document CN111176682a (application number: 201911375988.9) discloses a method for updating and debugging a remote network of a device, which includes firstly, designing 4 loading zones for a chip to be updated online, and secondly, after the online updating of the device network is completed, switching the operation of each version through a remote network, thereby realizing the switching of the program of different function versions according to the user requirements and realizing the switching of the function versions; thirdly, updating programs of different versions on line through a remote network, and realizing a remote online network debugging function according to the debugging state uploaded among the programs of different versions; finally, after the program remote network is updated on line, parameters such as device configuration parameters and IP address/gateway/MAC/port number of the device need to be solidified, and finally, the function of updating the device remote network on line is completed after all functions of the device are tested.
The invention provides a device testing method and system, which are used for editing by using the current popular language, and realize the re-editing of a testing tool through java and java script, thereby greatly improving the production efficiency and the problems of the use and management efficiency of a client. The invention supports remote control, makes simple development process more convenient and efficient, and meanwhile, the invention can be quickly updated and installed, and solves the problem of troublesome update iteration in the current factory test.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a device testing method and a device testing system.
The equipment testing method provided by the invention comprises the following steps:
step S1: developing and obtaining a visual tool page based on the chord browser;
step S2: the equipment is connected with a local computer through a serial port-to-network port line;
and step S3: the webpage is connected to the equipment through a ws protocol for communication;
and step S4: and testing the equipment after acquiring the instruction issued by the webpage, and sending the test result to the visual tool page.
Preferably, the step S1 employs: and developing a visualization tool page by using javaScript or Java based on the chord browser.
Preferably, the update instructions are transmitted to a remote server for remote updating of the visualization tool page.
Preferably, the HTTP web page address of the visualization tool page is obtained to enable remote viewing.
Preferably, the Java or JavaScript code is separately stored through a plurality of files, and is acquired and merged in the form of an HTTP request, thereby implementing the visualization tool page.
According to the present invention, there is provided an apparatus test system comprising:
a module M1: developing and obtaining a visual tool page based on the chord browser;
a module M2: the equipment is connected with a local computer through a serial port-to-network port line;
a module M3: the webpage is connected to the equipment through a ws protocol for communication;
a module M4: and testing the equipment after acquiring the instruction issued by the webpage, and sending the test result to the visual tool page.
Preferably, the module M1 employs: and developing a visualization tool page by using javaScript or Java based on the chord browser.
Preferably, the update instructions are transmitted to a remote server for remote updating of the visualization tool page.
Preferably, the HTTP web page address of the visualization tool page is obtained to enable remote viewing.
Preferably, the Java or JavaScript code is separately stored through a plurality of files, and is acquired and merged in the form of an HTTP request, thereby implementing the visualization tool page.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention replaces the installation mode of the website with the technology of C, integrates a detection tool system with a plurality of effective tools such as a server, a client and the like, improves the flexibility of the system, brings great simplicity and high practicability, provides a possible path for the middle and high-level managers of an enterprise to remotely check and receive information, improves the adaptability and flexibility in the process of equipment test production, and increases the test efficiency;
2. according to the invention, through a remote updating mode, the corresponding client can remotely update the test tools in a large scale, so that the operation becomes very simple, the effective configuration and utilization of resources are further realized, the waste is avoided, the efficiency in system installation is greatly improved, and a production test tool system which is simple and convenient to operate and has lower cost is provided for the client of an audience.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of a method for testing a device.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the concept of the invention. All falling within the scope of the present invention.
Example 1
According to an apparatus testing method provided by the present invention, as shown in fig. 1, the method includes:
step S1: developing and obtaining a visual tool page based on the chord browser;
specifically, the step S1 employs: and developing a visualization tool page by using javaScript or Java based on the chord browser.
Step S2: the equipment is connected with a local computer through a serial port-to-network port line;
and step S3: the webpage is connected to the equipment through a ws protocol for communication;
and step S4: and testing the equipment after acquiring the instruction issued by the webpage, and sending the test result to the visual tool page.
Specifically, the step S4 employs: the device is connected with the device through a serial port-to-network port, the webpage initiates a ws request, the 7E protocol data is sent to the device, the functions of different positions are tested, and the data can be returned to the webpage when the test is successful and failed.
Specifically, the updating instruction is transmitted to a remote server to remotely update the visualization tool page.
Specifically, an HTTP web page address of a visualization tool page is obtained, so that remote viewing is realized.
Specifically, the Java or JavaScript code is separately stored through a plurality of files, and is acquired and combined in the form of HTTP requests, so that the visualization tool page is realized.
According to the present invention, there is provided an apparatus test system comprising:
a module M1: developing and obtaining a visual tool page based on the chord browser;
specifically, the module M1 employs: and developing a visualization tool page by using javaScript or Java based on the chord browser.
A module M2: the equipment is connected with a local computer through a serial port-to-network port line;
a module M3: the webpage is connected to the equipment through a ws protocol for communication;
a module M4: and testing after acquiring the instruction issued by the webpage on the equipment, and sending the test result to the visual tool page.
Specifically, the module M4 employs: the device is connected with the device through a serial port-to-network port, the webpage initiates a ws request, the 7E protocol data is sent to the device, the functions of different positions are tested, and the data can be returned to the webpage when the test is successful and failed.
Specifically, the updating instruction is transmitted to a remote server to remotely update the visualization tool page.
Specifically, an HTTP web page address of a visualization tool page is obtained, so that remote viewing is realized.
Specifically, the Java or JavaScript code is separately stored through a plurality of files, and is acquired and combined in the form of HTTP requests, so that the visualization tool page is realized.
Example 2
Example 2 is a preferred example of example 1
The invention provides an equipment testing tool system based on visual completion, which relates to the field of special equipment testing, can well monitor the real-time state of a testing process by using an efficient language technology, aims at improving the testing and transporting efficiency, has low cost, is easy to maintain, is convenient and practical, and provides image monitoring, voice sending deaf and other multi-information prompts for workers. The system comprises a remote server, a local server, a display, a loudspeaker and other peripherals, the system integrates multiple high-efficiency development language processing technologies, and has the advantages of low requirement on hardware environment, portability, high performance and the like.
The method is used for intuitively presenting equipment tests and the like to a client for use, eliminating irrationality of a working process, complexity of using c codes in a test development tool and eliminating a complex factor of upgrading the test tool.
The specific working principle is as follows:
(1) The working state of the test tool is completed by adopting js.
(2) Depending on the configuration, different test protocols.
(3) By connecting different devices, the test tool can automatically read the model information in the devices, judge the model of the devices, and then automatically distribute instructions to the test tool to test the devices;
(4) And the data interaction between the equipment and the webpage according to the protocol is realized through the platform server.
The invention provides a visual graph editing-based testing tool, which comprises an installation module, a display module and a display module, wherein the installation module is used for installing a visual graph editing-based testing tool;
the mounting step includes the substeps of:
the method comprises the following steps: developing by using javaScript or Java based on the chord browser to obtain a visual tool page;
step two: configuring the authority of a user on a visualization tool page;
step three: building a tomcat server locally;
the testing tool based on the visual graph editing starts to test;
the testing step comprises the following sub-steps:
and 4, step 4: the equipment is connected with a local computer through a serial port-to-network port line;
and 5: the webpage is connected to the equipment through a ws protocol for communication;
step 6: the method comprises the steps that after an instruction issued by a webpage is obtained on equipment, testing is carried out, and a testing result is sent to a visual tool page;
and 7: printing the two-dimensional code after the test is finished, and using the two-dimensional code as a maintenance identifier of an application stage;
the test tool edited based on the visual graph is updated;
the updating step comprises the following substeps:
step a: opening the remote server through an mstesr instruction;
step b: finding the position of a tomcat server built locally through a remote server;
step c: updating the code under tomcat/webapps;
step d: downloading a new installation package in the production system;
step e: redeploying java codes to webapps under the local tomcat;
step f: entering an environment variable to restart tomcat;
step g: entering a chord to refresh a page and completing an updating task;
step h: finishing the updating;
furthermore, the test tool system based on visual graph editing is used for completing test tasks aiming at equipment, updating is faster and safer, and the aim of solving the problems of difficult scheduling, low production efficiency, improvement of test safety, low cost, convenience and practicability of a special operation vehicle by using the practical js as development is fulfilled. The invention integrates a plurality of advanced image processing technologies, and has the characteristics of low requirement on hardware environment, convenient installation, portability and high performance.
The visual graph editing test tool at least comprises a ws service of java, a support of mysql database and js visualization which are connected with each other.
The ws services of java include:
(1) The 7E protocol was parsed by java as an intermediate price.
(2) And completing the interaction between the webpage and the equipment through ws.
The support of the mysql database includes:
(1) The java is connected to the database, and data is written into the database.
(2) Logs of all tests were recorded.
js visualization
(1) By using the layui framework, ui design and development of the page is accomplished.
(2) The process of testing, as well as the success and failure logs, are recorded and transmitted locally.
The cloud server is used for storing data, deleting data, modifying data and recording test processes, communicating according to a set standard protocol, receiving and processing data sending and receiving problems, making a specified action and feeding back according to the protocol.
In the testing process, by sending a voice playing instruction to the equipment, if the equipment rings a voice, the testing is proved to be successful, and if the equipment does not ring the voice, the testing is proved to be failed.
The purpose of the preferred embodiment is to provide an integration of one or more functions. The test system is low in cost, convenient and practical, and is simultaneously suitable for test systems of MR series equipment and the like.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description has described specific embodiments of the present invention. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.
Claims (10)
1. A method of device testing, comprising:
step S1: developing and obtaining a visual tool page based on the chord browser;
step S2: the equipment is connected with a local computer through a serial port-to-network port line;
and step S3: the webpage is connected to the equipment through a ws protocol for communication;
and step S4: and testing the equipment after acquiring the instruction issued by the webpage, and sending the test result to the visual tool page.
2. The device testing method according to claim 1, wherein the step S1 employs: and developing a visualization tool page by using javaScript or Java based on the chord browser.
3. The device testing method of claim 1, wherein the update instruction is transmitted to a remote server, and the visualization tool page is updated remotely through the remote server.
4. The device testing method of claim 1, wherein the HTTP web address of the visualization tool page is obtained to enable remote viewing.
5. The device testing method according to claim 1, wherein Java or JavaScript codes are separately stored through a plurality of files, and acquired and combined in the form of HTTP requests, thereby implementing a visualization tool page.
6. An equipment testing system, comprising:
a module M1: developing and obtaining a visual tool page based on the chord browser;
a module M2: the equipment is connected with a local computer through a serial port-to-network port line;
a module M3: the webpage is connected to the equipment through a ws protocol for communication;
a module M4: and testing the equipment after acquiring the instruction issued by the webpage, and sending the test result to the visual tool page.
7. The device test system according to claim 6, characterized in that said module M1 employs: and developing a visualization tool page by using javaScript or Java based on the chord browser.
8. The device testing system of claim 6, wherein the visualization tool page is updated remotely by transmitting an update instruction to a remote server.
9. The device testing system of claim 6, wherein the HTTP web address of the visualization tool page is obtained to enable remote viewing.
10. The device testing system of claim 6, wherein the Java or JavaScript code is separately stored through a plurality of files, and is acquired and merged in the form of an HTTP request, thereby implementing a visualization tool page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211083858.XA CN115495120A (en) | 2022-09-06 | 2022-09-06 | Equipment testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211083858.XA CN115495120A (en) | 2022-09-06 | 2022-09-06 | Equipment testing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115495120A true CN115495120A (en) | 2022-12-20 |
Family
ID=84469106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211083858.XA Pending CN115495120A (en) | 2022-09-06 | 2022-09-06 | Equipment testing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115495120A (en) |
-
2022
- 2022-09-06 CN CN202211083858.XA patent/CN115495120A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7209034B2 (en) | Edge computing test method, apparatus, equipment and readable storage medium | |
CN110851356B (en) | Selenium-based Web application automatic test framework and construction method and system thereof | |
US20150019706A1 (en) | Cloud services load testing and analysis | |
US20150100829A1 (en) | Method and system for selecting and executing test scripts | |
US20150100832A1 (en) | Method and system for selecting and executing test scripts | |
US20190220285A1 (en) | Method and system for automation tool set for server maintenance actions | |
US20150100830A1 (en) | Method and system for selecting and executing test scripts | |
WO2015006137A1 (en) | Cloud services load testing and analysis | |
US20150100831A1 (en) | Method and system for selecting and executing test scripts | |
CN111324522A (en) | Automatic test system and method | |
CN108255735B (en) | Associated environment testing method, electronic device and computer readable storage medium | |
CN115658529A (en) | Automatic testing method for user page and related equipment | |
CN113778486A (en) | Containerization processing method, device, medium and equipment for code pipeline | |
CN113127009A (en) | Automatic deployment method and device for big data management platform | |
CN115129574A (en) | Code testing method and device | |
CN111897565A (en) | Data processing method, device and equipment based on Internet of things | |
CN112199283A (en) | Program test control and execution method and corresponding device, equipment and medium | |
CN115495120A (en) | Equipment testing method and system | |
CN113220592B (en) | Processing method and device for automatic test resources, server and storage medium | |
CN112506772B (en) | Web automatic test method, device, electronic equipment and storage medium | |
CN113986263A (en) | Code automation test method, device, electronic equipment and storage medium | |
CN115509925A (en) | Automatic interface testing method and related device | |
CN109359044B (en) | Codecep-based test-oriented automation system | |
CN112214407A (en) | Data verification control and execution method and corresponding device, equipment and medium | |
CN112416805A (en) | Test management cloud platform and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |