CN110309056A - A kind of cross-platform simulation system for the test of software input/output function - Google Patents
A kind of cross-platform simulation system for the test of software input/output function Download PDFInfo
- Publication number
- CN110309056A CN110309056A CN201910434186.4A CN201910434186A CN110309056A CN 110309056 A CN110309056 A CN 110309056A CN 201910434186 A CN201910434186 A CN 201910434186A CN 110309056 A CN110309056 A CN 110309056A
- Authority
- CN
- China
- Prior art keywords
- test
- output
- application program
- button
- input
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 95
- 238000004088 simulation Methods 0.000 title claims abstract description 19
- 230000000875 corresponding effect Effects 0.000 claims abstract description 14
- 238000012905 input function Methods 0.000 claims abstract description 13
- 238000004891 communication Methods 0.000 description 9
- 230000001960 triggered effect Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 230000018109 developmental process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000010354 integration Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000033772 system development Effects 0.000 description 3
- 230000002596 correlated effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of cross-platform simulation system for the test of software input/output function, the input/output function for application program to be measured is tested, it includes input function test cell and output function test cell;The input function test cell, for generating On-off signal test instruction and being transmitted to application program to be measured;The output function test cell, the output switch parameter test instruction sent for receiving application program to be measured, and instruction is tested according to the output switch parameter and carries out corresponding effect displaying;Application program to be measured generates output switch parameter test instruction, receives the On-off signal test instruction, and carry out corresponding logic testing according to the On-off signal test instruction received.The present invention has the advantages that simple and convenient, time saving and energy saving and work efficiency is high.
Description
Technical field
The present invention relates to Software project testing technical fields, specifically, relate to a kind of for software input and output function
The cross-platform simulation system that can be tested.
Background technique
On-off signal output module is that on-off model acquires input/control output equipment, also commonly referred to as digital
Measure I/O module;On-off signal output module is acquired on-off model by RS-485 bus or RS232 communication interface
The correlated condition that dependent instruction passes through On-off signal output module control switch is sent to computer or computer;May be used also
To carry out pairwise communications, the correlated condition of remote control switch by RS-485 bus;The communication of On-off signal output module
Agreement is standard Modbus agreement or customization related protocol.
In the project of actual Internet of Things and automatic control leading portion acquisition control, usually using On-off signal output module
Carry out the acquisition and control of interlock circuit.
Currently, as shown in Fig. 4, in project development and when later period malfunction elimination, user must connect the project of exploitation
It is connected under true hardware environment and carries out circuit acquisition and control, come realization effect and the row of failure of software system function
It looks into, the test of item-function is caused to be always subject to hardware platform, it is time-consuming and laborious.
In addition, direction that the various problems of hardware platform often interfere software system development personnel to solve the problems, such as and thinking,
Greatly reduce the efficiency and quality of entire project development.
In order to solve the above problems, people are seeking always a kind of ideal technical solution.
Summary of the invention
The purpose of the present invention is in view of the deficiencies of the prior art, test to provide one kind for software input/output function
Cross-platform simulation system.
To achieve the goals above, the technical scheme adopted by the invention is that: one kind for software input/output function survey
The cross-platform simulation system of examination, including input function test cell and output function test cell;
The input function test cell, for generating On-off signal test instruction and being transmitted to application program to be measured;
The output function test cell, the output switch parameter test instruction sent for receiving application program to be measured, and according to
The output switch parameter test instruction carries out corresponding effect displaying;
Application program to be measured generates output switch parameter test instruction, receives the On-off signal test instruction, and according to reception
The On-off signal test instruction arrived carries out corresponding logic testing.
Based on above-mentioned, the input function test cell setting On-off signal control interface, the On-off signal control
First button is set on interface processed;
First button, for simulating the switch in actual hardware circuit, user presses according to testing requirement control described first
Button carries out state switching.
Based on above-mentioned, the output function test cell setting output switch parameter display interface, the output switch parameter is aobvious
Show and the second button is set on interface;
Second button tests instruction control according to the output switch parameter for simulating the switch in actual hardware circuit
The switching state of second button.
The present invention has substantive distinguishing features outstanding and significant progress compared with the prior art, and specifically, the present invention mentions
A kind of cross-platform simulation system for the test of software input/output function has been supplied, has controlled integration test carrying out input and output
When, restriction of the Application testing to hardware platform is got rid of, present invention simulation real-life program project can be used whenever and wherever possible
In various On-off signals output the case where, for developer test and debugging provide a great convenience;It avoids simultaneously
There is the case where direction and thinking that the various problems interference software system development personnel of hardware platform solve the problems, such as, greatly improves
The efficiency and quality of entire project development.
Detailed description of the invention
Fig. 1 is flow diagram of the invention.
Fig. 2 is the schematic diagram of On-off signal control interface of the invention.
Fig. 3 is the schematic diagram of output switch parameter display interface of the invention.
Fig. 4 is the structural schematic diagram of the prior art.
Specific embodiment
Below by specific embodiment, technical scheme of the present invention will be described in further detail.
Embodiment 1
As shown in Fig. 1, a kind of cross-platform simulation system for the test of software input/output function, is used for application program to be measured
Input/output function test, it includes input function test cell and output function test cell;The input function test
Unit, for generating On-off signal test instruction and being transmitted to application program to be measured;The output function test cell, is used for
It receives the output switch parameter that application program to be measured is sent and tests instruction, and instruction is tested according to the output switch parameter and is carried out accordingly
Effect show;Application program to be measured generates output switch parameter test instruction, receives the On-off signal test instruction, and
Corresponding logic testing is carried out according to the On-off signal test instruction received.
In the present embodiment, this is used for the cross-platform simulation system of software input/output function test and application program to be measured is logical
When news interconnection, following operation is executed:
Step 1, Scoket server-side is established, select and the monitoring of TCP server-side is opened on operation host by C# script;It waits
The Socket communication connection request of application program to be measured;
Step 2, the application program to be measured configures the cross-platform mould that this for needing to connect is used for the test of software input/output function
The IP address and its port numbers monitored of quasi- system, after selecting consistent communications protocol, the application program to be measured to this
Cross-platform simulation system for the test of software input/output function sends Socket communication connection request;
Step 3, which receives the Socket communication connection and asks
It asks, and according to the Socket communication connection request received, the TCP communication established between the application program to be measured connects
It connects.
In carrying out software system development Project Process, the invention enables the input and output of application program to control integration test
The restriction for getting rid of hardware platform, independent of true hardware platform;User can be used anytime and anywhere this, and to be used for software defeated
The case where entering various On-off signals output in the cross-platform simulation system simulation actual items of output function test, is exploit person
The test and debugging of member provides a great convenience.
The cross-platform simulation system for being used for the test of software input/output function can export isolated form On-off signal
Module and corresponding hardware circuit virtually turn to Simple Control System;The Simple Control System is packaged by Unity platform
It may operate in windows platform, Android platform, ios platform and its WebGL platform;It is simple and convenient, to solve item
The technical issues of input and output control integration test of application program must build true hardware environment in mesh development process.
Embodiment 2
This gives a kind of specific embodiments of input function test cell, as shown in Fig. 2, the input function
On-off signal control interface is arranged in test cell, and the first button is arranged in the On-off signal control interface;Described first
Button, for simulating the switch in actual hardware circuit, user controls the first button progress state according to testing requirement and cuts
It changes.
In the present embodiment, the On-off signal control interface, the number of first button are designed in Unity3D platform
Amount is arranged according to testing requirement.If the first button is selected state, then it represents that a certain way switch is the state that is triggered, i.e., accordingly
On-off signal port be triggered;If the first button is not to be selected state, then it represents that a certain way switch is off-state, i.e.,
Corresponding On-off signal port is off-state.This is used for the cross-platform simulation system of software input/output function test and institute
It stating after application program to be measured establishes connection, user can control first button according to testing requirement and carry out state switching, with
Simulate different On-off signal states.
When application program to be measured carries out input control test: user chooses a few in the On-off signal control interface
A first button, the On-off signal test instruction that the input function test cell generates are solved by the backstage of present system
After analysing and being packaged into the agreement of both sides' agreement, the application program to be measured is sent to by TCP network.The application program to be measured
After receiving, the state that corresponding On-off signal port is triggered is parsed by information, directly can be used for various logic
Judgement processing, to realize that input control is tested.
Embodiment 3
This gives a kind of specific embodiments of output function test cell, as shown in Fig. 3, the output function
Output switch parameter display interface is arranged in test cell, and the second button is arranged on the output switch parameter display interface;Described second
Button tests instruction according to the output switch parameter and controls second button for simulating the switch in actual hardware circuit
Switching state.
In the present embodiment, the output switch parameter control panel, the number of second button are designed in Unity3D platform
Amount is arranged according to testing requirement.If the second button is selected state, indicate that corresponding output switch parameter port is the shape that is triggered
State;If the second button is not to be selected state, indicate that corresponding output switch parameter port is off-state.This is used for software input
After the cross-platform simulation system and the application program to be measured of output function test establish connection, the output function test cell
Instruction is tested according to the output switch parameter and controls the second button progress state switching, to simulate different output switch parameters
State.
When application program to be measured carries out output control test: the testing requirement for being closed or being disconnected according to control circuit, institute
It states application program to be measured and generates corresponding output switch parameter test instruction, and be sent to the output function test cell;It is described
Output function test cell receives and is parsed into certain several output switch parameter by backstage after the output switch parameter test instructs
Port is the state that is triggered, and then controls corresponding second button and switches to selected state;Therefore, the present invention can directly exist
Test result is shown on the output switch parameter control panel, user can be visually observed that application program to be measured opens each road
The control correctness of pass amount, to realize output control test.
Finally it should be noted that: the above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof;To the greatest extent
The present invention is described in detail with reference to preferred embodiments for pipe, it should be understood by those ordinary skilled in the art that: still
It can modify to a specific embodiment of the invention or some technical features can be equivalently replaced;Without departing from this hair
The spirit of bright technical solution should all cover within the scope of the technical scheme claimed by the invention.
Claims (3)
1. a kind of cross-platform simulation system for the test of software input/output function, it is characterised in that: surveyed including input function
Try unit and output function test cell;
The input function test cell, for generating On-off signal test instruction and being transmitted to application program to be measured;
The output function test cell, the output switch parameter test instruction sent for receiving application program to be measured, and according to
The output switch parameter test instruction carries out corresponding effect displaying;
Application program to be measured generates output switch parameter test instruction, receives the On-off signal test instruction, and according to reception
The On-off signal test instruction arrived carries out corresponding logic testing.
2. the cross-platform simulation system according to claim 1 for the test of software input/output function, it is characterised in that:
On-off signal control interface is arranged in the input function test cell, and setting first is pressed in the On-off signal control interface
Button;
First button, for simulating the switch in actual hardware circuit, user presses according to testing requirement control described first
Button carries out state switching.
3. the cross-platform simulation system according to claim 1 for the test of software input/output function, it is characterised in that:
Output switch parameter display interface is arranged in the output function test cell, and setting second is pressed on the output switch parameter display interface
Button;
Second button tests instruction control according to the output switch parameter for simulating the switch in actual hardware circuit
The switching state of second button.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910434186.4A CN110309056B (en) | 2019-05-23 | 2019-05-23 | Cross-platform simulation system for testing software input and output functions |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910434186.4A CN110309056B (en) | 2019-05-23 | 2019-05-23 | Cross-platform simulation system for testing software input and output functions |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110309056A true CN110309056A (en) | 2019-10-08 |
CN110309056B CN110309056B (en) | 2023-11-24 |
Family
ID=68074998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910434186.4A Active CN110309056B (en) | 2019-05-23 | 2019-05-23 | Cross-platform simulation system for testing software input and output functions |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110309056B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112904104A (en) * | 2021-01-15 | 2021-06-04 | 欧拓飞科技(珠海)有限公司 | Method for product function test by using graphical interface |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105607995A (en) * | 2015-11-11 | 2016-05-25 | 北汽福田汽车股份有限公司 | Software test system, method and apparatus |
CN105738130A (en) * | 2014-12-08 | 2016-07-06 | 联创汽车电子有限公司 | Electric power steering controller hardware function test board |
CN205983198U (en) * | 2016-07-18 | 2017-02-22 | 中国电子信息产业集团有限公司第六研究所 | Cross -platform PLC board level frock test system based on QT |
CN107102221A (en) * | 2017-03-16 | 2017-08-29 | 江苏方天电力技术有限公司 | A kind of quick test platform of protective relaying device logic function |
CN108732443A (en) * | 2018-05-21 | 2018-11-02 | 湖北三江航天万峰科技发展有限公司 | A kind of Auto-Test System and method based on Linux |
CN108982996A (en) * | 2018-06-29 | 2018-12-11 | 国网江苏省电力有限公司电力科学研究院 | A kind of extra-high voltage direct-current of outdoor scene substituted keeps the scene intact test device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932479B (en) * | 2015-04-27 | 2018-01-05 | 深圳市中电电力技术股份有限公司 | A kind of automated testing method and system |
-
2019
- 2019-05-23 CN CN201910434186.4A patent/CN110309056B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105738130A (en) * | 2014-12-08 | 2016-07-06 | 联创汽车电子有限公司 | Electric power steering controller hardware function test board |
CN105607995A (en) * | 2015-11-11 | 2016-05-25 | 北汽福田汽车股份有限公司 | Software test system, method and apparatus |
CN205983198U (en) * | 2016-07-18 | 2017-02-22 | 中国电子信息产业集团有限公司第六研究所 | Cross -platform PLC board level frock test system based on QT |
CN107102221A (en) * | 2017-03-16 | 2017-08-29 | 江苏方天电力技术有限公司 | A kind of quick test platform of protective relaying device logic function |
CN108732443A (en) * | 2018-05-21 | 2018-11-02 | 湖北三江航天万峰科技发展有限公司 | A kind of Auto-Test System and method based on Linux |
CN108982996A (en) * | 2018-06-29 | 2018-12-11 | 国网江苏省电力有限公司电力科学研究院 | A kind of extra-high voltage direct-current of outdoor scene substituted keeps the scene intact test device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112904104A (en) * | 2021-01-15 | 2021-06-04 | 欧拓飞科技(珠海)有限公司 | Method for product function test by using graphical interface |
Also Published As
Publication number | Publication date |
---|---|
CN110309056B (en) | 2023-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106327355B (en) | Simulation debugging system and implementation method for secondary equipment of substation reconstruction and extension project | |
CN107885097B (en) | Nuclear power station simulator control system DCS transformation closed loop verification system and method | |
CN107294563A (en) | A kind of low-voltage powerline carrier communication interconnects performance test methods and system | |
CN103344883B (en) | Simulation testing device and the method for cable fault simulation is realized by wireless network | |
CN105306156A (en) | Remote sensing satellite data transmission product automatic testing system and method | |
CN110632410B (en) | Intelligent debugging system for automatic equipment of intelligent substation and application method thereof | |
CN106712295B (en) | Logic distribution terminal and communication means based on Automation System for Distributing Substation | |
CN111638706A (en) | System and method for testing gateway controller | |
CN109194491A (en) | A kind of password evaluation and test pilot system and password evaluate and test test method | |
CN105045712B (en) | A kind of test system for resolution chart processing module | |
CN110309056A (en) | A kind of cross-platform simulation system for the test of software input/output function | |
CN107294562A (en) | Low-voltage power carrier module simulation detection means | |
CN114928565A (en) | Internet of things testing method and system for simulating hardware equipment | |
CN103631689A (en) | Data acquisition device, on-line simulation debugging system and on-line simulation debugging method | |
CN108199929A (en) | Measuring instrument, network intelligence instrument system and network intelligence test method | |
CN103761895B (en) | A kind of method of work of current transformer simulation examination system | |
CN109861877A (en) | A kind of distribution network terminal wireless public network communication test system based on cloud service | |
CN103777167B (en) | A kind of voltage transformer (VT) emulation examination system and method for work | |
CN109587663A (en) | A kind of automated testing method and its system of vehicle-mounted Wi-Fi switch | |
CN103533562A (en) | Wireless sensor network node protocol conformance testing device and method | |
CN106900001A (en) | communication system testing method and system | |
CN109547297A (en) | A kind of locomotive FIP Instruction Network Test System Platform | |
CN202261346U (en) | Communication protocol test device | |
CN206378769U (en) | A kind of test chart of multiplex roles | |
CN207352091U (en) | A kind of digital transformer substation intelligence is to a tester |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |