CN103559114B - Flush bonding module drives function test system and method - Google Patents
Flush bonding module drives function test system and method Download PDFInfo
- Publication number
- CN103559114B CN103559114B CN201310561572.2A CN201310561572A CN103559114B CN 103559114 B CN103559114 B CN 103559114B CN 201310561572 A CN201310561572 A CN 201310561572A CN 103559114 B CN103559114 B CN 103559114B
- Authority
- CN
- China
- Prior art keywords
- test
- function
- case
- api
- execution
- 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 kind of flush bonding module and drive function test method, comprise step: call PC and hold testing tool to carry out script configuration, to configure tested API and use-case; Call the script that final drive functional test function carrys out complete configuration; Perform in scenario process at final drive functional test function and the actuating logic of each use-case or test result are sent to PC end testing tool; PC holds testing tool show the actuating logic of each use-case or test result and store.The invention also discloses a kind of flush bonding module and drive function test system.The present invention according to the needs of test round and can need the API of test, use-case is configured in script, the script configured can automatically perform in final drive functional test function, alleviate the workload of test man and can increase work efficiency, and this final drive functional test function can carry out automatically relatively and judge test result, avoids desk checking and makes mistakes.
Description
Technical field
The present invention relates to the method for testing of embedded system, particularly relate to a kind of flush bonding module and drive function test system and method.
Background technology
Conventional module drives the method for testing of function, be generally test procedure by writing separately this module being each driving Interface design trial function, inlet porting parameter, performing and drive interface, display outlet and rreturn value, finally by manual confirmation correctness.If but need first to perform other interface during test, then need manually to perform multiple interface successively, testing efficiency is low, and desk checking easily makes mistakes.
Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of flush bonding module with autorun and drives function test system and method.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is to provide a kind of flush bonding module and drives function test system, comprise: configuration module, hold testing tool to carry out script configuration for calling PC, described script configuration comprises the tested API of configuration and configuration use-case; Execution module, carrys out the script of complete configuration for calling final drive functional test function; Feedback module, is sent to memory module for performing in scenario process at described final drive functional test function by the actuating logic of each use-case or test result; Memory module, for storing actuating logic or the test result of each use-case that described feedback module sends; Display module, for showing actuating logic or the test result of each use-case.
Wherein, described final drive functional test function comprises API startup test execution function, API performs function and use-case performs function; Described execution module specifically comprises:
First execution module, for resolving described script to obtain tested API, use-case numbering, then notifies that the second execution module operates;
Second execution module, starting test execution function for performing described API, then notifying that the 3rd execution module operates;
3rd execution module, performing function for performing described API, then notifying that the 4th execution module operates;
4th execution module, performing function for performing use-case, then notifying that the 5th execution module operates;
5th execution module, for judging use-case type, then notifies that the 6th execution module operates;
6th execution module, for according to use-case type initialization test environment, then notifies that the 7th execution module operates;
7th execution module, for performing tested API, then notifies that the 8th execution module operates;
8th execution module, for judging test result, then notifies that the 9th execution module operates;
9th execution module, for outputing test result and then notifying that the first execution module operates.
Another technical solution used in the present invention is:
There is provided a kind of flush bonding module to drive function test method, comprise step: call PC and hold testing tool to carry out script configuration, to configure tested API and use-case; Call the script that final drive functional test function carrys out complete configuration; Perform in scenario process at described final drive functional test function and the actuating logic of each use-case or test result are sent to PC end testing tool; PC holds testing tool show the actuating logic of each use-case described or test result and store.
Wherein, described final drive functional test function comprises API and starts test execution function, API execution function and use-case execution function, and described " calling the script that final drive functional test function carrys out complete configuration " specifically comprises step:
S1, resolve described script with obtain tested API, use-case numbering, then enter step S2;
S2, perform described API and start test execution function, then enter step S3;
S3, perform described API perform function, then enter step S4;
S4, execution use-case perform function, then enter step S5;
S5, judge use-case type, then enter step S6;
S6, according to use-case type initialization test environment, then enter step S7;
S7, perform tested API, then enter step S8;
S8, test result to be judged, then enter step S9;
S9, output test result and return step S1.
Wherein, in described step S5, judge that the method for use-case type comprises manually, automatically, artificial.
The invention has the beneficial effects as follows: compared with prior art, a kind of flush bonding module of the present invention drives function test system and method, the API that can test according to the needs of test round and needs, use-case are configured in script, the script configured can automatically perform in final drive functional test function, alleviate the workload of test man and can increase work efficiency, and this final drive functional test function can carry out automatically relatively and judge test result as required, avoids desk checking and makes mistakes.
Accompanying drawing explanation
Fig. 1 is the structured flowchart that in an embodiment of the present invention, a kind of flush bonding module drives function test system;
Fig. 2 is the flowchart that in an embodiment of the present invention, a kind of flush bonding module drives function test method;
Fig. 3 is the concrete flowchart of step S2 in Fig. 2.
Main element symbol description:
10, configuration module; 20, execution module; 30, feedback module; 40, memory module; 50, display module.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, realized object and effect, accompanying drawing is coordinated to be explained in detail below in conjunction with embodiment.
Refer to Fig. 1, Fig. 1 is that flush bonding module drives function test system, and this flush bonding module drives function test system to comprise configuration module 10, execution module 20, feedback module 30, memory module 40 and display module 50.
Configuration module 10, hold testing tool to carry out script configuration for calling PC, described script configuration comprises the tested API of configuration and configuration use-case.
Execution module 20, carrys out the script of complete configuration for calling final drive functional test function.
Feedback module 30, is sent to memory module 40 for performing in scenario process at described final drive functional test function by the actuating logic of each use-case or test result.
Memory module 40, for storing actuating logic or the test result of each use-case that described feedback module 30 sends.
Display module 50, for showing actuating logic or the test result of each use-case.
Wherein, described final drive functional test function comprises API startup test execution function, API performs function and use-case performs function.Described execution module 20 comprises the first execution module, the second execution module, the 3rd execution module, the 4th execution module, the 5th execution module, the 6th execution module, the 7th execution module, the 8th execution module, the 9th execution module.
First execution module, for resolving described script to obtain tested API, use-case numbering, then notifies that the second execution module operates.
Second execution module starts test execution function for performing described API, then notifies that the 3rd execution module operates.
3rd execution module performs function for performing described API, then notifies that the 4th execution module operates.
4th execution module performs function for performing use-case, then notifies that the 5th execution module operates.
5th execution module, for judging use-case type, then notifies that the 6th execution module operates.
6th execution module is used for according to use-case type initialization test environment, then notifies that the 7th execution module operates.
7th execution module, for performing tested API, then notifies that the 8th execution module operates.
8th execution module is used for judging test result, then notifies that the 9th execution module operates.
9th execution module is used for outputing test result and then notifies that the first execution module operates.
This flush bonding module drives function test system compared with prior art, configuration module according to the needs of test round and can need the API of test, use-case carries out script configuration, the script configured can automatically perform in final drive functional test function, alleviate the workload of test man and can increase work efficiency, and this final drive functional test function can carry out automatically relatively and judge test result as required, avoids desk checking and makes mistakes.
Refer to Fig. 2, Fig. 2 is the flowchart that in an embodiment of the present invention, a kind of flush bonding module drives function test method.This confession flush bonding module drives the scripting collocation method of functional test to comprise step:
Step S1, call PC hold testing tool carry out script configuration, to configure tested API and use-case;
Step S2, call final drive functional test function and carry out the script of complete configuration;
Step S3, to perform in scenario process at final drive functional test function and the actuating logic of each use-case or test result are sent to PC and hold testing tool;
Step S4, PC hold testing tool show the actuating logic of each use-case or test result and store.
Wherein, in step s3, described actuating logic comprises the log information, test data information etc. of each step of test case, described test result comprise test successfully, failure, failure cause, tested API execution time etc.
In the present embodiment, described final drive functional test function comprises API startup test execution function, API performs function and use-case performs function.Wherein, described API starts test execution function for realizing finding according to the tested API name got the execution function of this API; Described API performs function and finds the use-case of this use-case to perform function for realizing according to use-case numbering; Described use-case performs function and is used for illustrating according to case designing, and the use-case realizing concrete use case numbering performs preparation, comprises the API entry data of this use-case, test result rreturn value, and returns use-case type.
Refer to Fig. 3, Fig. 3 is the concrete flowchart of step S2 in Fig. 2.Described step S2 specifically comprises step:
S201, resolve described script with obtain tested API, use-case numbering, then enter step S202;
S202, perform described API and start test execution function, then enter step S203;
S203, perform described API perform function, then enter step S204;
S204, execution use-case perform function, then enter step S205;
S205, judge use-case type, then enter step S206;
S206, according to use-case type initialization test environment, then enter step S207;
S207, perform tested API, then enter step S208;
S208, test result to be judged, then enter step S209;
S209, output test result and return step S201.
Wherein, in described step S205, judge that the method for use-case type comprises manually, automatically, manually, perform function return value judge by described use-case, each use-case performs function will mark use-case type.The use-case type that different determination methods is corresponding different, manual: test execution needs by people for manual operation completes, test result program completes automatically, and such as magnetic card module Card Reader API test needs manually to complete to swipe the card, more whether automatically compare data on magnetic card by program correct; Automatic: test execution and test result are completed automatically by program; Artificial: test execution and test result need manual operation, such as camera module is taken pictures API, needs artificial selection reference object, more artificial comparison film carries out judging whether correct.
Wherein, in described step S208, the judgement content of test result is comprised: judge the function etc. realized after API rreturn value, outlet parameter, API perform.Such as, Modem dials API, will return 0 expression dial-up success after the API that dials in normal circumstances performs, and by carrying out exchanges data result with server, judges the whether genuine success of dialing.
In real work, flush bonding module drives function test system to be used for the driving functional test of file system, parameter management, Pinpad, IC-card, radio-frequency card, magnetic card, printing device, Modem communication apparatus, wireless telecommunications system, Ethernet, WIFI, GPS, bluetooth, charactron, the first-class various driver module of shooting, illustrates embodiments of the present invention further below for Pinpad module.
Pinpad module contains and downloads key, downloads card number, calculates MAC, inputs the function API such as password, during actual test, has three kinds of situations:
1, module first run test, carries out module DCO, and according to this module testing use-case type, PC holds testing tool to carry out script configuration, namely makes automatic test script, manual test script; Fill in all API of Pinpad module in automatic test script, the use-case numbering that each API performs filled in for 1 (1 represents all automatic use-case numberings of this API); Fill in all API of Pinpad module in manual test script, the use-case numbering that each API performs filled in for 2 (2 represent all manual use-case numberings of this API); Script completes configuration and generates after test script, holds testing tool to be delivered in equipment under test by script to call final drive functional test function to perform by PC; Log information in implementation, test data and test result are sent to PC and hold testing tool to show in real time, and after test terminates, test result derives by tester, generates test report;
2, module second takes turns test, and by test principle, second takes turns and still will carry out module DCO, at this moment directly uses the 1st test script of taking turns generation to carry out performing test;
3, the test that module third round is later, start by test principle third round, no problem API can not carry out DCO, at this moment test script is configured to: API:API name out of question+a certain use-case numbering (property called test), problematic API+0 (0 represents all automatic use-case numberings of this API), then carries out test execution; When reproduction problem or defect checking, test script is configured to the problematic use-case numbering of problematic API+, can carry out problem re-emerges or defect checking fast.
The test case of automatic type, can also after work or the non-working time such as weekend carry out test execution, improve testing efficiency, and saved tester's execution time.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (3)
1. flush bonding module drives a function test system, it is characterized in that, comprising:
Configuration module, hold testing tool to carry out script configuration for calling PC, described script configuration comprises the tested API of configuration and configuration use-case;
Execution module, carrys out the script of complete configuration for calling final drive functional test function, described final drive functional test function comprises API and starts test execution function, API execution function and use-case execution function;
Feedback module, is sent to memory module for performing in scenario process at described final drive functional test function by the actuating logic of each use-case or test result;
Memory module, for storing actuating logic or the test result of each use-case that described feedback module sends;
Display module, for showing actuating logic or the test result of each use-case;
Described execution module specifically comprises:
First execution module, for resolving described script to obtain tested API, use-case numbering, then notifies that the second execution module operates;
Second execution module, starting test execution function for performing described API, then notifying that the 3rd execution module operates;
3rd execution module, performing function for performing described API, then notifying that the 4th execution module operates;
4th execution module, performing function for performing use-case, then notifying that the 5th execution module operates;
5th execution module, for judging use-case type, then notifies that the 6th execution module operates;
6th execution module, for according to use-case type initialization test environment, then notifies that the 7th execution module operates;
7th execution module, for performing tested API, then notifies that the 8th execution module operates;
8th execution module, for judging test result, then notifies that the 9th execution module operates;
9th execution module, for outputing test result and then notifying that the first execution module operates.
2. flush bonding module drives a function test method, it is characterized in that, comprises step:
Calling PC holds testing tool to carry out script configuration, to configure tested API and use-case;
Call the script that final drive functional test function carrys out complete configuration, described final drive functional test function comprises API and starts test execution function, API execution function and use-case execution function;
Particularly, the script calling the next complete configuration of final drive functional test function comprises step:
S1, resolve described script with obtain tested API, use-case numbering, then enter step S2;
S2, perform described API and start test execution function, then enter step S3;
S3, perform described API perform function, then enter step S4;
S4, execution use-case perform function, then enter step S5;
S5, judge use-case type, then enter step S6;
S6, according to use-case type initialization test environment, then enter step S7;
S7, perform tested API, then enter step S8;
S8, test result to be judged, then enter step S9;
S9, output test result and return step S1;
Perform in scenario process at described final drive functional test function and the actuating logic of each use-case or test result are sent to PC end testing tool;
PC holds testing tool show the actuating logic of each use-case described or test result and store.
3. flush bonding module according to claim 2 drives function test method, it is characterized in that: in described step S5, judges that the method for use-case type comprises automatically, manually.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310561572.2A CN103559114B (en) | 2013-11-12 | 2013-11-12 | Flush bonding module drives function test system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310561572.2A CN103559114B (en) | 2013-11-12 | 2013-11-12 | Flush bonding module drives function test system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103559114A CN103559114A (en) | 2014-02-05 |
CN103559114B true CN103559114B (en) | 2015-08-19 |
Family
ID=50013365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310561572.2A Active CN103559114B (en) | 2013-11-12 | 2013-11-12 | Flush bonding module drives function test system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103559114B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199779B (en) * | 2014-09-24 | 2017-08-01 | 福建联迪商用设备有限公司 | A kind of method and system of flush bonding module combined test |
CN105487982B (en) * | 2015-12-22 | 2018-01-16 | 艾体威尔电子技术(北京)有限公司 | API method of testings and system |
CN105740147A (en) * | 2016-01-29 | 2016-07-06 | 四川长虹电器股份有限公司 | Method for automatically testing interfaces of intelligent terminals |
CN106411637A (en) * | 2016-09-13 | 2017-02-15 | 四川长虹电器股份有限公司 | Internet-of-things device scenario testing method |
CN108462614A (en) * | 2018-01-09 | 2018-08-28 | 深圳市亿道数码技术有限公司 | Automatization test system |
CN109029645A (en) * | 2018-08-15 | 2018-12-18 | 金卡智能集团股份有限公司 | A kind of gas meter function test method and device |
CN110460474B (en) * | 2019-08-14 | 2022-12-23 | 深圳市同维通信技术有限公司 | Method and device for configuring device functions, storage medium and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1841340A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method and system for testing drive software |
CN1932776A (en) * | 2006-09-29 | 2007-03-21 | 上海科泰世纪科技有限公司 | Automatic operating method for interface test in embedded operating system |
TW200941211A (en) * | 2008-03-28 | 2009-10-01 | Hon Hai Prec Ind Co Ltd | System and method for tesing apparatus with embeded operating system |
CN101571830A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Automatic closed loop test system of real-time embedded software |
CN101833498A (en) * | 2009-07-31 | 2010-09-15 | 北京伟晨豪嘉科技有限责任公司 | Automatic detection system of embedded type system based on testing script technique |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101019210B1 (en) * | 2007-04-25 | 2011-03-04 | 이화여자대학교 산학협력단 | Test Device of Embedded Software using the emulator and Method thereof |
JP5337155B2 (en) * | 2008-06-10 | 2013-11-06 | パナソニック株式会社 | API evaluation system for embedded devices |
CN102214133A (en) * | 2011-07-22 | 2011-10-12 | 苏州工业园区七星电子有限公司 | System for quickly diagnosing and testing computer hardware |
-
2013
- 2013-11-12 CN CN201310561572.2A patent/CN103559114B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1841340A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method and system for testing drive software |
CN1932776A (en) * | 2006-09-29 | 2007-03-21 | 上海科泰世纪科技有限公司 | Automatic operating method for interface test in embedded operating system |
TW200941211A (en) * | 2008-03-28 | 2009-10-01 | Hon Hai Prec Ind Co Ltd | System and method for tesing apparatus with embeded operating system |
CN101571830A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Automatic closed loop test system of real-time embedded software |
CN101833498A (en) * | 2009-07-31 | 2010-09-15 | 北京伟晨豪嘉科技有限责任公司 | Automatic detection system of embedded type system based on testing script technique |
Also Published As
Publication number | Publication date |
---|---|
CN103559114A (en) | 2014-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103559114B (en) | Flush bonding module drives function test system and method | |
CN106383786B (en) | Interface pressure performance testing method and device and electronic equipment | |
CN107465572A (en) | Intelligent terminal method of testing, apparatus and system | |
CN103455413B (en) | A kind of communicating terminal interaction scenarios test data processing method, device and system | |
CN108897724A (en) | Function schedule determines method and device | |
CN102750301A (en) | Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description | |
CN104978258A (en) | Software automation test method and system | |
CN103812948A (en) | System and method for cloud interactive customization of smart phone operating systems | |
CN104932955A (en) | Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal | |
CN110224854A (en) | Dispositions method, device and the storage medium of block chain node | |
CN105468524A (en) | Automatic test method and system of WEB interface | |
CN106775610A (en) | A kind of electronic equipment starts method and a kind of electronic equipment | |
CN107357721B (en) | Method and device for testing system | |
CN110134612A (en) | UI test data generating method, device, equipment and readable storage medium storing program for executing | |
CN106201605A (en) | FPGA start-up loading FLASH upgrade-system based on FPGA and PowerPC and method | |
CN104320415B (en) | A kind of substation equipment kinematic insert formula specification analytic method | |
CN106161082A (en) | The method to set up of server UUID, system and baseboard management controller | |
CN109491909A (en) | A kind of CPLD refreshes verification method, device, terminal and storage medium | |
CN102541830B (en) | Method and device for generating simulation report in simulation platform | |
CN112118159A (en) | Network testing method, device, equipment and computer readable storage medium | |
CN111124790A (en) | Generation system of reusable simulation interface model | |
CN109086214A (en) | A kind of database write performance test methods, device, terminal and storage medium | |
CN106506805A (en) | Head portrait of contact person generation method and device | |
CN106302011A (en) | Method of testings based on multiterminal and terminal | |
CN105159703A (en) | Factory setting restoration 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 |