CN102842343A - System and method for execution of different baud rate test instruction in CLI (command-line interface) - Google Patents
System and method for execution of different baud rate test instruction in CLI (command-line interface) Download PDFInfo
- Publication number
- CN102842343A CN102842343A CN 201110165702 CN201110165702A CN102842343A CN 102842343 A CN102842343 A CN 102842343A CN 201110165702 CN201110165702 CN 201110165702 CN 201110165702 A CN201110165702 A CN 201110165702A CN 102842343 A CN102842343 A CN 102842343A
- Authority
- CN
- China
- Prior art keywords
- test
- cable
- test instruction
- baud rate
- different baud
- 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
Landscapes
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
A method for execution of different baud rate test instruction comprises: downloading a test instruction that test objects requires from a server; determining if instructions of different baud rates are needed according to the number of the test objects; when instructions of different baud rates are needed, modifying cable parameters, and sending test instructions of different baud rates to SUT (system under test) through the modified cable; and executing the test instructions in a same command-line interface. The invention also provides a system for execution of different baud rate test instruction in CLI. By using the method and the system of the invention, the crash of a virtual machine, which is caused by the significant increase in resource usage of the virtue machine because resource usage in a server is greater than loads, can be prevented.
Description
Technical field
The present invention relates to a kind of CLI control system and method, especially about a kind of system and method for under same CLI, carrying out different baud rate test instructions.
Background technology
Command Line Interface (command-line interface, the interface that CLI) can under the user prompt symbol, key in executable instruction.Use CLI to have request for utilization low (only needing serial port); Use easily; Function expands advantage easily, particularly as a lot of platforms (as, 10) when router device need dispose; Can accomplish the configuration of all-router very soon, need not be configured through copy (COPY)/stickup (PASTE) function through platform of browser.
Cannot carry out the instruction of two different baud rates (Baud Rate) in the existing C LI environment simultaneously; Generally speaking; The user needs manual switchover or takies two Serial port cable if need carry out the instruction of different baud rates; Thus, not only inefficiency, and increase hardware cost.
Summary of the invention
In view of above content, be necessary to provide a kind of system that under CLI, carries out different baud rate test instructions, can in same CLI, carry out the instruction of different baud rates, made things convenient for the user, also reduced hardware cost.
In view of above content, also be necessary to provide a kind of method of under CLI, carrying out different baud rate test instructions, can in same CLI, carry out the instruction of different baud rates, made things convenient for the user, also reduced hardware cost.
A kind of system that under CLI, carries out different baud rate test instructions, this system comprises: download module is used for downloading the required test instruction of determinand from server; Judge module is used for judging whether according to the quantity of test determinand the test instruction of the different baud rates of needs; Modified module when being used for the test instruction when the different baud rates of needs, is revised the parameter of cable, makes this cable can transmit the test instruction under the different baud rates simultaneously; Sending module is used for through amended cable the test instruction of different baud rates being sent to SUT, and test instruction that maybe directly will this identical baud rate when needing the test instruction of identical baud rate sends to SUT through cable; Execution module is used for the above-mentioned test instruction of execution at same dos command line DOS interface.
A kind of method of under CLI, carrying out different baud rate test instructions, this method comprises: from server, download the required test instruction of determinand; Judge whether the test instruction of the different baud rates of needs according to the quantity of test determinand; When the test instruction of the different baud rates of needs, revise the parameter of cable, the test instruction of different baud rates is sent to SUT through amended cable; When determinand needed the test instruction of identical baud rate, test instruction that directly will this identical baud rate sent to SUT through cable; In same dos command line DOS interface, carry out above-mentioned test instruction.
Compared to prior art, the system and method for under CLI, carrying out different baud rate test instructions provided by the invention can be carried out the instruction of different baud rates in same CLI, made things convenient for the user, has also reduced hardware cost.
Description of drawings
Fig. 1 is the present invention carries out system's preferred embodiment of different baud rate test instructions under CLI applied environment figure.
Fig. 2 is the structural representation of client preferred embodiment of the present invention.
Fig. 3 is the present invention carries out the method preferred embodiment of different baud rate test instructions under CLI a process flow diagram.
The main element symbol description
?SUT | 10 |
Determinand | 100 |
|
20 |
Under CLI, carry out the system of different baud |
200 |
|
30 |
|
40 |
|
50 |
Download module | 210 |
Judge module | 220 |
Modified module | 230 |
Sending module | 240 |
Execution module | 250 |
Receiver module | 260 |
Storer | 270 |
Processor | 280 |
Following embodiment will combine above-mentioned accompanying drawing to further specify the present invention.
Embodiment
As shown in Figure 1, be the present invention carries out the system 200 of different baud rate test instructions under CLI applied environment figure.This system 200 runs in the client 20.This client 20 through cable (cable) 110 with examining system (System Under Test, SUT) 10 are connected, with the determinand 100 on the test SUT 10; Said determinand 100 can be the single parts of computing machine; For example, this determinand 100 is parts in mainboard, video card, internal memory and the hard disk etc., also can refer to a plurality of parts of computing machine simultaneously; For example, this determinand 100 is plural parts in the machine elements such as mainboard, video card, internal memory and hard disk simultaneously.Said cable 110 is the RS232 cable.This client 20 also is connected with server 40 through network 30, to obtain test instruction from server 40.This server 40 can be personal computer, the webserver, can also be any computing machine that other is suitable for.
This server 40 links to each other with database 50, and this database 50 is used to store the test instruction of the various determinands 100 of test, and in this preferred embodiment, said test instruction is meant the test script (Test Script) that can on CLI, move.This database 50 both can be built in server 40, also can be placed on server 40.
Be that said database 50 can be stored in the hard disk or flash disk of server 40 what this need explain.Consider that from the angle of security of system the database 50 in the present embodiment is independent of server 40.
In addition; Client 20 also is used to provide a dos command line DOS interface (Command Line Interface; CLI) give the user, be convenient to the user and when testing, can watch concrete test instruction, after test is accomplished through the determinand 100 on 20 couples of SUT 10 of client; The test report that reception sends from SUT 10, and test report is stored in the storage medium of client 20.This client 20 can be personal computer, notebook computer and other equipment or system that can be connected with server 40 arbitrarily.
Consulting shown in Figure 2ly, is the structural representation of client 20 preferred embodiments of the present invention.This client 20 is carried out the system 200 of different baud rate test instructions down except being included in CLI, also comprises storer 270 and processor 280.The system 200 that should under CLI, carry out different baud rate test instructions comprises download module 210, judge module 220, modified module 230, sending module 240, execution module 250 and receiver module 260.The sequencing code storage of module 210 to 260 is in storer 270, and processor 280 is carried out these sequencing codes, is implemented in the above-mentioned functions that the following system 200 that carries out different baud rate test instructions of CLI provides.
Download module 210 is used for downloading the required test instruction of determinand 100 from server 40.Said test instruction is used to test the performance of the determinand 100 on the SUT 10.If determinand 100 be the single parts of computing machine (like, mainboard), then download module 210 is downloaded one group of test instruction from server 40, and this organizes test instruction can be single test instruction, also can be a plurality of test instructions.If determinand 100 is a plurality of parts of computing machine, for example, determinand 100 is mainboard and video card, and said download module 210 is downloaded two groups of test instructions from server 40, and one group of test instruction is used for testing host, and other one group of test instruction is used to test video card.
Judge module 220 is used for judging whether according to the quantity of test determinand 100 test instruction of the different baud rates of needs.Particularly, if when determinand 100 be plural machine element, the test instruction of the different baud rates of needs is tested said determinand 100.Suppose that determinand 100 is mainboard and video card; And test the test instruction that above-mentioned mainboard and video card can not use same baud rate; For example, the baud rate of the employed test instruction of testing host is different with the baud rate of test video card employed test instruction, baud rate be one group of test instruction of 9600 performance of being used for testing host (as; The memory bank performance of testing host, USB interface performance etc.), and baud rate is another group test instruction performance of being used to test video card of 115200.If determinand 100 is the single parts of computing machine, this determinand 100 needs the test instruction of identical baud rate.Said baud rate is meant Baud Rate; In electronic communication field; Baud rate (Baud Rate) is a modulation rate, is meant the modulated variation in the unit interval later on of signal, i.e. the number of times of unit interval intercarrier parameter variation; Baud rate is a kind of tolerance to symbol transmission speed, and 1 baud refers to 1 symbol of per second transmission.
Modified module 230 is used for when the test instruction of the different baud rates of determinand 100 needs, revises the parameter of cable 110 (cable), makes this cable 110 can transmit the test instruction under the different baud rates simultaneously.For example, modified module 230 is revised as RS232 serial Y molded lines cable with the RS232 cable.
Sending module 240 is used for through cable 110 test instruction being sent to SUT 10.Particularly, if when the test instruction of the different baud rates of determinand 100 needs, send the test instruction of different baud rates to SUT 10 through amended cable 110.If when determinand 100 needs the test instruction of identical baud rate, direct through cable 110 will this identical baud rate test instruction send SUT 10 to.
Execution module 250 is used for carrying out above-mentioned test instruction at same CLI.Need to prove; When determinand 100 needs the test instruction of different baud rates; Execution module 250 is alternately carried out the test instruction of different baud rates; Promptly executing after the test instruction of one group of baud rate, carry out the test instruction of other one group of baud rate again, is not the test instruction of carrying out two groups of different baud rates simultaneously.In addition, carry out the test instruction of two or more sets different baud rates, all in same CLI, carry out, can't in plural CLI, carry out respectively.
Receiver module 260 is used for after 100 tests are accomplished to determinand, receiving the test report that sends from SUT 10, and this test report being stored in the storer 270 of client 20.Particularly, if determinand 100 is mainboard and video card, said test report comprises the test report that mainboard and video card are carried out performance test, with for reference.
As shown in Figure 3, be the present invention carries out the method preferred embodiment of different baud rate test instructions under CLI process flow diagram.
Step S10, download module 210 download the required test instruction of determinand 100 from server 40.Said test instruction is used to test the performance of the determinand 100 on the SUT 10.If determinand 100 be the single parts (like, mainboard) of computing machine, then download module 210 is downloaded one group of test instruction from server 40, and this organizes test instruction can be single test instruction, also can be a plurality of test instructions.If determinand 100 is a plurality of parts of computing machine, for example, determinand 100 is mainboard and video card, and said download module 210 is downloaded two groups of test instructions from server 40, and one group of test instruction is used for testing host, and other one group of test instruction is used to test video card.
Step S20, judge module 220 judge whether the test instruction of the different baud rates of needs according to the quantity of test determinand 100.Particularly, if when determinand 100 be plural machine element, the test instruction of the different baud rates of needs is tested said determinand 100.Suppose that determinand 100 is mainboard and video card; And test the test instruction that above-mentioned mainboard and video card can not use same baud rate; For example, the baud rate of the employed test instruction of testing host is different with the baud rate of test video card employed test instruction, baud rate be one group of test instruction of 9600 performance of being used for testing host (as; The memory bank performance of testing host, USB interface performance etc.), and baud rate is another group test instruction performance of being used to test video card of 115200.When if determinand 100 be the single parts of computing machine, the test instruction of the identical baud rate of these determinand 100 needs.Said baud rate is meant Baud Rate; In electronic communication field; Baud rate (Baud Rate) is a modulation rate, is meant the modulated variation in the unit interval later on of signal, i.e. the number of times of unit interval intercarrier parameter variation; Baud rate is a kind of tolerance to symbol transmission speed, and 1 baud refers to 1 symbol of per second transmission.
If determinand 100 needs the test instruction of different baud rates, when promptly said determinand 100 be plural machine element, flow process entering step S30 then.
If determinand 100 needs the test instruction of identical baud rate, when promptly said determinand 100 be single machine element, flow process entering step S40 then.
Step S30, modified module 230 are used for when the test instruction of the different baud rates of determinand 100 needs, revise the parameter of cable 110 (cable), make this cable 110 can transmit the test instruction of different baud rates simultaneously.For example, modified module 230 is revised as RS232serial Y molded lines cable with the RS232 cable.
Step S40, sending module 240 sends to SUT 10 through cable 110 with test instruction.Particularly, if when the test instruction of the different baud rates of determinand 100 needs, send the test instruction of different baud rates to SUT 10 through amended cable 110.If when determinand 100 needs the test instruction of identical baud rate, direct through cable 110 will this identical baud rate test instruction send SUT 10 to.
Step S50, execution module 250 carry out above-mentioned test instruction in same CLI.Need to prove; When determinand 100 needs the test instruction of different baud rates; Execution module 250 is alternately carried out the test instruction of this difference baud rate; Promptly executing after the test instruction of one group of baud rate, carry out the test instruction of other one group of baud rate again, is not the test instruction of carrying out two groups of different baud rates simultaneously.In addition, carry out the test instruction of two or more sets different baud rates, all in same CLI, carry out, can't in plural CLI, carry out respectively.
Step S60, after 100 tests were accomplished to determinand, receiver module 260 received the test report that sends from SUT10, and this test report is stored in the storer 270 of client 20.Particularly, if determinand 100 is mainboard and video card, said test report comprises the test report that mainboard and video card are carried out performance test, with for reference.
It should be noted last that; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to above preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.
Claims (8)
1. system that under CLI, carries out different baud rate test instructions is characterized in that this system comprises:
Download module is used for downloading the required test instruction of determinand from server;
Judge module is used for judging whether according to the quantity of test determinand the test instruction of the different baud rates of needs;
Modified module when being used for the test instruction when the different baud rates of needs, is revised the parameter of cable, makes this cable can transmit the test instruction under the different baud rates simultaneously;
Sending module is used for through amended cable the test instruction of different baud rates being sent to SUT, and test instruction that maybe directly will this identical baud rate when needing the test instruction of identical baud rate sends to SUT through cable; And
Execution module is used for the above-mentioned test instruction of execution at same dos command line DOS interface.
2. the system that under CLI, carries out different baud rate test instructions as claimed in claim 1 is characterized in that this system also comprises receiver module, is used for after test is accomplished to determinand, receiving the test report that sends from SUT, and storing this test report.
3. the system that under CLI, carries out different baud rate test instructions as claimed in claim 1 is characterized in that said cable is the RS232 cable.
4. the system that under CLI, carries out different baud rate test instructions as claimed in claim 3 is characterized in that the parameter of said modification cable is meant cable is revised as RS232 serial Y molded lines cable.
5. method of under CLI, carrying out different baud rate test instructions is characterized in that this method comprises:
From server, download the required test instruction of determinand;
Judge whether the test instruction of the different baud rates of needs according to the quantity of test determinand;
When the test instruction of the different baud rates of needs, revise the parameter of cable, the test instruction of different baud rates is sent to SUT through amended cable;
When determinand needed the test instruction of identical baud rate, test instruction that directly will this identical baud rate sent to SUT through cable; And
In same dos command line DOS interface, carry out above-mentioned test instruction.
6. the method for under CLI, carrying out different baud rate test instructions as claimed in claim 5 is characterized in that this method also comprises the steps:
After test is accomplished to determinand, receive the test report that sends from SUT, and store this test report.
7. the method for under CLI, carrying out different baud rate test instructions as claimed in claim 5 is characterized in that said cable is the RS232 cable.
8. the method for under CLI, carrying out different baud rate test instructions as claimed in claim 7 is characterized in that the parameter of said modification cable is meant cable is revised as RS232 serial Y molded lines cable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110165702 CN102842343A (en) | 2011-06-20 | 2011-06-20 | System and method for execution of different baud rate test instruction in CLI (command-line interface) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110165702 CN102842343A (en) | 2011-06-20 | 2011-06-20 | System and method for execution of different baud rate test instruction in CLI (command-line interface) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102842343A true CN102842343A (en) | 2012-12-26 |
Family
ID=47369615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110165702 Pending CN102842343A (en) | 2011-06-20 | 2011-06-20 | System and method for execution of different baud rate test instruction in CLI (command-line interface) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102842343A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346429A (en) * | 2019-08-06 | 2021-02-09 | 天津光电通信技术有限公司 | Testing method and device of variable frequency control equipment and storage medium |
-
2011
- 2011-06-20 CN CN 201110165702 patent/CN102842343A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346429A (en) * | 2019-08-06 | 2021-02-09 | 天津光电通信技术有限公司 | Testing method and device of variable frequency control equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978258B (en) | Automatic software test method and system | |
CN102902618B (en) | The method of mobile device application development debugging and device | |
CN102708050B (en) | Method and system for testing mobile application | |
CN103150238A (en) | Service request processing method, simulation performance test method and simulation performance test device | |
CN104298602A (en) | Method and device for debugging application program | |
CN109327355A (en) | Cloud storage system performance evaluation methodology, device and computer readable storage medium | |
CN103257852B (en) | The method and apparatus that a kind of development environment of distribution application system is built | |
CN106339273A (en) | Application program restoration method, terminal and server | |
CN111953642A (en) | Method for uploading and downloading shared file by two-dimensional code | |
CN103699481A (en) | Code debugging method and code debugging system | |
CN102984085A (en) | Mapping method and device | |
US20170085653A1 (en) | Method, device and system for message distribution | |
CN109408309A (en) | The test method and device of multiple terminals | |
CN117149665B (en) | Continuous integration method, control device, continuous integration system, and storage medium | |
CN113191114B (en) | Method and apparatus for validating a system | |
CN112311624B (en) | Cloud host testing method and device, storage medium and electronic equipment | |
CN104049998B (en) | The processing method of upgrade package, device and equipment in a kind of android system | |
CN113051149B (en) | Use case parameter generation method and device | |
CN102842343A (en) | System and method for execution of different baud rate test instruction in CLI (command-line interface) | |
CN117149406A (en) | Resource scheduling method, device, system, computer equipment and storage medium | |
CN110650063A (en) | Centralized bank third-party software simulation system and method | |
CN113656152B (en) | Local simulation method, system, medium and electronic equipment based on container cloud environment | |
CN109697166A (en) | A kind of test data preparation method and relevant apparatus | |
CN103176904A (en) | Simulation testing platform software architecture and testing method based on same | |
CN112988339B (en) | Data management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20121226 |