CN103559114A - Embedded module driving functional testing system and method - Google Patents

Embedded module driving functional testing system and method Download PDF

Info

Publication number
CN103559114A
CN103559114A CN201310561572.2A CN201310561572A CN103559114A CN 103559114 A CN103559114 A CN 103559114A CN 201310561572 A CN201310561572 A CN 201310561572A CN 103559114 A CN103559114 A CN 103559114A
Authority
CN
China
Prior art keywords
test
function
module
case
api
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310561572.2A
Other languages
Chinese (zh)
Other versions
CN103559114B (en
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.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial 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 Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201310561572.2A priority Critical patent/CN103559114B/en
Publication of CN103559114A publication Critical patent/CN103559114A/en
Application granted granted Critical
Publication of CN103559114B publication Critical patent/CN103559114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an embedded module driving functional testing method. The method comprises the steps as follows: calling a PC end test tool to perform script configuration to configure API to be tested and use cases; calling a terminal driving functional test function to execute a configured script; in the process that the terminal driving functional test function executes the script, the execution logic or a test result of each use case is sent to the PC terminal test tool; displaying and storing the execution logic or test result of each use case by the PC end test tool. The invention further discloses an embedded module driving functional test system. According to the invention, configuration can be performed in the script according to the demand of test turns and the API to be tested and the use cases, and the configured script can be automatically executed in the terminal driving functional test function, so that the test personnel's working load is reduced, the working efficiency is improved, the terminal driving functional test function can automatically perform comparison and judgment on the test results, and manual verification errors are avoided.

Description

Flush bonding module drives function test system and method
Technical field
The present invention relates to the method for testing of embedded system, relate in particular 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, generally to export and rreturn value for each drives trial function of Interface design, inlet porting parameter, Execution driven interface, demonstration by writing separately the test procedure of this module, finally by manual confirmation correctness.But if test time need to first be carried out other interface, need manually to carry out successively a plurality of interfaces, 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, for calling PC end testing tool, carry out script configuration, described script configuration comprises the tested API of configuration and configuration use-case; Execution module, for calling the script of the next complete configuration of final drive functional test function; Feedback module, is sent to memory module for carrying out 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 of described feedback module transmission; Display module, for showing actuating logic or the test result of each use-case.
Wherein, described final drive functional test function comprises that API starts test execution function, API carries out function and use-case is carried out function; Described execution module specifically comprises:
The first execution module, for resolving described script to obtain tested API, use-case numbering, then notifies the second execution module to operate;
The second execution module, starts test execution function for carrying out described API, then notifies the 3rd execution module to operate;
The 3rd execution module, carries out function for carrying out described API, then notifies the 4th execution module to operate;
The 4th execution module, carries out function for carrying out use-case, then notifies the 5th execution module to operate;
The 5th execution module, for judging use-case type, then notifies the 6th execution module to operate;
The 6th execution module, for according to use-case type initialization test environment, then notifies the 7th execution module to operate;
The 7th execution module, for carrying out tested API, then notifies the 8th execution module to operate;
The 8th execution module, for test result is judged, then notifies the 9th execution module to operate;
The 9th execution module, for outputing test result and then notifying the first execution module to operate.
Another technical solution used in the present invention is:
Provide a kind of flush bonding module to drive function test method, comprise step: call PC end testing tool and carry out script configuration, to configure tested API and use-case; Call the script that final drive functional test function carrys out complete configuration; At described final drive functional test function, carry out in scenario process the actuating logic of each use-case or test result are sent to PC end testing tool; PC end testing tool shows and stores the actuating logic of described each use-case or test result.
Wherein, described final drive functional test function comprises that API starts test execution function, API carries out function and use-case is carried out function, and described " calling the script that final drive functional test function carrys out complete configuration " specifically comprises step:
S1, resolve described script to obtain tested API, use-case numbering, then enter step S2;
S2, carry out described API and start test execution function, then enter step S3;
S3, carry out described API and carry out function, then enter step S4;
S4, execution use-case are carried out function, then enter step S5;
S5, judgement use-case type, then enter step S6;
S6, according to use-case type initialization test environment, then enter step S7;
S7, carry out tested API, then enter step S8;
S8, test result is judged, then enter step S9;
S9, output test result and return to step S1.
Wherein, in described step S5, the method for judgement use-case type comprises manually, automatically, manually.
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, can and need API, the use-case of test to be configured in script according to the needs of test round, the script having configured can automatically perform in final drive functional test function, alleviated test man's workload and can increase work efficiency, and this final drive functional test function can be as required carries out automatically relatively and judges test result, has avoided desk checking to make 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, being realized object and effect, below in conjunction with embodiment and coordinate accompanying drawing to be explained in detail.
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, carries out script configuration for calling PC end testing tool, and described script configuration comprises the tested API of configuration and configuration use-case.
Execution module 20, for calling the script of the next complete configuration of final drive functional test function.
Feedback module 30, is sent to memory module 40 for carrying out 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 of described feedback module 30 transmissions.
Display module 50, for showing actuating logic or the test result of each use-case.
Wherein, described final drive functional test function comprises that API starts test execution function, API carries out function and use-case is carried out 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.
The first execution module is used for resolving described script to obtain tested API, use-case numbering, then notifies the second execution module to operate.
The second execution module is used for carrying out described API and starts test execution function, then notifies the 3rd execution module to operate.
The 3rd execution module is used for carrying out described API and carries out function, then notifies the 4th execution module to operate.
The 4th execution module is used for carrying out use-case and carries out function, then notifies the 5th execution module to operate.
The 5th execution module is used for judging use-case type, then notifies the 6th execution module to operate.
The 6th execution module, for according to use-case type initialization test environment, then notifies the 7th execution module to operate.
The 7th execution module is used for carrying out tested API, then notifies the 8th execution module to operate.
The 8th execution module, for test result is judged, then notifies the 9th execution module to operate.
The 9th execution module is used for outputing test result and then notifies the first execution module to operate.
This flush bonding module drives function test system compared with prior art, configuration module can and need API, the use-case of test to carry out script configuration according to the needs of test round, the script having configured can automatically perform in final drive functional test function, alleviated test man's workload and can increase work efficiency, and this final drive functional test function can be as required carries out automatically relatively and judges test result, has avoided desk checking to make 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 end testing tool and carry out script configuration, to configure tested API and use-case;
Step S2, call the script that final drive functional test function carrys out complete configuration;
Step S3, at final drive functional test function, carry out in scenario process the actuating logic of each use-case or test result are sent to PC end testing tool;
Step S4, PC end testing tool shows and stores the actuating logic of each use-case or test result.
Wherein, in step S3, described actuating logic comprises log information, test data information of each step of test case etc., 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 that API starts test execution function, API carries out function and use-case is carried out function.Wherein, described API starts test execution function for realizing the execution function that finds this API according to the tested API name getting; Described API carries out function and finds the use-case of this use-case to carry out function for realizing according to use-case numbering; Described use-case is carried out function for according to use-case specification, realizes the use-case of concrete use case numbering and carries out preparation, comprises API entry data, the test result rreturn value of this use-case, and returns to 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 to obtain tested API, use-case numbering, then enter step S202;
S202, carry out described API and start test execution function, then enter step S203;
S203, carry out described API and carry out function, then enter step S204;
S204, execution use-case are carried out function, then enter step S205;
S205, judgement use-case type, then enter step S206;
S206, according to use-case type initialization test environment, then enter step S207;
S207, carry out tested API, then enter step S208;
S208, test result is judged, then enter step S209;
S209, output test result and return to step S201.
Wherein, in described step S205, the method for judgement use-case type comprises manually, automatically, artificial, by described use-case, carry out function return value and judge, each use-case execution function will mark use-case type.Different use-case type corresponding to determination methods, manual: test execution need to be that manual operation completes by people, test result program completes automatically, and for example magnetic card module Card Reader API test need to manually complete and swipe the card, more relatively whether data on magnetic card is correct automatically by program; Automatic: test execution and test result complete automatically by program; Artificial: test execution and test result need manual operation, for example the camera module API that takes pictures, need artificial selection reference object, more artificial comparison film judges whether correctly.
Wherein, in described step S208, the judgement content of test result is comprised: the function that judgement API rreturn value, outlet parameter, API realize after carrying out etc.For example, the Modem API that dials, the API that dials under home will return to 0 expression dial-up success after carrying out, 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 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 modules of shooting, and the Pinpad module of take below further illustrates embodiments of the present invention as example.
Pinpad module has comprised download key, has downloaded card number, has calculated MAC, has inputted 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 end testing tool carries out script configuration, makes automatic test script, manual test script; Automatically in test script, fill in all API of Pinpad module, the use-case numbering that each API carries out filled in for 1 (1 represents all automatic use-case numberings of this API); In manual test script, fill in all API of Pinpad module, the use-case numbering that each API carries out filled in for 2 (2 represent all manual use-case numberings of this API); Script completes after configuration integrate test script, by PC, holds testing tool that script is delivered to and in equipment under test, called final drive functional test function and carry out; Log information in implementation, test data and test result are sent to PC end testing tool and show in real time, and after test finishes, tester derives test result, generates test report;
2, module second is taken turns test, and by test principle, second takes turns still and will carry out module DCO, at this moment directly uses the 1st test script of taking turns generation to carry out test;
3, the later test of module third round, by test principle third round, start, 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 fast problem reproduction or defect checking.
The test case of automatic type, can also be after work or the non-working time such as weekend carry out test execution, improved testing efficiency, and saved tester's execution time.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; 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 (5)

1. flush bonding module drives a function test system, it is characterized in that, comprising:
Configuration module, carries out script configuration for calling PC end testing tool, and described script configuration comprises the tested API of configuration and configuration use-case;
Execution module, for calling the script of the next complete configuration of final drive functional test function;
Feedback module, is sent to memory module for carrying out 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 of described feedback module transmission;
Display module, for showing actuating logic or the test result of each use-case.
2. flush bonding module according to claim 1 drives function test system, it is characterized in that: described final drive functional test function comprises that API starts test execution function, API carries out function and use-case is carried out function;
Described execution module specifically comprises:
The first execution module, for resolving described script to obtain tested API, use-case numbering, then notifies the second execution module to operate;
The second execution module, starts test execution function for carrying out described API, then notifies the 3rd execution module to operate;
The 3rd execution module, carries out function for carrying out described API, then notifies the 4th execution module to operate;
The 4th execution module, carries out function for carrying out use-case, then notifies the 5th execution module to operate;
The 5th execution module, for judging use-case type, then notifies the 6th execution module to operate;
The 6th execution module, for according to use-case type initialization test environment, then notifies the 7th execution module to operate;
The 7th execution module, for carrying out tested API, then notifies the 8th execution module to operate;
The 8th execution module, for test result is judged, then notifies the 9th execution module to operate;
The 9th execution module, for outputing test result and then notifying the first execution module to operate.
3. flush bonding module drives a function test method, it is characterized in that, comprises step:
Call PC end testing tool and carry out script configuration, to configure tested API and use-case;
Call the script that final drive functional test function carrys out complete configuration;
At described final drive functional test function, carry out in scenario process the actuating logic of each use-case or test result are sent to PC end testing tool;
PC end testing tool shows and stores the actuating logic of described each use-case or test result.
4. flush bonding module according to claim 3 drives function test method, it is characterized in that: described final drive functional test function comprises that API starts test execution function, API carries out function and use-case is carried out function, and described " calling the script that final drive functional test function carrys out complete configuration " specifically comprises step:
S1, resolve described script to obtain tested API, use-case numbering, then enter step S2;
S2, carry out described API and start test execution function, then enter step S3;
S3, carry out described API and carry out function, then enter step S4;
S4, execution use-case are carried out function, then enter step S5;
S5, judgement use-case type, then enter step S6;
S6, according to use-case type initialization test environment, then enter step S7;
S7, carry out tested API, then enter step S8;
S8, test result is judged, then enter step S9;
S9, output test result and return to step S1.
5. flush bonding module according to claim 4 drives the scripting collocation method of functional test, it is characterized in that: in described step S5, the method for judgement use-case type comprises manually, automatically, manually.
CN201310561572.2A 2013-11-12 2013-11-12 Flush bonding module drives function test system and method Active CN103559114B (en)

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 true CN103559114A (en) 2014-02-05
CN103559114B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199779A (en) * 2014-09-24 2014-12-10 福建联迪商用设备有限公司 Combined testing method and system for embedded modules
CN105487982A (en) * 2015-12-22 2016-04-13 艾体威尔电子技术(北京)有限公司 API testing method 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
CN110460474A (en) * 2019-08-14 2019-11-15 深圳市同维通信技术有限公司 The configuration method and device of functions of the equipments, storage medium, electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
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
US20080270840A1 (en) * 2007-04-25 2008-10-30 Samsung Electronics Co., Ltd. Device and method for testing embedded software using emulator
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
US20110067040A1 (en) * 2008-06-10 2011-03-17 Panasonic Corporation Api evaluation system in embedded device
CN102214133A (en) * 2011-07-22 2011-10-12 苏州工业园区七星电子有限公司 System for quickly diagnosing and testing computer hardware

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
US20080270840A1 (en) * 2007-04-25 2008-10-30 Samsung Electronics Co., Ltd. Device and method for testing embedded software using emulator
TW200941211A (en) * 2008-03-28 2009-10-01 Hon Hai Prec Ind Co Ltd System and method for tesing apparatus with embeded operating system
US20110067040A1 (en) * 2008-06-10 2011-03-17 Panasonic Corporation Api evaluation system in embedded device
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
CN102214133A (en) * 2011-07-22 2011-10-12 苏州工业园区七星电子有限公司 System for quickly diagnosing and testing computer hardware

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199779A (en) * 2014-09-24 2014-12-10 福建联迪商用设备有限公司 Combined testing method and system for embedded modules
CN104199779B (en) * 2014-09-24 2017-08-01 福建联迪商用设备有限公司 A kind of method and system of flush bonding module combined test
CN105487982A (en) * 2015-12-22 2016-04-13 艾体威尔电子技术(北京)有限公司 API testing method 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
CN110460474A (en) * 2019-08-14 2019-11-15 深圳市同维通信技术有限公司 The configuration method and device of functions of the equipments, storage medium, electronic equipment

Also Published As

Publication number Publication date
CN103559114B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN103559114B (en) Flush bonding module drives function test system and method
CN109302522B (en) Test method, test device, computer system, and computer medium
CN103744784B (en) Mobile phone application automated testing method and system
CN105302732B (en) A kind of automatic test approach and device of mobile terminal
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
CN102750301A (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN204759403U (en) System based on data pass realization equipment internal module thoroughly and upgrade
CN104978258A (en) Software automation test method and system
CN106776294A (en) Android mobile phone automated testing method and system
CN110704323B (en) Automatic data testing method and device based on rail transit line data
CN105468524A (en) Automatic test method and system of WEB interface
CN110134612A (en) UI test data generating method, device, equipment and readable storage medium storing program for executing
CN104808516A (en) Electrical equipment operation control method and device
CN107357721B (en) Method and device for testing system
CN102799510B (en) PLC simulator based on reconfigurable components
CN106528272A (en) Data processing apparatus and method, and terminal
CN109194535A (en) A kind of terminal test system and method
CN104320415B (en) A kind of substation equipment kinematic insert formula specification analytic method
CN104834586B (en) Android interface automation test method, apparatus and system
CN108073516A (en) One kind is towards airborne embedded software data-driven testing engine design method
CN110286943B (en) Multi-platform operation method and device for H5 page
CN107766240A (en) UEFI Shell internal command automatic running detection methods and system
CN107453959B (en) Network card management method and device
CN111124790A (en) Generation system of reusable simulation interface model

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