CN108197026A - Method, device and equipment for testing simulation software of wind generating set and storage medium - Google Patents

Method, device and equipment for testing simulation software of wind generating set and storage medium Download PDF

Info

Publication number
CN108197026A
CN108197026A CN201711490377.XA CN201711490377A CN108197026A CN 108197026 A CN108197026 A CN 108197026A CN 201711490377 A CN201711490377 A CN 201711490377A CN 108197026 A CN108197026 A CN 108197026A
Authority
CN
China
Prior art keywords
test
software
tested
test case
frame
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.)
Withdrawn
Application number
CN201711490377.XA
Other languages
Chinese (zh)
Inventor
苏洪军
邓刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Goldwind Science and Creation Windpower Equipment Co Ltd
Original Assignee
Beijing Goldwind Science and Creation Windpower Equipment Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Goldwind Science and Creation Windpower Equipment Co Ltd filed Critical Beijing Goldwind Science and Creation Windpower Equipment Co Ltd
Priority to CN201711490377.XA priority Critical patent/CN108197026A/en
Publication of CN108197026A publication Critical patent/CN108197026A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for testing simulation software of a wind generating set. The method comprises the following steps: acquiring software to be tested, and generating a testing environment model according to the software to be tested; acquiring a test case, and generating an automatic test frame according to the test case and software to be tested; and testing the software to be tested by utilizing an automatic testing framework. The method, the device, the equipment and the storage medium for testing the simulation software of the wind generating set can improve the testing efficiency.

Description

Wind power generating set simulation software test method, device, equipment and storage medium
Technical field
The present invention relates to technical field of wind power generation more particularly to a kind of wind power generating set simulation software test method, Device, equipment and storage medium.
Background technology
With the rapid development of offshore wind farm, higher requirement is proposed to the safety and reliability of wind turbine software, this Ensure with regard to needing just to carry out software fully verification in the development phase, the software development methodology based on model, which can be realized, to be opened The hair stage just verifies software, and the means verified are exactly to test.
When carrying out software iteration optimization and new functional development, not only need to survey the function of changing and increase newly Experiment card, it is also necessary to regression test be carried out to software, to confirm modification without introducing new mistake or other codes being caused to generate Mistake.A significant process of the regression test as software life-cycle, it usually needs software development and test team spend greatly The time of amount and manpower are in this process;
Traditional test method is by writing test case, and gradually software is tested one by one by tester, It is time-consuming laborious, and be easy to introduce mistake.If testing a complicated program, survey is obtained, writes and performed Example on probation will be a great and uninteresting engineering, and needs to put into a large amount of human and material resources and go to complete.When software version has When larger change and exploitation new architecture, the workload of tester can be multiplied, and can lead to project delay or test not The problems such as abundant.Testing efficiency is relatively low.
In addition, after the completion of software test, if the test report do not write to function and code coverage degree, it is difficult to protect The quality of software is demonstrate,proved, writing these reports needs to take a substantial amount of time, and the report quality that different technical staff writes also is joined Difference is uneven.
Invention content
The embodiment of the present invention provides a kind of wind power generating set simulation software test method, device, equipment and storage medium, Testing efficiency can be improved.
On the one hand, an embodiment of the present invention provides a kind of wind power generating set simulation software test method, this method includes:
Software to be tested is obtained, and according to Software Create test environment model to be tested;
Test case is obtained, and according to test case and automatic generation of software test frame to be tested;
Test software is treated using automated test frame to be tested.
In one embodiment of the invention, according to Software Create test environment model to be tested, including:
Parse the input/output interface of software to be tested;
According to input/output interface, generation carries out the test environment model of emulation and code building.
In one embodiment of the invention, test case is obtained, including:
Under preset path, search and the test case file of the title rule match of software to be tested press from both sides;
The type and form of file in being pressed from both sides according to test case file determine the content-form of test case;
Script corresponding with content-form is called, generates test case.
In one embodiment of the invention, content-form, including:
Time series data description, interface variables description and Chinese variable description.
In one embodiment of the invention, test software is treated using automated test frame to be tested, including:
Using the simulation parameter of script setting automated test frame, and according to simulation parameter to automated test frame into Row emulation;
Test case in operation automated test frame is treated test software and is tested, and record each test case Coverage information.
In one embodiment of the invention, wind power generating set simulation software test method further includes:
According to coverage information, the test case of not up to coverage is determined;
According to input and programmed logic, the test case of coverage is not up to determined by supplement.
In one embodiment of the invention, it runs the test case in automated test frame and treats test software progress Test, including:
It is parallel to run automatic test frame if the quantity of the test case in automated test frame is more than predetermined threshold value Test case in frame is treated test software and is tested.
In one embodiment of the invention, wind power generating set simulation software test method further includes:
Generate test report.
On the other hand, an embodiment of the present invention provides a kind of wind power generating set simulation software test device, the device packets It includes:
First generation module, for obtaining software to be tested, and according to Software Create test environment model to be tested;
Second generation module for obtaining test case, and is surveyed according to test case and automatic generation of software to be tested Try frame;
Test module is tested for treating test software using automated test frame.
In one embodiment of the invention, the first generation module is specifically used for:
Software to be tested is obtained, parses the input/output interface of software to be tested;
According to input/output interface, generation carries out the test environment model of emulation and code building.
In one embodiment of the invention, the second generation module is specifically used for:
Under preset path, search and the test case file of the title rule match of software to be tested press from both sides;
The type and form of file in being pressed from both sides according to test case file determine the content-form of test case;
Script corresponding with content-form is called, generates test case;
According to test case and automatic generation of software test frame to be tested.
In one embodiment of the invention, content-form, including:
Time series data description, interface variables description and Chinese variable description.
In one embodiment of the invention, test module, including:
Simulation unit, for utilizing the simulation parameter of script setting automated test frame, and according to simulation parameter to certainly Dynamicization test frame is emulated;
Test cell, the test case for running in automated test frame is treated test software and is tested, and remembers Record the coverage information of each test case.
In one embodiment of the invention, wind power generating set simulation software test device further includes:
Determining module, for according to coverage information, determining the test case of not up to coverage;
Complementary module, for according to input and programmed logic, the test case of the identified not up to coverage of supplement.
In one embodiment of the invention, test cell is specifically used for:
It is parallel to run automatic test frame if the quantity of the test case in automated test frame is more than predetermined threshold value Test case in frame is treated test software and is tested.
In one embodiment of the invention, wind power generating set simulation software test device further includes:
Third generation module, for generating test report.
In another aspect, an embodiment of the present invention provides a kind of wind power generating set simulation software test equipment, software test Equipment includes:Memory and processor;
Memory is used to store executable program code;
Processor is used to read the executable program code that stores in memory to perform wind provided in an embodiment of the present invention Power generator group simulation software test method.
In another aspect, the embodiment of the present invention provides a kind of computer readable storage medium, stored on computer storage media There are computer program instructions;Wind-driven generator provided in an embodiment of the present invention is realized when computer program instructions are executed by processor Group simulation software test method.
Wind power generating set simulation software test method, device, equipment and the storage medium of the embodiment of the present invention, Neng Gouti High testing efficiency;Test software by reference does not treat test software and modifies, can support a plurality of types of surveys Example on probation;The test case of not up to coverage can be automatically generated, according to input and programmed logic, the test of the completion part Use-case improves the Test coverage degree of test case;Using test case concurrent testing, reduce the testing time;It can generate Comply with standard the test report with specification.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, it will make below to required in the embodiment of the present invention Attached drawing is briefly described, for those of ordinary skill in the art, without creative efforts, also Other attached drawings can be obtained according to these attached drawings.
Fig. 1 shows the flow diagram of wind power generating set simulation software provided in an embodiment of the present invention test method;
Fig. 2 shows the schematic diagrames of generation test environment model;
Fig. 3 shows the schematic diagram for obtaining test case;
Fig. 4 shows the structure diagram of wind power generating set simulation software provided in an embodiment of the present invention test device;
Fig. 5 shows the calculating that can realize wind power generating set simulation software test method according to embodiments of the present invention The structure chart of the exemplary hardware architecture of equipment.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below, in order to make the mesh of the present invention , technical solution and advantage be more clearly understood, with reference to the accompanying drawings and embodiments, the present invention is further retouched in detail It states.It should be understood that specific embodiment described herein is only configured to explain the present invention, it is not configured as limiting the present invention. To those skilled in the art, the present invention can be real in the case of some details in not needing to these details It applies.The description of embodiment is used for the purpose of by showing that the example of the present invention is better understood from the present invention to provide below.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including Also there are other identical elements in the process of the element, method, article or equipment.
As shown in Figure 1, Fig. 1 shows the stream of wind power generating set simulation software provided in an embodiment of the present invention test method Journey schematic diagram.Wind power generating set simulation software test method can include:
S101:Software to be tested is obtained, and according to Software Create test environment model to be tested.
S102:Test case is obtained, and according to test case and automatic generation of software test frame to be tested.
S103:Test software is treated using automated test frame to be tested.
In one embodiment of the invention, obtaining software to be tested can be added by custom menu or right-click menu Software to be tested is carried, can be with testing results script, and pass through explorer and manually select software to be tested.Wherein, script Be the extension of autoexec, be the program that a kind of plain text preserves, computer script program in general be to determine one Serial control computer carries out the combination of arithmetic operation action.
After software to be tested is got, can according to Software Create test environment model to be tested, wherein, test environment Model, which refers to, collects the information such as input/output interface relevant with software to be tested, parameter, global variable and controlled device Into an environment.
Fig. 2 shows the process schematics of generation test environment model.The process of generation test environment model includes:
S201:Parse the input/output interface of software to be tested.
S202:According to input/output interface, generation carries out the test environment model of emulation and code building.
The input/output interface of the embodiment of the present invention, the structure including one-dimensional or Multidimensional numerical, single-layer or multi-layer nesting Body, global variable, parametric variable, data storage variable etc..
Input/output interface involved in software to be tested is parsed by the test script on backstage.It is defeated according to what is parsed Enter output interface.
In one embodiment of the invention, test environment model and software to be tested are adduction relationship, will not change and treat Test software,, can when treating test software next time and being tested if the input/output interface of software to be tested does not change Not regenerate test environment model.
In one embodiment of the invention, it is possible to specify the generation position of test environment model.It, can for the ease of configuration With by the generation of test environment model, in the file residing for test case, i.e. test environment model and test case is in same text In part folder.
After the generation of test environment model, obtain test case and tested with treating test software.Fig. 3 shows acquisition The process schematic of test case.The process for obtaining test case includes:
S301:Under preset path, search and the test case file of the title rule match of software to be tested press from both sides.
S302:The type and form of file in being pressed from both sides according to test case file determine the content-form of test case.
S303:Script corresponding with content-form is called, generates test case.
In one embodiment of the invention, title rule is such as:Entitled AmbientCtrlSys (the environment of software under testing Control system);There are three test case files under item Path to press from both sides, respectively YawCtrlSys (yaw control system), PitchCtrlSys (variable blade control system), AmbitionCtrlSys (environmental control system);It, can according to above-mentioned title rule It is with the test case file of the title rule match of software under testing AmbientCtrlSys folder to search out AmbientCtrlSys.The file of character string Ambition can also be included under matching entries path in all titles as needed Folder
Search out with the test case file of software under testing AmbientCtrlSys title rule match press from both sides after, according to survey The type of file, is such as judged as xls formatted files in example file on probation, then reads this document with the order for reading xls files, Check file content, according to the form of content, judgement is that time series data describes test case or interface variables description is surveyed Example on probation either other kinds of test case, the test case as described in being judged as time series then automatically select the use The corresponding script of example carries out import operation.
In one embodiment of the invention, the form (or type) of test case file can be:xls、xlsx、 The forms such as xlsm, xml, txt, cvs, mat can also be the file format that can be converted into above-mentioned form.
In one embodiment of the invention, content-form can include:Time series data description, interface variables description With Chinese variable description.
It is understood that when content-form is described for time series data, test case is with including time, variable The test case of the time series data description of the contents such as name, variate-value, parameter, remarks.With wind power generating set (hereinafter referred to as For unit) the corresponding test case of software for.The test case described with time series data is as shown in table 1.
Table 1
In table 1, whether the 1 expression unit in service mode row is in service mode to unit, and 0 expression unit is not in Service mode;Whether manually opened fan row in 1 represent it is manually opened, 0 represent be turned off manually;Whether fan is closed in row 1 represents that fan is opened, and 0 represents that fan is closed.
It is understood that when content-form is described for interface variables, test case is the change described with interface variables Measure name and the test case with the relevant variate-value description of sequential.By taking the corresponding test case of the software of unit as an example.Use interface The test case of variable description is as shown in table 2.
Table 2
It is understood that when content-form is Chinese variable description, test case is the change with Chinese variable description Measure name and the test case with the relevant variate-value description of sequential.By taking the corresponding test case of the software of unit as an example.With Chinese The test case of variable description is as shown in table 3.
Table 3
In one embodiment of the invention, the source of test case can be:The data of collection in worksite, experiment acquire Data, the data of simulation model generation, the data of manual compiling, data for automatically generating etc..
After the content-form for determining test case, script corresponding with content-form is called, generates test case.
After test case is generated, according to test case and automatic generation of software test frame to be tested.According to test The detailed process of use-case and automatic generation of software test frame to be tested is as follows:
It (can sequentially in time, to spy according to the input/output interface parsed above and the test case parsed Stationary interface variable requires to carry out assignment according to use-case), by the interface variables in test case with the input and output of the software of parsing Interface is associated.Wherein, input interface is to carry out assignment operation, and output interface is to be compared and other data behaviour Make.
After automated test frame is generated, treat test software using automated test frame and tested.
In one embodiment of the invention, it treats test software using automated test frame to be tested, can wrap It includes:Automated test frame is imitated using the simulation parameter of script setting automated test frame, and according to simulation parameter Very;Test case in operation automated test frame is treated test software and is tested, and record covering for each test case Cover degree information.
Obtain the parameters such as emulation duration, sampling time;According to acquired parameter, pass through script setting software to be tested Simulation parameter, and automated test frame is emulated according to simulation parameter;It records and preserves simulation result to specified file In;Contrast simulation by simulation comparison result as a result, draw generation in a document.Simulation result in real time in software development environment into Row display.
When running every test case, and record the coverage information of every test case.Coverage information includes:Judgement Coverage rate (Decision Coverage), Condition Coverage Testing rate (Condition Coverage) and correction conditions/judgement coverage rate (Modified Condition/Decision Coverage(MC/DC))。
After the completion of the execution of all test cases, summarize coverage information, generation coverage report.
In one embodiment of the invention, if the quantity of the test case in automated test frame is more than default threshold It is worth, then the test case parallel in operation automated test frame is treated test software and tested.To reduce test execution Total time improve testing efficiency.
In one embodiment of the invention, the method for testing software of the embodiment of the present invention can also include:According to covering Information is spent, determines the test case of not up to coverage;According to input and programmed logic, coverage is not up to determined by supplement Test case.
According to coverage information, determine that the detailed process of the not up to test case of coverage is as follows:
A coverage can be generated after all test cases have been run as a result, will be seen that in program have according to the result Which path is not covered with, which condition is not carried out, which condition does not judge to arrive, that is to say, that requires supplementation with test Use-case is to reach the requirement of coverage.
According to input and programmed logic, the detailed process of the not up to test case of coverage is as follows determined by supplement:
According to coverage analysis result, the condition being not covered with is confirmed, the contents such as result not judged, by calling foot This searches for introductory path and enumerates the data that disclosure satisfy that and can reach coverage requirement automatically, and generation is not up to the survey of coverage Example input on probation.Further according to input and programmed logic, the test case of the completion part is as a result, make program reach or approach 100% coverage, so as to complete test case completion function.
Below by taking fan converter cooling system as an example, the function of test case completion is briefly described.
1st, it after completing the control programming of fan converter cooling system, needs to carry out functional verification to the program, such as sentence After disconnected current transformer reaches the temperature limit of setting, whether the circulating pump of cooling system, fan etc. performs equipment according to functional requirement Operation, can manually opened circulating pump or fan etc..
2nd, a coverage can be generated after all test cases have been run as a result, should be the result is that whether determining program has not The state that can enter, it is impossible to the Switching Condition of generation or the subsystem not performed and whether have enough test cases Important evidence.
If the 3, coverage rate does not reach 100% at this time, and reason for that is not analyzed, can be buried to software Under very big hidden danger.
4th, it according to previous step coverage analysis result, is used by the test that script is called to automatically generate not up to coverage Example, according to input and programmed logic, the test case of the completion part as a result, make program reach or close to 100% coverage, So as to complete test case completion function, and reduce the probability of software failure.
According to simulation result, the test instantaneous value of analysis each test case and the absolute error and phase for testing desired value To error, if the deviation range of absolute error and relative error is in range, this surveys as defined in preset test case Example on probation passes through, and marks this test case.
To do not have markd Test cases technology can single step execution script, to reappear problem at any time.
In one embodiment of the invention, the wind power generating set simulation software test method of the embodiment of the present invention may be used also To include:Generate test report.
In one embodiment of the invention, it can be complied with standard according to the test report template of standards and norms, generation With the test report of specification.
Test report includes but not limited to:Report name, creation time, author, version number, corresponding software to be tested Version, Assessment Overview, the software and hardware configuration of test environment, test result, catalogue, coverage result, test with demand link Relationship and test detail (input/output value, the step number performed, the trend curve exported) etc..
The wind power generating set simulation software test method of the embodiment of the present invention, can improve testing efficiency;Pass through reference Mode test software, do not treat test software and modify, can support a plurality of types of test cases;It can automatically generate The not up to test case of coverage improves test case according to input and programmed logic, the test case of the completion part Test coverage degree;Using test case concurrent testing, reduce the testing time;The test complied with standard with specification can be generated Report.
Corresponding with above-mentioned embodiment of the method, the embodiment of the present invention also provides a kind of wind power generating set simulation software and surveys Trial assembly is put.As shown in figure 4, Fig. 4 shows the knot of wind power generating set simulation software provided in an embodiment of the present invention test device Structure schematic diagram.Wind power generating set simulation software test device can include:
First generation module 401, for obtaining software to be tested, and according to Software Create test environment model to be tested.
Second generation module 402, for obtaining test case, and according to test case and automatic generation of software to be tested Test frame.
Test module 403 is tested for treating test software using automated test frame.
In one embodiment of the invention, the first generation module 401, specifically can be used for:
Software to be tested is obtained, parses the input/output interface of software to be tested;According to input/output interface, generation carries out Emulation and the test environment model of code building.
In one embodiment of the invention, the second generation module 402, specifically can be used for:
Under preset path, search and the test case file of the title rule match of software to be tested press from both sides;According to test The type and form of file in use-case file determine the content-form of test case;Script corresponding with content-form is called, Generate test case;According to test case and automatic generation of software test frame to be tested.
In one embodiment of the invention, content-form can include:Time series data description, interface variables description With Chinese variable description.
In one embodiment of the invention, test module 403 can include:
Simulation unit, for utilizing the simulation parameter of script setting automated test frame, and according to simulation parameter to certainly Dynamicization test frame is emulated;
Test cell, the test case for running in automated test frame is treated test software and is tested, and remembers Record the coverage information of each test case.
In one embodiment of the invention, wind power generating set simulation software test device can also include:
Determining module, for according to coverage information, determining the test case of not up to coverage;
Complementary module, for according to input and programmed logic, the test case of the identified not up to coverage of supplement.
In one embodiment of the invention, test cell specifically can be used for:
It is parallel to run automatic test frame if the quantity of the test case in automated test frame is more than predetermined threshold value Test case in frame is treated test software and is tested.
In one embodiment of the invention, wind power generating set simulation software test device can also include:
Third generation module, for generating test report.
In one embodiment of the invention, third generation module specifically can be used for:
According to the test report template of standards and norms, generation complies with standard the test report with specification
Each section details of wind power generating set simulation software test device shown in Fig. 4 of the embodiment of the present invention is schemed with more than The wind power generating set simulation software test method of the embodiment of the present invention shown in 1 is similar, and the embodiment of the present invention is no longer superfluous herein It states.
Fig. 5 shows the calculating that can realize wind power generating set simulation software test method according to embodiments of the present invention The structure chart of the exemplary hardware architecture of equipment.
As shown in figure 5, computing device 500 includes input equipment 501, input interface 502, central processing unit 503, memory 504th, output interface 505 and output equipment 506.Wherein, input interface 502, central processing unit 503, memory 504 and Output interface 505 is connected with each other by bus 510, and input equipment 501 and output equipment 506 pass through 502 He of input interface respectively Output interface 505 is connect with bus 510, and then is connect with the other assemblies of computing device 500.
Specifically, input equipment 501 is received from external input information, and is passed through input interface 502 and will be inputted information It is transmitted to central processing unit 503;Central processing unit 503 is based on the computer executable instructions stored in memory 504 to input Information is handled to generate output information, and output information is temporarily or permanently stored in memory 504, is then passed through Output information is transmitted to output equipment 506 by output interface 505;Output information is output to computing device 500 by output equipment 506 Outside for users to use.
That is, computing device shown in fig. 5 can also be implemented as a kind of wind power generating set simulation software test Equipment, the wind power generating set simulation software test equipment can include:It is stored with the memory of computer executable instructions;With And processor, the processor can realize that the wind power generating set that Fig. 1 to Fig. 3 is described is imitated when performing computer executable instructions True method for testing software.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program instructions;The wind that Fig. 1 of the embodiment of the present invention to Fig. 3 is described is realized when the computer program instructions are executed by processor Power generator group simulation software test method.
It should be clear that the invention is not limited in specific configuration described above and shown in figure and processing. For brevity, it is omitted here the detailed description to known method.In the above-described embodiments, several tools have been described and illustrated The step of body, is as example.But procedure of the invention is not limited to described and illustrated specific steps, this field Technical staff can be variously modified, modification and addition or suitable between changing the step after the spirit for understanding the present invention Sequence.
Structures described above frame functional block shown in figure can be implemented as hardware, software, firmware or their group It closes.When realizing in hardware, it may, for example, be electronic circuit, application-specific integrated circuit (ASIC), appropriate firmware, insert Part, function card etc..When being realized with software mode, element of the invention is used to perform program or the generation of required task Code section.Either code segment can be stored in machine readable media program or the data-signal by being carried in carrier wave is passing Defeated medium or communication links are sent." machine readable media " can include being capable of any medium of storage or transmission information. The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), soft Disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link, etc..Code segment can be via such as internet, inline The computer network of net etc. is downloaded.
It should also be noted that, the exemplary embodiment referred in the present invention, is retouched based on a series of step or device State certain methods or system.But the present invention is not limited to the sequence of above-mentioned steps, that is to say, that can be according in embodiment The sequence referred to performs step, may also be distinct from that the sequence in embodiment or several steps are performed simultaneously.
The above description is merely a specific embodiment, it is apparent to those skilled in the art that, For convenience of description and succinctly, the specific work process of the system of foregoing description, module and unit can refer to preceding method Corresponding process in embodiment, details are not described herein.It should be understood that protection scope of the present invention is not limited thereto, it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions, These modifications or substitutions should be covered by the protection scope of the present invention.

Claims (18)

1. a kind of wind power generating set simulation software test method, which is characterized in that the method includes:
Software to be tested is obtained, and according to the Software Create test environment model to be tested;
Test case is obtained, and according to the test case and the automatic generation of software test frame to be tested;
The software to be tested is tested using the automated test frame.
It is 2. according to the method described in claim 1, it is characterized in that, described according to the Software Create test environment mould to be tested Type, including:
Parse the input/output interface of the software to be tested;
According to the input/output interface, generation carries out the test environment model of emulation and code building.
3. method according to claim 1 or 2, which is characterized in that the acquisition test case, including:
Under preset path, search and the test case file of the title rule match of the software to be tested press from both sides;
The type and form of file in being pressed from both sides according to the test case file determine the content-form of test case;
Script corresponding with the content-form is called, generates test case.
4. according to the method described in claim 3, it is characterized in that, the content-form, including:
Time series data description, interface variables description and Chinese variable description.
5. according to the method described in claim 1, it is characterized in that, described utilize the automated test frame to described to be measured Examination software is tested, including:
The automation is surveyed using the simulation parameter of automated test frame described in script setting, and according to the simulation parameter Examination frame is emulated;
The test case run in the automated test frame tests the software to be tested, and records each test The coverage information of use-case.
6. according to the method described in claim 5, it is characterized in that, the method further includes:
According to the coverage information, the test case of not up to coverage is determined;
According to input and programmed logic, the test case of the supplement not up to coverage.
7. according to the method described in claim 5, it is characterized in that, the test in the operation automated test frame is used Example tests the software to be tested, including:
If the quantity of the test case in the automated test frame is more than predetermined threshold value, the automation is run parallel and is surveyed Test case in examination frame tests the software to be tested.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
Generate test report.
9. a kind of wind power generating set simulation software test device, which is characterized in that described device includes:
First generation module, for obtaining software to be tested, and according to the Software Create test environment model to be tested;
Second generation module, for obtaining test case, and it is automatic according to the test case and the Software Create to be tested Change test frame;
Test module, for being tested using the automated test frame the software to be tested.
10. device according to claim 9, which is characterized in that first generation module is specifically used for:
Software to be tested is obtained, parses the input/output interface of the software to be tested;
According to the input/output interface, generation carries out the test environment model of emulation and code building.
11. device according to claim 9 or 10, which is characterized in that second generation module is specifically used for:
Under preset path, search and the test case file of the title rule match of the software to be tested press from both sides;
The type and form of file in being pressed from both sides according to the test case file determine the content-form of test case;
Script corresponding with the content-form is called, generates test case;
According to the test case and the automatic generation of software test frame to be tested.
12. according to the devices described in claim 11, which is characterized in that the content-form, including:
Time series data description, interface variables description and Chinese variable description.
13. device according to claim 9, which is characterized in that the test module, including:
Simulation unit, for utilizing the simulation parameter of automated test frame described in script setting, and according to the simulation parameter The automated test frame is emulated;
Test cell tests the software to be tested for running the test case in the automated test frame, And record the coverage information of each test case.
14. device according to claim 13, which is characterized in that described device further includes:
Determining module, for according to the coverage information, determining the test case of not up to coverage;
Complementary module, for according to input and programmed logic, the test case of the supplement not up to coverage.
15. device according to claim 13, which is characterized in that the test cell is specifically used for:
If the quantity of the test case in the automated test frame is more than predetermined threshold value, the automation is run parallel and is surveyed Test case in examination frame tests the software to be tested.
16. device according to claim 9, which is characterized in that described device further includes:
Third generation module, for generating the test report complied with standard with specification.
17. a kind of wind power generating set simulation software test equipment, which is characterized in that the equipment includes:Memory and processing Device;
The memory is used to store executable program code;
The processor is any with perform claim requirement 1 to 8 for reading the executable program code stored in the memory Wind power generating set simulation software test method described in.
18. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program instruction;The wind-force as described in claim 1 to 8 any one is realized when the computer program instructions are executed by processor Generating set simulation software test method.
CN201711490377.XA 2017-12-30 2017-12-30 Method, device and equipment for testing simulation software of wind generating set and storage medium Withdrawn CN108197026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711490377.XA CN108197026A (en) 2017-12-30 2017-12-30 Method, device and equipment for testing simulation software of wind generating set and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711490377.XA CN108197026A (en) 2017-12-30 2017-12-30 Method, device and equipment for testing simulation software of wind generating set and storage medium

Publications (1)

Publication Number Publication Date
CN108197026A true CN108197026A (en) 2018-06-22

Family

ID=62587115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711490377.XA Withdrawn CN108197026A (en) 2017-12-30 2017-12-30 Method, device and equipment for testing simulation software of wind generating set and storage medium

Country Status (1)

Country Link
CN (1) CN108197026A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984417A (en) * 2018-08-15 2018-12-11 北京达佳互联信息技术有限公司 Method for testing software, device, terminal and storage medium
CN110059000A (en) * 2019-03-15 2019-07-26 深圳壹账通智能科技有限公司 Chat drama test control method, device, computer equipment and storage medium
CN110096438A (en) * 2019-04-12 2019-08-06 平安普惠企业管理有限公司 Method for testing software and relevant apparatus
CN110096445A (en) * 2019-05-06 2019-08-06 北京长城华冠汽车科技股份有限公司 A kind of model is in ring test method and device
CN110377514A (en) * 2019-07-12 2019-10-25 中汇信息技术(上海)有限公司 Management method, device, electronic equipment and the storage medium of software component
CN111427760A (en) * 2019-01-09 2020-07-17 阿里巴巴集团控股有限公司 Page testing method, device, equipment and storage medium
CN113157574A (en) * 2021-04-19 2021-07-23 上海湃星信息科技有限公司 Software real object test coverage rate collection method and device and electronic equipment
CN114465937A (en) * 2021-12-30 2022-05-10 宁畅信息产业(北京)有限公司 Network card testing method, device, server, medium, and computer program product
CN116383094A (en) * 2023-06-05 2023-07-04 中国空气动力研究与发展中心计算空气动力研究所 Test case library construction method, device, equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984417A (en) * 2018-08-15 2018-12-11 北京达佳互联信息技术有限公司 Method for testing software, device, terminal and storage medium
CN111427760A (en) * 2019-01-09 2020-07-17 阿里巴巴集团控股有限公司 Page testing method, device, equipment and storage medium
CN110059000A (en) * 2019-03-15 2019-07-26 深圳壹账通智能科技有限公司 Chat drama test control method, device, computer equipment and storage medium
CN110096438A (en) * 2019-04-12 2019-08-06 平安普惠企业管理有限公司 Method for testing software and relevant apparatus
CN110096445A (en) * 2019-05-06 2019-08-06 北京长城华冠汽车科技股份有限公司 A kind of model is in ring test method and device
CN110377514A (en) * 2019-07-12 2019-10-25 中汇信息技术(上海)有限公司 Management method, device, electronic equipment and the storage medium of software component
CN113157574A (en) * 2021-04-19 2021-07-23 上海湃星信息科技有限公司 Software real object test coverage rate collection method and device and electronic equipment
CN114465937A (en) * 2021-12-30 2022-05-10 宁畅信息产业(北京)有限公司 Network card testing method, device, server, medium, and computer program product
CN114465937B (en) * 2021-12-30 2023-11-17 宁畅信息产业(北京)有限公司 Network card testing method, device, server and medium
CN116383094A (en) * 2023-06-05 2023-07-04 中国空气动力研究与发展中心计算空气动力研究所 Test case library construction method, device, equipment and storage medium
CN116383094B (en) * 2023-06-05 2023-08-25 中国空气动力研究与发展中心计算空气动力研究所 Test case library construction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108197026A (en) Method, device and equipment for testing simulation software of wind generating set and storage medium
US11797298B2 (en) Automating identification of code snippets for library suggestion models
US20220269594A1 (en) Automating Identification of Test Cases for Library Suggestion Models
US11494181B2 (en) Automating generation of library suggestion engine models
US11875148B2 (en) Library model addition
CN106909510A (en) A kind of method and server for obtaining test case
US20110314337A1 (en) Method and Apparatus for Locating Input-Model Faults Using Dynamic Tainting
Sacramento et al. Web application model generation through reverse engineering and UI pattern inferring
CN105591779A (en) Method and device for inspecting network element
CN104199713A (en) Embedded Linux operation system trimming customization method
CN103092747B (en) A kind of checking controlling program and method of testing and system
CN116166907B (en) Method and device for developing Web application by using WebAsssembly and service page compiling technology
US8954307B1 (en) Chained programming language preprocessors for circuit simulation
CN112953721B (en) IPA file analysis method, IPA file analysis device, IPA file analysis equipment and storage medium
Lei et al. A model-driven testing framework based on requirement for embedded software
Neukirchen et al. Quality assurance for TTCN‐3 test specifications
BR102014030880A2 (en) method for performing automated tests
CN117075891B (en) Method and device for associating configuration files for test cases
Tiwari et al. Combining Model-Based Testing and Automated Analysis of Behavioural Models using GraphWalker and UPPAAL
Biondi et al. Papyrus-based safety analysis automatization
Ratiu et al. Increasing usability of spin-based C code verification using a harness definition language: Leveraging model-driven code checking to practitioners
Långström An Investigative Study of Testing Strategy and Test Case Creation in a Hardware-Software Co-design Environment Using Software Product Line Theory
Shin et al. Automated test case generation for automotive embedded software testing using XMI-based UML model transformations
Saddler EventFlowSlicer: A Goal-based Test Case Generation Strategy for Graphical User Interfaces
Arora Web testing using UML environment models

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20180622

WW01 Invention patent application withdrawn after publication