Content of the invention
A kind of method of testing of automobile controller and system are provided in the embodiment of the present invention, cannot be real to solve prior artExisting remotely control test, test problem tracking cannot accomplish real-time, test job cannot ablation experiment room environmental execute test,Testing process examination & approval etc. management work expend the cycle longer affect testing efficiency the problems such as.
In order to solve above-mentioned technical problem, the embodiment of the present invention is adopted the following technical scheme that:
On the one hand, the embodiment of the present invention provides a kind of method of testing of automobile controller, including:
The test assignment foundation instruction from first role user in client is obtained, is set up according to the test assignment and is referred toOrder, sets up test assignment, and second role user during the test assignment is distributed to the client;
The test case creation operation from second role user in client is obtained, is grasped according to the test case creationMake, create the test case in the test assignment;
Control test equipment executes the test assignment by the test case, obtains test result and by the testAs a result the client is fed back to.
Alternatively, described instruction is set up according to the test assignment, the step of set up test assignment, including:
Instruction is set up according to the test assignment, test-types and testing time is obtained;
According to the current operating conditions of the test-types, testing time and test equipment, target test equipment is determined;
Set up the test assignment comprising the test-types, testing time and target test equipment.
Alternatively, described instruction is set up according to the test assignment, the step of set up test assignment, also include:
The display information of acquisition is pushed to the client, presentation of information is carried out in the client;
The display information includes:The test-types, testing time, the current operating conditions of test equipment and determinationThe target test equipment.
Alternatively, in the test assignment is distributed to the client during second role user, the method for testingAlso include:
Sent a notification message to the second role user by instant messaging channel.
Alternatively, the step of control test equipment is by the test case, the execution test assignment, including:
Obtain the priority of the test assignment;
Priority of the control test equipment according to the test assignment, by the test case, executes the test assignment.
Alternatively, when the test result is fed back to the client, the method for testing also includes:
Problematic item in the test result is fed back to described first in the client by instant messaging channelRole Users.
Alternatively, the test assignment foundation instruction obtained from first role user in client, according to the surveyExamination task creation instruction, the step of set up test assignment before, the method for testing also includes:
Obtain the test assignment application request from the third angle color user in client;
Asked according to the test assignment application, send the institute in the advertisement message to the client of test assignment applicationState first role user.
Alternatively, the problematic item by the test result is fed back in the client by instant messaging channelThe first role user the step of after, the method for testing also includes:
Obtain the problematic item distribution instruction of the first role user from client;
According to problematic item distribution instruction, the third angle color during the problematic item is distributed to the client is usedFamily.
On the other hand, the embodiment of the present invention also provides a kind of test system of automobile controller, including:
Test assignment is set up and distribute module, and the test assignment for obtaining from first role user in client is set upInstruction, sets up instruction according to the test assignment, sets up test assignment, and during the test assignment is distributed to the clientSecond role user;
Test case creation module, for obtaining the test case creation operation from second role user in client,Operated according to the test case creation, create the test case in the test assignment;
Test execution and feedback module, for controlling test equipment by the test case, execute the test assignment, obtainThe client is fed back to test result and by the test result.
Alternatively, the test assignment is set up and distribute module, including:
Submodule is obtained, and for instruction being set up according to the test assignment, obtains test-types and testing time;
Determination sub-module, for the current operating conditions according to the test-types, testing time and test equipment, determinesTarget test equipment;
Setting up submodule, for setting up the test assignment comprising the test-types, testing time and target test equipment.
Alternatively, the test assignment is set up and distribute module, also includes:
Submodule is pushed, for the display information of acquisition is pushed to the client, letter is carried out in the clientBreath shows;
The display information includes:The test-types, testing time, the current operating conditions of test equipment and determinationThe target test equipment.
Alternatively, in the test assignment is distributed to the client during second role user, the test systemAlso include:
First sending module, for being sent a notification message to the second role user by instant messaging channel.
Alternatively, the test execution and feedback module, including:
Acquisition submodule, for obtaining the priority of the test assignment;
Implementation sub-module, for controlling priority of the test equipment according to the test assignment, by the test case, holdsThe row test assignment.
Alternatively, when the test result is fed back to the client, the test system also includes:
Feedback module, for feeding back to the client by the problematic item in the test result by instant messaging channelIn the first role user.
Alternatively, the test system also includes:
First acquisition module, for obtaining the test assignment application request from the third angle color user in client;
Second sending module, for asking according to the test assignment application, sends the advertisement message of test assignment applicationThe first role user into the client.
Alternatively, the test system also includes:
Second acquisition module, for obtaining the problematic item distribution instruction of the first role user from client;
Distribute module, for being instructed according to problematic item distribution, during the problematic item is distributed to the clientThe third angle color user.
One or more embodiments of the invention has the advantages that:
The embodiment of the present invention, is referred to by being set up according to the test assignment from first role user in client for obtainingOrder, sets up test assignment, and second role user during the test assignment is distributed to client;Obtain the in clientThe test case creation operation of two Role Users, creates the test case in the test assignment;Control test equipment is by describedTest case, executes the test assignment, obtains test result and the test result is fed back to the client;Can be rightAutomobile controller realizes that remote auto HIL is tested, and realizes that remote automation is tested, carries out pushing away for task between different role userSend and distribute, by the operation of the different user of client, make in the implementation process of test assignment of automobile controller, operatorMember need not be confined to laboratory, can cause HIL test jobs more efficient, tester's time more free, test equipment profitHigher with rate, the convenience in automotive test work is improve, is that tester's test job improves efficiency.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, completeSite preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.It is based on thisEmbodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the artExample, belongs to the scope of protection of the invention.
First embodiment
A kind of method of testing of automobile controller is provided in the embodiment of the present invention, in conjunction with shown in Fig. 1, Fig. 3, including:
Step 101:The test assignment foundation instruction from first role user in client is obtained, is appointed according to the testInstruction is set up in business, sets up test assignment, and second role user during the test assignment is distributed to the client.
The client can be remote web page controlling interface, and system is concrete to be obtained from remote web page controlling interface firstThe test assignment of Role Users sets up instruction.During being somebody's turn to do, multiple user roles can be provided for client, the first role is usedFamily is specially test assignment administrator role, and with more operating right, second role user can be general testerMember user, can be specifically testing example design human user, with relatively little of authority.The setting of the different role can be withIt is that batch importing is carried out to the user of different role by system manager, additions and deletions can be carried out to user profile and changed looking into, carry outRole-rights setting, in addition, being supplied to the management interface of user in test system by client, is provided not to different rolesSame function and access right.
When test assignment manager is after logging in remote web page interface, newly-built test assignment is carried out, system gets thisThe test assignment of first role user sets up instruction, sets up test assignment, after being successfully established, the test assignment is distributed to surveyThe designer user of example on probation, makes associated user when task is viewed, completes the establishment of test case in time.
Wherein, as a preferred implementation, instruction is set up according to test assignment, the step of set up test assignment, including:
Instruction is set up according to test assignment, test-types and testing time is obtained;According to the test-types, testing timeAnd the current operating conditions of test equipment, determine target test equipment;Set up and include the test-types, testing time and targetThe test assignment of test equipment.
When test assignment foundation instruction is obtained, according to the task of requiring to set up in instruction acquisition task creation instructionRequire information, the require information include the test-types of test assignment and testing time, and system can be according to the test-typesAnd the testing time, and the running status of test equipment, choose suitable idle test equipment to execute the test assignment.ShouldWhat the running status of test equipment included test equipment enables state, off-line state, idle condition, malfunction, operating conditionDeng.
Specifically, the Role Users with authority, first role user for example, in client, i.e. test assignment managerRole, or system manager etc., the running status of equipment can be configured, can arrangeThe information such as the controller type of load, load configuration situation, can also be united automatically to the test frequency of the utilization rate of equipment, projectMeter, to carry out the daily data statisticss of the test job of disparity items.
As a specific embodiment, wherein, instruction is set up according to test assignment, the step of set up test assignment, is also wrappedInclude:The display information of acquisition is pushed to the client, presentation of information is carried out in the client;The display information bagInclude:The target test equipment of the test-types, testing time, the current operating conditions of test equipment and determination.
The client corresponds specifically to the front end web interface in system, is responsible for the interface for providing simplicity generosity, with visualThe mode of change shows test data, user profile etc., and responds user operation, sends the requests to server end by server endAfter process, returning result shows user.
Used as a specific embodiment, wherein, in the test assignment is distributed to the client, second role is usedDuring family, the method for testing also includes:Sent a notification message to the second role user by instant messaging channel.
The instant messaging channel is included but is not limited to:The channels such as wechat, mail.The different role provided by system usesThe instant messaging account of oneself can be bound by family with system account, and oneself preference is set receive announcement informationMode, and user can set to center whether need mail or wechat prompting in system.Be set to need mail orWhen wechat is reminded, system then according to the situation of system operation, by necessary message by the form of mail or wechat notify toUser.Sent a notification message to second role user by instant messaging channel, though not in laboratory or not computer withBefore, can also make related personnel know message in time, arrange in time to process inter-related task.
Specifically, above-mentioned process, in client, first role user is carried out newly-built after logging in remote web page interfaceTest assignment, when specific test assignment foundation operation can be selection test-types and the test that will be tested firstBetween, click selects the spendable test equipment determined according to those conditions, clicks on task and issues, and sends test assignment foundation and refers toOrder, after click task is issued, test assignment can be by the system person's user side that is assigned to Test Sample Design, and by wechat or mailForm notifies the Role Users.
Step 102:The test case creation operation from second role user in client is obtained, is used according to the testExample creates operation, creates the test case in the test assignment.
The implementation procedure of the test case creation operation, can be the upload operation for receiving second role user, in acquisitionThe test case in test system is reached, respective file is set up, test case creation process is completed.
Step 103:Control test equipment executes the test assignment by the test case, obtains test result and incites somebody to actionThe test result feeds back to the client.
Test case is uploaded in user, when completing test case creation, test equipment can be controlled according to presetAlgorithm carries out static analysis to test case, or by providing rigid line configuration, preset database file and test case threePlanting input carries out coverage analysis, and provides test result.
Test output is specially test report, and test terminates rear test result and can be automatically uploaded to server, and automaticallyGenerate test report.One equipment can correspond to multiple test assignments, but a test assignment can only correspond to a test equipment.Specifically, the control to test equipment, specifically server end by control instruction being transmitted to the controller of test equipment, i.e.,Host computer, makes test equipment execute test assignment, and the host computer is responsible for being communicated with server end, is received from server endTask scheduling, and drive test equipment to carry out automatic test work, the test result that handles well is returned to after the completion of testServer end, so that result is fed back to client by server, is processed for user.
Wherein, in order to record to the document of test process, system will provide test log, tester as requestedDraw, the User Interface of system requirements.In test process, the system provides a series of data statisticss and analysis module, for surveyingExamination related personnel's reference.
Used as a specific embodiment, wherein, control test equipment executes the test assignment by the test caseStep, including:Obtain the priority of the test assignment;Priority of the control test equipment according to the test assignment, by instituteTest case is stated, the test assignment is executed.
In client, first role user can be configured to the priority of test assignment for certain equipment, in systemWhen control task is executed, tested according to the two priority classes test equipment of test assignment, can pass through to arrange test assignmentPriority support hot job insertion, when hot job is run into, hot job is arranged limit priority, is beingWhen system examination & verification passes through, current test assignment that is temporary transient or delaying certain test equipment, insertion need the task of urgent operation.
As a specific embodiment, wherein, when test result is fed back to the client, the method for testing is also wrappedInclude:Problematic item in test result is fed back to the first role user in the client by instant messaging channel.
There are True items and false items, wherein false items be responsible for test by wechat mail notification in test reportPeople, i.e. first role user, test owner receive information and can be confirmed, carry out in time arranging to process revising, make each roleInteraction process between personnel is more convenient, accelerates the handling process of test, improves testing efficiency.
Specifically, the feedback reminder process can be, feedback can carry out the message to be signed of false items and carry to directorWake up, sign prompting of recording a demerit, remind to impacted people during job change.Director can pass through the operation that wechat end is actively initiated,For example,:Test equipment operation conditions is inquired about;Treat the task of signing to be signed.
Used as a specific embodiment, wherein, acquisition refers to from the test assignment foundation of first role user in clientOrder, sets up instruction according to the test assignment, the step of set up test assignment before, the method for testing also includes:Obtain andThe test assignment application request of the third angle color user from client;Asked according to the test assignment application, send test and appointThe first role user in the advertisement message to the client of business application.
In the client, the third angle color user can be the developer user of automobile controller in system, become test assignmentApplicant, before newly-built task, test applicant first can apply for test assignment.(contain:Test-types are arranged;Fill inProject name and controller title;Upload function definition, Controller Area Network BUS CAN protocol, data base's dbc files, rigid lineInterface document).The client can be webpage client, support to preengage test resource by webpage, to facilitate firstRole Users set up test assignment according to reservation at the suitable moment.Specifically, system can be in client to test equipmentType, operation conditions, subscription status are shown, after user clicks certain test equipment, show this equipment test execution present situationAnd running status.
As a specific embodiment, wherein, the problematic item in the test result is fed back by instant messaging channelTo after the step of the first role user in the client, the method for testing also includes:
Obtain the problematic item distribution instruction of the first role user from client;Referred to according to problematic item distributionOrder, the third angle color user during the problematic item is distributed to the client.
After aforesaid false items are confirmed to test owner by wechat or mail notification, test owner sends and asksAll false items can be distributed to test assignment applicant by topic item distribution instruction, and test assignment applicant can be responsible for false itemsSolution, the life cycle of problematic item can be monitored, can be switched in following state:Newly-built, distribute, repairIn, in confirmation, have confirmed that, be turned off, refuse.Can also offering question item query function, carry out according to all kinds of keyword messagesCoupling is searched, the result of lookup exports to form in the form of Excel.Make system problem of implementation following function and Resolving probiems work(Can, canbe used on line from the reservation of test assignment, foundation, the foundation of test case, the execution of test assignment, test result anti-A series of processes such as feedback, the solution of test problem item, carry out the push and distribution of task, between different role user by clientThe operation of the different user at end, makes in the implementation process of test assignment of automobile controller, and operator need not be confined to testRoom, completes test process by remote control, makes test process more convenient.
The method of testing of the automobile controller provided in the embodiment of the present invention, by according to obtaining the in clientThe test assignment of one Role Users sets up instruction, sets up test assignment, and second during the test assignment is distributed to clientRole Users;The test case creation operation from second role user in client is obtained, is created in the test assignmentTest case;Control test equipment executes the test assignment by the test case, obtains test result and by the testAs a result the client is fed back to;Can realize to automobile controller that remote auto HIL is tested, realize that remote automation is tested,The push and distribution of task is carried out between different role user, by the operation of the different user of client, makes automobile controllerTest assignment implementation process in, operator need not be confined to laboratory, can cause HIL test jobs more efficiently, surveyExamination personnel time more free, test equipment utilization rate is higher, improves the convenience in automotive test work, is testerTest job improves efficiency.
Second embodiment
A kind of test system of automobile controller disclosed in the present embodiment, in conjunction with shown in Fig. 2, including:Test assignment is set upAnd distribute module 201, test case creation module 202 and test execution and feedback module 203.
Test assignment is set up and distribute module 201, for obtaining the test assignment from first role user in clientInstruction is set up, instruction is set up according to the test assignment, test assignment is set up, and the test assignment is distributed to the clientSecond role user in end.
Test case creation module 202, for obtaining the test case creation behaviour from second role user in clientMake, operated according to the test case creation, create the test case in the test assignment.
Test execution and feedback module 203, for controlling test equipment by the test case, execute the test and appointBusiness, obtains test result and the test result is fed back to the client.
Wherein, the test assignment is set up and distribute module 201, including:
Submodule is obtained, and for instruction being set up according to the test assignment, obtains test-types and testing time.
Determination sub-module, for the current operating conditions according to the test-types, testing time and test equipment, determinesTarget test equipment.
Setting up submodule, for setting up the test assignment comprising the test-types, testing time and target test equipment.
Wherein, the test assignment is set up and distribute module 201, also includes:
Submodule is pushed, for the display information of acquisition is pushed to the client, letter is carried out in the clientBreath shows.
The display information includes:The test-types, testing time, the current operating conditions of test equipment and determinationThe target test equipment.
Wherein, in the test assignment is distributed to the client during second role user, the test system is alsoIncluding:
First sending module, for being sent a notification message to the second role user by instant messaging channel.
Wherein, the test execution and feedback module 203, including:
Acquisition submodule, for obtaining the priority of the test assignment.
Implementation sub-module, for controlling priority of the test equipment according to the test assignment, by the test case, holdsThe row test assignment.
Wherein, when the test result is fed back to the client, the test system also includes:
Feedback module, for feeding back to the client by the problematic item in the test result by instant messaging channelIn the first role user.
Wherein, the test system also includes:
First acquisition module, for obtaining the test assignment application request from the third angle color user in client;
Second sending module, for asking according to the test assignment application, sends the advertisement message of test assignment applicationThe first role user into the client.
Wherein, the test system also includes:
Second acquisition module, for obtaining the problematic item distribution instruction of the first role user from client.
Distribute module, for being instructed according to problematic item distribution, during the problematic item is distributed to the clientThe third angle color user.
The test system of the automobile controller provided in the embodiment of the present invention, by according to obtaining the in clientThe test assignment of one Role Users sets up instruction, sets up test assignment, and second during the test assignment is distributed to clientRole Users;The test case creation operation from second role user in client is obtained, is created in the test assignmentTest case;Control test equipment executes the test assignment by the test case, obtains test result and by the testAs a result the client is fed back to;Can realize to automobile controller that remote auto HIL is tested, realize that remote automation is tested,The push and distribution of task is carried out between different role user, by the operation of the different user of client, makes automobile controllerTest assignment implementation process in, operator need not be confined to laboratory, can cause HIL test jobs more efficiently, surveyExamination personnel time more free, test equipment utilization rate is higher, improves the convenience in automotive test work, is testerTest job improves efficiency.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible toIt is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.If the functionUsing in the form of SFU software functional unit realize and as independent production marketing or use when, a computer-readable can be stored inTake in storage medium.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyThose familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be containedCover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Each embodiment in this specification is described by the way of going forward one by one, what each embodiment was stressed be withThe difference of other embodiment, between each embodiment identical similar part mutually referring to.
Described in upper is the preferred embodiment of the present invention, it should be pointed out that for the ordinary person of the art,Some improvements and modifications can also be made under the premise of without departing from principle of the present invention, these improvements and modifications are also at thisIn bright protection domain.