CN110471828A - A kind of operating system testing method, apparatus and its equipment - Google Patents

A kind of operating system testing method, apparatus and its equipment Download PDF

Info

Publication number
CN110471828A
CN110471828A CN201810437553.1A CN201810437553A CN110471828A CN 110471828 A CN110471828 A CN 110471828A CN 201810437553 A CN201810437553 A CN 201810437553A CN 110471828 A CN110471828 A CN 110471828A
Authority
CN
China
Prior art keywords
operating system
service application
test result
test
application
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
CN201810437553.1A
Other languages
Chinese (zh)
Other versions
CN110471828B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810437553.1A priority Critical patent/CN110471828B/en
Publication of CN110471828A publication Critical patent/CN110471828A/en
Application granted granted Critical
Publication of CN110471828B publication Critical patent/CN110471828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a kind of operating system testing method, apparatus and its equipment, comprising: before operating system publication to be tested, the service application needed in the special scenes of the operating system is determined according to deployed environment information;Important supplement based on operating system service application and its dependence test, as conventional operating systems testing process;The test result of operating system is determined according to the test result of service application.By application scheme, the operating system problem that can trigger service application is preposition, is formed together test macro with conventional operating systems subdomains test set, and automatic trigger executes, the iteration cycle of speeding up operation system publication.Service application is the application and its test set with business strong correlation, the operating pressure that complicated business scenario and test environment generates operating system nucleus is that conventional operating system testing collection can not cover, it is integrated into the testing process of general operating system, effectively improves efficiency for issuing and operating system quality.

Description

A kind of operating system testing method, apparatus and its equipment
Technical field
This application involves internet area, especially a kind of operating system testing method, apparatus and its equipment.
Background technique
Operating system (Operating System, OS) is the program for managing and controlling hardware resource and software resource, is The fundamental system software of " bare machine " is run directly in, other softwares are required to run under the support of operating system.Operation System is the interface of user and equipment, while being also the interface of hardware and other softwares, can manage hardware resource, software resource And data resource, and various forms of user interfaces are provided.
Since the importance of operating system needs to test operating system before issuing operating system, for example, Test Operating System itself whether there is exception.If operating system has exception, operating system is repaired, until behaviour Make system there is no exception, then can issue and not there is no abnormal operating system.
After issuing operating system, then operating system can be run in service environment, and can transport in operating system The multiple service applications of row, and after running these service applications, it may be found that operating system is not adapted to service application, need Operating system is repaired, and operating system is tested again, after the completion of test, issue operating system again, And so on, if running a large number of services application in operating system, operating system may repeatedly be repaired, operating system Testing efficiency is very low, and user experience is very poor.
Summary of the invention
The application provides a kind of operating system testing method, which comprises
Before operating system publication to be tested, the spy needed in the operating system is determined according to environmental information Determine the service application of scene;
Based on service application described in the operating system, the service application is tested;
The test result of the operating system is determined according to the test result of the service application.
The application provides a kind of operating system testing method, which comprises
Before operating system publication to be tested, is determined and needed in the operating system according to deployed environment information Multiple service applications, by the preposition test environment to the operating system of the application scenarios of service application, as the operation The test set of testing process in the test environment of system, the test set of service application and the operating system forms test set; Service application includes the business conduct of multiple applications and multiple applications;
Testing process based on service application described in the operating system, the service application;
The test result of the operating system is determined according to the test result of the service application.
The application provides a kind of operating system testing device, and described device includes:
Module is obtained, for determining and being needed in the behaviour according to environmental information before operating system publication to be tested Make the service application of the special scenes of system operation;Test module, for being based on service application described in the operating system, And the service application is tested;Determining module, for determining operating system according to the test result of the service application Test result.
The application provides a kind of operating system testing device, and described device includes: acquisition module, in behaviour to be tested Before making system publication, the multiple service applications needed in the operating system are determined according to deployed environment information, by industry The preposition test environment to the operating system of application scenarios of business application, as the survey in the test environment of the operating system The test set of test ring section, the test set of service application and the operating system forms test set;Service application includes multiple applications And the business conduct of multiple applications;Test module, for based on service application, the business described in the operating system The testing process of application;Determining module, for determining the test result of operating system according to the test result of the service application.
The application provides a kind of operating system testing equipment, comprising: processor and machine readable storage medium, the machine Several computer instructions are stored on readable storage medium storing program for executing, the processor is located as follows when executing the computer instruction Reason: it before operating system publication to be tested, is determined and is needed in the specific field of the operating system according to environmental information The service application of scape;
Based on service application described in the operating system, the service application is tested;
The test result of the operating system is determined according to the test result of the service application.
It based on the above-mentioned technical proposal,, can be according to portion before operating system publication to be tested in the embodiment of the present application It affixes one's name to environmental information and determines the service application needed in the special scenes of the operating system;Based on the operating system institute State service application and its dependence test (testing service application), the important benefit as conventional operating systems testing process It fills;The test result of the operating system is determined according to the test result of the service application.In conclusion business can be answered It is preposition with the operating system problem of triggering, and be formed together one-stop operating system with conventional operating systems subdomains test set and survey Test system, automatic trigger execute, and accelerate the iteration cycle of operating system publication.Moreover, above-mentioned service application is strong with business The operating pressure that relevant application and its test set, complicated business scenario and test environment generate operating system nucleus is normal The operating system testing collection of rule can not cover, and be integrated into the testing process of general operating system, effectively improve Efficiency for issuing and operating system software quality.Furthermore, it is possible to which discovery operating system and service application are simultaneously before operating system publication It is not adapted to, and operating system is repaired, the operating system problem that can trigger service application is preposition, and discovery is asked in advance Topic, is effectively ensured the quality of operating system, improves the stability and compatibility of operating system, effectively improve the effect solved the problems, such as The stability of rate and operating system publication, the iteration cycle of speeding up operation system publication, reduces the testing time, operation can be improved The testing efficiency of system can save test resource, improve user experience.
Detailed description of the invention
It, below will be to the application in order to clearly illustrate the embodiment of the present application or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is only some embodiments as described in this application, for those of ordinary skill in the art, can also be according to this Shen Please these attached drawings of embodiment obtain other attached drawings.
Fig. 1 is the flow chart of the operating system testing method in a kind of embodiment of the application;
Fig. 2A and Fig. 2 B is the application scenarios schematic diagram in a kind of embodiment of the application;
Fig. 3 is the flow chart of the operating system testing method in the application another embodiment;
Fig. 4 is the structure chart of the operating system testing device in a kind of embodiment of the application.
Specific embodiment
In the term that the embodiment of the present application uses merely for the sake of for the purpose of describing particular embodiments, rather than limit this Shen Please.The "an" of singular used in the application and claims, " described " and "the" are also intended to including most shapes Formula, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one A or multiple associated any or all of project listed may combine.
It will be appreciated that though various letters may be described using term first, second, third, etc. in the embodiment of the present application Breath, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, In the case where not departing from the application range, the first information can also be referred to as the second information, and similarly, the second information can also be with The referred to as first information.Depending on context, in addition, used word " if " can be construed to " ... when " or " when ... " or " in response to determination ".
It is proposed that a kind of operating system testing method, this method can be applied to operating system testing and set in the embodiment of the present application Standby, which may include PC (Personal Computer, personal computer), tablet computer, notebook Computer, mobile terminal, smart phone etc., with no restrictions to this device type.
It is shown in Figure 1, it is the flow diagram of operating system testing method, this method may include:
Step 101, it before operating system publication to be tested, is determined according to environmental information and needs to transport in the operating system The service application of capable special scenes.Special scenes are the business scenarios for needing to run the server of the operating system, are one Complex scene, business scenario may be a big cluster, including a large number of services application, and business scenario is extremely complex, at business Reason process is also extremely complex, with no restrictions to this business scenario.
Specifically, the available corresponding environmental information of server for needing to run the operating system, and according to the environment Information determines that (business scenario of such as server includes multiple for the service application that needs in the special scenes of the operating system Service application, these service applications are deployed under the business scenario of server).Wherein, the service application may include: upper The service application operated normally in the operating system of one version.
In one example, above-mentioned service application may include the industry of multiple applications (i.e. APP) and the multiple application Business behavior (processing of the interaction, application such as applied, without limitation).Wherein, service application is relevant to business Using test scene condition is extremely complex, and the operating pressure that service application generates operating system nucleus is extremely complex, can be with Including a large amount of core application.For example, some websites need support business A, then service application includes all answering of realization business A With such as application of support registering functional supports the application of authentication function, supports the application of search function, support image data Using etc..
Step 102, it is based on the operating system service application, and the service application is tested.
Step 103, the test result of the operating system is determined according to the test result of the service application.
Wherein, the test result of the operating system is determined according to the test result of the service application, can also include: basis The test set of the operating system tests the operating system, obtains the test result of the test set;According to the service application Test result and the test result of the test set determine the test result of the operating system.For example, if the survey of the service application Test result is abnormal, it is determined that the test result of the operating system is abnormal;Alternatively, if the test result of the test set is different Often, it is determined that the test result of the operating system is abnormal;Alternatively, if the test result of the service application is abnormal, and the survey The test result of examination collection is abnormal, it is determined that the test result of the operating system is abnormal;Alternatively, if the test of the service application It as a result is normal, and the test result of the test set is normal, it is determined that the test result of the operating system is normal.
Wherein, for multiple service applications of the operating system, as long as there is the test knot of at least one service application Fruit is abnormal, it can be said that the test result of bright service application is abnormal.In addition, if the test result of all service applications is Normally, it can be said that the test result of bright service application is normal.
In one example, above-mentioned execution sequence is intended merely to facilitate description to provide example, in practical applications, Sequence is executed between can also changing the step, with no restrictions to this execution sequence.Moreover, in other embodiments, and it is different The fixed sequence for showing and describing according to this specification is come the step of executing correlation method, step included by method can be than this It is more or less described in specification.In addition, single step described in this specification, it in other embodiments may quilt Multiple steps are decomposed into be described;Multiple steps described in this specification may also be merged into other embodiments Single step is described.
In one example, after the test result that the operating system is determined according to the test result of the service application, if should The test result of operating system is exception, then user can be prompted to repair operating system, i.e., user is to operating system Code is modified, without limitation, and then, the operating system based on reparation re-execute the steps 101- step 103.If behaviour Make system test result be it is normal, then can issue operating system.
In one example, it after the test result that the operating system is determined according to the test result of the service application, is grasping After making system publication, the operating system service application being also based on after issuing, and the service application of operation is carried out Test, to obtain the test result of the service application, with no restrictions to this process.
In the above-described embodiments, operating system can include but is not limited to: (SuSE) Linux OS, Windows operation system System, Android operation system, iOS operating system.Certainly, aforesaid operations system is several examples, is not done to this operating system Limitation, all operating systems are within the protection scope of the embodiment of the present application.
Based on the above-mentioned technical proposal, it in the embodiment of the present application, is determined and is needed in behaviour to be tested according to deployed environment information Make the service application of the special scenes of system operation;Based on service application described in the operating system and its dependence test (service application is tested), the important supplement as conventional operating systems testing process;According to the service application Test result determines the test result of the operating system.In conclusion the operating system problem that service application can be triggered It is preposition, and it is formed together one-stop operating system testing system with conventional operating systems subdomains test set, automatic trigger executes, Accelerate the iteration cycle of operating system publication.Moreover, above-mentioned service application is application and its test set with business strong correlation, The operating pressure that complicated business scenario and test environment generates operating system nucleus be conventional operating system testing collection without Method covering, is integrated into the testing process of general operating system, effectively improves efficiency for issuing and operating system is soft Part quality.Furthermore, it is possible to which discovery operating system is not adapted to service application, and to operating system before operating system publication It is repaired, the operating system problem that can trigger service application is preposition, finds the problem in advance, operating system is effectively ensured Quality improves the stability and compatibility of operating system, effectively improve the efficiency solved the problems, such as and operating system publication it is steady Qualitative, the iteration cycle of speeding up operation system publication reduces the testing time, the testing efficiency of operating system can be improved, can be with Test resource is saved, user experience is improved.Moreover, above-mentioned service application is application relevant to business, test scene condition is non- Often complicated, the operating pressure that service application generates operating system nucleus is extremely complex, may include a large amount of core applications, industry Scene of being engaged in may be a big cluster, therefore, the test of complicated service application can be integrated into the test of operating system In the process, one-stop testing process is formed.
In another example, a kind of operating system testing method is also proposed in the embodiment of the present application, which comprises Before operating system publication to be tested, the multiple business needed in the operating system are determined according to deployed environment information Using, and the test wrapper by the preposition test environment to the operating system of the application scenarios of service application, as the operating system Testing process in border, the test set of the service application and the test set of the operating system form test set;The service application can To include the business conduct of multiple applications and the multiple application.Then, it is based on the operating system service application, is somebody's turn to do The testing process of service application;The test result of the operating system is determined according to the test result of the service application.
Below in conjunction with specific application scenarios, to aforesaid operations system testing, (operating system testing may be operation system Unite kernel test, in the present embodiment by taking operating system testing as an example) method is described in detail.
CI (Continuous Integration, continuous integrating) mode is a kind of software development model, passes through multifrequency time Code is integrated, building, test, publication, can deployment software new features in time, to accelerate iteration speed.Based on this, may be used also To use CI mode deployment operation system, that is, it is directed to operating system newly developed, the function code collection of operating system can be carried out At (obtaining operating system), the test of operating system, the publication of operating system, the test of service application, operating system portion Affix one's name to the processes such as online.For example, after developing the operating system A of first version above-mentioned mistake can be executed for operating system A Journey;After developing the operating system B of the second edition, the above process can be executed for operating system B, and so on.
It is the application scenarios schematic diagram of the present embodiment referring to fig. 2 shown in A, in the function code integrating process of operating system, Operating system developer (being referred to as operating system nucleus developer) can develop the code of operating system, and will operation The code of system is stored in code library (i.e. code repository).
In the test process of operating system, operating system can be obtained from code library, and utilizes the test of operating system Collection tests the operating system, obtains test result.If test result is that operating system is abnormal, developed to operating system Person prompts operating system abnormal, the code of operating system is modified by operating system developer, and the code of operating system is stored To code library, it is then possible to which the test set using operating system tests modified operating system, test knot is obtained Fruit, and so on, until test result is that operating system is normal.If test result is that operating system is normal, operation is executed The issuing process of system.
In the issuing process of operating system, operating system can be distributed to each service application, so that each business is answered With operating in the operating system.For example, for the server for needing to run the operating system, it is assumed that the server disposition has industry 1- service application 3 is applied in business, then the operating system can also be distributed to service application 1- service application 3, so that service application 1- service application 3 can operate in the operating system.
In the test process of service application, which can be operated in the operating system, and be answered using business Test set tests the service application, obtains test result.If test result is that operating system is abnormal, to operation System developer prompts operating system abnormal, modifies the code of operating system by operating system developer, and by operating system Code is stored to code library.If test result is that service application is abnormal, abnormal to the application of service application developer's prompt service, The code of service application is modified by service application developer, and service application is tested again.If test result is operation System is normal and service application is normal, then obtains the service application.When the test result of all service applications is operating system When normally and service application is normal, then illustrates that operating system is normal, execute line process in the deployment of operating system.
For example, service application 1 can be operated in the operating system, and using the test set of service application 1 to the industry Business is tested using 1, obtains test result.If test result is that operating system is abnormal, can be to operating system developer Prompt operating system abnormal.If test result is that service application 1 is abnormal, can be to service application developer's prompt service application 1 is abnormal.If test result is operating system normally and service application 1 is normal, available service application 1, and outgoing traffic Using 1.But can not illustrate that operating system is normal at this time, only when service application 1, service application 2 and service application 3 When test result is that operating system is normal and service application is normal, it can illustrate that operating system is normal, execute operating system Deployment on line process, otherwise, it is necessary to prompt operating system abnormal to operating system developer.
The line process in the deployment of operating system, can be by normal allocating operating system to server.
From the above process as can be seen that operating system test process, just with the test set of operating system to this Operating system is tested, and obtains test result, and the test set of operating system only include it is related to operating system itself function Content, still, many problems of operating system are in the service environment after operating system publication, therefore, operating system Test process possibly the problem of can not finding operating system.
For example, after service application 1 is operated in operating system, using service application 1 test set to service application 1 into When row test, it may be found that operating system is abnormal, i.e., operating system can not support the normal operation of service application 1, and business is answered With 1, there is no problem in itself, and therefore, it is necessary to prompt operating system abnormal to operating system developer, by operating system, developer is repaired Change the code of operating system, and the code of operating system is stored to code library.Then, it referring to fig. 2 shown in A, needs to hold again The test process of the test process of row operating system, the issuing process of operating system, service application.Assuming that there is 100 business to answer With needing to operate in operating system, and the test process of 100 service applications finds operating system exception, then needs to repeat 100 above process, the testing efficiency of operating system is very low, and the testing time can be grown very much, and user experience is very poor.
Unlike above-mentioned discovery, in the embodiment of the present application, the test of service application can be integrated into operating system Test process, to find relevant issues in advance, can by by the operating system problem of service application test triggering it is preposition to The test process of operating system, so that the quality of operating system be effectively guaranteed.
It is the another application schematic diagram of a scenario of the present embodiment referring to fig. 2 shown in B, it is integrated in the function code of operating system Process, operating system developer (being referred to as operating system nucleus developer) can develop the code of operating system, and The code of operating system is stored in code library (i.e. coderepository).
In the test process of operating system, operating system can be obtained from code library, and utilizes the test of operating system Collection tests operating system, obtains the test result of test set.Based on operating system service application, and to the business Using being tested, the test result of service application is obtained.The test result of test result and service application based on test set, Obtain the test result of operating system.If the test result of operating system is that operating system is abnormal, to operating system developer It prompts operating system abnormal, the code of operating system is modified by operating system developer, and the code storage of operating system is arrived Then code library re-executes the test process of operating system, and so on, until the test result of operating system is behaviour It is normal to make system.If the test result of operating system is that operating system is normal, the issuing process of operating system is executed.
Wherein, operating system is tested using the test set of operating system, obtains the test result of test set, it can be with It include: the test set for first obtaining preconfigured operating system, which only includes relevant to operating system itself function Content, the test set can be test script for testing operating system, which is used for Test Operating System Whether itself is abnormal.Then, operating system is tested using test set, obtains the test result of the test set, to this survey Examination process with no restrictions, such as carries out functional test or regression test to the operating system, in addition, the test result of test set is It is normal or abnormal.
Wherein, which is tested, obtains the test result of service application, may include: can be by business Using operating in the operating system, and the service application is tested using the test set of the service application, obtains business The test result of application.Specifically, multiple service applications of the operating system are directed to, as long as there is the survey of a service application Test result is exception, then the test result of service application is abnormal;If the test result of all service applications is normal, industry The test result of business application is normal.
Wherein it is possible to by the preposition test environment to the operating system of the application scenarios of multiple service applications, as the behaviour Make the testing process in the test environment of system, and the test set of the service application and the test set of the operating system form a station The test set of formula;In such manner, it is possible to which the operating system problem that service application is triggered is preposition, and surveyed with conventional operating systems subdomains Examination collection is formed together one-stop operating system testing system, and automatic trigger executes, and accelerates the iteration cycle of operating system publication. Above-mentioned service application is the application and its test set with business strong correlation, and complicated business scenario and test environment are to operating system The operating pressure that kernel generates is that conventional operating system testing collection can not cover, and is integrated into the survey of general operating system It tries to effectively improve efficiency for issuing and operating system software quality in process.Above-mentioned service application is answers relevant to business With test scene condition is extremely complex, and the operating pressure that service application generates operating system nucleus is extremely complex, may include A large amount of core applications, business scenario may be a big cluster, therefore, the test of complicated service application can be integrated Into the test process of operating system, one-stop testing process is formed.
For example, service application 1- service application 3 can be operated in the operating system, and utilize the survey of service application 1 Examination collection tests service application 1, obtains the test result of service application 1, with no restrictions to this test process, service application 1 test result is normal or abnormal.In addition, the test set using service application 2 tests service application 2, obtain The test result of service application 2;Service application 3 is tested using the test set of service application 3, obtains service application 3 Test result.Then, if the test result of any one or multiple service applications is abnormal, it is determined that the test of service application It as a result is abnormal;If the test result of all service applications is normal, it is determined that the test result of service application is normal.
Wherein, the test result of the test result based on test set and service application obtains the test result of operating system, If may include: the test result of service application is exception, it can determine that the test result of operating system is abnormal;Alternatively, If the test result of test set is exception, it can determine that the test result of operating system is abnormal;Alternatively, if service application Test result is abnormal, and the test result of test set is exception, then can determine that the test result of operating system is abnormal;Or Person, if the test result of service application be it is normal, the test result of test set be it is normal, then can determine the test of operating system It as a result is normal.
In one example, before being based on operating system service application, and test the service application, also The service application needed in the special scenes of the operating system can be obtained.Specifically, available need to run the behaviour Make the corresponding environmental information of server of system, and is determined and needed in the specific field of the operating system according to the environmental information (multiple service applications that the business scenario of such as server includes, these service applications are deployed in server to the service application of scape Under business scenario).For example, it is assumed that the line process in the deployment of operating system, it can be by allocating operating system to server A, then The environmental information of server A is obtained, i.e. which service application is server A can run, it is assumed that server A can run service application 1- Service application 3, then the environmental information of server A is exactly service application 1- service application 3, and determines needs according to the environmental information It is service application 1- service application 3 in the service application of the special scenes of the operating system.Of course, it is possible to using other sides Formula obtains the service application needed in operating system, without limitation.
In the above-described embodiments, special scenes are the business scenarios for needing to run the server of operating system, are one Complicated scene, business scenario may be a big cluster, including a large number of services application, and business scenario is extremely complex, business The business procession of scene is also extremely complex, with no restrictions to this business scenario.In addition, above-mentioned service application may include more The business conduct (processing of the interaction, application such as applied) of a application and multiple applications.Service application is related to business Application, test scene condition is extremely complex, and the operating pressure that service application generates operating system nucleus is extremely complex, can be with Including a large amount of core application.
In one example, above-mentioned service application may include: to operate normally in the operating system of a upper version Service application, i.e., in the operating system of a upper version, which is normal.
For example, service application 1- service application 3 is (subsequent with service application after developing the operating system A of first version It is illustrated for 1) it can be operated normally in operating system A, i.e. operating system A is normal, and service application 1 is also Normally.Then, after developing the operating system B of the second edition, acquisition is the business operated normally in operating system A Using 1, therefore, if the test result of service application 1 is exception, since service application 1 operates normally in operating system A, but It is that exception needs to repair operating system B it can be said that bright operating system B has exception in operating system B.
From the above process as can be seen that operating system test process, be using operating system test set to operation System is tested, and in operating system service application, is tested service application, therefore, by the survey of service application Examination is integrated into the test process of operating system, finds the problem in advance, can will be asked by the operating system of service application test triggering The preposition test process to operating system is inscribed, the effective quality for guaranteeing operating system is solved the problems, such as before operating system publication, Be equivalent to problem discovery it is preposition, effectively increase the efficiency solved the problems, such as and operating system publication stability, speed operations The iteration cycle of system publication.
In the issuing process of operating system, operating system can be distributed to each service application, so that each business is answered With operating in the operating system.For example, for the server for needing to run the operating system, it is assumed that the server disposition has industry 1- service application 3 is applied in business, then the operating system can also be distributed to service application 1- service application 3, so that service application 1- service application 3 can operate in the operating system.
In the test process of service application, which can be operated in the operating system, and be answered using business Test set tests the service application, obtains test result.If test result is that service application is abnormal, to business The application of application developer prompt service is abnormal, and the code of service application is modified by service application developer, and answers again business With being tested.If test result is that service application is normal, the service application is obtained.After all service applications are normal, Then execute line process in the deployment of operating system.
It should be noted that due to the test process in operating system, in operating system service application, and Level of application operates normally, and therefore, when testing service application, test result is not in operating system exception, from And avoid prompting operating system abnormal to operating system developer, also there is no need to modify operating system by operating system developer Code, the test process of operating system will not be re-executed.
The line process in the deployment of operating system, can be by normal allocating operating system to server, also, the service Device can run service application 1, service application 2 and service application 3 in the operating system.
It is shown in Figure 3 under above-mentioned application scenarios, for the process of the operating system testing method proposed in the present embodiment Figure, this method can be applied to operating system testing equipment, and this method may comprise steps of:
Step 301, the corresponding environmental information of server for needing to run operating system to be tested is obtained.
Step 302, the service application needed in the special scenes of the operating system is determined according to the environmental information.Its In, above-mentioned service application may include business conduct (such as friendship of application of multiple applications (i.e. APP) and the multiple application Mutually, the processing etc. applied, without limitation).
For example, it is assumed that by allocating operating system to server A, then the environmental information of available server A, i.e. server Which service application A can run, it is assumed that server A can run service application 1- service application 3, then the environmental information of server A It is exactly service application 1- service application 3, and determines the special scenes needed in the operating system according to the environmental information Service application is service application 1- service application 3.It needs it is, of course, also possible to be obtained using other way in the operating system Service application, it is without limitation.
In one example, service application may include: the business operated normally in the operating system of a upper version Using that is, in the operating system of a upper version, which is normal.For example, in the behaviour for developing first version After making system A, service application 1 can be operated normally in operating system A, i.e. operating system A is normal, and service application 1 It is normal.After developing the operating system B of the second edition, acquisition is that the business operated normally in operating system A is answered With 1, therefore, if the test result of service application 1 is exception, since service application 1 operates normally in operating system A, still It is abnormal in operating system B, it can be said that bright operating system B has exception, need to repair operating system B.
Step 303, it is based on the operating system service application, and the service application is tested.
For example, operating system can be obtained from code library, and service application is operated in the operating system, and is utilized The test set of the service application tests the service application, obtains the test result of service application, not to this test process It is limited.Wherein, for multiple service applications of the operating system, as long as there is the test of one or more service application As a result to be abnormal, then the test result of service application can be abnormal;If the test result of all service applications be it is normal, The test result of service application can be normal.
Step 304, the test result of the operating system is determined according to the test result of the service application.
In one example, the operating system can also be tested according to the test set of the operating system, is somebody's turn to do The test result of test set, with no restrictions to this test process;It is then possible to according to the test result of the service application and the survey The test result for trying collection, obtains the test result of the operating system.
Step 305, whether the test result for judging the operating system is normal.If it is, step 306 can be executed, (i.e. the test result of operating system is abnormal) if not, then can execute step 307.
Step 306, the operating system is issued, and based on the operating system service application after publication, and to operation The service application is tested, to obtain the test result of the service application.
Referring to fig. 2 shown in B, the issuing process of operating system, the test process of service application, operating system can be executed Line process in deployment.In the issuing process of operating system, operating system is distributed to each service application, each service application operates in In operating system.On an operating system by service application operation the test of service application is utilized in the test process of service application Collection tests the service application, obtains test result;If test result is that service application is abnormal, to service application developer Prompt service application is abnormal, and the code of service application is modified by service application developer, and tests again service application. If test result is that service application is normal, the service application is obtained;After all service applications are normal, then operation system is executed Line process in the deployment of system.The line process in the deployment of operating system, can be by allocating operating system to server.
Step 307, it prompts operating system abnormal to operating system developer, operating system is modified by operating system developer Code, and re-execute the steps 303 based on modified operating system, subsequent process repeats no more.
It based on the above-mentioned technical proposal,, can be true according to environmental information before operating system publication in the embodiment of the present application The fixed service application needed in operating system, is based on the operating system service application, carries out to the service application Test, the test result of operating system is determined according to the test result of the service application.In this way, can be issued in operating system Before, discovery operating system is not adapted to service application, and is repaired to operating system, the behaviour that can trigger service application It is preposition to make system problem, finds the problem in advance, the quality of operating system is effectively ensured, improves the stability and compatibility of operating system Property, effectively improve the efficiency solved the problems, such as and operating system publication stability, speeding up operation system publication iteration cycle, The testing time is reduced, the testing efficiency of operating system can be improved, test resource can be saved, improves user experience.It can be from Operating system bottom software is integrated into the test process of operating system to the entire software stack of each service application scene in upper layer, One-stop testing process is formed, efficiency for issuing and operating system software quality are improved.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of operating system testing device, As shown in figure 4, being the structure chart of the device, which includes:
Module 401 is obtained, for determining and being needed described according to environmental information before operating system publication to be tested The service application of the special scenes of operating system;Test module 402, for based on business described in the operating system Using testing the service application;Determining module 403, for determining institute according to the test result of the service application State the test result of operating system.
In one example, the acquisition module 401 is determined according to environmental information and is needed in the operating system It is specifically used for when service application: obtains the corresponding environmental information of server for needing to run the operating system;According to the ring Border information determines the service application needed in the special scenes of the operating system;Wherein, the service application includes more The business conduct of a application and the multiple application;Wherein, the service application includes: the operating system in a upper version The service application of middle normal operation.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of operating system testing equipment, It include: processor and machine readable storage medium;Wherein, several computers are stored on the machine readable storage medium to refer to It enables, the processor is handled as follows when executing the computer instruction: before operating system publication to be tested, according to Environmental information determines the service application needed in the special scenes of the operating system;Based on the operating system institute Service application is stated, the service application is tested;The operating system is determined according to the test result of the service application Test result.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of machine readable storage medium, Several computer instructions are stored on the machine readable storage medium, wherein the computer instruction is performed progress such as Lower processing: before operating system publication to be tested, the spy needed in the operating system is determined according to environmental information Determine the service application of scene;Based on service application described in the operating system, the service application is tested;According to The test result of the service application determines the test result of the operating system.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of operating system testing device, The operating system testing device may include: acquisition module, for before operating system publication to be tested, according to deployment Environmental information determines the multiple service applications needed in the operating system, and the application scenarios of service application are preposition to institute The test environment for stating operating system, as the testing process in the test environment of the operating system, the test set of service application Test set is formed with the test set of the operating system;Service application includes the business conduct of multiple applications and multiple applications; Test module, for the testing process based on service application described in the operating system, the service application;Determine mould Block, for determining the test result of the operating system according to the test result of the service application.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes computer usable program code that the embodiment of the present application, which can be used in one or more, The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It is generally understood that being realized by computer program instructions each in flowchart and/or the block diagram The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
Moreover, these computer program instructions also can store be able to guide computer or other programmable datas processing set In standby computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates Manufacture including command device, the command device are realized in one process of flow chart or multiple processes and/or block diagram one The function of being specified in a box or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing devices, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer Or the instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram The step of function of being specified in one box or multiple boxes.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (13)

1. a kind of operating system testing method, which is characterized in that the described method includes:
Before operating system publication to be tested, is determined and needed in the specific field of the operating system according to environmental information The service application of scape;
Based on service application described in the operating system, the service application is tested;
The test result of the operating system is determined according to the test result of the service application.
2. the method according to claim 1, wherein described determined according to environmental information needs in operation system The service application of the special scenes of system operation, comprising:
Obtain the corresponding environmental information of server for needing to run the operating system;
The service application needed in the special scenes of the operating system is determined according to the environmental information;
Wherein, the service application includes the business conduct of multiple applications and the multiple application.
3. method according to claim 1 or 2, which is characterized in that
The service application includes: the service application operated normally in the operating system of a upper version.
4. the method according to claim 1, wherein
The test result according to the service application determines the test result of the operating system, comprising:
The operating system is tested according to the test set of operating system, obtains the test result of test set;According to business The test result of application and the test result of test set determine the test result of the operating system.
5. according to the method described in claim 4, it is characterized in that, the test result and test set according to service application Test result determines the test result of the operating system, comprising:
If the test result of service application is exception, determine that the test result of operating system is abnormal;Alternatively,
If the test result of test set is exception, determine that the test result of the operating system is abnormal;Alternatively,
If the test result of the service application is abnormal, and the test result of the test set is abnormal, it is determined that the behaviour It is abnormal for making the test result of system;Alternatively,
If the test result of the service application is normal, and the test result of the test set is normal, it is determined that the behaviour It is normal for making the test result of system.
6. method according to claim 1 or 5, which is characterized in that the test result according to the service application is true After the test result of the fixed operating system, the method also includes:
If the test result of the operating system is exception, user is prompted to repair operating system;
If the test result of the operating system be it is normal, issue the operating system.
7. the method according to claim 1, wherein the test result according to the service application determines institute After the test result for stating operating system, the method also includes:
After operating system publication, based on the operating system service application after publication;
The service application of operation is tested, the test result of the service application is obtained.
8. the method according to claim 1, wherein the operating system include: (SuSE) Linux OS, Windows operating system, Android operation system, iOS operating system.
9. a kind of operating system testing method, which is characterized in that the described method includes:
Before operating system publication to be tested, is determined and needed in the more of the operating system according to deployed environment information A service application, by the preposition test environment to the operating system of the application scenarios of service application, as the operating system Test environment in testing process, the test set of the test set of service application and the operating system forms test set;Business Using the business conduct for including multiple applications and multiple applications;
Testing process based on service application described in the operating system, the service application;
The test result of the operating system is determined according to the test result of the service application.
10. a kind of operating system testing device, which is characterized in that described device includes:
Module is obtained, for determining and being needed in operation system according to environmental information before operating system publication to be tested The service application of the special scenes of system operation;
Test module for being based on service application described in the operating system, and tests the service application;
Determining module, for determining the test result of operating system according to the test result of the service application.
11. device according to claim 10, which is characterized in that
The acquisition module is determined according to environmental information to be needed to be specifically used in the service application of the operating system: being obtained Take the corresponding environmental information of server for needing to run the operating system;
The service application needed in the special scenes of the operating system is determined according to the environmental information;
Wherein, the service application includes the business conduct of multiple applications and the multiple application;
The service application includes: the service application operated normally in the operating system of a upper version.
12. a kind of operating system testing device, which is characterized in that described device includes:
Module is obtained, for determining and being needed in the behaviour according to deployed environment information before operating system publication to be tested The multiple service applications for making system operation make the preposition test environment to the operating system of the application scenarios of service application For the testing process in the test environment of the operating system, the test set shape of the test set of service application and the operating system At test set;Service application includes the business conduct of multiple applications and multiple applications;
Test module, for the testing process based on service application described in the operating system, the service application;
Determining module, for determining the test result of operating system according to the test result of the service application.
13. a kind of operating system testing equipment characterized by comprising processor and machine readable storage medium, the machine Several computer instructions are stored on readable storage medium storing program for executing, the processor is located as follows when executing the computer instruction Reason: it before operating system publication to be tested, is determined and is needed in the specific field of the operating system according to environmental information The service application of scape;
Based on service application described in the operating system, the service application is tested;
The test result of the operating system is determined according to the test result of the service application.
CN201810437553.1A 2018-05-09 2018-05-09 Operating system testing method, device and equipment thereof Active CN110471828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810437553.1A CN110471828B (en) 2018-05-09 2018-05-09 Operating system testing method, device and equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810437553.1A CN110471828B (en) 2018-05-09 2018-05-09 Operating system testing method, device and equipment thereof

Publications (2)

Publication Number Publication Date
CN110471828A true CN110471828A (en) 2019-11-19
CN110471828B CN110471828B (en) 2023-05-26

Family

ID=68503683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810437553.1A Active CN110471828B (en) 2018-05-09 2018-05-09 Operating system testing method, device and equipment thereof

Country Status (1)

Country Link
CN (1) CN110471828B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611159A (en) * 2020-05-13 2020-09-01 麒麟软件有限公司 Linux operating system test authentication flow management method
CN115952080A (en) * 2022-12-05 2023-04-11 安芯网盾(北京)科技有限公司 Agent limit condition stability testing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009002997A2 (en) * 2007-06-26 2008-12-31 Topcoder, Inc. System and method for distributed software testing
US20100100872A1 (en) * 2008-10-22 2010-04-22 Oracle International Corporation Methods and systems for implementing a test automation framework for testing software applications on unix/linux based machines
CN104182343A (en) * 2014-08-22 2014-12-03 工业和信息化部电子第五研究所 Performance test method and device for operating system
CN104360952A (en) * 2012-03-02 2015-02-18 北京奇虎科技有限公司 Software test system and software test method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009002997A2 (en) * 2007-06-26 2008-12-31 Topcoder, Inc. System and method for distributed software testing
US20100100872A1 (en) * 2008-10-22 2010-04-22 Oracle International Corporation Methods and systems for implementing a test automation framework for testing software applications on unix/linux based machines
CN104360952A (en) * 2012-03-02 2015-02-18 北京奇虎科技有限公司 Software test system and software test method
CN104182343A (en) * 2014-08-22 2014-12-03 工业和信息化部电子第五研究所 Performance test method and device for operating system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611159A (en) * 2020-05-13 2020-09-01 麒麟软件有限公司 Linux operating system test authentication flow management method
CN115952080A (en) * 2022-12-05 2023-04-11 安芯网盾(北京)科技有限公司 Agent limit condition stability testing method and device
CN115952080B (en) * 2022-12-05 2023-08-29 安芯网盾(北京)科技有限公司 Agent limit condition stability test method and device

Also Published As

Publication number Publication date
CN110471828B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
US11159392B2 (en) Managing service deployment
US9307342B2 (en) Dynamic rendering for software applications
US20220318945A1 (en) Optimizing compilation of shaders
CN106648556B (en) Method and device for front-end and back-end integrated development test
Griebe et al. A model-based approach to test automation for context-aware mobile applications
US20210133087A1 (en) Test automation for data processing
CN106874028A (en) Using dispositions method and device
CN109445845A (en) Interface call method, device, computer equipment and storage medium
CN110471828A (en) A kind of operating system testing method, apparatus and its equipment
CN104809054A (en) Method and system for realizing program testing
Silaparasetty et al. The tensorflow machine learning library
US9262304B2 (en) Methods and systems for testing interactions between mobile applications
US11126541B2 (en) Managing resources used during a development pipeline
US20220206773A1 (en) Systems and methods for building and deploying machine learning applications
CN115203050A (en) Method and device for determining dependency relationship of services
CN110297625B (en) Application processing method and device
CN107908552A (en) A kind of test method based on link, device and equipment
CN111967769A (en) Risk identification method, device, equipment and medium
CN106775608A (en) The implementation method and device of autonomous system process
CN115543323B (en) Page development method and device
CN112860224B (en) Function execution environment construction method and device, electronic equipment and storage medium
US20230176961A1 (en) Software application build testing
CN105786566A (en) Simulator CPU kernel number adjusting method and system
CN117331830A (en) Unit test method, unit test device, electronic equipment and readable storage medium
CN115422055A (en) Method and device for testing SDK (software development kit) for developing application program

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
GR01 Patent grant
GR01 Patent grant