CN103544108B - System and method for testing embedded software integration strength - Google Patents
System and method for testing embedded software integration strength Download PDFInfo
- Publication number
- CN103544108B CN103544108B CN201310562190.1A CN201310562190A CN103544108B CN 103544108 B CN103544108 B CN 103544108B CN 201310562190 A CN201310562190 A CN 201310562190A CN 103544108 B CN103544108 B CN 103544108B
- Authority
- CN
- China
- Prior art keywords
- function
- test
- module
- execution
- judge
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for testing embedded software integration strength. The method comprises the steps of calling configuration parameters received and input by a configuration script, calling the configuration script to configure events required to be executed into test scripts according to the testing case process, and executing the test scripts according to the configuration parameters and an integration strength test function. The invention further discloses a system for testing the embedded software integration strength. According to the system and method for testing the integration strength of the embedded software, the test scripts are rapidly configured by calling the configuration script to receive and configure the configuration parameters such as the test numbers input by a user, a fixed executing process, a random executing process and a random probability, and selecting and configuring the events in the testing case process, the different test scripts can be executed in the uniform testing process, and the test scripts can be flexibly configured according to actual needs, so that different tests are carried out, the expansibility is high, the same events can be repeatedly executed in the different tests, workloads of a tester are remarkably reduced, and the working efficiency is improved.
Description
Technical field
The present invention relates to the test system of the integrated intensity of the field tests of embedded software, more particularly, to embedded software and
Method.
Background technology
The integrated strength test of embedded software refer to by flush bonding module the functional operation stream by this module demand
Journey carries out long-time strength test after integrating.The integrated strength test method of existing embedded software is usually basis
Test object writes test program immediately, functional module interface is write by fixing flow process, the test of this existing method of testing
Flow process is more random, and extensibility is low.
Content of the invention
The invention mainly solves the technical problem of providing a kind of testing process unified but the high embedded software of expansion
The test system of integrated intensity and method.
For solving above-mentioned technical problem, one aspect of the present invention is:
There is provided a kind of test system of the integrated intensity of embedded software, comprising: parameter configuration module, be used for calling configuration foot
The configuration parameter of this receives input, described configuration parameter includes total degree, fixing flow process, random flow process, random chance;Test foot
This configuration module, for calling configuration script, according to test case flow process, the event configuration needing execution is become test script;With
And performing module, for test script is executed according to configuration parameter and integrated strength test function.
Wherein, described integrated strength test function includes starting function, statistical result function, integrated intensity event execution letter
Number, environment recovery function and end function;Described performing module specifically includes:
First performing module, for executing described beginning function, then notifies the first judge module to carry out judging operation;
First judge module, for judging whether executed number of times is more than or equal to described total degree, if so, then notifies the 5th
Performing module executes operation;
Second judge module, for being equal to described total degree when described first judge module Predicated execution number of times is not more than
When, judge whether that button selects to exit test, if so, then notify the 5th performing module to execute operation;
Second performing module, for when described second judge module judges that button selects to exit test, execution statistics is tied
Fruit function;
3rd judge module, for when described second performing module has executed result function, judging whether to execute fixation
Testing process;
3rd performing module, for when described 3rd judge module Predicated execution fixes testing process, executing thing successively
The corresponding all integrated intensity events of part execute function, then notify the 4th judge module execution to judge operation;
4th performing module, for when described 3rd judge module judges not execute fixing testing process, according to described
Random chance randomly chooses an integrated intensity event execution function and is executed, and then notifies the 4th judge module to execute judgement
Operation;
4th judge module, for judging whether integrated intensity event execution function returns failure, if so, performing environment is extensive
The 5th judge module is notified to execute judgement after complex function, if it is not, described executed number of times being added 1 and notifying the first judge module to enter
Row judges operation;
5th judge module, for judging whether environment recovery function runs succeeded, if so, by described executed time
Number Jia 1 and notifies the first judge module to carry out judging operation, if it is not, then notifying the 5th performing module to execute operation;
5th performing module, for executing described end function.
Another technical solution used in the present invention is:
There is provided a kind of method of testing of the integrated intensity of embedded software, including step: call configuration script receives input
Configuration parameter, described configuration parameter includes total degree, fixing flow process, random flow process, random chance;Call configuration script according to survey
The event configuration needing execution is become test script by example flow process on probation;Survey is executed according to configuration parameter and integrated strength test function
Training is originally.
Wherein, described integrated strength test function includes starting function, statistical result function, integrated intensity event execution letter
Number, environment recovery function and end function;Described " test script is executed according to configuration parameter and integrated strength test function " tool
Body includes step:
S1, the described beginning function of execution, subsequently into step s2;
S2, judging that whether executed number of times is more than or equal to described total degree, if so, then entering step s10, if it is not, then entering
Enter step s3;
S3, judge whether button select exit test, if so, then enter step s10, if it is not, then enter step s4;
S4, execution statistical result function, subsequently into step s5;
S5, judge whether to execute fixing testing process, if so, enter step s6, if it is not, entering step s7;
The corresponding all integrated intensity events of s6, successively execution event execute function, subsequently into step s8;
S7, randomly choose an integrated intensity event execution function according to described random chance and executed, subsequently into
Step s8;
S8, judge whether integrated intensity event execution function returns failure, if so, after performing environment reconstruction, enter step
Rapid s9, if it is not, described executed number of times is added 1 and return to step s2;
S9, judge whether environment recovery function runs succeeded, if so, described executed number of times added 1 and return to step s2,
If it is not, then entering step s10;
S10, the described end function of execution.
The invention has the beneficial effects as follows: compared with prior art, a kind of survey of the integrated intensity of embedded software of the present invention
Test system and method, by calling configuration script to receive and configuring the testing time of user input, fixing execution flow process, random
Event in the configuration parameters, and selection configuration testing use-case flow process such as execution flow process, random chance, soon configures survey
Training originally, executes different test scripts, test script can neatly be carried out according to the actual requirements in unified testing process
Thus carrying out different tests, expansibility height is it is possible to repeat identical event, significantly in different tests for configuration
Mitigate the work load of test man, improve work efficiency.
Brief description
Fig. 1 is a kind of structured flowchart of the test system of the integrated intensity of embedded software in an embodiment of the present invention;
Fig. 2 is a kind of execution flow chart of the method for testing of the integrated intensity of embedded software in an embodiment of the present invention;
Fig. 3 is the specific execution flow chart of step s3 in Fig. 2.
Main element symbol description:
10th, parameter configuration module;20th, test script configuration module;30th, performing module.
Specific embodiment
By the technology contents of the detailed description present invention, structural features, realized purpose and effect, below in conjunction with embodiment
And coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, Fig. 1 is the test system of the integrated intensity of embedded software, the survey of the integrated intensity of this embedded software
Test system includes parameter configuration module 10, this configuration module of training 20, performing module 30.
Parameter configuration module 10 is used for calling the configuration parameter of configuration script receives input, and described configuration parameter includes always secondary
Number, fixing flow process, random flow process, random chance.
Test script configuration module 20 is used for calling configuration script to be joined, according to test case flow process, the event needing execution
It is set to test script.
Performing module 30 is used for executing test script according to configuration parameter and integrated strength test function.
Wherein, described integrated strength test function includes starting function, statistical result function, integrated intensity event execution letter
Number and environment recovery function.Described performing module specifically includes the first performing module, the first judge module, second judges mould
Block, the second performing module, the 3rd judge module, the 3rd performing module, the 4th performing module, the 4th judge module, the 5th execution
Module.
First performing module is used for executing described beginning function, then notifies the first judge module to carry out judging operation.
First judge module is used for judging whether executed number of times is more than or equal to described total degree, if so, then notifies the 5th
Performing module executes operation.
Second judge module is used for when described first judge module Predicated execution number of times is not more than and is equal to described total degree,
Judge whether that button selects to exit test, if so, then notify the 5th performing module to execute operation.
Second performing module is used for, when described second judge module judges that button selects to exit test, executing statistical result
Function.
3rd judge module is used for, when described second performing module has executed result function, judging whether to execute fixing survey
Examination flow process.
3rd performing module is used for, when the fixing testing process of described 3rd judge module Predicated execution, executing event successively
Corresponding all integrated intensity events execute function, then notify the 4th judge module execution to judge operation.
4th performing module be used for when described 3rd judge module judge do not execute fixing testing process when, according to described with
Machine probability randomly chooses an integrated intensity event execution function and is executed, and then notifies the 4th judge module execution to judge behaviour
Make.
4th judge module is used for judging whether integrated intensity event execution function returns failure, if so, performing environment is extensive
The 5th judge module is notified to execute judgement after complex function, if it is not, described executed number of times being added 1 and notifying the first judge module to enter
Row judges operation.
5th judge module is used for judging whether environment recovery function runs succeeded, if so, by described executed time
Number Jia 1 and notifies the first judge module to carry out judging operation, if it is not, then notifying the 5th performing module to execute operation.
5th performing module, for executing described end function.
Compared with prior art, parameter module can be by calling configuration foot for the test system of the integrated intensity of this embedded software
This receives and configures the testing time of user input, fixing execution flow process, at random the configuration ginseng such as execution flow process, random chance
Number, user can need to input different parameters to meet different test needs according to test;Test script configuration module can
Test script is gone out according to the event configuration of test case flow process, in fixing test module, executes different test scripts, survey
Examination flow process unification, but neatly can configure different test scripts according to the actual requirements, expansibility is high;At the same time it can also
Repeat identical event in multiple different testing process, the notable work load mitigating test man, improve work
Efficiency.
Refer to Fig. 2, Fig. 2 is the holding of the method for testing of the integrated intensity of a kind of embedded software in an embodiment of the present invention
Row flow chart.The method of testing of the integrated intensity of this embedded software includes step:
Step s1, call the configuration parameter of configuration script receives input, described configuration parameter includes total degree, fixing stream
Journey, random flow process, random chance;
Step s2, call configuration script according to test case flow process by need execution event configuration become test script;
Step s3, test script is executed according to configuration parameter and integrated strength test function.
In the present embodiment, described integrated strength test function includes starting function, statistical result function, integrated intensity
Event execution function and environment recovery function.Refer to Fig. 3, Fig. 3 is the concrete execution flow chart of step s3 in Fig. 2.Described
Step s3 specifically includes step:
S301, the described beginning function of execution, subsequently into step s302;
S302, judge that whether executed number of times is more than or equal to described total degree, if so, then enter step s310, if it is not, then
Enter step s303;
S303, judge whether button select exit test, if so, then enter step s310, if it is not, then enter step
s304;
S304, execution statistical result function, subsequently into step s305;
S305, judge whether to execute fixing testing process, if so, enter step s306, if it is not, entering step s307;
The corresponding all integrated intensity events of s306, successively execution event execute function, subsequently into step s8;
S307, randomly choose an integrated intensity event execution function according to described random chance and executed, Ran Houjin
Enter step s308;
S308, judge whether integrated intensity event execution function returns failure, if so, enter after performing environment reconstruction
Step s309, if it is not, described executed number of times is added 1 and return to step s302;
S309, judge whether environment recovery function runs succeeded, if so, described executed number of times is added 1 and return to step
S302, if it is not, then enter step s310;
S310, the described end function of execution.
In real work, test case includes file system, parameter management, pinpad, ic card, radio-frequency card, magnetic card, beats
The test of the various modules such as printing apparatus, modem communication apparatus, wireless telecommunications system, Ethernet, wifi, gps, bluetooth, charactron
Flow process, taking the integrated strength test of radio-frequency card to be as a example further elaborated with embodiments of the present invention below.
The method of testing of the integrated intensity of embedded software of the present invention, according to test in the case of not changing testing process
Need to input different configuration parameters and significantly improve carrying out different tests, work efficiency;Call configuration script according to radio frequency
The event configuration that needs execute is become test script by the flow process blocking integrated strength test use-case, and such tester just can basis
Need neatly the different flow processs of use-case to be defined as various different events, facilitate the execution of follow-up test;Finally, according to joining
Put parameter and integrated strength test function execution test script.
In the present embodiment, four events being gone out according to the flow definition in radio-frequency card integrated strength test use-case are concrete
For:
Event a: activate-stop live (after activation radio-frequency card, deactivating operation being carried out to radio-frequency card);
Event b: activation-data exchange-stop living and (activate radio-frequency card, radio-frequency card is sent and carries out reading and writing data, to radio frequency
Card carries out deactivating operation);
Event c: closing handle-open handle (opening radio-frequency card handle, close radio-frequency card handle);
Event d: wake up (allowing radio frequency card reader wake up card reader again after entering energy saver mode) after entering energy saver mode.
When the fixing testing process of execution, if the total degree of input is 10000 times, each event executes 10000 times respectively.
When executing random test flow process, if the total degree of input is 10000 times, the random chance presetting each event is:
Event a is 20%, event b is 60%, event c is %15, event d is 5%, then the testing time of event a is 2000 times, event b
For 6000 times, event c be 1500 times, event d be 500 times.Random chance is according to the concern to certain event in actually used
The height of degree is arranging.When being executed according to one integrated intensity event execution function of described random chance random selection,
Relatively low to the attention rate of event d if higher to the attention rate of event b, then need to improve the execution time of event b in test
Count and reduce the execution number of times of event d, in the case that the total degree of test is fixing, a random chance is arranged to each event
Can reach the effect above.So only need to set the total degree of corresponding test and general at random in configuration script in test
Rate and original test program flow process need not be modified, not only overcome testing process in prior art more random lack
Point, unifies to testing process, and also improves work efficiency, testing process need not be modified in itself just executable
Different test programs.
In addition, if event a and event c in above-mentioned event group only need to be executed, now can be only by event a and event c
Test function be configured to test script after execute.Similarly, if event a and the thing in above-mentioned event group only need to be executed
The test function of event a and event c now only can be configured to execution after test script by part d.
It has been multiplexed identical event a in the case of different three in the above embodiments, effectively improved answering of program code
With rate, reduce the repeated workload of tester, improve work efficiency.
The foregoing is only embodiments of the invention, not thereby limit the present invention the scope of the claims, every using this
Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (2)
1. a kind of test system of the integrated intensity of embedded software is it is characterised in that include:
Parameter configuration module, for calling the configuration parameter of configuration script receives input, described configuration parameter includes total degree, consolidates
Constant current journey, random flow process, random chance;
Test script configuration module, for calling configuration script to become to survey by the event configuration needing execution according to test case flow process
Training is originally;And
Performing module, for executing test script according to configuration parameter and integrated strength test function;Described integrated strength test
Function includes starting function, statistical result function, integrated intensity event execution function, environment recovery function and terminates function;
Described performing module specifically includes:
First performing module, for executing described beginning function, then notifies the first judge module to carry out judging operation;
First judge module, for judging whether executed number of times is more than or equal to described total degree, if so, then notifies the 5th execution
Module executes operation;
Second judge module, for when described first judge module Predicated execution number of times is not more than and is equal to described total degree, sentencing
Disconnected whether button selects to exit test, if so, then notifies the 5th performing module to execute operation;
Second performing module, for when described second judge module judge button is non-selected exit test when, execute statistical result
Function;
3rd judge module, for when described second performing module has executed result function, judging whether to execute fixing test
Flow process;
3rd performing module, for when described 3rd judge module Predicated execution fixes testing process, executing event pair successively
The all integrated intensity event execution function answered, then notifies the 4th judge module execution to judge operation;
4th performing module, for when described 3rd judge module judges not execute fixing testing process, according to described random
Probability randomly chooses an integrated intensity event execution function and is executed, and then notifies the 4th judge module execution to judge behaviour
Make;
4th judge module, for judging whether integrated intensity event execution function returns failure, if so, performing environment recovers letter
The 5th judge module is notified to execute judgement after number, if it is not, described executed number of times being added 1 and notifying the first judge module to be sentenced
Disconnected operation;
Described executed number of times, for judging whether environment recovery function runs succeeded, is if so, added by the 5th judge module
1 and notify the first judge module carry out judge operation, if it is not, then notifying the 5th performing module to execute operation;
5th performing module, for executing described end function.
2. a kind of method of testing of the integrated intensity of embedded software is it is characterised in that include step:
Call the configuration parameter of configuration script receives input, described configuration parameter include total degree, fixing flow process, random flow process,
Random chance;
Call configuration script, according to test case flow process, the event configuration needing execution is become test script;
Test script is executed according to configuration parameter and integrated strength test function;Described integrated strength test function includes starting letter
Number, statistical result function, integrated intensity event execution function, environment recovery function and end function;Described " according to configuration parameter
Execute test script with integrated strength test function " specifically include step:
S1, the described beginning function of execution, subsequently into step s2;
S2, judging that whether executed number of times is more than or equal to described total degree, if so, then entering step s10, if it is not, then entering step
Rapid s3;
S3, judge whether button select exit test, if so, then enter step s10, if it is not, then enter step s4;
S4, execution statistical result function, subsequently into step s5;
S5, judge whether to execute fixing testing process, if so, enter step s6, if it is not, entering step s7;
The corresponding all integrated intensity events of s6, successively execution event execute function, subsequently into step s8;
S7, randomly choose an integrated intensity event execution function according to described random chance and executed, subsequently into step
s8;
S8, judge whether integrated intensity event execution function returns failure, if so, after performing environment reconstruction, enter step
S9, if it is not, described executed number of times is added 1 and return to step s2;
S9, judge whether environment recovery function runs succeeded, if so, described executed number of times is added 1 and return to step s2, if
No, then enter step s10;
S10, the described end function of execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310562190.1A CN103544108B (en) | 2013-11-12 | 2013-11-12 | System and method for testing embedded software integration strength |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310562190.1A CN103544108B (en) | 2013-11-12 | 2013-11-12 | System and method for testing embedded software integration strength |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103544108A CN103544108A (en) | 2014-01-29 |
CN103544108B true CN103544108B (en) | 2017-01-18 |
Family
ID=49967580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310562190.1A Active CN103544108B (en) | 2013-11-12 | 2013-11-12 | System and method for testing embedded software integration strength |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103544108B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068936B (en) * | 2015-09-18 | 2018-06-05 | 北京金山安全软件有限公司 | Method and device for testing stability of software |
CN105446876B (en) * | 2015-11-03 | 2020-12-22 | 北京京东尚科信息技术有限公司 | Automatic testing method, device, system, electronic equipment and readable storage medium |
CN117012244A (en) * | 2022-04-29 | 2023-11-07 | 长鑫存储技术有限公司 | Signal control circuit, signal control method and semiconductor memory |
CN117667748B (en) * | 2024-01-31 | 2024-04-09 | 成都翌创微电子有限公司 | Chip system level verification method based on composite framework |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7346891B2 (en) * | 2002-07-05 | 2008-03-18 | Eka Systems Inc. | System and method for automating generation of an automated sensor network |
US7484226B2 (en) * | 2005-03-10 | 2009-01-27 | International Business Machines Corporation | Web client endpoint emulator |
CN101576846A (en) * | 2008-05-09 | 2009-11-11 | 北京世纪拓远软件科技发展有限公司 | Method for testing software performance |
CN101968770A (en) * | 2010-11-01 | 2011-02-09 | 北京航空航天大学 | Reusable embedded software testing and developing method and system |
CN102521120B (en) * | 2011-11-16 | 2014-11-12 | 中国民航信息网络股份有限公司 | Software automation test system and method |
CN102799508A (en) * | 2012-07-09 | 2012-11-28 | 深圳市共进电子股份有限公司 | Automatic test system and method |
CN102955739B (en) * | 2012-11-21 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | A kind of method improving performance test script reuse rate |
CN103077114B (en) * | 2012-12-27 | 2016-02-17 | 武汉烽火富华电气有限责任公司 | Based on the automated testing method of temperature measuring equipment communication protocol |
CN103336740B (en) * | 2013-06-28 | 2016-12-28 | 广东电网公司电力科学研究院 | The operating system integrated test facility of electric power secondary system and device |
-
2013
- 2013-11-12 CN CN201310562190.1A patent/CN103544108B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103544108A (en) | 2014-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103544108B (en) | System and method for testing embedded software integration strength | |
CN107562635A (en) | Embedded software test accessory system | |
CN103559081B (en) | Recommendation method, device and the mobile terminal of working mode of mobile terminal | |
CN102110053B (en) | Random testing method based on Android | |
CN102967815A (en) | Chip testing method, automated testing equipment and system | |
CN104488203A (en) | System and method for execution of user-defined instrument command sequences using multiple hardware and analysis modules | |
CN107018523A (en) | WIFI module method of testing and device | |
CN105511951B (en) | A kind of method for scheduling task and system of WIFI performance automation test platform | |
CN112433819A (en) | Heterogeneous cluster scheduling simulation method and device, computer equipment and storage medium | |
CN101272422A (en) | Mobile phone automatized test method | |
CN106502904A (en) | A kind of UI automated testing methods of intelligent appliance equipment application | |
CN103702401B (en) | Mobile network's power-economizing method based on user behavior analysis | |
CN201522707U (en) | Software and hardware cooperated simulation verification system based on FPGA | |
CN108776604A (en) | The execution method and system of goal task | |
CN108595312A (en) | A kind of automatic performance method and device of modelling customer behavior | |
CN105049374B (en) | Dispatching method, device and the mobile terminal of downloading task | |
CN109932588A (en) | A kind of Aerial Electronic Equipment validation test engine | |
CN110263459B (en) | UVM verification acceleration method based on test sequence analysis | |
CN106896956B (en) | The implementation method of multi-point touch under one kind " road " system | |
CN101727326A (en) | Implementation method for graphic user interface | |
CN107436839A (en) | Process load acquisition methods, electric terminal and computer-readable recording medium | |
CN108267683A (en) | The method and device that a kind of FPGA tests oneself | |
CN113254379B (en) | Software definition method of software definition equipment and software definition equipment | |
CN101916221A (en) | Method and system for performing unit testing on equipment | |
CN106874191A (en) | Intelligence database performs method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |