CN106980574A - Global function test system and method for testing under a kind of TEE - Google Patents
Global function test system and method for testing under a kind of TEE Download PDFInfo
- Publication number
- CN106980574A CN106980574A CN201710140208.7A CN201710140208A CN106980574A CN 106980574 A CN106980574 A CN 106980574A CN 201710140208 A CN201710140208 A CN 201710140208A CN 106980574 A CN106980574 A CN 106980574A
- Authority
- CN
- China
- Prior art keywords
- thread
- client
- case
- main threads
- tee
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides global function test system and method for testing under a kind of TEE, wherein system, Testsuite ends include service end and client, the service end includes the first UI main threads, network monitoring thread, handle customer network event thread, the client includes the 2nd UI main threads, connect thread, handle service end event thread, use-case execution thread, pass through TCP network services between the service end and client, the present invention's can provide the GP API of standard for TEE products, IFAA API and other extensions API, function test method and means, can be TEE producers on the basis of relatively low time and cost, terminal producer etc. provides testing tool, time and the cost of other authentication tests such as TEE producers GP can be reduced, terminal device can be allowed to test TEE systemic-functions before dispatching from the factory, stability and IFAA dependence tests, shorten product development cycle, improve systematic function and stability.
Description
Technical field
The present invention relates to global function testing tool solution field under TEE, and in particular to global function is tested under a kind of TEE
System and method of testing.
Background technology
1st, mobile Internet eruptive growth
The overall transaction size in China Mobile's payment second quarter in 2015 market is up to 3,474,600,000,000 yuans, China's interconnection
The overall transaction size that net pays market is 3,288,800,000,000 yuans, and mobile payment market season transaction size exceedes mutual first
Networking pays market season transaction size.
2nd, ARM intelligent terminals are popularized
Only the country just has for 2016 is not less than 200 sections of ARM smart mobile phones issues, and quantity is not less than 300,000,000, wherein big portion
Divide and deploy TEE systems;
3rd, TEE systems are gradually popularized
Based on first two, TEE systems progressively turn into standard configuration on mobile intelligent terminal, Global Platform tissues with
And domestic Tai Er laboratories can provide certification and test, but the time is longer and needs high expense;
4th, testing tool product is short of
The domestic or even whole world also comes easy without highly developed handy testing tool, and quickly test TEE systems are every
Function;
The content of the invention
In order to solve above-mentioned not enough defect, the invention provides global function test system and method for testing under a kind of TEE,
The method of the present invention can provide GP API, IFAA API and other extensions API, the functional test side of standard for TEE products
Method and means, can be TEE producers on the basis of relatively low time and cost, and terminal producer etc. provides testing tool, can dropped
The time of low TEE producers GP authentication tests and cost, can allow terminal device to test TEE systemic-functions before dispatching from the factory, stability with
And IFAA dependence test cases, shorten product development cycle, improve systematic function and stability.
The invention provides global function test system under a kind of TEE, including Testsuite ends, the Testsuite ends bag
Service end and client are included, the service end includes the first UI main threads, network monitoring thread, processing customer network event line
Journey, the client includes the 2nd UI main threads, connection thread, processing service end event thread, use-case execution thread, the clothes
It is engaged between end and client by TCP network services, network event, visitor are monitored and handled to the service end using select models
Network event is monitored and handled using time-out loop mechanism in family end.
Another side, the invention provides a kind of global function test system method under TEE, comprises the following steps:
Started by the UI main threads of service end the first and serviced, create sniffer and network event processor;
Connection thread, connection server are created by the UI main threads of client the 2nd;
The sniffer receives client connection and sends message to the first UI main threads, and the first UI main threads are more
New equipment list;
The 2nd UI main threads create network event processing thread after successful connection, monitor the network data that server is sent;
First UI main threads select test case, by the way that network protocol suite bag after file division is sent into client;
Client network processing thread, which is received, parses and stores use-case to fixation catalogue after network data, and to the
Two UI main threads send the message that new use-case arrives;
The UI main threads of client the 2nd receive after message and use-case are put into use-case queue;Use-case processing thread reads use-case
Queue, use-case is performed by jni storehouses, and jni storehouses have performed after use-case test result being stored in fixed catalogue and to the 2nd UI master
Thread sends use-case result.
Above-mentioned method, wherein, in addition to:The UI main threads of client the 2nd receive the message of use-case result, and test is tied
Fruit group bag is sent to service end network event processing thread, and the first UI main threads are sent a message to after parsing and update use-case state,
Then test report segmentation group bag is sent to service end network event processing thread again, correspondence is sent a message to after parsing storage
UI, UI main thread may browse through test report.
The present invention has advantages below:1st, method of the invention can provide GP API, IFAA of standard for TEE products
API and other extensions API, function test method and means, can be TEE producers on the basis of relatively low time and cost,
Terminal producer etc. provides testing tool, can reduce time and the cost of other authentication tests such as TEE producers GP, terminal can be allowed to set
It is standby that TEE systemic-functions, stability and IFAA dependence tests are tested before dispatching from the factory, shorten product development cycle, improve systematicness
Energy and stability.
Brief description of the drawings
By reading the detailed description made with reference to the following drawings to non-limiting example, the present invention and its feature, outside
Shape and advantage will become more apparent upon.Identical mark indicates identical part in whole accompanying drawings.Not deliberately proportionally
Draw accompanying drawing, it is preferred that emphasis is the purport of the present invention is shown.
The structured flowchart of global function test system under a kind of TEE that Fig. 1 provides for the present invention.
The flow chart of global function method of testing under a kind of TEE that Fig. 2, Fig. 3 provide for the present invention.
Embodiment
In the following description, a large amount of concrete details are given to provide more thorough understanding of the invention.So
And, it is obvious to the skilled person that the present invention can be able to without one or more of these details
Implement.In other examples, in order to avoid obscuring with the present invention, do not enter for some technical characteristics well known in the art
Row description.
In order to thoroughly understand the present invention, detailed step and detailed structure will be proposed in following description, so as to
Explain technical scheme.Presently preferred embodiments of the present invention is described in detail as follows, but in addition to these detailed descriptions, this
Invention can also have other embodiment.
In the present invention, it is to be noted that in order to make a distinction, the mode for employing first, second is stated, still
Meaning is not particularly limited, for example, the first UI main threads.
Referring to figs. 1 to shown in Fig. 3, global function test system under a kind of TEE that the present invention is provided, including Testsuite ends,
The Testsuite ends include service end and client, and the service end includes the first UI main threads, network monitoring thread, place
Customer network event thread is managed, wherein, processing customer network event thread sends message by dialog box handle and led to UI threads
Letter, the client includes the 2nd UI main threads, connection thread, processing service end event thread, use-case execution thread, the clothes
It is engaged between end and client by TCP network services, network event, visitor are monitored and handled to the service end using select models
Network event is monitored and handled using time-out loop mechanism in family end.
Another side, present invention also offers a kind of global function test system method under TEE, comprises the following steps:
Step (1):Started by the UI main threads of service end the first and serviced, create sniffer and network event processing
Device;
Step (2):Connection thread, connection server are created by the UI main threads of client the 2nd;
Step (3):The sniffer receives client connection and sends message, the first UI to the first UI main threads
Main thread updates list of devices;
Step (4):The 2nd UI main threads create network event processing thread after successful connection, monitor the net that server is sent
Network data;
Step (5):First UI main threads select test case, by the way that network protocol suite bag after file division is sent into client
End;
Step (6):The client network processing thread, which is received, parses and stores use-case to fixed mesh after network data
Record, and send the message that new use-case arrives to the 2nd UI main threads;
Step (7):The UI main threads of client the 2nd receive after message and use-case are put into use-case queue;
Step (8):Use-case processing thread reads use-case queue, performs use-case by jni storehouses, jni storehouses have been performed after use-case
Test result is stored in fixed catalogue and use-case result is sent to the 2nd UI main threads.
In the present invention one preferably and in non-limiting embodiment, server end is related generally at UI interactions and network event
Reason.
UI reciprocal decompositions go out 3 major interfaces, and interface correspondence concrete function is as follows:
1st, CTestSuiteDlg is responsible for service startup/stopping, host information is shown, client connects and status display, system
Journal displaying, test report list display/removing;
2nd, CClientDlg and CClientPage be responsible for use-case show and select, use-case transmission, test result and state more
Newly, test report is browsed and test report statistics;
3rd, CReportDlg is responsible for test report and shown.
Network event processing includes network monitoring thread CNetListener and network event processing thread CNetThing,
All use select network models (non-obstruction).Each client is using CPeer classes correspondence, and such contains data parser
CPackageParser, command type processor CCmdProcessor, file handler CFileProcessor;The set of client
Managed using ClientManager, be responsible for client CPeer increasing, delete, look into, count etc. to operate;
Network and UI communication are carried out by way of window handle transmits message, and it is that UI creates client set to implement
The handle of CTestSuiteDlg dialog boxes can be assigned to the example of set during ClientManager;Establishment/display client couple
The handle of dialog box can be passed to corresponding CPeer during words frame CClientDlg;ClientManager with
CTestSuiteDlg is associated, such client reaches the standard grade, it is offline when CTestSuiteDlg dialog boxes just can receive message, CPeer with
CClientDlg is associated, and the network information and state of client can be sent to the dialog box with client association.
In the present invention one preferably and in non-limiting embodiment, in addition to:Packet splicing issue handling, wherein should by formulating
With the data communication protocol of layer, the need for whether meeting message data by agreement come the data of the existing reception of specification.In application
It is to carry out partition data bag with packet length or with end mark respectively that the basic methods of middle processing packet splicing, which mainly have two kinds, actually
There is such as HTTP protocol that both are combined.
Preferably and in non-limiting embodiment, include the processing of file retransmission mechanism in the present invention one, specially should
With finding that file sequence number mistake, end mark mistake etc. can be to opposite end transmission NET_ERROR command packets, opposite end receives this net
After network bag, determine whether that alternative document is transmitted, if without alternative document transmission, the transmission for interrupting file content is laid equal stress on
It is new to send file header, if now there is alternative document transmission, wrong file is put into list, treats that alternative document has all been passed and passes again
Defeated wrong file, using received file is deleted, file handler judges whether currently processed file is wrong file,
If not wrong file, continue to, if wrong file, using the continuous network bag for losing file content, Zhi Daojie
Receive file header and receive file again.
In the present invention one preferably and in non-limiting embodiment, the processing of client major design network event and use-case are held
Row module, JAVA layers can create 3 threads:Connect thread (being automatically exited from after the completion of connection), network data processing thread, use-case
Execution thread, worker thread is communicated with UI main threads by HANDLE message mechanisms, and in use-case execution thread, the reality of use-case
Border is performed in lislow storehouses.
Presently preferred embodiments of the present invention is described above.It is to be appreciated that the invention is not limited in above-mentioned
Particular implementation, wherein the equipment and structure be not described in detail to the greatest extent are construed as giving reality with the common mode in this area
Apply;Any those skilled in the art, without departing from the scope of the technical proposal of the invention, all using the disclosure above
Methods and techniques content make many possible variations and modification to technical solution of the present invention, or be revised as equivalent variations etc.
Embodiment is imitated, this has no effect on the substantive content of the present invention.Therefore, every content without departing from technical solution of the present invention, foundation
The technical spirit of the present invention still falls within the present invention to any simple modifications, equivalents, and modifications made for any of the above embodiments
In the range of technical scheme protection.
Claims (3)
1. a kind of global function test system under TEE, it is characterised in that including Testsuite ends, the Testsuite ends include
Service end and client, the service end include the first UI main threads, network monitoring thread, processing customer network event thread,
The client includes the 2nd UI main threads, connection thread, processing service end event thread, use-case execution thread, the service
By TCP network services between end and client, network event, client are monitored and handled to the service end using select models
Monitored using time-out loop mechanism and processing network event at end.
2. a kind of global function test system method under TEE, it is characterised in that comprise the following steps:
Started by the UI main threads of service end the first and serviced, create sniffer and network event processor;
Connection thread, connection server are created by the UI main threads of client the 2nd;
The sniffer receives client connection and sends message to the first UI main threads, and the first UI main threads, which update, to be set
Standby list;
The 2nd UI main threads create network event processing thread after successful connection, monitor the network data that server is sent;
First UI main threads select test case, by the way that network protocol suite bag after file division is sent into client;
Client network processing thread, which is received, parses and stores use-case to fixation catalogue after network data, and to the 2nd UI
Main thread sends the message that new use-case arrives;
The UI main threads of client the 2nd receive after message and use-case are put into use-case queue;
Use-case processing thread reads use-case queue, and use-case is performed by jni storehouses, and jni storehouses have performed after use-case and to have deposited test result
Storage in fixed catalogue and sends use-case result to the 2nd UI main threads.
3. global function test system method under a kind of TEE according to claim 2, it is characterised in that also include:Client
2nd UI main threads receive the message of use-case result, and test result group bag is sent into service end network event processing thread, solution
The first UI main threads are sent a message to after analysis and update use-case state, test report segmentation group bag is then sent to service end net again
Network event handling thread, sends a message to correspondence UI after parsing storage, UI main threads may browse through test report.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710140208.7A CN106980574A (en) | 2017-03-10 | 2017-03-10 | Global function test system and method for testing under a kind of TEE |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710140208.7A CN106980574A (en) | 2017-03-10 | 2017-03-10 | Global function test system and method for testing under a kind of TEE |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106980574A true CN106980574A (en) | 2017-07-25 |
Family
ID=59338009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710140208.7A Pending CN106980574A (en) | 2017-03-10 | 2017-03-10 | Global function test system and method for testing under a kind of TEE |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106980574A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225048A (en) * | 2019-06-19 | 2019-09-10 | 腾讯科技(成都)有限公司 | Data transmission method, device, first terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521899A (en) * | 2009-03-31 | 2009-09-02 | 大连海事大学 | System and method for on-computer test of mobile applications |
CN102231686A (en) * | 2011-06-24 | 2011-11-02 | 北京天融信科技有限公司 | System and method for implementing automated test of network security equipment |
US9021585B1 (en) * | 2013-03-15 | 2015-04-28 | Sprint Communications Company L.P. | JTAG fuse vulnerability determination and protection using a trusted execution environment |
CN105409164A (en) * | 2013-06-28 | 2016-03-16 | 迈可菲公司 | Rootkit detection by using hardware resources to detect inconsistencies in network traffic |
-
2017
- 2017-03-10 CN CN201710140208.7A patent/CN106980574A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521899A (en) * | 2009-03-31 | 2009-09-02 | 大连海事大学 | System and method for on-computer test of mobile applications |
CN102231686A (en) * | 2011-06-24 | 2011-11-02 | 北京天融信科技有限公司 | System and method for implementing automated test of network security equipment |
US9021585B1 (en) * | 2013-03-15 | 2015-04-28 | Sprint Communications Company L.P. | JTAG fuse vulnerability determination and protection using a trusted execution environment |
CN105409164A (en) * | 2013-06-28 | 2016-03-16 | 迈可菲公司 | Rootkit detection by using hardware resources to detect inconsistencies in network traffic |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225048A (en) * | 2019-06-19 | 2019-09-10 | 腾讯科技(成都)有限公司 | Data transmission method, device, first terminal and storage medium |
CN110225048B (en) * | 2019-06-19 | 2022-09-23 | 腾讯科技(成都)有限公司 | Data transmission method and device, first terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426278B (en) | A kind of client device performance test methods and system | |
CN101080055B (en) | A method, system and device for quickly browsing webpage via mobile phone browser | |
CN102932444B (en) | Load balancing module in finance real-time transaction system | |
CN103139157B (en) | A kind of based on the network communication method of socket, Apparatus and system | |
CN104796302A (en) | Method and system for testing network element simulators | |
CN109688207A (en) | Log transmission method, apparatus and server | |
US9559915B2 (en) | System and method for dynamically testing networked target systems | |
CN107766509A (en) | A kind of method and apparatus of webpage static backup | |
CN109491895A (en) | Server stress test method and device | |
CN107395747A (en) | A kind of high extended method based on STF platforms | |
CN103078765A (en) | Test method and device of network element equipment performance | |
CN101309178B (en) | Parsing method and apparatus for automatic exchanging optical network systematic log information | |
CN107453953A (en) | A kind of data update system and method based on httpclient | |
CN106980574A (en) | Global function test system and method for testing under a kind of TEE | |
CN106161143A (en) | A kind of network performance test method based on ARM server and device | |
CN107666401A (en) | A kind of configuration information obtaining method and terminal | |
CN103542865B (en) | Investigating method and device | |
CN208210014U (en) | Embedded device data store system based on message queue | |
CN104394042B (en) | A kind of method of MIB tests ONU system upgrades | |
CN104053132A (en) | Method and apparatus for information number identification | |
CN107204962A (en) | A kind of implementation method of the general vulnerability scanners based on SaaS frameworks | |
CN107181644B (en) | Method and apparatus for monitoring the network performance of network application | |
CN105808425A (en) | Method, device and system for realizing application test of mobile terminal | |
CN104468190A (en) | Wifi data package capturing method and device and intelligent terminal | |
CN108920328A (en) | It was found that the method and device of terminal applies change |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170725 |
|
RJ01 | Rejection of invention patent application after publication |